DOYENSYS Knowledge Portal




We Welcome you to visit our DOYENSYS KNOWLEDGE PORTAL : Doyensys Knowledge Portal




Monday, August 31, 2015

Data Pump and export Parameters-QUERY



Data Pump and export Parameters-QUERY


Data Pump Parameters-QUERY
*****************************


expdp scott/tiger tables=emp directory=TEST_DIR query=\'where deptno=20\' dumpfile=query.dmp logfile=query.log



[oracle@oracle11g ~]$ expdp scott/tiger tables=emp directory=TEST_DIR query=\'where deptno=20\' dumpfile=query.dmp logfile=query.log

Export: Release 11.2.0.3.0 - Production on Mon Aug 31 10:58:47 2015

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Starting "SCOTT"."SYS_EXPORT_TABLE_01":  scott/******** tables=emp directory=TEST_DIR query='where deptno=20' dumpfile=query.dmp logfile=query.log
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 64 KB
Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
. . exported "SCOTT"."EMP"                               8.203 KB       5 rows
Master table "SCOTT"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for SCOTT.SYS_EXPORT_TABLE_01 is:
  /u01/dump/query.dmp
Job "SCOTT"."SYS_EXPORT_TABLE_01" successfully completed at 10:59:07



export Parameters-QUERY
************************



exp scott/tiger tables=emp  query=\'where deptno=20\' file=/u01/query.dmp log=/u01/query.log




[oracle@oracle11g ~]$ exp scott/tiger tables=emp  query=\'where deptno=20\' file=/u01/query.dmp log=/u01/query.log

Export: Release 11.2.0.3.0 - Production on Mon Aug 31 10:57:19 2015

Copyright (c) 1982, 2011, Oracle and/or its affiliates.  All rights reserved.


Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Export done in US7ASCII character set and AL16UTF16 NCHAR character set
server uses WE8MSWIN1252 character set (possible charset conversion)

About to export specified tables via Conventional Path ...
. . exporting table                            EMP          5 rows exported
Export terminated successfully without warnings.

No comments: