DBAsupport.com Forums - Powered by vBulletin
Results 1 to 5 of 5

Thread: IMP - overwrite table data

  1. #1
    Join Date
    Sep 2000
    Location
    VA
    Posts
    343
    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.

  2. #2
    Join Date
    Apr 2000
    Location
    Baltimore, MD
    Posts
    759
    You cna write a dynamic script to truncate the tables, and then run import with ignore=y

  3. #3
    Join Date
    Sep 2000
    Location
    VA
    Posts
    343

    Is there no other way of achieving it ??( I mean through any parameter setting or any exp/imp mode ).

    Shiva

  4. #4
    Join Date
    Oct 2000
    Location
    Dallas:TX:USA
    Posts
    407
    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

  5. #5
    Join Date
    Sep 2000
    Location
    VA
    Posts
    343

    Thanks.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width