Use data pump to extract a package from a dump file

Here's the only method I've found for using Data Pump to extract a package from a dump file.  You don't actually import it directly to a database.  Impdp creates a sql file with the source code for re-creating the package.

impdp username/password directory=MYDIR dumpfile=export.dmp sqlfile=mysql.sql

This will get all the source code for every package in your dump file.

Comments

Popular posts from this blog

Auditing user logon and logoff in Oracle

RMAN Restore vs. Recovery - what's the difference?