Question

  Asked: Apr 28 2008   2:16 PM GMT
  Asked by: OracleATE


What's the best way to import an Oracle database?


Oracle import/export, Oracle replication, Oracle migration, Oracle error messages, Oracle, Database

I have two databases in two different computers, but my databases are the same name, service and password. I recently updated the structure of one and backed it up using exp full=n file=*** and log=*** etc. I now want to imp this backup to the second machine so as to avoid repetitive work. Each time I did, it complained that tables already exist. What tricks or instructions can I use?

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



It sounds like you want to import a schema that has the same username as the database you are importing to. Easiest way to do this is to create another user in the second database, with the same grants as the first. Then run imp using the FROMUSER=originaluser TOUSER=newuser arguments. You don't want to run a full import because then it will try to recreate the data files and reload catalog information. If you have multiple users you want to import, you will have to repeat the above process for each schema.


Hi,


This means tables already exists with the same name, if you want to insert tables which already exist then u can use ignore=y option in import it will check if table already exist it wont return error, instead it will append.

Hope this helps

regards

http://www.oracledbarea.blogspot.com
  • AddThis Social Bookmark Button

Browse more Questions and Answers on Oracle and Database.

Looking for relevant Oracle Whitepapers? Visit the SearchOracle.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register