Link to home
Start Free TrialLog in
Avatar of Churamani Amgain
Churamani Amgain

asked on

Selective package import from a available schema dump using DBMS_DATAPUMP

How can I selectively import a package from a export dump(schema_dump.dmp) file using DBMS_DATAPUMP.
for example I want to import a package called sttm_customer_pkg from a dump called schema_dump.dmp. please help me on this.
Avatar of Mark Geerlings
Mark Geerlings
Flag of United States of America image

You will need a command very similar to this:
impdp username/password directory=LOGICAL_DIR_NAME dumpfile=schema_dump.dmp logfile=imp_package.log include=package:"LIKE 'STTM_CUSTOMER_PKG%'"

Notes:
1. The "username" should be the owner of the package you want to import
2. The "password" must be the Oracle password for that user
3. The LOGICAL_DIR_NAME must be the name of a logical directory in your target database.  You may need to "grant read, write on LOGICAL_DIR_NAME to [username];" for the owner of the package, if that Oracle user doesn't have this permission now.
4. The LOGICAL_DIR_NAME must be entered in upper-case, with no single quotes.
5. You will have to copy your schema_dump.dmp to the physical directory that corresponds to your LOGICAL_DIR_NAME directory.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.