建立RMAN catalog實現物理備份
------轉載mengxianyao
1. 場景描述;
catalog database 192.168.1.206:1521 grid
target database 192.168.1.201:1521 ql
2. 在catalog database上建立rman表空間
SQL> create tablespace rman datafile '/u01/app/oracle/oradata/gird/rman.dbf' size 500m autoextend on next 100m maxsize unlimited;
Tablespace created.
3. 在catalog database上建立rman使用者
SQL> create user rman identified by rman default tablespace rman quota 500m on rman;
User created.
4. 在catalog database上對rman使用者賦予許可權
SQL> grant connect,resource to rman;
Grant succeeded.
SQL> grant recovery_catalog_owner to rman;
Grant succeeded.
5. 在target database上修改tnsname.ora
[oracle@test admin]$ more tnsnames.ora
RMAN =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.206)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = gird.57ql.com)
)
)
RMAN =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.1.206)(PORT = 1521))
)
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = gird.57ql.com)
)
)
6. 註冊資料庫
[oracle@test /]$ rman target / catalog;
Recovery Manager: Release 11.2.0.3.0 - Production on Mon Sep 3 16:12:41 2012
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: QL (DBID=2286587371)
connected to recovery catalog database
connected to recovery catalog database
RMAN> create catalog tablespace "RMAN";
recovery catalog created
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
7. 備份資料庫
RMAN> backup database;
Finished Control File and SPFILE Autobackup at 03-SEP-12
RMAN> exit
8. 小結
使用catalog database儲存rman備份的後設資料在生產環境中十分常見,且安全性高。可以將grid control的reponsitory database與catalog database整合在一起。
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/196700/viewspace-743904/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- RMAN備份 建立catalog資料庫資料庫
- Oracle Rman Catalog的建立方法和備份原理Oracle
- RMAN說,我能備份(18)--RMAN中的加密備份和CATALOG加密
- RMAN DUPLICATE建立DataGuard物理備庫
- Oracle 備份恢復篇之RMAN catalogOracle
- 揭秘ORACLE備份之----RMAN之五(CATALOG)Oracle
- 使用Catalog命令註冊RMAN備份集
- Oracle裡邏輯備份、物理備份、Rman備份的區別Oracle
- rman 建立catalog庫
- 揭祕ORACLE備份之----RMAN之五(CATALOG)Oracle
- RMAN備份中catalog和nocatalog區別[轉]
- Oracle RMAN備份中catalog和nocatalog區別Oracle
- Oracle RMAN物理備份技術詳解(4)Oracle
- 通過RMAN Duplicate建立Oracle物理standby備庫Oracle
- RMAN說,我能備份(14)--實戰RMAN備份
- catalog備份資料庫及RMAN儲存指令碼資料庫指令碼
- Data Guard 之RMAN備份線上搭建物理standby
- RMAN關於物理檔案copy的增量備份
- 【備份恢復】RMAN catalog 恢復目錄資料庫資料庫
- Rman-ORACLE資料庫RMAN實現自動備份Oracle資料庫
- Oracle RMAN備份實戰Oracle
- 【rman備份策略】實驗
- postgresql物理備份工具pg_rman的使用詳解SQL
- dataguard回顧之安裝———使用rman建立物理備庫
- 中小型資料庫 RMAN CATALOG 備份恢復方案(二)資料庫
- 中小型資料庫 RMAN CATALOG 備份恢復方案(一)資料庫
- rman使用catalog 啟用計劃任務並自動備份
- 使用RMAN增量更新備份實現快速還原
- Backup And Recovery User's Guide-備份RMAN備份-使用RMAN備份備份集GUIIDE
- RMAN備份、恢復實驗室 之 備份篇 【rman: can't open target】
- OceanBase物理備份恢復實踐
- mysql innobackupex 物理備份MySql
- RMAN說,我能備份(9)--RMAN增量備份與備份保留策略
- 使用RMAN DUPLICATE...FROM ACTIVE DATABASE命令來建立DataGuard物理備庫Database
- 【RMAN】RMAN備份至ASMASM
- 基於catalog 建立RMAN儲存指令碼指令碼
- 【RMAN】使用恢復目錄catalog備份目標資料庫的演示資料庫
- 使用RMAN建立資料庫備份庫(筆記)資料庫筆記