重庆思庄Oracle、Redhat认证学习论坛

标题: Installation Of XDB Fails With ORA-04063, ORA-31000, ORA-600 [qmxqtmChkXQAtom... [打印本页]

作者: 刘泽宇    时间: 2023-11-5 14:05
标题: Installation Of XDB Fails With ORA-04063, ORA-31000, ORA-600 [qmxqtmChkXQAtom...
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.






欢迎光临 重庆思庄Oracle、Redhat认证学习论坛 (http://bbs.cqsztech.com/) Powered by Discuz! X3.2