You know what " TRACE for EXPDP/IMPDP"

Sometimes DBA has been asked to take logical backup, we call export, and import to original schema or other scheam, to have same image of data. But it is not always wotking as we expected. And we need to find out what's wrong with EXPDP/IMPDP inside.

Here is the thing you can try to get internal procedures of EXPDP/IMPDP

'TRACE = 480300'

You will see trace files under background_dump_dest location, name like *dw00*.trc and *dm00*.trc. For example, dvtest2_dw00_2572.trc and dvtest2_dm00_2568.trc.

On dvtest2_dw00_2572.trc ,

You can see all detail steps of impdp.
  1. Impdp will define internal table for import job .
  2. loading PUT_DDL for objects in order.
  3. Each object type completion is updated internally
KUPW:06:43:01.095: 1: l_valid: -3 - Not Loading REUSE with type TABLESPACE
KUPW:06:43:01.096: 1: l_valid : 1 - Loading EXPORT with type NULL
KUPW:06:43:01.096: 1: l_valid : 1 - Loading PRETTY with type NULL
KUPW:06:43:01.096: 1: l_valid : 1 - Loading SQLTERMINATOR with type NULL
KUPW:06:43:01.096: 1: l_valid: -3 - Not Loading CONSTRAINTS with type TABLE
KUPW:06:43:01.096: 1: l_valid: -3 - Not Loading REF_CONSTRAINTS with type TABLE
KUPW:06:43:01.096: 1: l_valid: -3 - Not Loading OID with type TABLE
KUPW:06:43:01.096: 1: l_valid: -3 - Not Loading RESET_PARALLEL with type INDEX
KUPW:06:43:01.096: 1: l_valid: -3 - Not Loading OID with type TYPE
KUPW:06:43:01.096: 1: l_valid: -3 - Not Loading OID with type INC_TYPE
KUPW:06:43:01.096: 1: l_valid: -3 - Not Loading REVOKE_FROM with type ROLE
This is internal order for importing.

That's all today.
I will update more later on details about how to analyze trace file of impdp.

Cheers

Comments

Popular posts from this blog

You know what? How to debug RMAN !!

You know what? - DIAGWAIT