impdp报错ORA-31631、ORA-39122

WBOY
풀어 주다: 2016-06-07 14:54:22
원래의
2351명이 탐색했습니다.

今天使用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.cn
본 웹사이트의 성명
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.
인기 튜토리얼
더>
최신 다운로드
더>
웹 효과
웹사이트 소스 코드
웹사이트 자료
프론트엔드 템플릿