Datapump Export (Expdp) Fails With ORA-31693, ORA-02354, ORA-31693: Table data object failed to load/unload
Datapump Export (Expdp) Fails With ORA-31693, ORA-02354, ORA-31693: Table data object failed to load/unload
'ORA-31693: Table data object
"TEST"."TEST_INSERT1" failed to load/unload and is being
skipped due to error:' error occurred in expdp log.
The export backup are logical database backups that
extract logical definitions and data from the database to a file. Export
backups are cross-platform and can be easily moved from one operating system to
the other.
. . exported "TEST"."STUDENT" 15.50 KB 1388 rows
ORA-31693: Table data object "TEST"."TEST_INSERT1" failed to load/unload and is being skipped due to error:
ORA-02354: error in exporting/importing data
. . exported "TEST"."TEACHER" 5.50 KB 15 rows
.
.
Job "SYSTEM"."SYS_EXPORT_FULL_01" completed with 1 error(s) at 00:05:21
select count(*) from test.test_insert1
*
ERROR at line 1:
ORA-01591: lock held by in-doubt distributed transaction 29.5.5531738
LOCAL_TRAN_ID STATE
---------------- -----------
29.5.5531738 prepared
SQL> EXECUTE Dbms_Transaction.ROLLBACK_FORCE('29.5.5531738')
PL/SQL PROCEDURE successfully completed.
SQL> COMMIT;
COMMIT COMPLETE.
SQL> EXECUTE Dbms_Transaction.PURGE_LOST_DB_ENTRY('29.5.5531738')
PL/SQL PROCEDURE successfully completed.
SQL> COMMIT;
COMMIT COMPLETE.
SQL> SELECT LOCAL_TRAN_ID , STATE FROM DBA_2PC_PENDING;
no rows selected
SQL>
SQL> select count(*) from test.test_insert1;
COUNT(*)
----------
4
Now Resolve the stranded DBA_2PC_PENDING entries i.e.
clear the pending distributed transactions and start the export again.
Some more articles you
might also be interested in :-
Distributed transaction in oracle
ORA-02050: transaction rolled back, some remote DBs may be
in-doubt
ORA-01591: lock held by in-doubt
distributed transaction
Comments
Post a Comment