Problem
When an impdp job fails with an error, you want to identify the failing statement
Solution
Enable tracing for the impdp job with:
SQL> ALTER SYSTEM SET EVENTS '14401 trace name errorstack level 3';
SQL> ALTER SYSTEM set MAX_DUMP_FILE_SIZE= unlimited ;
SQL> ALTER SYSTEM set TIMED_STATISTICS = true;
Re-run the impdp job.
To disable tracing:
SQL> ALTER SYSTEM SET EVENTS '14401 trace name errorstack off';