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

Thread: database refresh

  1. #1
    Join Date
    Oct 2005
    Posts
    90

    database refresh

    i need to refresh one of the development database using exp/imp which i never did before i know the concept like taking full export(full=y) when importing back to target m/c 'X' i need to have a database for that i need to create one with all tablespaces having same size?do i need to wipe out the old database(development) from m/c 'x' so as to import back into it.after that just import with ignore=y but wat bout indexes do i need to rebuild them? please if someone has steps for it help me out.

    Thanks

  2. #2
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    why not just take a backup and use that , so much easier

  3. #3
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    4,166
    Quote Originally Posted by davey23uk
    why not just take a backup and use that , so much easier
    He could even do a cold backup and script the restore process whether it is Windows, Linux or Unix.

  4. #4
    Join Date
    Nov 2004
    Location
    Mumbai, India
    Posts
    452
    Answering the original question
    1) You need to have a database to import.
    2) You dont need to drop existing database and create a new one.You can import into existing DB.Truncate(to avoid unique constraint violations) the tables and import with ignore=y
    There are three kinds of lies: Lies, damned lies, and benchmarks...

    Unix is user friendly. It's just very particular about who it's friends are.

    Oracle DBA

  5. #5
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,334
    Quote Originally Posted by simply_dba
    1) You need to have a database to import.
    yes you do need a database to import into

  6. #6
    Join Date
    Oct 2005
    Posts
    90
    i have the db already so only thing i should do is to truncate the tables and then import data back into it,but what if the db structure got changed like new daatfile added to source does the import fails with full=y?

  7. #7
    Join Date
    Nov 2004
    Location
    Mumbai, India
    Posts
    452
    Quote Originally Posted by nisha
    i have the db already so only thing i should do is to truncate the tables and then import data back into it,but what if the db structure got changed like new daatfile added to source does the import fails with full=y?
    you need study more on exp/imp utilities and oracle architecture.
    Import utlity is unaffected by any physical change of the database as long as the users concerned have a default tablespace and suffcient quotas on these tablespaces. Any new object in the import dump file will be duly created by the import utility.
    There are three kinds of lies: Lies, damned lies, and benchmarks...

    Unix is user friendly. It's just very particular about who it's friends are.

    Oracle DBA

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