03_다중화 작업

2026. 4. 8. 10:28DB/서버구축

Oracle 컨트롤 파일(Control Files) 위치 변경 및 다중화 작업
작업 목적: 데이터베이스의 '설계도'와 같은 컨트롤 파일이 망가지는 것에 대비해 여러 곳에 복사본을 나눠 저장(다중화)하거나 저장 위치를 옮기는 작업이다.

 

"백업이라기보다는 '위험 분산(다중화)'과 '경로 수정' 작업에 가깝다"
  • 백업과의 차이: 백업은 사고 대비용 복사본을 만드는 것이지만, 이 작업은 DB가 구동될 때 실제로 사용하는 파일의 위치를 바꾸거나 여러 곳에 동시에 써지도록 설정하는 것이다.
  • 핵심 목적: 컨트롤 파일은 하나만 깨져도 DB가 안 켜지기 때문에, 서로 다른 디스크에 여러 개를 심어두어 하나가 고장 나도 다른 걸로 즉시 돌릴 수 있게 만드는 것이 진짜 목적.

 

  용도
  • /app/ora19c/oradata/disk1    
datafile
  • /app/ora19c/oradata/disk2      
datafile
  • /app/ora19c/oradata/disk3
datafile
  • /app/ora19c/oradata/disk4
log, ctl
  • /app/ora19c/oradata/disk5
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