Skip to Main Content

Oracle Database Discussions

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!

Import table data in right order to avoid violating foreign key constraints

user586249Aug 8 2008 — edited Aug 11 2008
Gentlemen

I am trying to import table data into an existing 10g schema using datapump import in table mode.

However, in order to avoid violating foreign key constraints, the tables must be loaded in a specified order. I tried specifying the order in the TABLES parameter:

TABLES=table1,table2,table3 etc.

However, datapump seems to chose its own order leading to errors like the following:

ORA-31693: Table data object "SCHEMAX"."TABLE3" failed to load/unload and is being skipped due to error:
ORA-02291: integrity constraint (SCHEMAX.TABLE3_TABLE1#FK) violated - parent key not found


I want to try to avoid having to disable all foreign keys because there are hundreds of them.

Any advice?

Yours
Claus Jacobsen, Denmark
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 8 2008
Added on Aug 8 2008
6 comments
5,476 views