5

We have an old database in oracle 10g. we want to replace it with the new dmp file (that is what we have). Can I simply drop the old database, then run the impdp to create a new one? We are not worried about the data in the old database. Could you give me the steps to do that?

3
  • 1
    Do you want to overwrite the entire database or just one schema (=user)? The term "database" in Oracle refers to the whole installation including all schemas/users that you have created. Commented May 3, 2012 at 19:16
  • just one schema. I guess. Anyway, i was told if dmp file is used, it will recreate everything. Can I use impdp SYSTEM/password to do that? Commented May 3, 2012 at 19:19
  • 1
    Do a drop user foobar cascade beforehand. And yes impdp is the way to go (if the .dmp was created using expdp and not with exp) Commented May 3, 2012 at 20:07

1 Answer 1

4

As has been stated in the comments, you can just drop the user with cascade, then import the user.

If you created an export with the older exp command, and it was an export of just one user/schema, then you will likely have to create the user/schema manually before running the imp. exp/imp were not as smart about that as expdp/impdp.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.