문서의 선택한 두 판 사이의 차이를 보여줍니다.
양쪽 이전 판 이전 판 다음 판 | 이전 판 | ||
study:oracle:10gadminii:configuringrecoverymanager [2008/03/23 01:35] starlits |
study:oracle:10gadminii:configuringrecoverymanager [2008/03/23 02:10] (현재) starlits |
||
---|---|---|---|
줄 152: | 줄 152: | ||
rman/ | rman/ | ||
</ | </ | ||
+ | |||
===== Configuring Persistent Settings for RMAN ===== | ===== Configuring Persistent Settings for RMAN ===== | ||
+ | |||
+ | - RMAN 은 기본 구성값을 가지고 미리 설치(preset) 되었다. | ||
+ | - CONFIGURE 명령어 | ||
+ | - 자동 채널 구성 | ||
+ | - 백업 주기 정책 | ||
+ | - 백업본 수 | ||
+ | - BACKUPSET 이나 COPY의 백업종류 | ||
+ | - backup sets 의 크기 제한 | ||
+ | - 백업에서 테이블스페이스 면제(exempt) | ||
+ | - 백업 최적화 활성/ | ||
+ | - Control files의 자동백업 구성 | ||
+ | |||
===== Configuring RMAN Settings Using EM ===== | ===== Configuring RMAN Settings Using EM ===== | ||
+ | |||
+ | - 위치 : **Maintenance** -> **Configure Backup Settings** | ||
+ | |||
===== Control File Autobackups ===== | ===== Control File Autobackups ===== | ||
+ | |||
+ | - 콘트롤파일 자동백업 < | ||
+ | - 콘트롤파일 자동백업 기본 포멧 변경 < | ||
+ | CONFIGURE CONTROLFILE AUTOBACKUP FORMAT | ||
+ | FOR DEVICE TYPE DISK TO '/ | ||
+ | </ | ||
+ | |||
===== Retention Policies ===== | ===== Retention Policies ===== | ||
+ | |||
+ | - 백업 유지 정책 | ||
+ | - 2가지 유지 정책 | ||
+ | - Recovery window : 7일로 설정했다면 7일 전으로 되돌아 갈 수 있어야 한다. \\ 그러기 위해서는 백업은 7일 이전의 것이 필요할 수도 있다. \\ (하나만 보존함) | ||
+ | - Redundancy : 지정된 갯수 이상의 백업 또는 복사본은 보존할 필요가 없음 | ||
+ | - 이들 정책은 상호배타적(mutually exclusive)이며 CONFIGURE 명령으로 설정할 수 있다. | ||
===== Managing Persistent Settings ===== | ===== Managing Persistent Settings ===== | ||
+ | |||
+ | ==== 현재 상태 보기 (SHOW) ==== | ||
+ | |||
+ | < | ||
+ | RMAN> SHOW CONTROLFILE AUTOBACKUP FORMAT; | ||
+ | RMAN> SHOW EXCLUDE; | ||
+ | RMAN> SHOW ALL; | ||
+ | </ | ||
+ | |||
+ | ==== 지속적인 재설정 (CLEAR) - 기본값 ==== | ||
+ | < | ||
+ | RMAN> CONFIGURE BACKUP OPTIMIZATION CLEAR; | ||
+ | RMAN> CONFIGURE MAXSETSIZE CLEAR; | ||
+ | RMAN> CONFIGURE DEFAULT DEVICE TYPE CLEAR; | ||
+ | </ | ||
===== Channel Allocation ===== | ===== Channel Allocation ===== | ||
{{study: | {{study: | ||
+ | |||
+ | - 채널은 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 변경 < | ||
+ | RMAN> CONFIGURE DEFAULT DEVICE TYPE TO sbt; | ||
+ | </ | ||
+ | - RMAN provides a preconfigured DISK channel that you can use for backups and copies to disk. | ||
+ | |||
+ | ==== Manual Channel Allocation ==== | ||
+ | - 수동 채널 할당 < | ||
+ | RMAN> RUN { | ||
+ | 2> ALLOCATE CHANNEL c1 DEVICE TYPE disk; | ||
+ | 3> BACKUP DATAFILE '/ | ||
+ | 4> } | ||
+ | </ | ||
+ | - ALLOCATE CHANNEL command with a RUN | ||
+ | - ALLOCATE CHANNEL FOR MAINTENANCE command | ||
+ | - 수동 채널 할당은 자동 채널 할당을 overwrite 한다. | ||
+ | |||
===== Channel Control Options ===== | ===== Channel Control Options ===== | ||
+ | |||
+ | ==== Configure paralllism ==== | ||
+ | < | ||
+ | |||
+ | |||
+ | ==== Specify the maximum backup piece size ==== | ||
+ | < | ||
+ | |||
+ | |||
+ | ==== Format the name of generated backup files ==== | ||
+ | < | ||
+ | RMAN> RUN { | ||
+ | 2> ALLOCATE CHANNEL d1 DEVICE TYPE DISK | ||
+ | 3> FORMAT '/ | ||
+ | 4> BACKUP DATABASE PLUS ARCHIVELOG; } | ||
+ | </ | ||
+ | |||
+ | |||
===== Summary ===== | ===== Summary ===== | ||
+ | * 정리해보면 | ||
+ | - RMAN Repository 와 Recovery Catalog 를 설명할 수 있다. | ||
+ | - **CONFIGURE** 를 이용하여 RMAN 기본설정을 변경할 수 있다. | ||
+ | - 자동 채널 할당을 실행할 수 있다. | ||
===== Practice Overview: Configuring RMAN ===== | ===== Practice Overview: Configuring RMAN ===== | ||