impdp 10g/11g问题解决

今天在环境上测试expdp/impdp,环境有10.2.0.5.0,11.2.0.2.0的,11g的环境是从10g升级到11gde .是在impdp的时候都报了错误。

10g报错如下:

> impdp test/test dumpfile=a.dmp directory=true_dump tables=test_table

Import: Release 10.2.0.5.0 - 64bit Production on Tuesday, 29 October, 2013 17:24:12

Copyright (c) 2003, 2007, Oracle.  All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-31655: no data or metadata objects selected for job
Master table "TEST"."SYS_IMPORT_TABLE_01" successfully loaded/unloaded
Starting "TEST"."SYS_IMPORT_TABLE_01":  test/********@xxxxx
dumpfile=a.dmp directory=a_dump tables=test_table
Job "TEST"."SYS_IMPORT_TABLE_01" successfully completed at 17:24:15

11g报错如下:

> impdp temp_usg/temp_usg directory=expdp_dir dumpfile=a.dmp tables=tet_table

Import: Release 11.2.0.2.0 - Production on Tue Oct 29 19:47:17 2013

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39002: invalid operation
ORA-39166: Object TEMP_USG.TEST_TABLE was not found.

最后尝试使用remap_schema 和tables选项,还是报错。

10g报错:

> impdp test/test dumpfile=a.dmp directory=a_dump remap_schema=trudbo24:test tables=test_table

Import: Release 10.2.0.5.0 - 64bit Production on Tuesday, 29 October, 2013 18:03:40

Copyright (c) 2003, 2007, Oracle.  All rights reserved.

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-31655: no data or metadata objects selected for job
Master table "TEST"."SYS_IMPORT_TABLE_01" successfully loaded/unloaded
Starting "TEST"."SYS_IMPORT_TABLE_01":  test/********@truabp1 dumpfile=a.dmp directory=true_dump remap_schema=trudbo24:test tables=csm_offer
Job "TEST"."SYS_IMPORT_TABLE_01" successfully completed at 18:03:43

11g报错:

Import: Release 11.2.0.2.0 - Production on Tue Oct 29 19:49:32 2013

Copyright (c) 1982, 2009, Oracle and/or its affiliates.  All rights reserved.

Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-39002: invalid operation
ORA-39166: Object TEMP_USG.TEST_TABLE  was not found.

最后在tables的地方加上schema名称,可以顺利导入了。
impdp test/test  dumpfile=a.dmp directory=a_dump remap_schema=testo24:test tables=testo24.test_table

Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
Master table "TEST"."SYS_IMPORT_TABLE_01" successfully loaded/unloaded
Starting "TEST"."SYS_IMPORT_TABLE_01":  test/********

dumpfile=a.dmp directory=a_dump remap_schema=testo24:test tables=testo24.test_table

Processing object type TABLE_EXPORT/TABLE/TABLE
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
. . imported "TEST"."TEST_TABLE"                          1.622 MB    1939 rows
Processing object type TABLE_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Job "TEST"."SYS_IMPORT_TABLE_01" successfully completed at 18:04:33

查找metalink,也有一个类似的bug,看来只能这样先用了。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23718752/viewspace-775295/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/23718752/viewspace-775295/

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值