Database Utilities (MOSC)

MOSC Banner

sqlldr remap_schema

edited Aug 27, 2012 6:56PM in Database Utilities (MOSC) 5 commentsAnswered
(edit: I meant EXPDP/IMPDP not SQLLDR )

I use SQLLDR to copy table structures, packages and data from one schema to another one, both schemas on the same Oracle server. Here is my commands:

(My serser is RHEL 5.8 with Oracle 11gR2.)


# expdp system/password schemas=its directory=dmpdir dumpfile=its_schema.dmp version=10.2

and

# impdp system/password remap_schema=its:its_training directory=dmpdir dumpfile=its_schema.dmp version=10.2

I just found out that when I drop the original schema, which is its in the above commands, then all the tables and data in the other schema, which is its_training, are dropped/deleted. 

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center