Oracle資料泵匯入匯出案例

來源:互聯網
上載者:User

Oracle資料庫匯入匯出工具,可以使用exp/imp,但這是比較早期的工具。本文主要介紹資料泵expdp/impdp工具的使用。

建立資料泵目錄

使用資料泵需要先建directory

create directory dump_scott as'/home/oracle/dump/scott'

查看建立的目錄

Select * from dba_directories

賦權

Grant read,write on directory dump_scott toscott

 

匯出案例1,按表匯出

expdp scott/tiger directory=dump_scottdumpfile=tab.dmp logfile=scott.log tables=dept,emp

 

匯出案例2,按使用者匯出

expdp scott/tiger directory=dump_scottdumpfile=dumpscott.dmp schemas=scott

 

匯出案例3,全庫匯出,且並行匯出

expdp scott/tiger directory=dump_scottdumpfile=full.dmp parallel=4 full=y

 

匯入案例1,按表匯入,從scott到scott2

impdp scott2/tiger directory=dump_scottdumpfile=tab.dmp tables=scott.dept,scott.emp remap_schema=scott:scott2

 

匯入案例2,按使用者匯入,從scott到scott2

impdp scott/tiger directory=dump_scottdumpfile=schema.dmp remap_schema=scott:scott2

 

匯入案例3,全庫匯入

impdp scott/tiger directory=dump_scottdumpfile=full.dmp full=y

 

匯入案例4,無落地檔案的使用者拷貝,需要建立db link

impdp scott/tiger directory=dump_scott network_link=remote_link remap_schema=scott:scott2

GoldenGate不使用資料泵完成Oracle-Oracle的雙向複製

使用GoldenGate的資料泵進行Oracle-Oracle的單向複製

如何對 Oracle 資料泵(expdp/impdp) 進行 debug 

Oracle 資料庫匯出資料泵(EXPDP)檔案存放的位置

Oracle 10g 資料泵分區表的匯出 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.