Let’s have look on the steps which we use to solve the issue “OCR create keys failed for root with OCR error 27”

[root@oraclehelpdb2 ~]# /opt/grid/product/11.2.0.3/perl/bin/perl -I/opt/grid/product/11.2.0.3/perl/lib -I/opt/grid/product/11.2.0.3/crs/install /opt/grid/product/11.2.0.3/crs/install/roothas.pl
Using configuration parameter file: /opt/grid/product/11.2.0.3/crs/install/crsconfig_params
LOCAL ADD MODE
Creating OCR keys for user 'grid', privgrp 'oinstall'..
Operation successful.
LOCAL ONLY MODE
Successfully accumulated necessary OCR keys.
Creating OCR keys for user 'root', privgrp 'root'..
OCR create keys failed, OCR error 27.
Creating local-only OCR (/opt/grid/product/11.2.0.3/bin/clscfg -local -g asmadmin) ... failed

Cause:

An asmadmin group is missing in grid user

[root@oraclehelpdb2 ~]# id grid

uid=1100(grid) gid=1000(oinstall) groups=1000(oinstall)

Solution:

[root@oraclehelpdb2 ~]# groupadd -g 1032 asmdba

[root@oraclehelpdb2~]# groupadd -g 1033 asmadmin

[root@oraclehelpdb2 ~]# usermod -G asmadmin,asmdba grid

[root@oraclehelpdb2 ~]# id grid

uid=1100(grid) gid=1000(oinstall) groups=1032(asmdba),1033(asmadmin),1000(oinstall)

Rerun the roothas.pl

[root@oraclehelpdb2 ~]# /opt/grid/product/11.2.0.3/perl/bin/perl -I/opt/grid/product/11.2.0.3/perl/lib -I/opt/grid/product/11.2.0.3/crs/install /opt/grid/product/11.2.0.3/crs/install/roothas.pl

Using configuration parameter file: /opt/grid/product/11.2.0.3/crs/install/crsconfig_params

LOCAL ADD MODE

Creating OCR keys for user 'grid', privgrp 'oinstall'..

Operation successful.

LOCAL ONLY MODE

Successfully accumulated necessary OCR keys.

Creating OCR keys for user 'root', privgrp 'root'..

Operation successful.

CRS-4664: Node testdb2 successfully pinned.

Adding Clusterware entries to inittab

testdb2     2017/04/15 14:29:46     /opt/grid/product/11.2.0.3/cdata/oraclehelpdb2/backup_20170415_142946.olr

Successfully configured Oracle Grid Infrastructure for a Standalone Server

Today’s thought

“Never complain, never explain. Resist the temptation to defend yourself or make excuses”. — By Brian Tracy

Thank you for giving your valuable time to read the above information.

If you want to be updated with all our articles send us the Invitation or Follow us:

Skant Gupta’s LinkedIn: www.linkedin.com/in/skantali/

Joel Perez’s LinkedIn: Joel Perez’s Profile

LinkedIn Group: Oracle Cloud DBAAS

Facebook Page: OracleHelp

About The Author

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.