EXPDP with Select Query Clause in Oracle

EXPDP with Select Query Clause in Oracle

For exporting table data with query condition

1. Create the directory if not present.
create directory EXPDIR as 'D:\ORADUMP'

2. We export data from last 30 new employees to expdp dump file
select * from HR.EMPLOYEES WHERE created > sysdate-30;

3. Run the EXPDP command for export query data.

EXPDP Directory=EXPDIR dumpfile=employee.dmp logfile=employeeexp.log tables=hr.employees query=hr.employees:"WHERE created > sysdate - 30";

For IMPDP

IMPDP Directory=EXPDIR dumpfile=employee.dmp logfile=employeeimp.log

Unknown's avatar

Author: 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.

Leave a Reply

Discover more from SmartTechWays - Innovative Solutions for Smart Businesses

Subscribe now to keep reading and get access to the full archive.

Continue reading