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/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Recovery Catalog creation and MaintenanceAINaN
- Performing Tablespace Point-in-Time Recovery with Recovery Manager(轉)ORM
- Duplicating a Database Without Recovery Catalog or Target ConnectionDatabase
- RMAN: Monitoring Recovery Manager Jobs [ID 144640.1]
- RMAN-00554: initialization of internal recovery manager package failedPackageAI
- RMAN-20001: target database not found in recovery catalogDatabase
- Oracle OCP IZ0-053 Q241(RMAN Recovery Catalog Keep)Oracle
- Crash recovery和Media recovery的區別
- 【Oracle】-Difference between Instance recovery and Crash RecoveryOracle
- VMware Site Recovery Manager 9.0 - 資料中心災難恢復 (DR)
- 恢復目錄資料庫(Recovery Catalog)作用及演示例項資料庫
- oracle RECOVERY_PARALLELISM與instance recovery和medium recovery的關係小記OracleParallel
- Creation Of Rman Duplicate Without Target And Recovery Catalog Connec-1113713.1
- RMAN 11GR2 : DUPLICATE Without Target And Recovery Catalog Connection_874352.1
- oracle 11g rman configure retention policy to recovery window of days系列一Oracle
- postgres crash recovery
- Oracle 11gR2 fast recovery area = flash recovery areaOracleAST
- VMware vCenter Site Recovery Manager VCP5.1部署實施與管理
- Creating a Standby Database using RMAN (Recovery Manager) [ID 118409.1]Database
- 9I Catalog Configure
- 【recovery】android使用串列埠列印recovery除錯日誌Android串列埠除錯
- Oracle Backup and Recovery FAQOracle
- RMAN-20002: target database already registered in recovery catalog 解決方法Database
- Rockchip RK3588 - Rockchip Linux Recovery recovery原始碼分析Linux原始碼
- Oracle10g / 11g - Getting Started with Recovery Manager (RMAN) [ID 360416.1]Oracle
- 解決RMAN中 recovery catalog database: ORA-00955: name is already used by an existing objectDatabaseObject
- Errors and Recovery for the Server Parameter FileErrorServer
- Make notes for disaster recoveryAST
- SMON: Parallel transaction recovery triedParallel
- Overview of Instance and Crash RecoveryView
- oracle 之recovery directory databaseOracleDatabase
- recovery training articleAI
- oracle backup & recovery測試Oracle
- 設定Flash Recovery Area
- Oracle10g/11g – 恢復管理器 (Recovery Manager, RMAN) 入門指南Oracle
- SQL Server進行Crash RecoverySQLServer
- The Db2 Recovery History FileDB2
- Oracle Data Recovery AdvisorOracle