I am trying to export selected rowS from my database using SUBQUERY but I got error.
expdp directory=exp_data dumpfile=selected_row.dmp logfile=rows.log tables=sample,super query="where name IN (select name from azeem.sample where name like 'Ten');"
Export: Release 11.2.0.4.0 - Production on Tue Jan 12 21:58:37 2016
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Username: / as sysdba
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39001: invalid argument value
ORA-39035: Data filter SUBQUERY has already been specified.
Can we use subquery in datapump?
Best Answer
Yes we can. The following example shows how to do it.
I have created a parameter file to get this job done. In my test case I have two tables namely
tbl1
andtbl2
underHR
schema. You may change the name of the schema as your requirements.Then I have used the following expdp command to accomplish the task.