SYMPTOMS
On 11.2.0.4, the installation of XDB fails with the following errors:
ORA-04063: package body "SYS.DBMS_METADATA" has errors
ORA-04063: package body "XDB.DBMS_XDBZ" has errors
ORA-06575: Package or function XDB$PATCHUPSCHEMA is in an invalid state
ORA-31000: Resource 'http://xmlns.oracle.com/xdb/acl.xsd' is not an XDB schema document
ORA-00600: internal error code, arguments: [qmxqtmChkXQAtomMapSQL:2], [], [], [], [], [], [], [], [], [], [], []
CAUSE
XDB DBMS_XDB PACKAGE BODY 800
PL/SQL: ORA-00942: table or view does not exist
Select owner,object_name,Object_type , status from dba_objects where object_name='DUAL';
OWNER OBJECT_NAME OBJECT_TYPE STATUS
------------------------------ -------------------- ------------------- -------
SYS DUAL TABLE VALID
PUBLIC DUAL SYNONYM VALID
TBAADM DUAL VIEW VALID
GBM DUAL VIEW VALID
OWNER SYNONYM_NAME TABLE_OWNER TABLE_NAME DB_LINK
------------------------------ ------------------------------ ------------------------------ ------------------------------ ----------
PUBLIC DUAL TBAADM MDUAL
SQL> Desc TBAADM.dual
Name Null? Type
----------------------------------------- -------- ----------------------------
DUMMY NOT NULL VARCHAR2(1)
SQL> Desc GBM.dual
Name Null? Type
----------------------------------------- -------- ----------------------------
X NOT NULL VARCHAR2(1)
Public Synonym is created for TBAADM.MDUAL
SOLUTION
Create the DUAL public synonym for SYS.DUAL.
Drop public synonym dual;
CREATE PUBLIC SYNONYM DUAL FOR SYS.DUAL;
GRANT SELECT ON SYS.DUAL TO PUBLIC WITH GRANT OPTION;
After that reinstall XDB.
|