-
Hi all,
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.
-
You cna write a dynamic script to truncate the tables, and then run import with ignore=y
-
Is there no other way of achieving it ??( I mean through any parameter setting or any exp/imp mode ).
Shiva
-
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.
- Rajeev
Rajeev Suri
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|