oracle 資料泵

來源:互聯網
上載者:User

標籤:

Oracle資料泵匯入匯出案例 Oracle資料庫匯入匯出工具,可以使用exp/imp,但這是比較早期的工具。本文主要介紹資料泵expdp/impdp工具的使用。建立資料泵目錄使用資料泵需要先建directorycreate 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到scott2impdp scott2/tiger directory=dump_scottdumpfile=tab.dmp tables=scott.dept,scott.emp remap_schema=scott:scott2 匯入案例2,按使用者匯入,從scott到scott2impdp scott/tiger directory=dump_scottdumpfile=schema.dmp remap_schema=scott:scott2 匯入案例3,全庫匯入impdp scott/tiger directory=dump_scottdumpfile=full.dmp full=y 匯入案例4,無落地檔案的使用者拷貝,需要建立db linkimpdp scott/tiger directory=dump_scott network_link=remote_link remap_schema=scott:scott2

oracle 資料泵

聯繫我們

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