Friday, June 23, 2017

OCR Integrity Failure

Checking OCR Integrity Failure 


Today's while doing 12cR2 upgrade we experience the OLR integrity failure during pre check at upgrade.  So I check the permission and came to know the permission for my local OLR is oracle:oinstall on node 1. So I validated the OCR/OLR integrity and found every thing fine instead of permission on my local OLR has changed now. 

So I manually fix the permission issue and continue the upgrade.



[oracle@rac131 12.2.0.1]$ cat -n /etc/oraInst.loc
     1  inventory_loc=/u01/app/oraInventory
     2  inst_group=oinstall

[oracle@rac131 12.2.0.1]$ cluvfy comp olr -verbose

Verifying OLR integrity

Checking OLR integrity...
Check of existence of OLR configuration file "/etc/oracle/olr.loc" passed
Check of attributes of OLR configuration file "/etc/oracle/olr.loc" passed
PRVG-2031 : Owner of file "/u01/app/12.1.0.2/GRID/cdata/rac131.olr" did not match the expected value on node "rac131". [Expected = "root" ; Found = "oracle"]

WARNING:
This check does not verify the integrity of the OLR contents. Execute 'ocrcheck -local' as a privileged user to verify the contents of OLR.

OLR integrity check passed

Verification of OLR integrity was successful.


[root@rac131 12.2.0.1]$ sudo /u01/app/12.1.0.2/GRID/bin/ocrcheck -local
Status of Oracle Local Registry is as follows :
         Version                  :          4
         Total space (kbytes)     :     409568
         Used space (kbytes)      :        972
         Available space (kbytes) :     408596
         ID                       : 2106775746
         Device/File Name         : /u01/app/12.1.0.2/GRID/cdata/rac131.olr
                                    Device/File integrity check succeeded

         Local registry integrity check succeeded

         Logical corruption check succeeded


[root@rac131 12.2.0.1]$ ls -ltrah  /u01/app/12.1.0.2/GRID/cdata/rac131.olr
-rw-------. 1 oracle oinstall 481M Jun 18 11:37 /u01/app/12.1.0.2/GRID/cdata/rac131.olr

Changing the permission to root:oinstall

[root@rac131 12.2.0.1]$ chmod root:oinstall /u01/app/12.1.0.2/GRID/cdata/rac131.olr

Validating permission to root:oinstall

[root@rac131 12.2.0.1]$ ls -ltrah   /u01/app/12.1.0.2/GRID/cdata/rac131.olr

-rw-------. 1 root oinstall 481M Jun 18 11:59 /u01/app/12.1.0.2/GRID/cdata/rac131.olr



1 comment:

  1. As claimed by Stanford Medical, It is in fact the SINGLE reason this country's women live 10 years longer and weigh on average 42 lbs lighter than us.

    (Just so you know, it is not about genetics or some secret diet and really, EVERYTHING to do with "HOW" they are eating.)

    P.S, I said "HOW", and not "WHAT"...

    CLICK on this link to discover if this brief test can help you decipher your real weight loss possibility

    ReplyDelete