Oracle 備份、恢複單表或多表資料步驟

來源:互聯網
上載者:User

Oracle 備份、恢複單表或多表資料步驟

        Oracle 備份、恢複單表或多表資料步驟,適用於 Oracle 8、9、10。
        *備份單表或多表資料
exp user/password@server file=filefullpathname log=logfullpathname tables=(tablespacename.table1,tablespacename.table2,...) 
        例如,作者要匯出使用者名稱為 sybj,密碼為 sybj,sid 為 lyzz,資料表空間 sybj 下表 table1、table2 中的資料,win 下 CMD 命令如下:
F:/oralce/ora92/bin>exp sybj/sybj@lyzz file=G:/tmps/test009.tmp log=G:/tmps/test009.log tables=(sybj.table1,sybj.table2) 
        備份檔案 test009.tmp 將會在目錄 G:/tmps/ 下產生。
        *單表或多表資料恢複
        如果被恢複的表已經存在,應該先將其刪除,不然報“IMP-0015”錯誤,匯入失敗。單表或多表資料恢複命令如下:
imp user/password@server file=filefullpathname log=logfullpathname full=y 
        仍以上面的例子,將 table1、table2 資料恢複,win 下 CMD 命令如下:
F:/oralce/ora92/bin>imp sybj/sybj@lyzz file=G:/tmps/test009.tmp log=G:/tmps/test009imp.log full=y

 

聯繫我們

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