1. 程式人生 > >catalog恢復目錄的配置

catalog恢復目錄的配置

catalog 恢復目錄 oracle

catalog恢復目錄的配置
--01.創建catalog所需要的表空間
create tablespace tbs_rman datafile '/oradata/ocm/tbs_rman01.dbf' size 100m; --生產系統5G到10G
--02.創建rman用戶並授權
create user rman identified by rman default tablespace tbs_rman quota unlimited on tbs_rman;
grant connect,resource,recovery_catalog_owner to rman;
--03.創建恢復目錄
rman catalog rman/rman
create catalog tablespace tbs_rman;
--04.配置目標數據庫的tnsnames.ora
rman =
(description =
(address_list =
(address = (protocol = tcp)(host = 10.53.110.181)(port = 1521))
)
(connect_data =
(sid = ocm)
)
)
--05.註冊目標數據庫
$rman target / catalog rman/rman@ocm
register database;

--06.檢查catalog恢復目錄
顯示目標數據庫註冊信息
report schema ;
顯示備份信息
list backup;
命令解釋:
report schema
report shema是指在數據庫中需找schema
list backup 從control讀取信息


catalog恢復目錄的配置