Oracle資料庫操作大全(十)——資料庫(表)的邏輯備份與恢複

來源:互聯網
上載者:User

標籤:oracle資料庫   Database Backup   資料庫恢複   資料庫   執行個體   

資料庫(表)的邏輯備份與恢複——匯出


system可匯出任何方案,例如:

exp system/[email protected] owner(system,scott) file=d:system.dmp;//註:可匯出兩種方案system方案和Scott方案

exp system/[email protected] owner(scott) file=d:system.dmp;//只可匯出Scott方案(這是利用system匯出Scott方案,緣由:system許可權高於Scott),匯出方案時利用比要匯出方案許可權高的使用者去匯出

exp system/[email protected] owner(sys) file=d:system.dmp;//此時不能正確匯出sys方案,緣由system使用者權限低於sys使用者

資料庫的匯出:(匯出所有方案)


exp userid=system/[email protected] full=y inctype=complete file=d:\aa.dmp


(在安裝目錄的bin檔案夾下進行操作),

輸入匯出語句後:


***1.匯出表


資料庫(表)的邏輯備份與恢複——資料庫匯入


***1.匯入表


(其中m123為Scott使用者的密碼,myoral為資料庫執行個體,要匯入的表為emp,其備份為emp.dmp)

***2.匯入方案


***3.匯入資料庫




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.