CRS-4563: Insufficient user privileges

On a 11gR2 server, I was unable to start HAS

serv1.com:+ASM:/home/oracle>crsctl start has
CRS-4563: Insufficient user privileges.
CRS-4000: Command Start failed, or completed with errors.

After some investigation, found that OLR was missing.

Current OLR location is pointing to /u01/app/oracle/product/11.2.0/grid/cdata/localhost/serv1.olr

serv1.com:+ASM:/etc/oracle>cat olr.loc
olrconfig_loc=/u01/app/oracle/product/11.2.0/grid/cdata
/localhost/serv1.olr
crs_home=/u01/app/oracle/product/11.2.0/grid
serv1.com:+ASM:/home/oracle>ocrcheck -config -local
Oracle Local Registry configuration is :
Device/File Name : /u01/app/oracle/product/11.2.0/grid/cdata
/localhost/serv1.olr

But physical file is missing

serv1.com:+ASM:/etc/oracle>
ls -al /u01/app/oracle/product/11.2.0/grid/cdata/localhost/
serv1.olr
/u01/app/oracle/product/11.2.0/grid/cdata/
localhost/serv1.olr not found

So tried restoring it using the OLR backup (which needs root prives)

Note: Normally backup location would be 
<GRID_HOME>/cdata/<HOSTNAME>/backup_*.olr
root@serv1:/u01/app/oracle/product/11.2.0/grid/bin) 
ocrconfig -local -restore 
/u01/app/oracle/product/11.2.0/grid/cdata/serv1
/backup_20110921_145719.olr
Which error out with PROTL-16: Internal Error

Ocrconfig log reports missing file

root@serv1:/u01/app/oracle/product/11.2.0/grid/log/serv1/client) 
cat ocrconfig_147620.log
Oracle Database 11g Clusterware Release 11.2.0.1.0 - 
Production Copyright 1996, 2009 Oracle. All rights reserved.
2011-12-22 00:36:33.041: [ OCRCONF][1]ocrconfig starts...
2011-12-22 00:36:33.041: [ OCROSD][1]utopen:6m':failed in stat 
OCR file/disk /u01/app/oracle/product/11.2.0/grid/cdata/
localhost/serv1.olr,errno=2,os err string=No such file 
or directory
2011-12-22 00:36:33.041: [OCROSD][1]utopen:7:failed to open 
any OCR file/disk, errno=2, os err string=No such file or 
directory [ default][1]u_set_gbl_comp_error: OCR context was NULL
2011-12-22 00:36:33.041: [ OCRRAW][1]phy_rec:1:
could not open OCR device
2011-12-22 00:36:33.041: [OCRCONF][1]Failed to restore OCR/OLR 
from [/u01/app/oracle/product/11.2.0/grid/cdata/serv1/
backup_xxxxxx.olr]
2011-12-22 00:36:33.041: [ OCRCONF][1]Exiting [status=failed]...

Create dummy file

touch /u01/app/oracle/product/11.2.0/grid/cdata/localhost/
serv1.olr

Restore again using the same command

root@serv1:/u01/app/oracle/product/11.2.0/grid/bin) 
ocrconfig -local -restore /u01/app/oracle/product/11.2.0/grid/
cdata/serv1/backup_xxxxxxx.olr
Advertisements
This entry was posted in Oracle Cluster Ready Services, Oracle Real Application Cluster and tagged , , , , . Bookmark the permalink.

2 Responses to CRS-4563: Insufficient user privileges

  1. Cialis says:

    Thanks for this !

  2. Microgynon says:

    Thanks for this comment!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s