Skip to Main Content

Oracle Database Discussions

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!

Exporting pdb (when pdbX exists in both containers)

1144119Feb 20 2018 — edited Feb 21 2018

On Linux, using oracle 12.1.0.2.0.

My db server (myhost1) has two instances (testdb1, demdb) and one listener.

In both instances, there exist pluggable database pdbx

Following expdp commands always exports the testdb1.pdbx, whats the best way to export demdb.pdbx without having to rename it.

export ORACLE_SID=testdb1

expdp system/mypass@//myhost1:1521/pdbx directory=data_pump SCHEMAS=mysch ....

export ORACLE_SID=demdb

expdp system/mypass@//myhost1:1521/pdbx directory=data_pump SCHEMAS=mysch ....

Or do I have to have different alias in tnsnames file?

Any direction or tips welcome... Thanks.

This post has been answered by GregV on Feb 20 2018
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 21 2018
Added on Feb 20 2018
7 comments
318 views