I am exporting all the objects from one schema to another. I have all the tables already in my destination with records in it. I just need to drop all the records and insert the new ones into it.
I have exported my database with owner = a and
I know that IGNORE=Y parameter in my IMP command would do to import into existing tables, but would it also overwrite my already existing records ??
Or do I need to manually delete all the records before performing an import ??
Any help would be great.
Shiva.
04-19-2001, 10:48 AM
Halo
You cna write a dynamic script to truncate the tables, and then run import with ignore=y
04-19-2001, 10:51 AM
rshivagami
Is there no other way of achieving it ??( I mean through any parameter setting or any exp/imp mode ).
Shiva
04-19-2001, 11:11 AM
rsuri
Dynamic SQL script is the way to go as Halo mentioned.
I do feel that Oracle should include this feature in later releases. I don't see any point how this feature will cause any problem. In any case one disables all the constraints anyway before the import so Referential Integrity should not be a concern.