如何使用rman備份oracle資料庫

來源:互聯網
上載者:User

1、備份整個資料庫

backup database format ‘c:\rman\all_%U.bak’;

2、備份資料表空間

backup tablespace abc format ‘c:\rman\t_%U.bak’;

3、備份資料檔案

1)backup datafile 5 format ‘c:\rman\d_%U.bak’;

2)backup datafile ‘C:\ORACLE\PRODUCT\10.2.0\ORADATA\ORCL\ABC.DBF’

format ‘c:\rman\d_%U.bak’;

4、備份控制檔案

backup current controlfile format ‘c:\rman\ctr_%U.ctl’;

5、備份資料檔案同時備份控制檔案

backup datafile 5 format ‘c:\rman\d_c_%U.bak’

include current controlfile;

6、備份spfile檔案

backup spfile format ‘c:\rman\sp_%U.sp’;

7、備份記錄檔

backup archivelog sequence between 38 and 41 format ‘c:\rman\ar_%U.log’

delete all input(可選項,表示備份記錄檔後,刪除原來記錄檔);

8、備份資料庫和記錄檔

backup database plus archivelog format ‘c:\rman\ d_ar_%U.d_a’;

9、copy功能(相當於使用者管理備份)

backup as copy database format ‘c:\rman\%U.cy’;

copy datafile 5 to ‘c:\rman\d_%U.cy’;

note:backup as copy可以備份整個資料庫

copy只能備份current controlfile、datafile、tablespace等,這個資料庫不支援

oracle視頻教程請關注:http://u.youku.com/user_video/id_UMzAzMjkxMjE2.html

查看本欄目更多精彩內容:http://www.bianceng.cnhttp://www.bianceng.cn/database/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.