配置RMAN恢復目錄

2021-08-29 10:48:15 字數 2034 閱讀 7957

1、建立表空間、使用者、授權

sql> create tablespace ts_rman datafile '/oradata/rman.dbf' size 100m;

sql> create user rman identified by rman default tablespace ts_rman;

sql> grant connect ,resource , recovery_catalog_owner to rman;

2、連線到rman,啟動rman工具

oracle@linux:~> rman catalog rman/rman

@catdb

恢復管理器

: release 10.2.0.4.0 - production on

星期二5

月14 20:13:05 2013

連線到恢復目錄資料庫

3、建立恢復目錄

rman> create catalog

恢復目錄已建立

4、退出後連線

oracle@linux:~> rman target / catalog rman/rman@catdb

恢復管理器

: release 10.2.0.4.0 - production on

星期二5

月14 20:18:50 2013

連線到目標資料庫

: zxin (dbid=1413439187)

連線到恢復目錄資料庫

5、註冊目標資料庫

rman> register database;

註冊在恢復目錄中的資料庫

正在啟動全部恢復目錄的

resync

完成全部

resync

6、解除登記資料庫(在恢復目錄資料庫上執行)

sqlplus

rman/rman@catdb

sql> select db_key,dbid from rman.rc_database;  --

查出dbid

sql> execute dbms_rcvcat.unregisterdatabase(db_key, db_id);

注:oracle 10g

中,oracle

終於簡化了這個操作,現在通過一條簡單的命令

unregister database

就可以登出資料庫。

7、刪除catalog使用者的表

oracle@linux:~> rman catalog rman/rman

@catdb

恢復管理器

: release 10.2.0.4.0 - production on

星期二5

月14 20:29:53 2013

連線到恢復目錄資料庫

rman> drop catalog

恢復目錄所有者是

rman

再輸入一次

drop catalog

命令來確認目錄刪除

rman> drop catalog

恢復目錄已刪除

RMAN簡明教程之七 恢復目錄與恢復目錄的使用

oracle版本9因為控制檔案的自動備份,可以很大程度成不需要使用恢復目錄,但是使用恢復目錄的也有如下好處 有些命令只被恢復目錄支援 對於9i來說,也就是專門操作恢復目錄的語句而已 能保留更多的歷史備份資訊 乙個恢復目錄能管理與備份多個目標資料庫 如果在9i以前,丟失控制檔案而沒有恢復目錄將是難以恢...

RMAN簡明教程之七 恢復目錄與恢復目錄的使用

oracle版本9因為控制檔案的自動備份,可以很大程度成不需要使用恢復目錄,但是使用恢復目錄的也有如下好處 有些命令只被恢復目錄支援 對於9i來說,也就是專門操作恢復目錄的語句而已 能保留更多的歷史備份資訊 乙個恢復目錄能管理與備份多個目標資料庫 如果在9i以前,丟失控制檔案而沒有恢復目錄將是難以恢...

RMAN建立恢復目錄資料庫

1 使用資料庫管理員登入oracle 資料,並為rman建立乙個恢復目錄資料庫。sql connect system tiger 已連線。sql create tablespace rman tablespace 2datafile d db rman tablespace.dbf size 100...