Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Expdp/Impdp: how to export/import tables in certain order

mail8mzNov 12 2014 — edited Nov 17 2014

Hi All,

I am using Oracle 11.2  and using the following parfile to export a list of tables:

directory=datapump_export_directory

schema=source_schm

include=TABLE: "IN (select tb_nm from TB_ref

                        union select 'TB_parent' from dual

                        union select 'TB_child' from dual)"

However the expdp does follow the order as specified in the parfile. Sometimes it exports the child table TB_child before the parent table TB_parent. Then the impdp will failed due to the child table has not parent key. Any suggestion on how to export/import table in certain order - parent table at first and then the child table?

Thanks!

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 15 2014
Added on Nov 12 2014
5 comments
3,837 views