Oracle 10g 구성 RMAN RECOVERY 카탈로그
Control file: – Simpler administration – Default Recovery catalog: – Replicates control file data – Has room for more data – Can service many targets – Can store RMAN scripts RMAN repository data is always stored in the control file of the target database. But it can also be stored in a separate database, called a recovery catalog. A recovery catalog preserves backup information in a separate database, which is useful in the event of a lost control file. This allows you to store a longer history of backups than what is possible with a control file–based repository. A single recovery catalog is able to store information for multiple target databases. The recovery catalog can also hold RMAN stored scripts, which are sequences of RMAN commands for common backup tasks. Centralized storage of scripts in the recovery catalog can be more convenient than working with command files. Usage of a separate recovery catalog database is not recommended for small installations where administration of a separate recovery catalog database would be burdensome
다음은 복구 디 렉 터 리 설정 을 보 여 줍 니 다. 그 중에서 ora 10g 은 catalog 데이터베이스 이 고 target 데이터 베 이 스 는 Oacle 입 니 다.
- 1:
-
- SQL> CREATE TABLESPACE rman DATAFILE '/u01/app/oradata/rman01.dbf'
- 2 SIZE 500M AUTOEXTEND ON NEXT 20M MAXSIZE 2G EXTENT MANAGEMENT LOCAL;
-
- Tablespace created.
-
-
- SQL> CREATE USER RMAN IDENTIFIED BY rman
- 2 TEMPORARY TABLESPACE temp
- 3 DEFAULT TABLESPACE rman
- 4 QUOTA UNLIMITED ON rman;
-
- User created.
-
-
- SQL> GRANT RECOVERY_CATALOG_OWNER TO rman;
-
- Grant succeeded.
-
-
- SQL> conn rman/rman
- Connected.
-
- SQL> select count (*) from user_objects;
-
- COUNT(*)
- ----------
- 0
-
- 2:
- [oracle@ora10g ~]$ rman catalog rman/rman@ora10g
-
- Recovery Manager: Release 10.2.0.1.0 - Production on Wed Mar 16 09:58:16 2011
-
- Copyright (c) 1982, 2005, Oracle. All rights reserved.
-
- connected to recovery catalog database
-
- RMAN> CREATE CATALOG;
-
- recovery catalog created
-
-
-
- SQL> select count (*) from user_objects; // rman 195
-
- COUNT(*)
- ----------
- 195
-
- 3: , , catalog
-
- [oracle@orac ~]$ rman target sys/123456@orac catalog rman/rman@ora10g
-
- Recovery Manager: Release 10.2.0.1.0 - Production on Wed Mar 16 10:14:10 2011
-
- Copyright (c) 1982, 2005, Oracle. All rights reserved.
-
- connected to target database: ORAC (DBID=1010679485)
- connected to recovery catalog database
-
- RMAN> REGISTER DATABASE;
-
- database registered in recovery catalog
- starting full resync of recovery catalog
- full resync complete
-
- RMAN> RESYNC CATALOG;
-
- starting full resync of recovery catalog
- full resync complete
-
- RMAN> LIST INCARNATION;
- List of Database Incarnations
- DB Key Inc Key DB Name DB ID STATUS Reset SCN Reset Time
- ------- ------- -------- ---------------- --- ---------- ----------
- 1 8 ORAC 1010679485 PARENT 1 22-OCT-05
- 1 2 ORAC 1010679485 CURRENT 525876 15-FEB-11
본 고 는 '달 을 베 는' 블 로그 에서 나 왔 으 니 전재 하 는 것 을 사절 합 니 다!
이 내용에 흥미가 있습니까?
현재 기사가 여러분의 문제를 해결하지 못하는 경우 AI 엔진은 머신러닝 분석(스마트 모델이 방금 만들어져 부정확한 경우가 있을 수 있음)을 통해 가장 유사한 기사를 추천합니다:
자바 작업 은 Clob 또는 NClob 데이터 형식의 저장 프로 세 스 인 스 턴 스 를 포함 합 니 다.텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
CC BY-SA 2.5, CC BY-SA 3.0 및 CC BY-SA 4.0에 따라 라이센스가 부여됩니다.