Create recovery catalog Configure Recovery Manager
OEL5.5
version:10.2.0.1
Creating the Recovery Catalog: Three Steps
1.Configure the database in which you will store the recovery catalog.
2.Create the recovery catalog owner.
3.Create the recovery catalog.
1.Configure the database in which you will store the recovery catalog.
2.Create the recovery catalog owner.
3.Create the recovery catalog.
1.Configure the database in which you will store the recovery catalog.
建立catdb表空間
create tablespace cat_ts datafile '/u01/app/oracle/oradata/cat_ts.dbf' size 20M autoextend on;
建立catdb表空間
create tablespace cat_ts datafile '/u01/app/oracle/oradata/cat_ts.dbf' size 20M autoextend on;
2.Create the recovery catalog owner.
建立cat使用者
create user cat identified by cat default tablespace cat_ts quota unlimited on cat_ts;
建立cat使用者
create user cat identified by cat default tablespace cat_ts quota unlimited on cat_ts;
給cat使用者授權
grant recovery_catalog_owner to cat;
role recovery_catalog_owner包含了:alter session, create cluster, create database link, create procedure, create sequence, create session, create synonym, create table, create trigger, create type, and create view
grant recovery_catalog_owner to cat;
role recovery_catalog_owner包含了:alter session, create cluster, create database link, create procedure, create sequence, create session, create synonym, create table, create trigger, create type, and create view
3.Create the recovery catalog.
RMAN> connect catalog cat/cat
RMAN> connect catalog cat/cat
RMAN> create catalog;
recovery catalog created
下面是註冊database進入catalog
Registering a Database in the Recovery Catalog
[oracle@localhost ~]$ rman target / catalog cat/cat
Registering a Database in the Recovery Catalog
[oracle@localhost ~]$ rman target / catalog cat/cat
Recovery Manager: Release 10.2.0.1.0 - Production on Thu May 10 15:23:44 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: OCM (DBID=2165285755)
connected to recovery catalog database
connected to recovery catalog database
RMAN> register database;
database registered in recovery catalog
starting full resync of recovery catalog
full resync complete
starting full resync of recovery catalog
full resync complete
SQL> conn cat/cat
SQL> select * from rc_database;
SQL> select * from rc_database;
DB_KEY DBINC_KEY DBID NAME RESETLOGS_CHANGE# RESETLOGS
---------- ---------- ---------- -------- ----------------- ---------
1 2 2165285755 OCM 1 07-MAY-12
---------- ---------- ---------- -------- ----------------- ---------
1 2 2165285755 OCM 1 07-MAY-12
Unregistering a Target Database from the Recovery Catalog
[oracle@localhost ~]$ rman target / catalog cat/cat
Recovery Manager: Release 10.2.0.1.0 - Production on Thu May 10 15:37:13 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
connected to target database: OCM (DBID=2165285755)
connected to recovery catalog database
connected to recovery catalog database
RMAN> unregister database;
database name is "OCM" and DBID is 2165285755
Do you really want to unregister the database (enter YES or NO)? y
database unregistered from the recovery catalog
database unregistered from the recovery catalog
Cataloging Additional Backup Files
RMAN> CATALOG CONTROLFILECOPY '/disk1/controlfile_bkup/2006_01_01/control01.ctl';
RMAN> CATALOG DATAFILECOPY '/disk1/datafile_bkup/2006_01_01/users01.dbf';
RMAN> CATALOG ARCHIVELOG '/disk1/arch_logs/archive1_731.log','/disk1/arch_logs/archive1_732.log';
RMAN> CATALOG BACKUPPIECE '/disk1/backups/backup_820.bkp';
RMAN> CATALOG CONTROLFILECOPY '/disk1/controlfile_bkup/2006_01_01/control01.ctl';
RMAN> CATALOG DATAFILECOPY '/disk1/datafile_bkup/2006_01_01/users01.dbf';
RMAN> CATALOG ARCHIVELOG '/disk1/arch_logs/archive1_731.log','/disk1/arch_logs/archive1_732.log';
RMAN> CATALOG BACKUPPIECE '/disk1/backups/backup_820.bkp';
You can catalog all files in the currently enabled Flash Recovery Area as follows:
RMAN> CATALOG RECOVERY AREA NOPROMPT;
Use the following command to catalog all valid backups in the specified location:
RMAN> CATALOG START WITH '/tmp/arch_logs';
RMAN> CATALOG RECOVERY AREA NOPROMPT;
Use the following command to catalog all valid backups in the specified location:
RMAN> CATALOG START WITH '/tmp/arch_logs';
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/17997/viewspace-723249/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 備份恢復Lesson 04.Using the RMAN Recovery Catalog
- VMware Site Recovery Manager 9.0 - 資料中心災難恢復 (DR)
- Rockchip RK3588 - Rockchip Linux Recovery recovery原始碼分析Linux原始碼
- VMware vCenter Site Recovery Manager VCP5.1部署實施與管理
- 手機刷TWRP Recovery
- SQL Server進行Crash RecoverySQLServer
- The Db2 Recovery History FileDB2
- MySQL crash recovery恢復慢分析MySql
- ORA-01153: an incompatible media recovery is active
- recovery資料夾可以刪除嗎 win10的recovery資料夾有什麼用Win10
- 資料恢復:FonePaw Data Recovery for Mac資料恢復Mac
- Android 關機、重啟、recovery流程分析Android
- GoldenGate BR(bounded Recovery)簡單說明Go
- office文件恢復軟體(magic office recovery)
- MySQL:Innodb crash recovery一些程式碼MySql
- PostgreSQL DBA(28) - Backup&Recovery#1(基本操作)SQL
- 硬碟資料恢復工具:Eassiy Data Recovery for mac硬碟資料恢復Mac
- iPhone資料恢復工具:Cisdem iPhone Recovery for MaciPhone資料恢復Mac
- VMware Live Recovery 9.0 - 多雲實時恢復
- Joyoshare iPhone Data Recovery MaciPhone資料恢復工具iPhoneMac資料恢復
- 關於隱藏引數:_no_recovery_through_resetlogs
- MySQL運維之binlog_gtid_simple_recovery(GTID)MySql運維
- win10 recovery資料夾可以刪除嗎_Win10系統盤的recovery資料夾有什麼用Win10
- iPhone資料恢復工具:TunesKit iPhone Data Recovery for MaciPhone資料恢復Mac
- EaseUS Data Recovery Wizard Mac資料恢復軟體Mac資料恢復
- Oracle RAC 重置db_recovery_file_dest_size引數Oracle
- Oracle10g釋放flash_recovery_area(轉)Oracle
- 【RMAN】什麼是Fast Recovery Area(FRA),如何配置FRAAST
- PostgreSQL DBA(31) - Backup&Recovery#4(搭建流複製)SQL
- VMware Live Site Recovery 9.0.2 釋出下載,新增功能概覽
- Macos專業資料恢復工具:Aiseesoft Data Recovery for MacMac資料恢復AI
- 高通平臺 按鍵 進入 fastboot/recovery/edl 模式ASTboot模式
- Bitwar Data Recovery-最快的資料救援解決方案
- 【問題處理】ORA-01113 file xxx need media recovery
- PostgreSQL 原始碼解讀(264)- PG 14(Speeding up recovery and VACUUM)SQL原始碼
- OGG-01028 Recovery record is missing from log 的BUG處理
- 如何進入Android系統的Bootloader和Recovery環境Androidboot
- Veeam Recovery Orchestrator v7.1 釋出下載 - 恢復編排
- VMware Live Site Recovery 9.0.1 - 資料中心災難恢復 (DR)