expdp遠端匯出資料
環境:
源:
os:windows
db:11.2.0.1
ip:192.168.213.129
sid:orcl
遠端機匯出:
os:centos 6.5 x64
db:11.2.0.4
ip:192.168.213.199
sid:netdata
在213.199 上匯出213.129schema為test的使用者資料
213.199操作:
tnames.ora增加
orcl =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.213.129)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.213.129)(PORT = 1521))
)
(CONNECT_DATA =
(SERVICE_NAME = orcl)
)
)
建立dblink
SQL> create public database link netlink connect to test identified by test using 'orcl';
Database link created.
SQL> select * from test.db@netlink;
ID NAME
---------- --------------------
1 ss
2 dd
Database link created.
SQL> select * from test.db@netlink;
ID NAME
---------- --------------------
1 ss
2 dd
SQL> create or replace directory dumpdir as '/oradata/dump';
Directory created.
Directory created.
SQL> grant read,write on directory dumpdir to hr;
Grant succeeded.
SQL> conn hr/hr
Connected.
SQL> select * from test.db@netlink;
ID NAME
---------- --------------------
1 ss
2 dd
1 dddd
SQL> quit
Grant succeeded.
SQL> conn hr/hr
Connected.
SQL> select * from test.db@netlink;
ID NAME
---------- --------------------
1 ss
2 dd
1 dddd
SQL> quit
[oracle@ORA11G-DG1 ~]$ expdp hr/hr network_link=netlink directory=dumpdir dumpfile=test`date +%F`.dmp logfile=test`date +%F`.log schemas=test
Export: Release 11.2.0.4.0 - Production on Wed Dec 10 07:50:25 2014
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-31631: privileges are required
ORA-39109: Unprivileged users may not operate upon other users' schemas
Export: Release 11.2.0.4.0 - Production on Wed Dec 10 07:50:25 2014
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-31631: privileges are required
ORA-39109: Unprivileged users may not operate upon other users' schemas
解決辦法
SQL*Plus: Release 11.2.0.4.0 Production on Wed Dec 10 07:52:01 2014
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> grant exp_full_database to hr;
Grant succeeded.
SQL> quit
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> grant exp_full_database to hr;
Grant succeeded.
SQL> quit
Export: Release 11.2.0.4.0 - Production on Wed Dec 10 07:46:57 2014
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-31631: privileges are required
ORA-39149: cannot link privileged user to non-privileged user
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
ORA-31631: privileges are required
ORA-39149: cannot link privileged user to non-privileged user
解決辦法
在213.129上
連線到:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> grant exp_full_database to test;
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> grant exp_full_database to test;
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24486203/viewspace-2132814/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Oracle expdp資料泵遠端匯出Oracle
- 通過EXPDP/IMPDP匯出匯入遠端資料倒本地
- ORACLE expdp匯出遠端庫指定使用者資料到本地資料庫Oracle資料庫
- expdp透過db_link遠端匯出
- Oracle資料泵匯出匯入(expdp/impdp)Oracle
- expdp匯出表的部分資料
- expdp 使用QUERY 匯出部分資料。
- 資料庫泵(expdp/impdp)匯入匯出流程資料庫
- Data Pump 的遠端匯出資料小結
- 使用資料泵工具expdp工具匯出資料
- 資料泵在本地匯出資料到遠端資料庫中資料庫
- expdp impdp 資料庫匯入匯出命令詳解資料庫
- Oracle使用資料泵expdp,impdp進行資料匯出匯入Oracle
- oracle按照表條件expdp匯出資料Oracle
- expdp中使用include或者exclude匯出資料
- 在鎖表情況下expdp匯出資料
- IMPDP匯入遠端資料庫資料庫
- Oracle expdp/impdp匯出匯入命令及資料庫備份Oracle資料庫
- Oracle expdp/impdp匯入匯出備份資料庫指令碼Oracle資料庫指令碼
- Oracle 遠端匯出匯入 imp/expOracle
- 資料庫遠端檔案匯入資料庫
- 使用EXPDP/IMPDP匯入匯出表中資料/後設資料測試
- Oracle expdp匯出多表或表中的部分資料Oracle
- 【資料泵】EXPDP匯出表結構(真實案例)
- expdp 匯出指令碼指令碼
- 【EXPDP/IMPDP】使用 EXPDP/IMPDP工具“模糊”匯出和匯入
- shell,ant指令碼實現自動資料泵(exp.expdp)匯出匯入資料指令碼
- expdp在匯出時對資料大小進行評估
- MongoDB日常運維-07遠端匯出資料到execlMongoDB運維
- 通過dblink,資料泵expdp遠端跨版本導庫
- oracle匯入匯出之expdp/impdpOracle
- expdp impdp只匯出匯入viewView
- 遠端資料庫AWR 匯入到本地分析資料庫
- oracle資料庫遠端不落地匯入本地資料庫Oracle資料庫
- expdp 匯出特定物件物件
- Oracle10g 資料泵匯出命令 expdp 使用總結Oracle
- expdp與impdp全庫匯出匯入
- 資料泵 EXPDP 匯出工具的使用