You are on page 1of 2

syntax:

EXCLUDE=[object_type]:[name_clause],[object_type]:[name_clause]
INCLUDE=[object_type]:[name_clause],[object_type]:[name_clause]
Examples of operator-usage:
EXCLUDE=SEQUENCE
or:EXCLUDE=TABLE: IN ( EMP ,'DEPT )
or:EXCLUDE=INDEX: =

MY_INDX

or:INCLUDE=PROCEDURE: LIKE
or:INCLUDE=TABLE: >

MY_PROC_%

The parameter can also be stored in a par (parameter file) as shown


Parameter file:exp.par
DIRECTORY = my_dir
DUMPFILE = exp_tab.dmp
LOGFILE = exp_tab.log
SCHEMAS = scott
INCLUDE = TABLE: IN ( EMP ,

DEPT )

-- Export exclude transactional and log tables --expdp userid=dbauser/dbawinter directory=ONESHIELD_DATA_PUMP schemas=BASEQA_API
,BASEQA_BI,BASEQA_DAP,BASEQA_MAPI,BASEQA_MAPI_LOG,BASEQA_MD,BASEQA_READ,BASEQA_S
T EXCLUDE=TABLE:\" IN \(select object_name from sys.all_objects where object_typ
e=\'TABLE\' and object_name like \'ASYNC%\' or object_name like \'TMP_%\' or obj
ect_name like \'TPR_%\' or object_name like \'WF_TMP%\' and object_name in \(\'S
YSTEM_LOG\',\'OBJECT_DIRECTIVE\',\'OBJECT_DIRECTIVE_BV_TEMP\',\'OBJECT_BV_VALUE_
LOG\'\)\)\" dumpfile=QABASE1_20120810_BASEQA_API-BASEQA_BI-BASEQA_DAP-BASEQA_MAP
I-BASEQA_MAPI_LOG-BASEQA_MD-BASEQA_READ-BASEQA_ST.dmp logfile=QABASE1_20120810_B
ASEQA_API-BASEQA_BI-BASEQA_DAP-BASEQA_MAPI-BASEQA_MAPI_LOG-BASEQA_MD-BASEQA_READ
-BASEQA_ST.log CONTENT=ALL

-- Export transactional and log tables ---

expdp userid=dbauser/dbawinter directory=ONESHIELD_DATA_PUMP schemas=BASEQA_API,


BASEQA_MAPI,BASEQA_MAPI_LOG,BASEQA_MD,BASEQA_ST INCLUDE=TABLE:\" IN \(select obj
ect_name from sys.all_objects where object_type=\'TABLE\' and object_name like \
'ASYNC%\' or object_name like \'TMP_%\' or object_name like \'TPR_%\' or object_
name like \'WF_TMP%\' and object_name in \(\'SYSTEM_LOG\',\'OBJECT_DIRECTIVE\',\
'OBJECT_DIRECTIVE_BV_TEMP\',\'OBJECT_BV_VALUE_LOG\'\)\)\" dumpfile=test.dmp logf

ile=test.log CONTENT=METADATA_ONLY
--- Export MAPI & MAPI_LOG from DEVBASE ----expdp userid=dbauser/dbawinter directory=ONESHIELD_DATA_PUMP schemas=BASE_MAPI,B
ASE_MAPI_LOG dumpfile=devbase_20120813_BASE_MAPI-BASE_MAPI_LOG.dmp logfile=devba
se_20120813_BASE_MAPI-BASE_MAPI_LOG.log CONTENT=ALL

expdp userid=dbauser/dbawinter directory=ONESHIELD_DATA_PUMP TABLES=BASEQA_ST.OB


JECT_RELATION DIRECTORY=dp_dir DUMPFILE=QABASE_OBJECT_RELATION.dmp LOGFILE=QABAS
E_OBJECT_RELATION.log REUSE_DUMPFILES=Y TRANSPORTABLE=always
----- Import excluding OBJECT_RELATION,OBJECT_BV_VALUE and OBJECT -------------impdp userid=dbauser/dbawinter directory=ONESHIELD_DATA_PUMP schemas=BASEQA_API,
BASEQA_DAP,BASEQA_MD,BASEQA_ST dumpfile=QABASE1_20120810_BASEQA_API-BASEQA_BI-B
ASEQA_DAP-BASEQA_MAPI-BASEQA_MAPI_LOG-BASEQA_MD-BASEQA_READ-BASEQA_ST.dmp.SAVE l
ogfile=impdp_BASEQA_API-BASEQA_DAP-BASEQA_MD-BASEQA_ST.log remap_schema=BASEQA_A
PI:PHLY_API,BASEQA_DAP:PHLY_DAP,BASEQA_MD:PHLY_MD,BASEQA_ST:PHLY_ST exclude=gran
t,statistics transform=oid:n EXCLUDE=TABLE:\"IN \(\'OBJECT_RELATION\',\'OBJECT_B
V_VALUE\',\'OBJECT\'\)\"
----- Import transactional and log tables -------------impdp userid=dbauser/dbawinter directory=ONESHIELD_DATA_PUMP schemas=BASEQA_API,
BASEQA_MD,BASEQA_ST dumpfile=QABASE1_20120810_BASEQA_API-BASEQA_MAPI-BASEQA_MAPI
_LOG-BASEQA_MD-BASEQA_ST.dmp.SAVE logfile=impdp_METADATA_QABASE1_20120810_BASEQA
_API-BASEQA_MAPI-BASEQA_MAPI_LOG-BASEQA_MD-BASEQA_ST.log remap_schema=BASEQA_API
:PHLY_API,BASEQA_MD:PHLY_MD,BASEQA_ST:PHLY_ST exclude=grant,statistics transform
=oid:n