今天复习EXPDP/IMPDP资料时,做了个实验,竟然遇到了BUG
环境:从10.2.0.1通过DBLINK将一个表是数据导入11.2.01,
首先在11G下建立DBLINK
SQL> create public database link c10g connect to scott identified by "tiger" using '10g';
数据库链接已创建。
SQL> select * from scott.big_table@c10g; 数据能查出来,没问题
SQL> show user
USER 为 "SCOTT"
SQL> create directory scott as 'D:impdp';
目录已创建。
SQL> grant read,write on directory scott to public;
授权成功。
然后就开始导出数据
C:\Documents and Settings\Administrator>expdp scott/tiger directory=scott dumpfile=bigtable.dmp network_link=c10g logfile=bigtable.log tables=scott.big_table
Export: Release 11.2.0.1.0 - Production on 星期二 7月 16 14:41:25 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39006: 内部错误
ORA-39065: DISPATCH 中出现意外的主进程异常错误
ORA-04052: 在查找远程对象 SYS.KUPM$MCP@C10G 时出错
ORA-00604: 递归 SQL 级别 3 出现错误
ORA-06544: PL/SQL: internal error, arguments: [55916], [], [], [], [], [], [], []
ORA-06553: PLS-801: internal error [55916]
ORA-02063: 紧接着 2 lines (起自 C10G)
ORA-39097: 数据泵作业出现意外的错误 -4052
C:\Documents and Settings\Administrator>impdp scott/tiger directory=scott network_link=c10g logfile=bigtable.log tables=scott.big_table remap_schema=scott:scotttest
Import: Release 11.2.0.1.0 - Production on 星期二 7月 16 14:41:46 2013
Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.
连接到: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39006: 内部错误
ORA-39113: 无法确定数据库版本
ORA-04052: 在查找远程对象 SYS.DBMS_UTILITY@C10G 时出错
ORA-00604: 递归 SQL 级别 3 出现错误
ORA-06544: PL/SQL: internal error, arguments: [55916], [], [], [], [], [], [], []
ORA-06553: PLS-801: internal error [55916]
ORA-02063: 紧接着 2 lines (起自 C10G)
ORA-39097: 数据泵作业出现意外的错误 -4052
经过网上查询此为bug 4511371,发生在以下情况:
通过dblink,11g中调用10.1版本(补丁小于10.1.0.5)或10.2版本(补丁小于10.2.0.2)的过程,或者反过来访问(10访问11)。
除了升级到10.2.0.2及以上版本外,没有其他的解决方法。