Hi,
I will share Oracle RAC Administration Scripts in this post.
Read previous article before this.
Oracle DBA can administer Oracle Clusterware using the Oracle Clusterware Control (CRSCTL) utility.
I will continue to explain fundamental crsctl command.
To find OCR backup location, execute following command. Set ASM profile before executing crsctl command.
ocrconfig –showbackup auto
To change OCR Backup location, execute following command.
ocrconfig –backuploc Shared_PATH
To Add OCR files location, execute following command.
ocrconfig –add Location_PATH
To Replace or Change OCR files location, execute following command.
ocrconfig –replace New_PATH
To Repair OCR files location, execute following command. Cluster or Oracle RAC Services should be power off.
ocrconfig –repair –add +DATAC1