컨트롤 파일을 다른 디렉토리로 이동하기
컨트롤 파일은 처음 지정후 옮길 일은 거의 없다. 물론 기존에 존재하는 DB의 컨트롤 파일이 multiplexing되어 있지 않다면 각 컨트롤파일들을 서로 다른 디스크에 위치하도록 변경해야 할 것이다. 이런 경우, 이 방법을 사용하여 변경할 수 있겠다.
D:>svrmgrl
Oracle Server Manager Release 3.1.7.0.0 - Production
Copyright (c) 2000, Oracle Corporation. All Rights Reserved.
Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production With the Partitioning option JServer Release 8.1.7.0.0 - Production
SVRMGR> connect internal 접속되었습니다. SVRMGR> select * from v$controlfile; STATUS NAME ------- --------------------------------------------------------------- C:ORACLEORADATAWIN817DBCONTROL01.CTL C:ORACLEORADATAWIN817DBCONTROL02.CTL C:ORACLEORADATAWIN817DBCONTROL03.CTL
3 행이 선택되었습니다. SVRMGR> shutdown 데이터베이스가 닫혔습니다. 데이터베이스가 마운트 해제되었습니다. ORACLE 인스턴스가 종료되었습니다. SVRMGR> quit Server Manager 완료.
D:>
위에서 컨트롤 파일이 3개 존재하며 각각이 동일한 디렉토리에 위치하고 있음을 알고 있다. 테스트 삼아 CONTROL03.CTL을 d:로 옮기도록 하겠다.
컨트롤 파일은 데이터파일/리두로그 파일과는 달리 패러미터파일(init.ora)의 control_files패러미터를 변경하고 난뒤, 다시 시작해 주는 것으로 처리할 수 있다.
[C:oracleadminwin817dbpfileinitwin817db.ora] 변경전 control_files = ("C:oracleoradatawin817dbcontrol01.ctl", "C:oracleoradatawin817dbcontrol02.ctl", "C:oracleoradatawin817dbcontrol03.ctl")
변경후 control_files = ("C:oracleoradatawin817dbcontrol01.ctl", "C:oracleoradatawin817dbcontrol02.ctl", "d:control03.ctl")
D:>move C:oracleoradatawin817dbcontrol03.ctl d:control03.ctl D:>svrmgrl
Oracle Server Manager Release 3.1.7.0.0 - Production
Copyright (c) 2000, Oracle Corporation. All Rights Reserved.
Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production With the Partitioning option JServer Release 8.1.7.0.0 - Production
SVRMGR> connect internal 접속되었습니다. SVRMGR> startup ORACLE 인스턴스가 시작되었습니다. 시스템 글로벌 영역 160045084 바이트 합계 Fixed Size 75804 바이트 Variable Size 80445440 바이트 Database Buffers 79446016 바이트 Redo Buffers 77824 바이트 데이터베이스가 마운트되었습니다. 데이터베이스가 열려졌습니다. SVRMGR> select * from v$controlfile; STATUS NAME ------- ---------------------------------------------------------------------- C:ORACLEORADATAWIN817DBCONTROL01.CTL C:ORACLEORADATAWIN817DBCONTROL02.CTL D:CONTROL03.CTL
3 행이 선택되었습니다. SVRMGR>
|
This article comes from dbakorea.pe.kr (Leave this line as is)