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.

[oracle@testdb ~]$ more testdb-expdp.log | grep error
. . 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

 The below error was encountered while checking the data in the table 'test.test_insert1'.

SQL> select count(*) from test.test_insert1;
select count(*) from test.test_insert1
                           *
ERROR at line 1:

ORA-01591: lock held by in-doubt distributed transaction 29.5.5531738

 There are some pending distributed transactions in database and following query returns one or more rows:-

SQL> SELECT LOCAL_TRAN_ID, STATE FROM DBA_2PC_PENDING;
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

Popular posts from this blog

Remove ACL and privileges, Drop ACL in oracle

ORA-02050: transaction rolled back, some remote DBs may be in-doubt

Distributed transaction, Oracle Distributed Transactions, distributed transaction in oracle