Question : New to Datapump

Hi,
 I am new to Oracle 10g new data pump feature. I would like to know what are advantages of using it instead of using regular exp, imp commands. What are the commands I should use for exporting from source database schema, importing into target database schema. I only need to import export only 1 schema between 2 oracle 10g database schemas running in 2 different networks.  Any sample code, links , resources, ideas to get started quickly highly appreciated. Thanks in advance.

Answer : New to Datapump

I could say a lot here, but I'd be repeating much of what you can find in the Oracle Data Pump Faq.

http://www.oracle.com/technology/products/database/utilities/htdocs/datapump_faq.html

In short, its the future. exp/imp will be supported probably forever, but there may be data types in the future that exp/imp do not support.

Performance is better with data pump, for sure.
There is better control over object selectivity and you can provide wildcards, etc. to filter objects to export.

A quick sample / comparison below, note one of the minor issues with data pump is it wants to go to an "Oracle DIRECTORY", so you can't just dump the export anywhere you may be.


To import from a full export file an old schema named fred, into a new schema user named barney...

With impdp:
impdp system/admin directory=dumps dumpfile=export.dmp remap_schema=fred:barney

With imp:
imp system/admin file=export.dmp fromuser=fred touser=barney


Note with impdp you need to create the directory inside Oracle:

create directory dumps as 'C:\dumps';
Random Solutions  
 
programming4us programming4us