linux下匯入匯出oracle的dmp檔案

來源:互聯網
上載者:User

標籤:table   es2017   ima   font   查看   nav   匯入匯出   ges   image   

1.匯出dmp件

命令:exp QGTG/\"[email protected]\" file=/usr/fuck.dmp

exp QGTG/\"[email protected]\" file=/usr/fuck.dmp full=y ,多了個full=y,彈出對話輸出yes即可

意思為匯出使用者名稱為QGTG,密碼為QGTG,sid為orcl下的所有表至本地linux的usr目錄下

 

輸入oracle資料庫使用者名稱密碼,斷行符號,成功匯出如

如果只匯出某一個表,命令如下:

exp QGTG/\"[email protected]\" file=/usr/fuck1.dmp tables=表名

2.匯入Oracle dmp檔案

我們將上一步匯出的dmp,匯入到另一台linux中的oracle建表,

將上一步的dmp上傳至該linux系統中(/usr/download路徑下)

命令如下:imp hdnav/\"[email protected]\" file=/usr/download/fuck.dmp full=y

意思為:從/usr/download路徑下讀取dmp至使用者名稱為hdnav,密碼為qq564425,sid為hdnav的資料庫中

查看資料庫,表已經成功建成了。

 

linux下匯入匯出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.