오라클 rac 시작 종료
DB CAFE
thumb_up 추천메뉴 바로가기
- DBA { Oracle DBA 명령어 > DBA 초급 과정 > DBA 고급 과정 }
- 튜닝 { 오라클 튜닝 목록 }
- 모델링 { 데이터 모델링 가이드 }
목차
1 RAC 정지 와 시작[편집]
2 RAC 정지[편집]
2.1 Cluster 전체 정지[편집]
- root 유저로 수행
- crsctl 명령어 이용
- RAC 전체 리소스 정지 : DB Instance, Listener ,asm 포함
- 각 노드(node)별로 각각 수행
- 명령어
# crsctl stop has
2.2 DB Instance 만 정지[편집]
- 클러스터가 시작되어 있는 상태에서 DB Instance만 정지 할경우
- "srvctl" 명령어를 사용하여 DB Instance 정지 시킴 (shutdown immediate 와 동일함)
- root 유저나 oracle 유저로 수행
- 명령어
# srvctl stop database -d DBCAFE_DB
- 확인
# crsctl status res -t
2.3 Listener 만 정지[편집]
- 클러스터가 시작되어 있는 상태에서 Listener 만 정지
- "srvctl" 명령어 사용
- root 유저나 oracle 유저로 수행
- 명령어
# srvctl stop listener
- 확인
# crsctl status res -t
3 RAC 시작[편집]
3.1 Cluster 전체 시작[편집]
- crsctl 명령어 이용 RAC 의 전체 리소스 시작
- DB Instance,Listener 포함
- root 유저로 수행
- 각 노드(node)별로 각각 수행
* 명령어
crsctl start has
- 클러스터를 시작하면 process 시작되는것을 확인
- 명령어
# crsctl status res -t -init
-- 또는
crsctl status resource -t -init
- -> ora.crsd 가 가장 마지막에 시작되는 데몬이기 때문에 crsd 가 정상적으로 online 되면 모두 정상 기동 완료
3.2 DB Instance 만 기동[편집]
- 클러스터가 시작되어 있는 상태에서 DB Instance 만 기동 할경우
- "srvctl" 명령어를 사용하여 DB Instance 를 시작(startup 과 동일)
- root 유저나 oracle 유저로 수행
- 명령어
# srvctl start database -d DBCAFE_DB
- 확인 - DB Instance 시작후
crsctl status res -t
3.3 Listener 만 기동[편집]
- 클러스터가 시작되어 있는 상태에서 Listener 만 정지
- "srvctl" 명령어 사용
- root 유저나 oracle 유저로 수행
- 명령어
# srvctl start listener
- 확인 - 리스너 시작후
# crsctl status res -t