EXPDP / IMPDP for schemas and tables example

EXPDP / IMPDP for schemas and tables example

EXPDP/IMPDP for schemas in Oracle
1. Create the directory if not present.
create directory EXPDIR as 'D:\ORADUMP'

2. Run the EXPDP command for export of schema (HR,SCOTT).
EXPDP directory=EXPDIR dumpfile=schema.dmp logfile=schema_exp.log schemas=HR,SCOTT

Example of using the parameter file for EXPDP as follows:

--create parameter file for export of SCHEMAS(HR,SCOTT)
--notepad schema.par
dumpfile=schema.dmp
logfile=tables.log
directory=EXPDIR
schemas=HR,SCOTT
--Run the expdp
expdp parfile=schema.par

For impdp also use the similar command.
IMPDP directory=EXPDIR dumpfile=schema.dmp logfile=schema_imp.log schemas=HR,SCOTT

EXPDP/IMPDP for tables in Oracle
For EXPDP datapump:
1. Create the directory if not present.
create directory EXPDIR as 'D:\ORADUMP';

2. Export the multiple tables in command.
EXPDP directory=EXPDIR dumpfile=tables.dmp logfile=tables.log tables=HR.EMPLOYEE,HR.DEPT

For IMPDP datapump:
IMPDP directory=EXPDIR dumpfile=tables.dmp logfile=tables.log tables=HR.EMPLOYEE,HR.DEPT

This entry was posted in Oracle on by .

About SandeepSingh

Hi, I am working in IT industry with having more than 15 year of experience, worked as an Oracle DBA with a Company and handling different databases like Oracle, SQL Server , DB2 etc Worked as a Development and Database Administrator.

1 thought on “EXPDP / IMPDP for schemas and tables example

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.