Skip to Main Content

Database Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to copy one schema into another

599472Apr 16 2010 — edited Apr 21 2010
I need to copy one schema into another. That means, all the tables, views, constraints, etc, and all the data as well.
I have a dmp file of source-schema (created daily with expdp by our backup schedule).

Can I use impdp to import this dmp file into dest-schema? I'm thinking about something like this:

The dmp file was created with:
expdp source-schema/pwd DIRECTORY=dmpdir DUMPFILE=myproject.dmp

Create the copy on dest-schema with:
impdp dest-schema/pwd DIRECTORY=dmpdir DUMPFILE=myproject.dmp

(dest-schema is an existing schema on the same machine. I'll drop all the tables before executing the command. Is there anything else I should do first?)

If this approach is not feasible, kindly suggest me an alternative.

Thank you.

Edited by: mgro on Apr 16, 2010 3:22 AM (changed 2nd command: expdp to impdp)
This post has been answered by 763212 on Apr 16 2010
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 19 2010
Added on Apr 16 2010
7 comments
22,950 views