문서의 선택한 두 판 사이의 차이를 보여줍니다.
| 양쪽 이전 판이전 판다음 판 | 이전 판 | ||
| study:oracle:10gadminii:usingrecoverymanager [2008/03/30 13:20] – starlits | study:oracle:10gadminii:usingrecoverymanager [2025/10/03 22:30] (현재) – 바깥 편집 127.0.0.1 | ||
|---|---|---|---|
| 줄 4: | 줄 4: | ||
| - RMAN 백업명령으로 backup sets 과 image copies 를 만든다. | - RMAN 백업명령으로 backup sets 과 image copies 를 만든다. | ||
| - RMAN을 통해 backups과 image copies를 관리한다. | - RMAN을 통해 backups과 image copies를 관리한다. | ||
| + | |||
| ===== Issuing Recovery Manager Commands | ===== Issuing Recovery Manager Commands | ||
| ^ interactive client | RMAN 명령어 직접 이용 \\ analysis, reports, stored scripts 사용 | | ^ interactive client | RMAN 명령어 직접 이용 \\ analysis, reports, stored scripts 사용 | | ||
| - | ^ Bactch | + | ^ Batch mode | 자동화된 작업이용 \\ RMAN 시작시 명령파일 실행 \\ 정보를 로그파일로 설정 | |
| ^ Pipe interface | PIPE 명령어 이용하기 \\ RMAN 세션과 외부 어플리케이션을 이용하여 데이타 통신하기 | | ^ Pipe interface | PIPE 명령어 이용하기 \\ RMAN 세션과 외부 어플리케이션을 이용하여 데이타 통신하기 | | ||
| 줄 24: | 줄 25: | ||
| ^ Job | RUN 의 괄호를 이용해야 한다 \\ 그룹 실행이 가능하다 | | ^ Job | RUN 의 괄호를 이용해야 한다 \\ 그룹 실행이 가능하다 | | ||
| ^ Stand-alone 또는 job | RMAN 프롬프트와 RUN 을 이용하여 실행할 수 있다 \\ RUN의 괄호와 그룹 실행을 할 수 있다 | | ^ Stand-alone 또는 job | RMAN 프롬프트와 RUN 을 이용하여 실행할 수 있다 \\ RUN의 괄호와 그룹 실행을 할 수 있다 | | ||
| + | |||
| 줄 32: | 줄 34: | ||
| < | < | ||
| RMAN> RUN { | RMAN> RUN { | ||
| - | 2> BACKUP AS BACKUPSET | + | 2> BACKUP AS BACKUPSET |
| - | 3> FORMAT '/ | + | |
| - | 4> DURATION 10:00 MINIMIZE LOAD | + | |
| - | 5> (DATABASE); | + | |
| - | 6> SQL 'alter system archive log current'; | + | |
| - | 7> } | + | |
| </ | </ | ||
| 줄 64: | 줄 66: | ||
| {{study: | {{study: | ||
| + | |||
| 줄 70: | 줄 73: | ||
| {{study: | {{study: | ||
| RMAN> CONFIGURE DEVICE TYPE | RMAN> CONFIGURE DEVICE TYPE | ||
| - | 2> DISK PARALLELISM 2 | + | 2> DISK PARALLELISM 2 |
| - | 3> BACKUP TYPE TO | + | |
| - | 4> COMPRESSED BACKUPSET; | + | |
| </ | </ | ||
| 줄 175: | 줄 178: | ||
| 4> REUSE; | 4> REUSE; | ||
| </ | </ | ||
| + | |||
| ===== Incrementally Updating Backups | ===== Incrementally Updating Backups | ||
| + | |||
| + | {{study: | ||
| + | |||
| + | |||
| ===== LIST Command Operations | ===== LIST Command Operations | ||
| - | ===== The REPORT Command | + | |
| + | - 복사된 데이타파일 백업셋 정보 < | ||
| + | RMAN> LIST BACKUP OF DATABASE; | ||
| + | </ | ||
| + | RMAN> LIST BACKUP OF DATAFILE | ||
| + | 2> "/ | ||
| + | </ | ||
| + | - 지정한 테이블스페이스의 데이타파일 백업셋 정보 < | ||
| + | RMAN> LIST COPY OF TABLESPACE " | ||
| + | </ | ||
| + | - 특정기간의 archive log 를 포함한 백업셋 정보 < | ||
| + | RMAN> LIST COPY OF DATABASE ARCHIVELOG | ||
| + | 2> FROM TIME=' | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== The REPORT Command ===== | ||
| + | |||
| + | - Repository에 저장되어 있는 상세정보를 보여준다. | ||
| + | - Reports can be produced for a variety of questions, such as: | ||
| + | - What is the structure of the database? < | ||
| + | - Which files need to be backed up? < | ||
| + | - Which backups can be deleted (that is, are obsolete)? < | ||
| + | - Which files are not recoverable because of unrecoverable operations? < | ||
| + | |||
| ===== The REPORT NEED BACKUP Command | ===== The REPORT NEED BACKUP Command | ||
| + | |||
| + | - Lists all data files that require a backup | ||
| + | - Assumes the most recent backup is used during a restore | ||
| + | - Provides four options | ||
| + | * Incremental | ||
| + | * Days | ||
| + | * Redundancy | ||
| + | * Recovery window | ||
| + | - Uses the current retention policy configuration if no options are specified | ||
| + | |||
| + | |||
| ===== REPORT NEED BACKUP: Examples | ===== REPORT NEED BACKUP: Examples | ||
| - | ===== REPORT OBSOLETE and DELETE OBSOLETE | + | |
| + | |||
| + | - Files needing three or more incremental backups for recovery < | ||
| + | - Files have not been backed up for three days < | ||
| + | - Backup needed if there are not two or more < | ||
| + | - Backup needed to recover 3 days past < | ||
| + | RMAN> REPORT NEED BACKUP | ||
| + | 2> recovery window of 3 days; | ||
| + | </ | ||
| + | |||
| + | |||
| + | ===== REPORT OBSOLETE and DELETE OBSOLETE ===== | ||
| + | |||
| + | - Find all obsolete recovery files using the current retention policy settings < | ||
| + | RMAN> REPORT OBSOLETE REDUNANCY 2; | ||
| + | </ | ||
| + | - List the obsolete recovery files, if no more than two backup copies are needed < | ||
| + | RMAN> REPORT OBSOLETE; | ||
| + | </ | ||
| + | - Delete the backup set with a backup set key of 4 < | ||
| + | RMAN> DELETE BACKUPSET 4; | ||
| + | </ | ||
| + | - Delete the recovery files considered obsolete, because they have more than two backups < | ||
| + | RMAN> DELETE OBSOLETE REDUNDANCY 2; | ||
| + | </ | ||
| + | |||
| ===== Managing Backups with EM ===== | ===== Managing Backups with EM ===== | ||
| + | |||
| + | {{study: | ||
| + | |||
| + | |||
| ===== RMAN Dynamic Views ===== | ===== RMAN Dynamic Views ===== | ||
| + | |||
| + | - V$ARCHIVED_LOG | ||
| + | - V$BACKUP_CORRUPTION | ||
| + | - V$BACKUP_DEVICE | ||
| + | - V$BACKUP_FILES | ||
| + | - V$BACKUP_PIECE | ||
| + | - V$BACKUP_REDOLOG | ||
| + | - V$BACKUP_SET | ||
| + | - V$BACKUP_SPFILE | ||
| + | - V$COPY_CORRUPTION | ||
| + | - V$RMAN_CONFIGURATION | ||
| + | |||
| + | |||
| ===== Monitoring RMAN Backups | ===== Monitoring RMAN Backups | ||
| - | ===== Summary | + | |
| + | - Correlate server sessions with channels using the SET COMMAND ID command. | ||
| + | - Query V$PROCESS and V$SESSION to determine which sessions correspond to which RMAN channels. | ||
| + | - Query V$SESSION_LONGOPS to monitor the progress of backups and copies. | ||
| + | - Use an operating system utility to monitor the process or threads. | ||
| + | |||
| + | |||
| + | ===== Summary ===== | ||
| + | |||
| + | - RMAN 백업명령으로 백업셋과 image copies를 만들 수 있다. | ||
| + | - RMAN을 통해 백업과 image copies를 관리할 수 있다. | ||
| ===== Practice Overview: Using RMAN ===== | ===== Practice Overview: Using RMAN ===== | ||