Problem
[oracle@testdb ~]$ expdp HAA/HAA@pdb1 tables=emp directory=TEST_DIR query=”\’where salary > 5000\'” dumpfile=query1.dmp logfile=query.log
Export: Release 18.0.0.0.0 – Production on Tue Jul 10 20:23:44 2018
Version 18.1.0.0.0
Copyright (c) 1982, 2018, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 – Production
ORA-39001: invalid argument value
ORA-39035: Data filter SUBQUERY has already been specified.
Solution
[oracle@testdb ~]$ expdp HAA/HAA@pdb1 tables=emp directory=TEST_DIR query=“‘where salary > 5000‘” dumpfile=query1.dmp logfile=query.log
Export: Release 18.0.0.0.0 – Production on Tue Jul 10 20:28:15 2018
Version 18.1.0.0.0
Copyright (c) 1982, 2018, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 18c Enterprise Edition Release 18.0.0.0.0 – Production
Starting “HAA”.”SYS_EXPORT_TABLE_01″: HAA/********@pdb1 tables=emp directory=TEST_DIR query=’where salary > 5000′ dumpfile=query1.dmp logfile=query.log
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS
Processing object type TABLE_EXPORT/TABLE/STATISTICS/MARKER
Processing object type TABLE_EXPORT/TABLE/TABLE
. . exported “HAA”.”EMP” 13.71 KB 58 rows
Master table “HAA”.”SYS_EXPORT_TABLE_01″ successfully loaded/unloaded
******************************************************************************
Dump file set for HAA.SYS_EXPORT_TABLE_01 is:
/u01/app/oracle/datapump/query1.dmp
Job “HAA”.”SYS_EXPORT_TABLE_01″ successfully completed at Tue Jul 10 20:28:26 2018 elapsed 0 00:00:11