행위

오라클 rac 시작 종료

DB CAFE

Dbcafe (토론 | 기여)님의 2024년 8월 14일 (수) 22:35 판 (Cluster 전체 시작)
thumb_up 추천메뉴 바로가기


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,asm 포함
  • 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​

4 RAC 상태 확인[편집]

4.1 클러스터 명령어로 상태 확인[편집]

  • ora.gsd 의 state 가 "online" 이면 정상
  • DB 의 상태가 "OPEN" 인지 확인

​* 명령어

# crsctl status resource

4.2 process 확인[편집]

# ps -ef | grep d.bin