ORA-00942 when upgrdaing from 11.2 to 12c

(Doc ID 2360488.1)

Last updated on FEBRUARY 13, 2018

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.4 and later
Information in this document applies to any platform.

Symptoms

Upgrade from 11.2.0.4 to 12c on Standby DB fails with:

ERROR en linea 1:
ORA-00942: la tabla o vista no existe
ORA-06512: en "XDB.DBMS_XMLSCHEMA_INT", linea 37
ORA-06512: en "XDB.DBMS_XMLSCHEMA", linea 65
ORA-06512: en "XDB.DBMS_XMLSCHEMA", linea 136
ORA-06512: en linea 5


Transcurrido: 00:00:03.28
12:05:48 SQL>
12:05:48 SQL> declare
12:05:48 2 TRXSD BFILE := dbms_metadata_hack.get_bfile('xmltr.xsd.11.0');
12:05:48 3 TRURL VARCHAR2(2000) := 'http://xmlns.oracle.com/xdb/csx.xmltr.xsd';
12:05:48 4 begin
12:05:48 5 xdb.dbms_xmlschema.registerSchema(TRURL, TRXSD, FALSE, FALSE, FALSE, TRUE,
12:05:48 6 FALSE, 'XDB',
12:05:48 7 options => DBMS_XMLSCHEMA.REGISTER_BINARYXML);
12:05:48 8 end;
12:05:48 9 /
declare
*
ERROR en linea 1:
ORA-00942: la tabla o vista no existe
ORA-06512: en "XDB.DBMS_XMLSCHEMA_INT", linea 37
ORA-06512: en "XDB.DBMS_XMLSCHEMA", linea 65
ORA-06512: en "XDB.DBMS_XMLSCHEMA", linea 136
ORA-06512: en linea 5


XDB is VALID:

COMP_ID COMP_NAME STATUS
------------------------------ ----------------------------------- --------------------------------------------
XDB Oracle XML Database VALID
CATALOG Oracle Database Catalog Views VALID
CATPROC Oracle Database Packages and Types VALID
RAC Oracle Real Application Clusters VALID

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms