OCM备考 三. Managing Database Availability 之recovery catalog
ORACLE 10g OCM大綱關于恢復目錄(recover catalog)考點:
?
﹡?Create a recovery catalog database?
?
????恢復目錄是專門用來存儲rman repository的數據庫,當控制文件損壞時,通過恢復目錄中控制文件的備份來恢復數據庫,并且采用恢復目錄可以對多個數據庫進行備份和恢復。(關于恢復目錄的概念請參考oracle文檔)
????下面是創建恢復目錄的方法:
1、創建恢復目錄database
???可采用dbca或手工方法創建恢復目錄使用的數據庫。
2、創建恢復目錄數據庫存儲rman repository的表空間
sql> Create tablespace rcat_ts datafile ‘$ORACLE_BASE/catdb/rcat_ts_01.dbf’ size 100m
Autoextend on next 10m;??-- 表空間rcat_ts
3、創建管理rman repository的用戶
sql> Create user rman identified by rman default tablespace rcat_ts temporary tablespace
Temp quota unlimited on rcat_ts;
4、授予用戶恢復目錄管理權限
sql> Grant recovery_catalog_owner to rman;
5、將表空間注冊到恢復目錄
$ Rman catalog rman/rman@catdb
Rman> create catalog tablespace rcat_ts;
6、將要管理的數據庫注冊到恢復目錄
$ Rman target sys/oracle@orcl catalog rman/rman@catdb
Rman> register database; -- 將數據庫orcl注冊到恢復目錄
7、通過恢復目錄對目標數據庫進行備份、恢復
$ Rman target sys/oracle@orcl catalog?rman/rman@catdb
rman> run {
???allocate channel t1 type disk;
???set command id to 'rman';
???backup database format '$ORACLE_BASE/backup/db_%U.bpk';
???release channel t1;
}
至此,恢復目錄創建成功并完成驗證。
總結
以上是生活随笔為你收集整理的OCM备考 三. Managing Database Availability 之recovery catalog的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: OCM备考 一、Server confi
- 下一篇: OCM备考 三. Managing Da