环境:
OS:Centos 7
DB:19.3.0.0
1.查看当前ocr的备份目录
[grid@rac01 ~]$ ocrconfig -showbackuploc
The Oracle Cluster Registry backup location is [+OCR].
2.更改目录
[root@rac01 ~]# /u01/grid/grid_home/19.3.0.0/bin/ocrconfig -backuploc +REDO
[grid@rac01 ~]$ ocrconfig -showbackuploc
The Oracle Cluster Registry backup location is [+REDO]
若是指定具体某个目录好像是不可以的,只能指定到磁盘组
[root@rac01 ~]# /u01/grid/grid_home/19.3.0.0/bin/ocrconfig -backuploc +OCR/rac-cluster/OCRBACKUP01
PROT-45: The specified Oracle Cluster Registry backup location +OCR/rac-cluster/OCRBACKUP01 is inaccessible.
好像也不能指定到文件系统目录,只能是asm磁盘
[root@rac01 ~]# /u01/grid/grid_home/19.3.0.0/bin/ocrconfig -backuploc /home/grid/ocrbackup/
PROT-42: The specified location '/home/grid/ocrbackup/' designates an invalid storage type for Oracle Cluster Registry backup files.