Monday, February 7, 2011

How to restore local OLR in Oracle 11gR2 RAC?

http://www.rachelp.nl/index_kb.php?menu=articles&actie=show&id=62


When you see the following Error: PROCL-26OHAS00106 in your OHSD log file under $CRS_HOME/cdata/


2009-10-16 15:02:43.664: [ default][3046311632] OHASD Daemon Starting. Command string :restart2009-10-16 15:02:43.668: [ default][3046311632] Initializing OLR2009-10-16 15:02:43.672: [ OCROSD][3046311632]utopen:6m':failed in stat OCR file/disk /u01/app/11.2.0/grid/cdata/server1.olr, errno=2, os err string=No such file or directory2009-10-16 15:02:43.672: [ OCROSD][3046311632]utopen:7:failed to open any OCR file/disk, errno=2, os err string=No such file or directory2009-10-16 15:02:43.673: [ OCRRAW][3046311632]proprinit: Could not open raw device2009-10-16 15:02:43.673: [ OCRAPI][3046311632]a_init:16!: Backend init unsuccessful : [26]2009-10-16 15:02:43.673: [ CRSOCR][3046311632] OCR context init failure. Error: PROCL-26: Error while accessing the physical storage Operating System error [No such file or directory] [2]2009-10-16 15:02:43.673: [ default][3046311632] OLR initalization failured, rc=262009-10-16 15:02:43.674: [ default][3046311632]Created alert : (:OHAS00106:) : Failed to initialize Oracle Local Registry2009-10-16 15:02:43.674: [ default][3046311632][PANIC] OHASD exiting; Could not init OLR2009-10-16 15:02:43.674: [ default][3046311632] Done.


cd /oracle_crs/product/11.2.0/crs_1/cdata
touch lkcme25070.olr
cd /oracle_crs/product/11.2.0/crs_1/bin
./ocrconfig -local –restore /oracle_crs/product/11.2.0/crs_1/cdata/lkcme25070/backup_20101130_154551.olr