Wednesday, 17 July 2019

Add Oracle Cluster Registry (OCR) file commands

############################# ADD OCR File #######################################

[root@srv1 bin]# cat /etc/oracle/olr.loc
olrconfig_loc=/u01/app/12.1.0/grid/cdata/srv1.olr
crs_home=/u01/app/12.1.0/grid
[root@srv1 bin]# cat /etc/oracle/olr.loc
olrconfig_loc=/u01/app/12.1.0/grid/cdata/srv1.olr
crs_home=/u01/app/12.1.0/grid
[root@srv1 bin]# cat /etc/oracle/ocr.loc
#Device/file +CRS getting replaced by device +CRS/rac/OCRFILE/registry.255.1011897227
ocrconfig_loc=+CRS/rac/OCRFILE/registry.255.1011897227
local_only=false[root@srv1 bin]# pwd
/u01/app/12.1.0/grid/bin
[root@srv1 bin]# ocrconfig -add +DATA
[root@srv1 bin]# cat /etc/oracle/ocr.loc
#Device/file  getting replaced by device +DATA/rac/OCRFILE/registry.255.1013881111
ocrconfig_loc=+CRS/rac/OCRFILE/registry.255.1011897227
ocrmirrorconfig_loc=+DATA/rac/OCRFILE/registry.255.1013881111
local_only=false[root@srv1 bin]# pwd
/u01/app/12.1.0/grid/bin
[root@srv1 bin]#


ASMCMD> pwd
+DATA/RAC/OCRFILE
ASMCMD> ls
REGISTRY.255.1013881111
ASMCMD>


############################ Delete OCR File ######################################

[root@srv1 bin]# ocrconfig -delete +DATA
[root@srv1 bin]# cat /etc/oracle/ocr.loc
#Device/file +DATA/rac/OCRFILE/registry.255.1013881111 being deleted
ocrconfig_loc=+CRS/rac/OCRFILE/registry.255.1011897227
local_only=false[root@srv1 bin]#




No comments:

Post a Comment