expdp_impdp使用network_link遠端使用者需要EXP_FULL_DATABASE角色
沒有EXP_FULL_DATABASE角色,會出現下面錯誤:
ORA-31631: privileges are required
ORA-39149: cannot link privileged user to non-privileged user
SQL> create database link pdbl connect to rman identified by rman using 'catalog';
資料庫連結已建立。
--=============================================
C:>expdp directory=mydir dumpfile=rman.dmp network_link=pdbl tables=t
Export: Release 10.2.0.1.0 - Production on Monday, 27 June, 2011 14:17:37
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
ORA-31631: privileges are required
ORA-39149: cannot link privileged user to non-privileged user
--=============================================
C:>impdp network_link=pdbl tables=t
Import: Release 10.2.0.1.0 - Production on Monday, 27 June, 2011 14:18:22
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
ORA-31631: privileges are required
ORA-39149: cannot link privileged user to non-privileged user
--=============================================
C:>sqlplus as sysdba
SQL*Plus: Release 10.2.0.1.0 - Production on 星期一 6月 27 15:15:19 2011
Copyright (c) 1982, 2005, Oracle. All rights reserved.
連線到:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> grant EXP_FULL_DATABASE to rman;
授權成功。
SQL>
--=======================================
C:>expdp directory=mydir dumpfile=rman.dmp network_link=pdbl tables=db
Export: Release 10.2.0.1.0 - Production on Monday, 27 June, 2011 15:15:30
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Starting "TEST2"."SYS_EXPORT_TABLE_01": directory=mydir dumpfile=rman.dmp network_link=pdbl tables=db
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 64 KB
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/CONSTRAINT/REF_CONSTRAINT
. . exported "RMAN"."DB" 6.476 KB 1 rows
Master table "TEST2"."SYS_EXPORT_TABLE_01" successfully loaded/unloaded
******************************************************************************
Dump file set for TEST2.SYS_EXPORT_TABLE_01 is:
C:TEMPRMAN.DMP
Job "TEST2"."SYS_EXPORT_TABLE_01" successfully completed at 15:15:43
--===================================
C:>impdp network_link=pdbl tables=db remap_schema=(rman:test2)
Import: Release 10.2.0.1.0 - Production on Monday, 27 June, 2011 15:20:56
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
Starting "TEST2"."SYS_IMPORT_TABLE_01": network_link=pdbl tables=db remap_schema=(rman:test2)
Estimate in progress using BLOCKS method...
Processing object type TABLE_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 64 KB
Processing object type TABLE_EXPORT/TABLE/TABLE
ORA-39151: Table "TEST2"."DB" exists. All dependent metadata and data will be skipped due to table_exists_action of skip
Processing object type TABLE_EXPORT/TABLE/INDEX/INDEX
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
Processing object type TABLE_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
Job "TEST2"."SYS_IMPORT_TABLE_01" completed with 1 error(s) at 15:21:06
--===============================
--建立dblink時connect遠端db的rman使用者需要被授予EXP_FULL_DATABASE角色,否則出現錯誤:ORA-39149
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/19602/viewspace-1051684/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 在遠端建立使用者
- 遠端桌面多使用者破解工具:
- 禁止root使用者遠端登入
- mongodb使用者與角色使用MongoDB
- 允許mysql遠端使用者連線。MySql
- PostgreSQL:使用者角色管理SQL
- ssh只能遠端登陸到普通使用者,不能以root遠端登陸
- XP 允許多使用者遠端連線
- 在MySql中新增遠端控制使用者(轉)MySql
- 【使用者管理】oracle使用者、角色、許可權管理Oracle
- Oracle使用者、授權、角色管理Oracle
- asp.net 使用者角色管理ASP.NET
- win7多使用者同時遠端登入怎麼設定 電腦多使用者遠端協助方法說明Win7
- Ubuntu18.04 xrdp多使用者遠端桌面Ubuntu
- solaris預設無法遠端root使用者登入
- RADIUS:遠端使用者撥號認證系統
- vnc遠端控制軟體綠色,vnc遠端控制軟體綠色版下載,使用者登入使用教程VNC
- Oracle使用者角色許可權管理Oracle
- sqlserver 查詢使用者角色指令碼SQLServer指令碼
- Oracle之使用者、特權和角色Oracle
- Oracle使用者、許可權、角色管理Oracle
- 雲伺服器設定多使用者遠端登入伺服器
- Windows遠端桌面設定多使用者同時登入Windows
- 【ORACLE】oracle 使用者(sysdba)遠端登入和口令認證Oracle
- windows2008遠端桌面多個使用者Windows
- MySQL5.7 實現遠端連線 —— 新增使用者、刪除使用者與授權MySql
- 什麼是rdp遠端桌面?如何使用rdp遠端桌面?
- 什麼是rd遠端桌面?如何使用rd遠端桌面?
- 使用者角色許可權管理架構架構
- Oracle建立使用者、角色、授權、建表Oracle
- Oracle基礎 08 使用者角色 user/roleOracle
- [學習]ORACLE使用者、角色、許可權Oracle
- Oracle使用者、許可權、角色管理【轉】Oracle
- linux SSH服務允許root使用者遠端登入Linux
- Solaris 11 設定root使用者允許SSH遠端登入
- 【轉】允許遠端使用者登入訪問mysql的方法MySql
- 微軟為Mac使用者更新遠端桌面應用Remote Desktop微軟MacREM
- 通過遠端管理更改ESXi主機root使用者密碼密碼