oracle 39122,impdp报错ORA-31631、ORA-39122

今天使用impdp实施数据导入时遭遇ORA-31631、ORA-39122报错,如下所示:

今天使用impdp实施数据导入时遭遇ORA-31631、ORA-39122报错,如下所示:

C:\Documents and Settings\hoegh>impdp hoegh/hoegh directory=data_pump_directory

dumpfile=hoegh.dmp remap_schema=hoeghfrom:hoegh remap_tablespace=hoeghfromtbs:hoeghtbs

Import: Release 10.1.0.2.0 - Production on 星期六, 10 10月, 2015 9:49

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

Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Produc

tion

With the Partitioning, OLAP and Data Mining options

ORA-31631: privileges are required

ORA-39122: Unprivileged users may not perform REMAP_SCHEMA remappings.

C:\Documents and Settings\hoegh>

从报错提示信息来看,是权限不足造成的。通过查阅文档得知,当执行impdp操作指定remap_schema参数时,需要具备imp_full_database权限。接下来,我们给hoegh用户赋予imp_full_database权限。

SQL>

SQL> grant imp_full_database to hoegh;

Grant succeeded.

SQL>

授权成功后,再次执行impdp语句,成功。

C:\Documents and Settings\hoegh>

C:\Documents and Settings\hoegh>impdp hoegh/hoegh directory=data_pump_directory

dumpfile=hoegh.dmp remap_schema=hoeghfrom:hoegh remap_tablespace=hoeghfromtbs:hoeghtbs

Import: Release 10.1.0.2.0 - Production on 星期六, 10 10月, 2015 9:54

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

Connected to: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Produc

tion

With the Partitioning, OLAP and Data Mining options

Master table "HOEGH"."SYS_IMPORT_FULL_01" successfully loaded/unloaded

Starting "HOEGH"."SYS_IMPORT_FULL_01": HOEGH/******** directory=data_pump_directo

ry dumpfile=hoegh.dmp remap_schema=hoeghfrom:hoegh remap_tablespace=hoeghfromtbs:hoeghtbs

Processing object type TABLE_EXPORT/TABLE/TABLE

Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX

Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT

Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/INDEX_STATISTICS

Processing object type TABLE_EXPORT/TABLE/INDEX/FUNCTIONAL_AND_BITMAP/INDEX

Processing object type TABLE_EXPORT/TABLE/INDEX/STATISTICS/FUNCTIONAL_AND_BITMAP

/INDEX_STATISTICS

Processing object type TABLE_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS

Job "HOEGH"."SYS_IMPORT_FULL_01" successfully completed at 09:54

声明:本文原创发布php中文网,转载请注明出处,感谢您的尊重!如有疑问,请联系admin@php.cn处理

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值