사용자 도구

사이트 도구


study:oracle:10gadminii:configuringrecoverymanager

차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판 이전 판
다음 판
이전 판
study:oracle:10gadminii:configuringrecoverymanager [2008/03/23 01:49]
starlits
study:oracle:10gadminii:configuringrecoverymanager [2008/03/23 02:10] (현재)
starlits
줄 180: 줄 180:
 FOR DEVICE TYPE DISK TO '/u01/oradata/cf_ORCL_auto_%F'; FOR DEVICE TYPE DISK TO '/u01/oradata/cf_ORCL_auto_%F';
 </code> </code>
 +
  
 ===== Retention Policies ===== ===== Retention Policies =====
  
 +  - 백업 유지 정책
 +  - 2가지 유지 정책
 +    - Recovery window : 7일로 설정했다면 7일 전으로 되돌아 갈 수 있어야 한다. \\ 그러기 위해서는 백업은 7일 이전의 것이 필요할 수도 있다. \\ (하나만 보존함)
 +    - Redundancy : 지정된 갯수 이상의 백업 또는 복사본은 보존할 필요가 없음
 +  - 이들 정책은 상호배타적(mutually exclusive)이며 CONFIGURE 명령으로 설정할 수 있다.
  
 ===== Managing Persistent Settings ===== ===== Managing Persistent Settings =====
줄 200: 줄 206:
 RMAN> CONFIGURE DEFAULT DEVICE TYPE CLEAR; RMAN> CONFIGURE DEFAULT DEVICE TYPE CLEAR;
 </code> </code>
 +
  
 ===== Channel Allocation ===== ===== Channel Allocation =====
 {{study:oracle:10gadminii:channelallocation.jpg|}} {{study:oracle:10gadminii:channelallocation.jpg|}}
 +
 +  - 채널은 device type에 대한 단일 데이타 스트림을 나타낸다.
 +  - 채널은 반드시 백업, 복구명령을 실행하기 전에 할당되어 있어야 한다.
 +  - 할당된 각 채널은 해당 인스턴스에서 Sever Sessions을 시작하여 RMAN executable 에서 Auxiliary Database로 접속을 설정한다.
 +  - Only one RMAN session communicates with allocated server sessions;
 +
  
 ===== Automatic and Manual Channel Allocation ===== ===== Automatic and Manual Channel Allocation =====
 +
 +==== Automatic Channel Allocation ====
 +
 +  - 자동 채널 할당된 default device type 변경 <code>
 +RMAN> CONFIGURE DEFAULT DEVICE TYPE TO sbt;
 +</code>
 +  - RMAN provides a preconfigured DISK channel that you can use for backups and copies to disk.
 +
 +==== Manual Channel Allocation ====
 +  - 수동 채널 할당 <code>
 +RMAN> RUN {
 +2> ALLOCATE CHANNEL c1 DEVICE TYPE disk;
 +3> BACKUP DATAFILE '/u01/oradata/user01.dbf';
 +4> }
 +</code>
 +  - ALLOCATE CHANNEL command with a RUN
 +  - ALLOCATE CHANNEL FOR MAINTENANCE command
 +  - 수동 채널 할당은 자동 채널 할당을 overwrite 한다.
 +
  
 ===== Channel Control Options ===== ===== Channel Control Options =====
 +
 +==== Configure paralllism ====
 +<code> RMAN> CONFIGURE DEVICE TYPE DISK PARALLELISM 3; </code>
 +
 +
 +==== Specify the maximum backup piece size ====
 +<code> RMAN> CONFIGURE CHANNEL DEVICE TYPE DISK MAXPIECESIZE 2G; </code>
 +
 +
 +==== Format the name of generated backup files ====
 +<code>
 +RMAN> RUN {
 +2> ALLOCATE CHANNEL d1 DEVICE TYPE DISK
 +3> FORMAT '/disk1/backups/%U';
 +4> BACKUP DATABASE PLUS ARCHIVELOG; }
 +</code>
 +
 +
  
 ===== Summary ===== ===== Summary =====
 +  * 정리해보면
 +  - RMAN Repository 와 Recovery Catalog 를 설명할 수 있다.
 +  - **CONFIGURE** 를 이용하여 RMAN 기본설정을 변경할 수 있다.
 +  - 자동 채널 할당을 실행할 수 있다.
  
 ===== Practice Overview: Configuring RMAN ===== ===== Practice Overview: Configuring RMAN =====
  
study/oracle/10gadminii/configuringrecoverymanager.1206204576.txt.gz · 마지막으로 수정됨: 2008/03/23 01:49 저자 starlits