export schema

thomasliju
thomasliju used Ask the Experts™
on
To export schema..
in the following version
what do you prefer to export

exp or expdp

Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
PL/SQL Release 10.2.0.4.0 - Production
CORE    10.2.0.4.0      Production
TNS for Solaris: Version 10.2.0.4.0 - Production
NLSRTL Version 10.2.0.4.0 - Production
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Senior Database Administrator
Commented:
expdp is Export Data Pump

exp is just export - which is the older version, included for backward compatibility.

Expdp is usually preferred - it's generally faster.

See the docs: http://docs.oracle.com/cd/E11882_01/server.112/e22490/dp_export.htm#SUTIL200
Most Valuable Expert 2012
Distinguished Expert 2018
Commented:
I typically use the classic exp.  You can run this from a remote client and have the file saved on that remote client.

The datapump version places the file on the database server.
Steve WalesSenior Database Administrator
Commented:
True - for data pump you do need to create a "directory" inside the instance so that Oracle can write to the server file system and grant permissions on that directory to the user who is doing the export.

Also, on the import side, impdp doesn't seem to handle referential integrity constraints very well - where as imp seems like it will load all the data and then enable constraints at the end.

However, impdp gives you great flexibility in remapping users and tablespaces on the import that imp does not.

I guess you need to find out what your requirements are and use what suits your individual requirements best.

I've found that Datapump is generally faster, but from time to time there are still databases I have where I use import / export.

As in many database related questions, there are not necessarily absolute answers.  The answer is often "it depends" :)
Ensure you’re charging the right price for your IT

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden using our free interactive tool and use it to determine the right price for your IT services. Start calculating Now!

I will prefer and we are using the expdp for schema / table / full export, which is fastest and convenient when compared to exp.

Author

Commented:
datapump worked.
Most Valuable Expert 2012
Distinguished Expert 2018

Commented:
thomasliju,

Your closing comment mentioned datapump worked but you selected an answer that didn't suggest using it.

Please take the time to close your questions properly.  I will have a Moderator take a look at this question.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial