I have a task to export data from database using data pump. I have successfully exported database using subquery in QUERY clause. But I want to know can we expdp using joins in QUERY clause?
Oracle – Using JOINS in QUERY Clause with expdp
oracleoracle-11goracle-11g-r2
Related Question
- Oracle Data Pump – Export Selected Row with Subquery
- Oracle – expdp Full Export Not Exporting All Schemas
- Amazon-rds – Oracle data pump export / import errors
- Oracle EXPDP using QUERY parameter with results from SELECT
- Oracle file permissions expdp vs dbms_datapump
- Using JOINS in QUERY clause in EXPDP
- Oracle Data Pump Export Wizard – Should DBA Use This to Export Data?
Best Answer
The
QUERY
parameter is used to restrict data in the export job. If you want to export number of rows that are exist in another table then you can use subquery inQUERY
parameter.If you want to join two tables and export you can create table by joining two tables. As shown below.
Then can export it.
Alternatively, you can create a view by joining tables and export views(
INCLUDE=VIEWS
). You have to filter views during import.