impdp报错ORA-31631、ORA-39122
2015-10-15 15:30
218 查看
今天使用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
hoegh
15.10.10
-- The End --
点击(此处)折叠或打开
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
hoegh
15.10.10
-- The End --
相关文章推荐
- python sort / sorted 和 argsort()
- VC++2005、VC2008中Release版本设置为可调试的设置方法
- opengl shader
- [转]JSON详解
- Linux du命令查看文件夹和文件大小
- yii 权限和restful服务(一)增加自定义restful服务
- 交互设计|设计方案记分对比法
- __slots__ & __weakref__
- jsp和struts 、action的交互
- form前台提交List<Object>对象以及后台处理
- HTTP协议
- MAC配置apache
- java 中使用base64编码和解码:
- win10怎么加快系统启动和关机速度?
- 解决Masonry 中equalTo和mas_equalTo 乱用的问题
- 时间戳转换时间
- 当cell很少的情况下(没有占满屏幕),不能拖拽collectionView进行下拉刷新,解决方法
- Android图片墙的优化处理
- js 获取 本周、上周、本月、上月、本季度、上季度的开始结束日期
- PostgreSQL rule view materialized view examples