Reputation:
How can I do Exp and Imp by using PL/SQL?
Upvotes: 2
Views: 6744
Reputation: 36827
You can see an example about exactly you are requesting in the Examples of Using the Data Pump API inside the Oracle Database Utilities book.
Upvotes: 1
Reputation:
If you are using impdp/expdp - Datapump (10g or later) - , you can simply use DBMS_DATAPUMP:
http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_datpmp.htm
Upvotes: 4
Reputation: 259
This could be done in a few ways.
First, if you're using 10g or later, you can consider using data pump (expdp and impdp) as opposed to imp and exp. These are the newer and more capable versions of those tools.
As for how to call them from PL/SQL, you can do so by:
The first and last options should be well documented in the Oracle online docs - the other two options would require a little more coordination and coding.
Upvotes: 4