请教高手oracle11g expdp exclude参数问题
1.未带exclude过滤表的导出日志:
Starting "****"."SYS_EXPORT_SCHEMA_01": ****/******** DIRECTORY=DUMP_MDS_DIR DUMPFILE=****_20110921.dmp LOGFILE=exp_****_20110921.log SCHEMAS=****
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 1.663 GB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
Processing object type SCHEMA_EXPORT/PROCEDURE/PROCEDURE
Processing object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE
Processing object type SCHEMA_EXPORT/VIEW/VIEW
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
Processing object type SCHEMA_EXPORT/POST_SCHEMA/PROCACT_SCHEMA
. . exported "***"."TBL_REQUEST":"SYS_P680" 674.6 MB 824798 rows
. . exported "***"."TBL_REQUEST_MESSAGE":"SYS_P674" 432.6 MB 653096 rows
. . exported "***"."TBL_REQUEST_DETAIL":"SYS_P675" 278.2 MB 295289 rows
2.添加了exclude参数的导出日志
Starting "****"."SYS_EXPORT_SCHEMA_01": ****/******** DIRECTORY=DUMP_MDS_DIR DUMPFILE=****_20110921.dmp LOGFILE=exp_****_20110921.log parfile=/opt/oracle/test.par
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 1.663 GB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
Processing object type SCHEMA_EXPORT/PROCEDURE/PROCEDURE
Processing object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE
Processing object type SCHEMA_EXPORT/VIEW/VIEW
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
Processing object type SCHEMA_EXPORT/POST_SCHEMA/PROCACT_SCHEMA
. . exported "***"."TBL_REQUEST":"SYS_P680" 674.6 MB 824798 rows
. . exported "***"."TBL_REQUEST_MESSAGE":"SYS_P674" 432.6 MB 653096 rows
. . exported "***"."TBL_REQUEST_DETAIL":"SYS_P675" 278.2 MB 295289 rows
Starting "****"."SYS_EXPORT_SCHEMA_01": ****/******** DIRECTORY=DUMP_MDS_DIR DUMPFILE=****_20110921.dmp LOGFILE=exp_****_20110921.log SCHEMAS=****
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 1.663 GB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
Processing object type SCHEMA_EXPORT/PROCEDURE/PROCEDURE
Processing object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE
Processing object type SCHEMA_EXPORT/VIEW/VIEW
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
Processing object type SCHEMA_EXPORT/POST_SCHEMA/PROCACT_SCHEMA
. . exported "***"."TBL_REQUEST":"SYS_P680" 674.6 MB 824798 rows
. . exported "***"."TBL_REQUEST_MESSAGE":"SYS_P674" 432.6 MB 653096 rows
. . exported "***"."TBL_REQUEST_DETAIL":"SYS_P675" 278.2 MB 295289 rows
2.添加了exclude参数的导出日志
Starting "****"."SYS_EXPORT_SCHEMA_01": ****/******** DIRECTORY=DUMP_MDS_DIR DUMPFILE=****_20110921.dmp LOGFILE=exp_****_20110921.log parfile=/opt/oracle/test.par
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 1.663 GB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
Processing object type SCHEMA_EXPORT/TABLE/TABLE
Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type SCHEMA_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS
Processing object type SCHEMA_EXPORT/TABLE/COMMENT
Processing object type SCHEMA_EXPORT/PROCEDURE/PROCEDURE
Processing object type SCHEMA_EXPORT/PROCEDURE/ALTER_PROCEDURE
Processing object type SCHEMA_EXPORT/VIEW/VIEW
Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
Processing object type SCHEMA_EXPORT/POST_SCHEMA/PROCACT_SCHEMA
. . exported "***"."TBL_REQUEST":"SYS_P680" 674.6 MB 824798 rows
. . exported "***"."TBL_REQUEST_MESSAGE":"SYS_P674" 432.6 MB 653096 rows
. . exported "***"."TBL_REQUEST_DETAIL":"SYS_P675" 278.2 MB 295289 rows
作者: anttu 发布时间: 2011-09-21
. . exported "***"."TBL_REQUEST":"SYS_P680" 674.6 MB 824798 rows
. . exported "***"."TBL_REQUEST_MESSAGE":"SYS_P674" 432.6 MB 653096 rows
. . exported "***"."TBL_REQUEST_DETAIL":"SYS_P675" 278.2 MB 295289 rows
这个是需要过滤的表
过滤参数放在parfile=/opt/oracle/test.par里面了,参考如下:
EXCLUDE=TABLE:"IN('${TABLE1}','${TABLE2}','${TABLE3}','${TABLE4}','${TABLE5}','${TABLE6}','${TABLE7}')"
但是实际1 的日志与2 的日志一模一样,导出的dump文件大小也一模一样,是日志就是这么显示的,还是导出结果有问题?
. . exported "***"."TBL_REQUEST_MESSAGE":"SYS_P674" 432.6 MB 653096 rows
. . exported "***"."TBL_REQUEST_DETAIL":"SYS_P675" 278.2 MB 295289 rows
这个是需要过滤的表
过滤参数放在parfile=/opt/oracle/test.par里面了,参考如下:
EXCLUDE=TABLE:"IN('${TABLE1}','${TABLE2}','${TABLE3}','${TABLE4}','${TABLE5}','${TABLE6}','${TABLE7}')"
但是实际1 的日志与2 的日志一模一样,导出的dump文件大小也一模一样,是日志就是这么显示的,还是导出结果有问题?
作者: anttu 发布时间: 2011-09-21