由于是在Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS报的错,错误和统计信息有关,网上介绍说是一个bug,impdp时加上EXCLUDE=STATISTICS,导入后手动收集统计信息。
[oracle@rac1 ~]$ impdp \'/ as sysdba \' directory=expdp dumpfile=wxlun0402.dmp logfile=wxlun0402.impdplog REMAP_TABLESPACE=wxlun:wxlun_DATA REMAP_SCHEMA=wxlun:wxlun0402 EXCLUDE=STATISTICS Import: Release 11.2.0.3.0 - Production on Thu Apr 2 12:52:04 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 - 64bit Production With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP, Data Mining and Real Application Testing options Master table "SYS"."SYS_IMPORT_FULL_02" successfully loaded/unloaded Starting "SYS"."SYS_IMPORT_FULL_02": "/******** AS SYSDBA" directory=expdp dumpfile=wxlun0402.dmp logfile=wxlun0402.impdplog REMAP_TABLESPACEwxlun:wxlun_DATA REMAP_SCHEMA=wxlun:wxlun0402 EXCLUDE=STATISTICS Processing object type SCHEMA_EXPORT/USER ORA-31684: Object type USER:"wxlun0402" already exists 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/COMMENT Job "SYS"."SYS_IMPORT_FULL_02" completed with 1 error(s) at 13:26:19
?