2026. 4. 8. 10:28ㆍDB/서버구축
- 백업과의 차이: 백업은 사고 대비용 복사본을 만드는 것이지만, 이 작업은 DB가 구동될 때 실제로 사용하는 파일의 위치를 바꾸거나 여러 곳에 동시에 써지도록 설정하는 것이다.
- 핵심 목적: 컨트롤 파일은 하나만 깨져도 DB가 안 켜지기 때문에, 서로 다른 디스크에 여러 개를 심어두어 하나가 고장 나도 다른 걸로 즉시 돌릴 수 있게 만드는 것이 진짜 목적.
| 용도 | |
|
datafile |
|
datafile |
|
datafile |
|
log, ctl |
|
log, ctl |
SQL> ALTER SYSTEM SET control_files =
'/app/ora19c/oradata/disk4/control.ctl',
'/app/ora19c/oradata/disk5/control.ctl' scope = spfile;
System altered.
SQL> SHUTDOWN IMMEDIATE;
Database closed.
Database dismounted.
Oracle instance shutdown.
SQL> !mv /app/ora19c/oradata/DB19/control01.ctl /app/ora19c/oradata/disk4/control.ctl
SQL> !mv /app/ora19c/oradata/DB19/control02.ctl /app/ora19c/oradata/disk5/control.ctl
SQL> !ls /app/ora19c/oradata/disk4
control.ctl
SQL> !ls /app/ora19c/oradata/disk5
control.ctl
SQL> STARTUP
ORACLE instance started.
Total System Global Area 830472192 bytes
Fixed Size 8626144 bytes
Variable Size 629145632 bytes
Database Buffers 188743680 bytes
Redo Buffers 3956736 bytes
Database mounted.
'DB > 서버구축' 카테고리의 다른 글
| 05_리스너 서버 (1) | 2026.04.09 |
|---|---|
| 04_ Redo log group 추가와 삭제 (0) | 2026.04.08 |
| 02_파라미터 관리 (0) | 2026.04.07 |
| 01_오라클 STARTUP과 SHUTDOWN (0) | 2026.04.07 |
| 0_설치 (0) | 2026.04.06 |