Experience: is what you get soon after you need it.

Experience: is what you get soon after you need it.

Rasul Allah (sal Allahu alaihi wa sallam) said: "Restore the trusts of those who trust you, and deal not falsely with him who deals falsely with you." [Abu Dawud, Tirmidhi]

Search This Blog

Sunday, September 20, 2015

oracle.ops.mgmt.has.ClusterUtilException: PRKH-1010 : Unable to communicate with CRS services.


While creating a standalone database on a Clustered Oracle Home:

[oracle@collabn1 has]$ dbca -createdatabase -templatename General_Purpose.dbc -datafiledestination /u01/app/oracle/shaikdb -nationalcharacterset al16utf16 -characterset al32utf8 -silent -sid SHAIKDB -gdbname SHAIKDB.shaiksameer


oracle.ops.mgmt.has.ClusterUtilException: PRKH-1010 : Unable to communicate with CRS services.
 [Communications Error(Native: prsr_initCLSS:[3])]
   at oracle.ops.mgmt.has.ClusterUtil.<init>(ClusterUtil.java:62)
   at oracle.sysman.assistants.util.hasi.HAUtils.<init>(HAUtils.java:201)
   at oracle.sysman.assistants.util.hasi.HAUtils.getInstance(HAUtils.java:228)
   at oracle.sysman.assistants.util.NetworkUtils.getOneLocalListenerProtocolAddress(NetworkUtils.java:2982)
   at oracle.sysman.assistants.util.NetworkUtils.getOneLocalListenerProtocolAddress(NetworkUtils.java:2961)
   at oracle.sysman.assistants.util.NetworkUtils.getLocalListenerAddressForPort(NetworkUtils.java:1210)
   at oracle.sysman.assistants.util.NetworkUtils.getLocalListenerAddress(NetworkUtils.java:1193)
   at oracle.sysman.assistants.util.NetworkUtils.getLocalListenerAddresses(NetworkUtils.java:1247)
   at oracle.sysman.assistants.util.NetworkUtils.needLocalListener(NetworkUtils.java:1169)
   at oracle.sysman.assistants.util.step.StepContext.setListenersToUpdate(StepContext.java:856)
   at oracle.sysman.assistants.util.step.StepContext.<init>(StepContext.java:319)
   at oracle.sysman.assistants.dbca.backend.Host.<init>(Host.java:778)
   at oracle.sysman.assistants.dbca.backend.SilentHost.<init>(SilentHost.java:144)
   at oracle.sysman.assistants.dbca.Dbca.getHost(Dbca.java:154)
   at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:112)
   at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:184)
PRKH-1007 : Exception Caused by:
oracle.ops.mgmt.has.HASContextException: Communications Error(Native: prsr_initCLSS:[3])
   at oracle.ops.mgmt.has.HASContextNative.allocHASContext(Native Method)
   at oracle.ops.mgmt.has.HASContext.<init>(HASContext.java:109)
   at oracle.ops.mgmt.has.HASContext.getInstance(HASContext.java:237)
   at oracle.ops.mgmt.has.ClusterUtil.<init>(ClusterUtil.java:60)
   at oracle.sysman.assistants.util.hasi.HAUtils.<init>(HAUtils.java:201)
   at oracle.sysman.assistants.util.hasi.HAUtils.getInstance(HAUtils.java:228)
   at oracle.sysman.assistants.util.NetworkUtils.getOneLocalListenerProtocolAddress(NetworkUtils.java:2982)
   at oracle.sysman.assistants.util.NetworkUtils.getOneLocalListenerProtocolAddress(NetworkUtils.java:2961)
   at oracle.sysman.assistants.util.NetworkUtils.getLocalListenerAddressForPort(NetworkUtils.java:1210)
   at oracle.sysman.assistants.util.NetworkUtils.getLocalListenerAddress(NetworkUtils.java:1193)
   at oracle.sysman.assistants.util.NetworkUtils.getLocalListenerAddresses(NetworkUtils.java:1247)
   at oracle.sysman.assistants.util.NetworkUtils.needLocalListener(NetworkUtils.java:1169)
   at oracle.sysman.assistants.util.step.StepContext.setListenersToUpdate(StepContext.java:856)
   at oracle.sysman.assistants.util.step.StepContext.<init>(StepContext.java:319)
   at oracle.sysman.assistants.dbca.backend.Host.<init>(Host.java:778)
   at oracle.sysman.assistants.dbca.backend.SilentHost.<init>(SilentHost.java:144)
   at oracle.sysman.assistants.dbca.Dbca.getHost(Dbca.java:154)
   at oracle.sysman.assistants.dbca.Dbca.execute(Dbca.java:112)
   at oracle.sysman.assistants.dbca.Dbca.main(Dbca.java:184)



Fix:-

Modify as root user → local_only variable in /etc/oracle/ocr.loc or /var/opt/oracle/ocr.loc set to FALSE

[root@collabn1 ~]# vi /etc/oracle/ocr.loc

Before:
[oracle@collabn1 has]$ cat /etc/oracle/ocr.loc
#Device/file +DATA getting replaced by device +DATA/collabn-cluster/OCRFILE/registry.255.886591195
ocrconfig_loc=+DATA/collabn-cluster/OCRFILE/registry.255.886591195
local_only=false


After:
[oracle@collabn1 has]$ cat /etc/oracle/ocr.loc
#Device/file +DATA getting replaced by device +DATA/collabn-cluster/OCRFILE/registry.255.886591195
ocrconfig_loc=+DATA/collabn-cluster/OCRFILE/registry.255.886591195
local_only=true

No comments: