Reason:
If you don't want to pump big tables you can use multiple QUERY predicate.
expdp "'/ as sysdba'" parfile=expdp.dat
or
expdp system/manager@DB parfile=expdp.dat
Note:
cat expdp.dat file
DUMPFILE="dat.dmp"
LOGFILE="exp_dat.log"
DIRECTORY=DATA_PUMP_DIR
SCHEMAS=('RMS_ACQ_B')
QUERY='RMS_ACQ_B.RISKMAN_AUTH_TMP:"WHERE rownum<1"'
QUERY='RMS_ACQ_B.MSG_HEAD_ARMS:"WHERE rownum<1"'
QUERY='RMS_ACQ_B.RISKMAN_SLIPS_TMP:"WHERE rownum<1"'
QUERY='RMS_ACQ_B.RISKMAN_SLP_FULL:"WHERE rownum<1"'
CONTENT=ALL
JOB_NAME='v1'
REUSE_DUMPFILES=Y #COMPATIBLE=11.2 CAN BE
OVERWRITTEN
#COMPRESSION=ALL #COMPATIBLE=11.2
#COMPRESSION=ALL #COMPATIBLE=11.2
example:
[oracle@test ~]$ expdp SYSTEM/manager parfile=expdp.dat Export: Release 11.2.0.2.0 - Production on Mon Sep 26 17:19:27 2011 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production With the Partitioning, Oracle Label Security and Real Application Testing options Starting "RMS_PREV"."V2": system/******** parfile=expdp.dat Estimate in progress using BLOCKS method... Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA Total estimation using BLOCKS method: 32.11 GB Processing object type SCHEMA_EXPORT/USER [...] Processing object type SCHEMA_EXPORT/POST_SCHEMA/PROCOBJ . . exported "RMS_ACQ_B"."RISKMAN_AUTH_TMP" 16.21 KB 0 rows . . exported "RMS_ACQ_B"."MSG_HEAD_ARMS" 20.10 KB 0 rows . . exported "RMS_ACQ_B"."RISKMAN_SLIPS_TMP" 14.89 KB 0 rows . . exported "RMS_ACQ_B"."RISKMAN_SLP_FULL" 13.17 KB 0 rows . . exported "RMS_ACQ_B"."RISKMAN_AUTH_TMP_NEW" 320.7 MB 723385 rows
If you need to exclude TEST tables
(syntax note add \ if QUERY= not on Windows or not in parfile; on Linux must prefix with \ most punctuation charactersexample:expdp user/password QUERY='user.table:\"WHERE rownum\<1\"')
example:
expdp SYSTEM/manager DUMPFILE=dat.dmp
EXCLUDE=table:\"like \'%TEST%\'\" QUERY=RMS_ACQ_B.RISKMAN_AUTH_TMP:\"WHERE
rownum\<1\" LOGFILE=exp_dat.log SCHEMAS=RMS_ACQ_B