[Oracle] RAC 관련 명령어

2023. 11. 21. 20:57DB

[기동 및 종료]

 

1. 클러스터 상태 확인 

$ crsctl status res -t 

$ crs_stat -t (11g 이하버전)

$ crsctl check crs ( 기동 후 상태)

CRS-4638: Oracle High Availability Services is online

CRS-4537: Cluster Ready Services is online

CRS-4529: Cluster Synchronization Services is online

CRS-4533: Event Manager is online

 

2. 클러스터 기동( <- root 계정으로 수행, node1, node2 수행 ) 

$ su - 

$ cd /gridhome/grid/bin

$ ./crsctl start crs

$ ps -ef | grep d.bin

   - CRS는 RAC를 구성하는 각 노드 및 각종 리소스를 제어하는 프로세스이다.

   - CRS의 기동은 root권한으로 되어야 한다.

 

3. 데이터베이스 기동 ( <- 오라클 계정으로 수행)

node1 --> SQL > startup;

node2 --> SQL > startup;

================

srvctl start instance -d 인스턴스이름 -n 노드명

 

4. 리스너 기동


svrctl start listener -n 호스트이름 -l LISTENER 

 

5. 클러스터 종료( <- root 계정으로 수행, node1, node2 수행 , ASM, DB 종료 후 진행) 

$ su - 

$ cd /gridhome/grid/bin

$ ./crsctl stop crs

$ ps -ef | grep d.bin

 

[RAC status check]

 

1. 인스턴스 상태 확인 

srvctl status instance -d 인스턴스이름 -n 노드명 

 

2. 리스너 상태 확인 

srvctl status listener -n 노드명 

 

3. VIP 확인


$ su - grid

$ srcvtl config nodeapps -a

$ ifconfig -a

 

4. OCR 및 VOTE DISK확인 

$ ocrcheck

$ crsctl query css votedisk

 

 

'DB' 카테고리의 다른 글

[Oracle] RAC+ASM 구축 (CentOS 7)  (0) 2023.11.22
[Oracle] RAC+ASM 구축 환경설정 (CentOS 7)  (0) 2023.11.22
[Oracle] 복구  (0) 2023.11.21
[Oracle] crs_stat 명령어  (0) 2023.11.18
[Oracle] 버전/Edition 별 RAC 가능 여부  (0) 2023.11.18