when i'm trying to do schema import with content=data_only option then i got this error below
ORA-31693: Table data object "SCOTT"."TEST" failed to load/unload and is being skipped due to error:
ORA-38500: Unsupported operation: Oracle XML DB not present
Then i checked the XDB status and it is installed and VALID status but still getting this error during the import
SQL> select substr(comp_id,1,15) comp_id, substr(comp_name,1,35) comp_name, substr(version,1,10) version, status from dba_registry order by modified;
COMP_ID COMP_NAME VERSION STATUS
--------------- ----------------------------------- ---------- -----------
EM Oracle Enterprise Manager 11.2.0.3.0 VALID
CATPROC Oracle Database Packages and Types 11.2.0.3.0 VALID
CATALOG Oracle Database Catalog Views 11.2.0.3.0 VALID
OWM Oracle Workspace Manager 11.2.0.3.0 VALID
CATJAVA Oracle Database Java Packages 11.2.0.3.0 VALID
XDB Oracle XML Database 11.2.0.3.0 VALID
CONTEXT Oracle Text 11.2.0.3.0 VALID
EXF Oracle Expression Filter 11.2.0.3.0 VALID
JAVAVM JServer JAVA Virtual Machine 11.2.0.3.0 VALID
XML Oracle XDK 11.2.0.3.0 VALID
RUL Oracle Rules Manager 11.2.0.3.0 VALID
COMP_ID COMP_NAME VERSION STATUS
--------------- ----------------------------------- ---------- -----------
ORDIM Oracle Multimedia 11.2.0.3.0 VALID
SDO Spatial 11.2.0.3.0 VALID
AMD OLAP Catalog 11.2.0.3.0 VALID
APS OLAP Analytic Workspace 11.2.0.3.0 VALID
XOQ Oracle OLAP API 11.2.0.3.0 VALID
OWB OWB 11.2.0.2.0 VALID
APEX Oracle Application Express 3.2.1.00.1 VALID
18 rows selected.
After researching, according to Doc ID 1375713.1, The DBMS_METADATA_DIFF package was not completely compiled when it was created.
then performed the below steps
SQL> alter package dbms_metadata_int compile plsql_ccflags = 'ku$xml_enabled:true';
Package altered.
SQL> alter package dbms_metadata_util compile plsql_ccflags = 'ku$xml_enabled:true';
Package altered.
and started import again then it WORKED !!
More on XDB :
ORA-31693: Table data object "SCOTT"."TEST" failed to load/unload and is being skipped due to error:
ORA-38500: Unsupported operation: Oracle XML DB not present
Then i checked the XDB status and it is installed and VALID status but still getting this error during the import
SQL> select substr(comp_id,1,15) comp_id, substr(comp_name,1,35) comp_name, substr(version,1,10) version, status from dba_registry order by modified;
COMP_ID COMP_NAME VERSION STATUS
--------------- ----------------------------------- ---------- -----------
EM Oracle Enterprise Manager 11.2.0.3.0 VALID
CATPROC Oracle Database Packages and Types 11.2.0.3.0 VALID
CATALOG Oracle Database Catalog Views 11.2.0.3.0 VALID
OWM Oracle Workspace Manager 11.2.0.3.0 VALID
CATJAVA Oracle Database Java Packages 11.2.0.3.0 VALID
XDB Oracle XML Database 11.2.0.3.0 VALID
CONTEXT Oracle Text 11.2.0.3.0 VALID
EXF Oracle Expression Filter 11.2.0.3.0 VALID
JAVAVM JServer JAVA Virtual Machine 11.2.0.3.0 VALID
XML Oracle XDK 11.2.0.3.0 VALID
RUL Oracle Rules Manager 11.2.0.3.0 VALID
COMP_ID COMP_NAME VERSION STATUS
--------------- ----------------------------------- ---------- -----------
ORDIM Oracle Multimedia 11.2.0.3.0 VALID
SDO Spatial 11.2.0.3.0 VALID
AMD OLAP Catalog 11.2.0.3.0 VALID
APS OLAP Analytic Workspace 11.2.0.3.0 VALID
XOQ Oracle OLAP API 11.2.0.3.0 VALID
OWB OWB 11.2.0.2.0 VALID
APEX Oracle Application Express 3.2.1.00.1 VALID
18 rows selected.
After researching, according to Doc ID 1375713.1, The DBMS_METADATA_DIFF package was not completely compiled when it was created.
then performed the below steps
SQL> alter package dbms_metadata_int compile plsql_ccflags = 'ku$xml_enabled:true';
Package altered.
SQL> alter package dbms_metadata_util compile plsql_ccflags = 'ku$xml_enabled:true';
Package altered.
and started import again then it WORKED !!
More on XDB :