Oracle 11g遠(yuǎn)程導(dǎo)出數(shù)據(jù)庫(kù) |
發(fā)布時(shí)間: 2012/9/5 16:51:15 |
下面演示下使用數(shù)據(jù)泵的NETWORK_LINK將OEL6.0 Oracle 11gR2數(shù)據(jù)庫(kù)中STORAGE用戶下的所有對(duì)象遷移到OEL5.7 ORACLE 11gR2數(shù)據(jù)庫(kù)中STORAGE用戶下。 1.創(chuàng)建TNS字符串 FHACDB = (ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.20.101)(PORT = 1523)) 2.創(chuàng)建DIRECTORY并授權(quán) SQL> create directory imp as '/home/Oracle'; Directory created.
Grant succeeded. 3.創(chuàng)建DB_LINK SQL> create public database link l_storage connect to storage identified by storage using 'fhacdb'; Database link created. 4.使用IMPDP的NETWORK_LINK進(jìn)行遷移操作 [Oracle@www.linuxidc.com admin]$ impdp storage/storage directory=imp network_link=l_storage Import: Release 11.2.0.2.0 - Production on Wed Feb 15 11:02:18 2012 Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved. Connected to: Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 With the Partitioning, OLAP, Data Mining and Real Application Testing options ... . . 本文出自:億恩科技【1tcdy.com】 服務(wù)器租用/服務(wù)器托管中國(guó)五強(qiáng)!虛擬主機(jī)域名注冊(cè)頂級(jí)提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM] |