当前位置:  数据库>oracle

impdp报错ORA-31631、ORA-39122

    来源: 互联网  发布时间:2017-06-20

    本文导语: 今天使用impdp实施数据导入时遭遇ORA-31631、ORA-39122报错,如下所示: C:Documents and Settingshoegh>impdp hoegh/hoegh directory=data_pump_directorydumpfile=hoegh.dmp remap_schema=hoeghfrom:hoegh remap_tablespace=hoeghfromtbs:hoeghtbsImport: Release 10.1.0.2.0 - Production on 星...

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

C:Documents and Settingshoegh>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 Settingshoegh>

从报错提示信息来看,是权限不足造成的。通过查阅文档得知,当执行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 Settingshoegh>

C:Documents and Settingshoegh>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


    
 
 

您可能感兴趣的文章:

 
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐
  • oracle impdp network_link参数使用介绍


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,,E-mail:www_#163.com(请将#改为@)

    浙ICP备11055608号-3