当前位置: 代码迷 >> Oracle技术 >> 请问expdp导出exclude参数的有关问题,如何前后日志和dump文件大小一样
  详细解决方案

请问expdp导出exclude参数的有关问题,如何前后日志和dump文件大小一样

热度:98   发布时间:2016-04-24 08:35:18.0
请教expdp导出exclude参数的问题,怎么前后日志和dump文件大小一样?
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 "PROV_PYH"."TBL_REQUEST":"SYS_P680" 674.6 MB 824798 rows
. . exported "PROV_PYH"."TBL_REQUEST_MESSAGE":"SYS_P674" 432.6 MB 653096 rows
. . exported "PROV_PYH"."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 "PROV_PYH"."TBL_REQUEST":"SYS_P680" 674.6 MB 824798 rows
. . exported "PROV_PYH"."TBL_REQUEST_MESSAGE":"SYS_P674" 432.6 MB 653096 rows
. . exported "PROV_PYH"."TBL_REQUEST_DETAIL":"SYS_P675" 278.2 MB 295289 rows

------解决方案--------------------
${TABLE1}..中${}是什么?传递动态参数表名?
这样
EXCLUDE=TABLE:"IN('TABLE1','TABLE2',........
  相关解决方案