ora 39002 oracle11gr2,,ORACLE11GR2 IMPDP With REMAP_SCHEMA Fails With Errors ORA-39002 ORA-39166

you specify a list of tables with TABLES parameter and use REMAP_SCHEMA parameter. For example, your impdp parameter file looks like:

tables=CRM_COMPLAINT_PROBLEM

remap_schema=ytcrm:yto_uat

the import fails with the following error messages:

ORA-39002: invalid operation

ORA-39166: Object SCOTT_NEW.EMP was not found.

ORA-39166: Object SCOTT_NEW.DEPT was not found.

DataPump Import does no longer work with a list of tables given in the parameter file, if you remap the schema.

It searches the list of tables in the target schema and throws an error saying that the table does not exist.

For example:

[oracle@trsen ~]$impdp yto_uat/yto_uat tables=CRM_COMPLAINT_PROBLEM directory=USER_EXPDP TABLE_EXISTS_ACTION=append CONTENT=DATA_ONLY dumpfile=CRM_COMPLAINT_PROBLEM.dmp remap_tablespace=TS_YTCRM:YTO_UAT_DATA remap_schema=ytcrm:yto_uat

then impdp fails with:

Import: Release 11.2.0.3.0 – Production on Wed Apr 29 09:59:27 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, OLAP, Data Mining and Real Application Testing options

ORA-39002: invalid operation

ORA-39166: Object YTO_UAT.CRM_COMPLAINT_PROBLEM was not found.

ORA-39002: invalid operation

ORA-39166: Object DEV.EMPLOYEES was not found.

In this case, the use of “TABLES=EMPLOYEES” is incorrect. The job runs as “DEV” and a schema for the table was not specified. The DataPump job assumes that the table belongs to the schema that is running the job. So, it is looking for “DEV.EMPLOYEES”. If you want “HR.EMPLOYEES” to be imported, you need to specify TABLES=HR.EMPLOYEES.

SOLUTION

1、provide old schema.table_name

tables=ytcrm.CRM_COMPLAINT_PROBLEM

remap_schema=ytcrm:yto_uat

2、don’t the “tables” parameter

impdp yto_uat/yto_uat directory=USER_EXPDP TABLE_EXISTS_ACTION=append CONTENT=DATA_ONLY dumpfile=CRM_COMPLAINT_PROBLEM.dmp remap_tablespace=TS_YTCRM:YTO_UAT_DATA remap_schema=ytcrm:yto_uat

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值