I am using the Oracle imp utility to import data into a set of empty tables in Oracle 10g. When I try to perform the import much of it fails due to referential integrity constraints. E.g. Can't import data into table A because foreign key in table B does not exist yet.
Here is my import command:
imp C_PLUS/<password> rows=y file=db.dmp ignore=y FROMUSER=C_PLUS
TOUSER=C_PLUS tables=...
I could manually go through each table on import and when it fails import the missing table first, but I have over 400 tables that need imported and it would take far too long.
Is there a way around this or does anyone have any ideas?
Thanks
C_PLUS
? Or do you want to just load a subset of tables specified by theTABLES
parameter? – Justin Cave