XDB error in transportable table space:
Export: Release 11.2.0.4.0 - Production on Thu Aug 23 14:10:01 2018
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
;;;
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "SYS"."SYS_EXPORT_TRANSPORTABLE_01": /******** AS SYSDBA parfile=dp_ttsexp.par
Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
ORA-39127: unexpected error from call to export_string :=XDB.DBMS_CSX_ADMIN.INSTANCE_INFO_EXP('ATS_OTH_BRAND_CHGS_XML','ATS',0,1,'11.02.00.00.00',newblock)
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_METADATA", line 9876
ORA-39127: unexpected error from call to export_string :=XDB.DBMS_CSX_ADMIN.INSTANCE_INFO_EXP('ATS_OTH_BRAND_CHGS_XML_BKP','FDBA',0,1,'11.02.00.00.00',newblock)
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_METADATA", line 9876
ORA-39127: unexpected error from call to export_string :=XDB.DBMS_CSX_ADMIN.INSTANCE_INFO_EXP('WWV_FLOW_COLLECTION_MEMBERS$','APEX_050000',0,1,'11.02.00.00.00',newblock)
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_METADATA", line 9876
Processing object type TRANSPORTABLE_EXPORT/PROCACT_INSTANCE
Processing object type TRANSPORTABLE_EXPORT/TABLE
Processing object type TRANSPORTABLE_EXPORT/PRE_TABLE_ACTION
TTS will not be successful until the XDB error is resolved.
So we need to uninstall XDB and then again install XDB once tt is done.
Uinstalling XDB:
XDB Removal
The catnoqm.sql script drops XDB.
spool xdb_removal.log
set echo on;
connect / as sysdba
shutdown immediate;
startup
@?/rdbms/admin/catnoqm.sql
@?/rdbms/admin/catproc.sql
@?/rdbms/admin/utlrp.sql
set pagesize 1000
col owner format a8
col object_name format a35
select owner, object_name, object_type, status
from dba_objects
where status = 'INVALID' and owner = 'SYS';
spool off;
Then again start the import.
Export: Release 11.2.0.4.0 - Production on Thu Aug 23 14:10:01 2018
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
;;;
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "SYS"."SYS_EXPORT_TRANSPORTABLE_01": /******** AS SYSDBA parfile=dp_ttsexp.par
Processing object type TRANSPORTABLE_EXPORT/PLUGTS_BLK
ORA-39127: unexpected error from call to export_string :=XDB.DBMS_CSX_ADMIN.INSTANCE_INFO_EXP('ATS_OTH_BRAND_CHGS_XML','ATS',0,1,'11.02.00.00.00',newblock)
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_METADATA", line 9876
ORA-39127: unexpected error from call to export_string :=XDB.DBMS_CSX_ADMIN.INSTANCE_INFO_EXP('ATS_OTH_BRAND_CHGS_XML_BKP','FDBA',0,1,'11.02.00.00.00',newblock)
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_METADATA", line 9876
ORA-39127: unexpected error from call to export_string :=XDB.DBMS_CSX_ADMIN.INSTANCE_INFO_EXP('WWV_FLOW_COLLECTION_MEMBERS$','APEX_050000',0,1,'11.02.00.00.00',newblock)
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
ORA-06512: at line 1
ORA-06512: at "SYS.DBMS_METADATA", line 9876
Processing object type TRANSPORTABLE_EXPORT/PROCACT_INSTANCE
Processing object type TRANSPORTABLE_EXPORT/TABLE
Processing object type TRANSPORTABLE_EXPORT/PRE_TABLE_ACTION
TTS will not be successful until the XDB error is resolved.
So we need to uninstall XDB and then again install XDB once tt is done.
Uinstalling XDB:
XDB Removal
The catnoqm.sql script drops XDB.
spool xdb_removal.log
set echo on;
connect / as sysdba
shutdown immediate;
startup
@?/rdbms/admin/catnoqm.sql
@?/rdbms/admin/catproc.sql
@?/rdbms/admin/utlrp.sql
set pagesize 1000
col owner format a8
col object_name format a35
select owner, object_name, object_type, status
from dba_objects
where status = 'INVALID' and owner = 'SYS';
spool off;
Then again start the import.