oracle 利用資料泵匯入匯出資料____oracle

來源:互聯網
上載者:User

目的:使用資料泵,將一台電腦上的資料庫匯出,匯入到另一台電腦上的資料庫。

A電腦上的操作。expdp資料匯出

1、運行cmd;

2、登入資料庫,輸入命令:sqlplus system/密碼;

3、建立目錄路徑:create directory backup_path as ‘E:\app\tws\oradata\orcldv’;  (backup_path為路徑名稱,可自命名(必須是已存在路徑),E:\app\tws\oradata\orcl為來源資料庫路徑)

5、匯入匯出操作授權:grant exp_full_database,imp_full_database to dmuser;  (dmuser為資料庫使用者名稱)

6、退出:exit;    

7、資料匯出,執行命令:expdpdmuser/***** directory=backup_path dumpfile=dmuser_schema.dmp logfile=dmuser_schema_29.log;(dmuser為使用者名稱,*****為密碼,dmuser_schema.dmp為匯出資料庫檔案,可自命名,但格式要為.dmp,dmuser_schema_29.log為記錄檔,可自命名)


B電腦上的操作。impdp 資料匯入

將匯出的資料庫檔案複製到目標資料庫路徑下。

1、運行cmd;

2、登入資料庫,輸入命令:sqlplus system/密碼;

3、建立目錄路徑:create directory goup_path as ‘E:\app\tws\oradata\orcl’;   (goup_path為路徑名稱,可自命名,E:\app\tws\oradata\orcl為目標資料庫路徑)

4、退出:exit;    

5、資料匯入,執行命令:impdpdmuser/***** directory=goup_path dumpfile=dmuser_schema.dmp logfile=dmuser_schema_29.log;

 

 參考文檔:

http://www.cnblogs.com/jyzhao/p/4530575.html

http://blog.csdn.net/fjseryi/article/details/50013961

http://blog.itpub.net/23490154/viewspace-1061687/

http://blog.csdn.net/haiross/article/details/27580199/

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.