【RMAN】catalog資料庫
使用catalog資料庫,首先要確定一個資料庫作為目錄資料庫。然後通過以下步驟完成。
(1)在選定作為catalog資料庫的資料庫中建立tablespace
SYS@MTH> create tablespace tbs_rman datafile '/oradat/MTH/tbs_rman.dbf' size 50M;
Tablespace created.
(2)建立管理使用者,並賦予相應的許可權
SYS@MTH> create user rman identified by rman default tablespace tbs_rman temporary tablespace temp quota unlimited on tbs_rman;
User created.
SYS@MTH> grant connect,resource,recovery_catalog_owner to rman;
Grant succeeded.
(3)進入RMAN,建立catalog
oracle@C01TEST03:/home/oracle>rman catalog rman/rman
Recovery Manager: Release 11.2.0.4.0 - Production on Wed May 24 14:17:13 2017
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to recovery catalog database
RMAN> create catalog;
recovery catalog created
(4)驗證
通過查詢rman使用者下是否存在物件,來確定catalog是否建立成功。
oracle@C01TEST03:/home/oracle>sqlplus rman/rman
SQL*Plus: Release 11.2.0.4.0 Production on Wed May 24 14:18:10 2017
Copyright (c) 1982, 2013, Oracle. All rights reserved.
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.4.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
RMAN@MTH> select table_name from user_tables;
TABLE_NAME
------------------------------
DB
NODE
CONF
DBINC
CKP
TS
TSATT
DF
......
至此,catalog資料庫建立成功。
在使用catalog資料庫進行資料庫備份之前,應該先在catalog中註冊target資料庫。註冊資料庫需要同時連線到target資料庫和catalog資料庫。
oracle@C01TEST03:/home/oracle>rman target / catalog rman/rman@CATALOG
Recovery Manager: Release 11.2.0.4.0 - Production on Wed May 24 14:32:55 2017
Copyright (c) 1982, 2011, Oracle and/or its affiliates. All rights reserved.
connected to target database: MTH (DBID=3150883311)
connected to recovery catalog database
RMAN> register database;
database registered in recovery catalog
starting full resync of recovery catalog
full resync complete
在catalog中登出資料庫:
RMAN> unregister database;
database name is "MTH" and DBID is 3150883311
Do you really want to unregister the database (enter YES or NO)? yes
database unregistered from the recovery catalog
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30776559/viewspace-2139791/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 資料庫-Duckdb-catalog和schema資料庫
- 用rman遷移資料庫資料庫
- 使用RMAN備份資料庫資料庫
- Oracle 備份恢復篇之RMAN catalogOracle
- 揭秘ORACLE備份之----RMAN之五(CATALOG)Oracle
- 利用RMAN備份重建資料庫資料庫
- 3.1.1.2 使用RMAN啟動資料庫資料庫
- Oracle Rman Catalog的建立方法和備份原理Oracle
- 備份恢復Lesson 04.Using the RMAN Recovery Catalog
- 使用RMAN複製資料庫 active database資料庫Database
- Oracle RMAN 連線資料庫認證方法Oracle資料庫
- oracle資料庫使用rman備份指令碼Oracle資料庫指令碼
- 【資料庫資料恢復】mdb_catalog.wt檔案丟失的MongoDB資料恢復案例資料庫資料恢復MongoDB
- 【RMAN】Oracle使用rman將11.2.0.4資料庫遷移至Oracle12c命令參考Oracle資料庫
- RMAN備份恢復典型案例——資料庫卡頓資料庫
- RMAN資料庫恢復異常報錯ORA-01180資料庫
- (十二)SparkSQL Catalog訪問Hive後設資料資訊SparkSQLHive
- Oracle 11G RAC複製備庫RMAN-03002 RMAN-05501 RMAN-03015 RMAN-03009 RMAN-10038Oracle
- 2012-06-03 20:40 catalog start with rman備份集直接匯入控制檔案中
- 資料遷移的時候出現RMAN-03002,RMAN-06026
- 【RMAN】在備庫執行rman備份時報錯RMAN-06820 ORA-17629
- oracle手工建庫後rman無法啟用(RMAN-04015)Oracle
- RMAN備份恢復典型案例——快速檢查資料庫一致性資料庫
- 在DG備庫備份資料庫並恢復到一個主機上,報錯RMAN-06820資料庫
- Oracle使用RMAN將普通資料檔案轉成ASMOracleASM
- ORACLE DG從庫 Rman備份恢復Oracle
- [20211020]改變備庫的rman配置.txt
- 資料庫PostrageSQL-管理資料庫資料庫SQL
- 【資料庫資料恢復】SAP資料庫資料恢復案例資料庫資料恢復
- 【資料庫資料恢復】MS SQL資料庫附加資料庫出錯怎麼恢復資料?資料庫資料恢復SQL
- 資料庫介紹--初識資料庫資料庫
- 資料庫 資料庫的完整性資料庫
- 資料湖 vs 倉庫 vs 資料庫資料庫
- 資料庫概論 (一)資料庫概念資料庫
- 【Falsk 使用資料庫】---- 資料庫基本操作資料庫
- 【資料庫資料恢復】Sql Server資料庫資料恢復案例資料庫資料恢復SQLServer
- DataX將MySql資料庫資料同步到Oracle資料庫MySql資料庫Oracle
- 織夢資料庫_織夢還原資料庫_織夢資料庫很卡資料庫
- 生產資料庫、開發資料庫、測試資料庫中的資料的區分資料庫