Oracle data pump using expdp and impdp

Oracle Data Pump technology enables very high-speed movement of data and metadata from one database to another.

All Data Pump Export and Import processing, including the reading and writing of dump files, is done on the system (server) selected by the specified database connect string. This means that for unprivileged users, the database administrator (DBA) must create directory objects for the Data Pump files that are read and written on that server file system.

So, the following are the steps to use data pump technology.

  1. Create a directory
  2. grant read, write permission on a directory to respective user.
  3. export the data or metadata using expdp.
  4. transfer the dump file to the respective destination database location.
  5. import the data using impdp utility

Step 1. Create a directory at OS level.

Step 2. Create a directory at a database level.

Step 3: Grant permissions.

Export the data using the below command

expdp AUDIT_TEST directory=directory_name dumpfile=dumpfile_name.dmp logfile=logfile_name-exp.log  tables=ABC

Step 4: Copy the ABCTABLE.dmp file to respective destination location.

Step 5: import the data using the below command.

impdp directory=DBDUMP logfile=abc.log dumpfile=ABCTABLE.dmp table_exist_action=replace remap_schema=AUDIT_TEST:SCOTT

Important dictionary views:

Also read, Backup and Recovery concept.

Words from dbapath

Thank you for giving your valuable time to read the above information. I hope the content served your purpose in reaching out the blog.
Suggestions for improvement of the blog are highly appreciable. Please contact us for any information/suggestion/feedback.

If you want to be updated with all our articles

please follow us on Facebook | Twitter
Please subscribe to our newsletter.