Oracle資料匯入、匯出dmp檔案

來源:互聯網
上載者:User

標籤:

 

資料匯出,命令exp,將遠端資料庫中的資料匯入到本地,比如你在windows下可以將Linux中的資料庫中資料匯出到Windows本地。

1 將資料庫TEST完全匯出,使用者名稱system 密碼manager 匯出到D:\daochu.dmp中,將Test資料庫中所有資料匯出到一個dmp檔案中。前提是登入使用者即system有匯出許可權。
   exp system/manager@TEST file=d:\daochu.dmp full=y
2 將資料庫中system使用者與sys使用者的表匯出,指定匯出某些使用者的表。
   exp system/manager@TEST file=d:\daochu.dmp owner=(system,sys)
3 將資料庫中的表table1 、table2匯出,指定匯出固定的表
   exp system/[email protected] file=d:\daochu.dmp tables=(table1,table2)

資料匯入,命令imp
1 將D:\daochu.dmp中的資料匯入TEST資料庫中。要先刪掉將要匯入的表,如果是全庫匯入就刪掉所有的表,否則匯入處理程序中會報表已存在的錯。
   imp system/[email protected]  file=d:\daochu.dmp
2 將d:\daochu.dmp中的表table1匯入,這個是指定匯入固定一張表裡的資料。
 imp system/[email protected]  file=d:\daochu.dmp  tables=(table1)
 
 

Oracle資料匯入、匯出dmp檔案

聯繫我們

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