关于OLR

OLR(Oracle Local Registry)
OLR是类似OCR的东西,存储在集群的每个节点
[root@hp580-5 bin]# ./ocrcheck -config -local
Oracle Local Registry configuration is :
         Device/File Name         : /g01/app/11.2.0/grid/cdata/hp580-5.olr
[root@hp580-5 bin]# ./ocrcheck -local
Status of Oracle Local Registry is as follows :
         Version                  :          3
         Total space (kbytes)     :     262120
         Used space (kbytes)      :       2680
         Available space (kbytes) :     259440
         ID                       : 1840118281
         Device/File Name         : /g01/app/11.2.0/grid/cdata/hp580-5.olr
                                    Device/File integrity check succeeded

         Local registry integrity check succeeded

         Logical corruption check succeeded

[root@hp580-5 bin]# ./ocrconfig -local -showbackup

hp580-5     2014/07/28 15:35:42     /g01/app/11.2.0/grid/cdata/hp580-5/backup_20140728_153542.olr
[root@hp580-5 bin]# cd  /g01/app/11.2.0/grid/cdata/hp580-5
[root@hp580-5 hp580-5]# ls
backup_20140728_153542.olr  backup_20150306_135057.olr
[root@hp580-5 hp580-5]# cd ..
[root@hp580-5 cdata]# ls
hp580-5  hp580-5.olr  hp580-5.olr.bak  hp580-cluster  localhost
[root@hp580-5 cdata]# cd ..
[root@hp580-5 grid]# cd bin
[root@hp580-5 bin]# ./ocrconfig -local -manualbackup

hp580-5     2015/03/06 16:21:12     /g01/app/11.2.0/grid/cdata/hp580-5/backup_20150306_162112.olr

hp580-5     2014/07/28 15:35:42     /g01/app/11.2.0/grid/cdata/hp580-5/backup_20140728_153542.olr
[root@hp580-5 bin]# ls /g01/app/11.2.0/grid/cdata/hp580-5
backup_20140728_153542.olr  backup_20150306_135057.olr  backup_20150306_162112.olr
[root@hp580-5 bin]# rm   /g01/app/11.2.0/grid/cdata/hp580-5.olr  
rm: remove regular file `/g01/app/11.2.0/grid/cdata/hp580-5.olr'? yes
[root@hp580-5 bin]# cd ..
[root@hp580-5 grid]# cd cdata
[root@hp580-5 cdata]# ls
hp580-5  hp580-5.olr.bak  hp580-cluster  localhost
[root@hp580-5 cdata]# cd ..
[root@hp580-5 grid]# cd bin
[root@hp580-5 bin]# ./crsctl stop crs
CRS-2791: Starting shutdown of Oracle High Availability Services-managed resources on 'hp580-5'
CRS-2673: Attempting to stop 'ora.crsd' on 'hp580-5'
CRS-2790: Starting shutdown of Cluster Ready Services-managed resources on 'hp580-5'
CRS-2673: Attempting to stop 'ora.LISTENER_SCAN1.lsnr' on 'hp580-5'
CRS-2673: Attempting to stop 'ora.orcl.db' on 'hp580-5'
CRS-2673: Attempting to stop 'ora.LISTENER.lsnr' on 'hp580-5'
CRS-2677: Stop of 'ora.LISTENER_SCAN1.lsnr' on 'hp580-5' succeeded
CRS-2673: Attempting to stop 'ora.scan1.vip' on 'hp580-5'
CRS-2677: Stop of 'ora.LISTENER.lsnr' on 'hp580-5' succeeded
CRS-2673: Attempting to stop 'ora.hp580-5.vip' on 'hp580-5'
CRS-2677: Stop of 'ora.scan1.vip' on 'hp580-5' succeeded
CRS-2672: Attempting to start 'ora.scan1.vip' on 'hp580-4'
CRS-2677: Stop of 'ora.hp580-5.vip' on 'hp580-5' succeeded
CRS-2672: Attempting to start 'ora.hp580-5.vip' on 'hp580-4'
CRS-2677: Stop of 'ora.orcl.db' on 'hp580-5' succeeded
CRS-2673: Attempting to stop 'ora.DATA.dg' on 'hp580-5'
CRS-2673: Attempting to stop 'ora.FRA.dg' on 'hp580-5'
CRS-2676: Start of 'ora.hp580-5.vip' on 'hp580-4' succeeded
CRS-2676: Start of 'ora.scan1.vip' on 'hp580-4' succeeded
CRS-2672: Attempting to start 'ora.LISTENER_SCAN1.lsnr' on 'hp580-4'
CRS-2677: Stop of 'ora.FRA.dg' on 'hp580-5' succeeded
CRS-2676: Start of 'ora.LISTENER_SCAN1.lsnr' on 'hp580-4' succeeded
CRS-2677: Stop of 'ora.DATA.dg' on 'hp580-5' succeeded
CRS-2673: Attempting to stop 'ora.asm' on 'hp580-5'
CRS-2677: Stop of 'ora.asm' on 'hp580-5' succeeded
CRS-2673: Attempting to stop 'ora.ons' on 'hp580-5'
CRS-2677: Stop of 'ora.ons' on 'hp580-5' succeeded
CRS-2673: Attempting to stop 'ora.net1.network' on 'hp580-5'
CRS-2677: Stop of 'ora.net1.network' on 'hp580-5' succeeded
CRS-2792: Shutdown of Cluster Ready Services-managed resources on 'hp580-5' has completed
CRS-2677: Stop of 'ora.crsd' on 'hp580-5' succeeded
CRS-2673: Attempting to stop 'ora.ctssd' on 'hp580-5'
CRS-2673: Attempting to stop 'ora.evmd' on 'hp580-5'
CRS-2673: Attempting to stop 'ora.asm' on 'hp580-5'
CRS-2673: Attempting to stop 'ora.mdnsd' on 'hp580-5'
CRS-2677: Stop of 'ora.evmd' on 'hp580-5' succeeded
CRS-2677: Stop of 'ora.mdnsd' on 'hp580-5' succeeded
CRS-2677: Stop of 'ora.ctssd' on 'hp580-5' succeeded
CRS-2677: Stop of 'ora.asm' on 'hp580-5' succeeded
CRS-2673: Attempting to stop 'ora.cluster_interconnect.haip' on 'hp580-5'
CRS-2677: Stop of 'ora.cluster_interconnect.haip' on 'hp580-5' succeeded
CRS-2673: Attempting to stop 'ora.cssd' on 'hp580-5'
CRS-2677: Stop of 'ora.cssd' on 'hp580-5' succeeded
CRS-2673: Attempting to stop 'ora.crf' on 'hp580-5'
CRS-2677: Stop of 'ora.crf' on 'hp580-5' succeeded
CRS-2673: Attempting to stop 'ora.gipcd' on 'hp580-5'
CRS-2677: Stop of 'ora.gipcd' on 'hp580-5' succeeded
CRS-2673: Attempting to stop 'ora.gpnpd' on 'hp580-5'
CRS-2677: Stop of 'ora.gpnpd' on 'hp580-5' succeeded
CRS-2793: Shutdown of Oracle High Availability Services-managed resources on 'hp580-5' has completed
CRS-4133: Oracle High Availability Services has been stopped.
[root@hp580-5 bin]# ./crsctl start crs
CRS-4124: Oracle High Availability Services startup failed.
CRS-4000: Command Start failed, or completed with errors.
[root@hp580-5 bin]# ./ocrconfig -local -restore  /g01/app/11.2.0/grid/cdata/hp580-5/backup_20150306_135057.olr
PROTL-35: The configured Oracle Local Registry location is not accessible
[root@hp580-5 bin]# cd  /g01/app/11.2.0/grid/cdata
[root@hp580-5 cdata]# ls
hp580-5  hp580-5.olr.bak  hp580-cluster  localhost
[root@hp580-5 cdata]# touch  hp580-5.olr
[root@hp580-5 cdata]# chmod 600 hp580-5.olr
[root@hp580-5 cdata]# ls
hp580-5  hp580-5.olr  hp580-5.olr.bak  hp580-cluster  localhost
[root@hp580-5 cdata]# cd ..
[root@hp580-5 grid]# cd bin
[root@hp580-5 bin]# ps -ef|grep grid
root     13534 49046  0 16:31 pts/0    00:00:00 grep grid
[root@hp580-5 bin]# ./ocrconfig -local -restore  /g01/app/11.2.0/grid/cdata/hp580-5/backup_20150306_135057.olr
[root@hp580-5 bin]# ps -ef|grep grid
root     13545 49046  0 16:32 pts/0    00:00:00 grep grid
[root@hp580-5 bin]# ./crsctl start crs
CRS-4123: Oracle High Availability Services has been started.
[root@hp580-5 bin]# ps -ef|grep grid
root     13553     1  6 16:32 ?        00:00:01 /g01/app/11.2.0/grid/bin/ohasd.bin reboot
grid     13668     1  8 16:32 ?        00:00:00 /g01/app/11.2.0/grid/bin/oraagent.bin
grid     13680     1  2 16:32 ?        00:00:00 /g01/app/11.2.0/grid/bin/mdnsd.bin
grid     13690     1  3 16:32 ?        00:00:00 /g01/app/11.2.0/grid/bin/gpnpd.bin
root     13694 49046  0 16:32 pts/0    00:00:00 grep grid
[root@hp580-5 bin]# ps -ef|grep grid
root     13553     1  5 16:32 ?        00:00:02 /g01/app/11.2.0/grid/bin/ohasd.bin reboot
grid     13668     1  1 16:32 ?        00:00:00 /g01/app/11.2.0/grid/bin/oraagent.bin
grid     13680     1  0 16:32 ?        00:00:00 /g01/app/11.2.0/grid/bin/mdnsd.bin
grid     13690     1  2 16:32 ?        00:00:00 /g01/app/11.2.0/grid/bin/gpnpd.bin
root     13703     1  1 16:32 ?        00:00:00 /g01/app/11.2.0/grid/bin/orarootagent.bin
grid     13706     1  3 16:32 ?        00:00:00 /g01/app/11.2.0/grid/bin/gipcd.bin
root     13720     1  5 16:32 ?        00:00:00 /g01/app/11.2.0/grid/bin/osysmond.bin
root     13731     1  0 16:32 ?        00:00:00 /g01/app/11.2.0/grid/bin/cssdmonitor
root     13748     1  0 16:32 ?        00:00:00 /g01/app/11.2.0/grid/bin/cssdagent
grid     13760     1  3 16:32 ?        00:00:00 /g01/app/11.2.0/grid/bin/ocssd.bin
root     13793     1  4 16:32 ?        00:00:00 /g01/app/11.2.0/grid/bin/ologgerd -m hp580-4 -r -d /g01/app/11.2.0/grid/crf/db/hp580-5
root     13811 49046  0 16:32 pts/0    00:00:00 grep grid
[root@hp580-5 bin]#

请使用浏览器的分享功能分享到微信等