PRCT-1011 : Failed to run "oifcfg" (Doc ID 1380183.1)

lhrbest發表於2020-05-07

PRCT-1011 : Failed to run "oifcfg" (Doc ID 1380183.1)


In this Document

Purpose
Scope
Details
Issue#1 - Wrong ORA_NLS10 Setting
--- Symptoms ---
--- Solution ---
Issue#2 - BUG 20598625 - CLUVFY: PRCT-1011 : FAILED TO RUN "OIFCFG". DETAILED ERROR: NULL
--- Symptoms ---
--- Solution ---
Issue#3 - Incorrect Network Setting in OCR
--- Symptoms ---
--- Solution ---
References

APPLIES TO:

Oracle Database - Enterprise Edition - Version 11.2.0.1 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Information in this document applies to any platform.

PURPOSE

This note lists known issues, workarounds and solutions for error: PRCT-1011 : Failed to run "oifcfg"

SCOPE

 

DETAILS

Issue#1 - Wrong ORA_NLS10 Setting

--- Symptoms ---

11gR2 runInstaller fails:

  • OUI log
SEVERE: [FATAL] An internal error occurred within cluster verification framework
Unable to obtain network interface list from Oracle Clusterware PRCT-1011 : Failed to run "oifcfg". Detailed error: null.
Refer associated stacktrace #oracle.install.commons.util.exception.DefaultErrorAdvisor:1368
..
INFO: Advice is ABORT
SEVERE: Unconditional Exit
  • Call stack
---# Begin Stacktrace #---------------------------
ID: oracle.install.commons.util.exception.DefaultErrorAdvisor:1368
oracle.cluster.verification.VerificationException: An internal error occurred within cluster verification framework
Unable to obtain network interface list from Oracle ClusterwarePRCT-1011 : Failed to run "oifcfg". Detailed error: null
at oracle.cluster.verification.ClusterVerification.getPreReqTasksForDBInst(ClusterVerification.java:528)
at oracle.install.ivw.db.action.PrereqAction.getProductVerificationTasks(PrereqAction.java:115)
at oracle.install.commons.base.interview.common.action.AbstractPrereqAction.execute(AbstractPrereqAction.java:86)
at oracle.install.commons.flow.AbstractFlowExecutor.startAction(AbstractFlowExecutor.java:361)
....
at java.lang.Thread.run(Thread.java:811)

---# End Stacktrace #-----------------------------
  • SRVM trace
[pool-1-thread-1] [ 2011-11-21 13:54:01.314 EST ] [RuntimeExec.runCommand:77]  /ocw/grid/bin/ oifcfg getif
[Thread-230] [ 2011-11-21 13:54:01.382 EST ] [StreamReader.run:61]  In StreamReader.run
[Thread-231] [ 2011-11-21 13:54:01.382 EST ] [StreamReader.run:61]  In StreamReader.run
[pool-1-thread-1] [ 2011-11-21 13:54:01.381 EST ] [RuntimeExec.runCommand:142]  runCommand: Waiting for the process
[Thread-230] [ 2011-11-21 13:54:01.914 EST ] [StreamReader.run:65]  OUTPUT>
[Thread-230] [ 2011-11-21 13:54:01.915 EST ] [StreamReader.run:65]  OUTPUT>  Failed to initialize GPnP
[pool-1-thread-1] [ 2011-11-21 13:54:01.927 EST ] [RuntimeExec.runCommand:144]  runCommand: process returns 1
..
[pool-1-thread-1] [ 2011-11-21 13:54:01.932 EST ] [CmdToolUtil.doexecute:473]  nativeSystem.runRemoteExecCmd failed. Command = /ocw/grid/bin/oifcfg arguments = [getif] env = null error = null
[pool-1-thread-1] [ 2011-11-21 13:54:01.934 EST ] [TaskFactory.getNetIfFromOifcfg:3522]  INSTALLEXCEPTION:  cannot obtain cluster interface information.

 

  • oifcfg getif output as 11gR2 installation user:
/ocw/grid/bin/oifcfg getif
Failed to initialize GPnP

--- Solution ---

Either unset ORA_NLS10 or set it to correct location before starting OUI:

unset ORA_NLS10

OR

export ORA_NLS10=$GRID_HOME/nls/data


Refer to  Note 1050472.1 for more details.

Issue#2 - BUG 20598625 - CLUVFY: PRCT-1011 : FAILED TO RUN "OIFCFG". DETAILED ERROR: NULL

--- Symptoms ---

cluvfy fails if GI is down:

  • CVU output

Checking user equivalence...

Check: User equivalence for user "grid"
Node Name Status 
------------------------------------ ------------------------
racnode2 passed 
racnode1 passed 
Result: User equivalence check passed for user "grid"

ERROR: 
Unable to obtain network interface list from Oracle ClusterwarePRCT-1011 : Failed to run "oifcfg". Detailed error: null
Verification cannot proceed

  • CVU/SRVM trace

[31928@adprod2] [main] [ 2015-01-31 03:38:55.038 AST ] [RuntimeExec.runCommand:77] /u01/app/11.2.0/grid/bin/oifcfg getif -from gpnp 
[31928@adprod2] [Thread-70] [ 2015-01-31 03:38:55.048 AST ] [StreamReader.run:61] In StreamReader.run 
[31928@adprod2] [main] [ 2015-01-31 03:38:55.048 AST ] [RuntimeExec.runCommand:142] runCommand: Waiting for the process
[31928@adprod2] [Thread-71] [ 2015-01-31 03:38:55.048 AST ] [StreamReader.run:61] In StreamReader.run 
[31928@adprod2] [Thread-70] [ 2015-01-31 03:38:58.143 AST ] [StreamReader.run:65] OUTPUT>PRIF-10: failed to initialize the cluster registry
[31928@adprod2] [main] [ 2015-01-31 03:38:58.145 AST ] [RuntimeExec.runCommand:144] runCommand: process returns 1
[31928@adprod2] [main] [ 2015-01-31 03:38:58.146 AST ] [RuntimeExec.runCommand:161] RunTimeExec: output>
[31928@adprod2] [main] [ 2015-01-31 03:38:58.146 AST ] [RuntimeExec.runCommand:164] PRIF-10: failed to initialize the cluster registry
[31928@adprod2] [main] [ 2015-01-31 03:38:58.146 AST ] [RuntimeExec.runCommand:170] RunTimeExec: error>
[31928@adprod2] [main] [ 2015-01-31 03:38:58.147 AST ] [RuntimeExec.runCommand:192] Returning from RunTimeExec.runCommand
[31928@adprod2] [main] [ 2015-01-31 03:38:58.147 AST ] [UnixSystem.dorunRemoteExecCmd:3232] retval = 1
[31928@adprod2] [main] [ 2015-01-31 03:38:58.148 AST ] [CmdToolUtil.doexecute:474] nativeSystem.runRemoteExecCmd failed. Command = /u01/app/11.2.0/grid/bin/oifcfg arguments = [getif, -from, gpnp] env = null error = null
[31928@adprod2] [main] [ 2015-01-31 03:38:58.225 AST ] [TaskFactory.getNetIfFromOifcfg:3587] INSTALLEXCEPTION: cannot obtain cluster interface information.
[31928@adprod2] [main] [ 2015-01-31 03:38:58.236 AST ] [ReportUtil.printReportFooter:1626] stageMsgID: cluster services setup

 

  • oifcfg getif output as 11gR2 installation user:
/ocw/grid/bin/oifcfg getif
PRIF-10: failed to initialize the cluster registry

--- Solution ---

Request/apply  patch 20598625 if there's an impact.

 

Issue#3 - Incorrect Network Setting in OCR

--- Symptoms ---

11gR2 runInstaller error:

  • OUI reports INS-20802 as CVU post installation check fails
  • installation log or CVU error
Result: User equivalence check passed for user "grid"

ERROR: 
Unable to obtain network interface list from Oracle Clusterware PRCT-1011 : Failed to run "oifcfg". Detailed error: null
Verification cannot proceed

  • oifcfg getif output
oifcfg getif 
PROC-4: The cluster registry key to be operated on does not exist. 
PRIF-11: cluster registry error

 

--- Solution ---

In this example, eth1 is the private network and eth3 is the public network.

2.1. As root, execute the following to generate an ocr dump file:

# $GRID_HOME/bin/ocrdump /tmp/dump.ocr1

2.2. As root, find out all network information in the OCR:

# grep 'css.interfaces' /tmp/dump.ocr1 | awk -F \] '{print $1}' | awk -F \. '{print $5}' | sort -u
eth1
eth3

2.3. As grid user, find out the network information at OS level

$ $GRID_HOME/bin/oifcfg iflist -p -n
..
eth1  <SUBNET IP1>  PRIVATE  255.255.255.128
eth1  <HAIP SUBNET IP 169.254.x.x> UNKNOWN  255.255.192.0
..
eth3  <SUBNET IP3> PRIVATE  255.255.255.128

Note: HAIP (169.254.x.x) should be ignored in the output

2.4. As root, remove network info from OCR:

# $GRID_HOME/bin/oifcfg delif -global eth1 -force
# $GRID_HOME/bin/oifcfg delif -global eth3 -force

If failure PRIF-31 encountered, ignord it

2.5. As grid user, set network info in OCR:

$ $GRID_HOME/bin/oifcfg setif -global eth1/<SUBNET IP1>:cluster_interconnect
$ $GRID_HOME/bin/oifcfg setif -global eth3/<SUBNET IP2>:public

2.6. As grid user, confirm the change:

$ $GRID_HOME/bin/oifcfg getif
eth1  <SUBNET IP1> global  cluster_interconnect
eth3  <SUBNET IP2> global  public

 

REFERENCES

NOTE:1056322.1  - Troubleshoot Grid Infrastructure/RAC Database installer/runInstaller Issues
NOTE:1050472.1  - Failed to initialize GPnP Reported While Executing oifcfg





About Me

........................................................................................................................

● 本文作者:小麥苗,部分內容整理自網路,若有侵權請聯絡小麥苗刪除

● 本文在itpub、部落格園、CSDN和個人微 信公眾號( DB寶)上有同步更新

● 本文itpub地址: http://blog.itpub.net/26736162

● 本文部落格園地址: http://www.cnblogs.com/lhrbest

● 本文CSDN地址: https://blog.csdn.net/lihuarongaini

● 本文pdf版、個人簡介及小麥苗雲盤地址: http://blog.itpub.net/26736162/viewspace-1624453/

● 資料庫筆試面試題庫及解答: http://blog.itpub.net/26736162/viewspace-2134706/

● DBA寶典今日頭條號地址: http://www.toutiao.com/c/user/6401772890/#mid=1564638659405826

........................................................................................................................

● QQ群號: 230161599 、618766405

● 微 信群:可加我微 信,我拉大家進群,非誠勿擾

● 聯絡我請加QQ好友 646634621 ,註明新增緣由

● 於 2020-05-01 06:00 ~ 2020-05-30 24:00 在西安完成

● 最新修改時間:2020-05-01 06:00 ~ 2020-05-30 24:00

● 文章內容來源於小麥苗的學習筆記,部分整理自網路,若有侵權或不當之處還請諒解

● 版權所有,歡迎分享本文,轉載請保留出處

........................................................................................................................

小麥苗的微店https://weidian.com/s/793741433?wfr=c&ifr=shopdetail

小麥苗出版的資料庫類叢書http://blog.itpub.net/26736162/viewspace-2142121/

小麥苗OCP、OCM、高可用網路班http://blog.itpub.net/26736162/viewspace-2148098/

小麥苗騰訊課堂主頁https://lhr.ke.qq.com/

........................................................................................................................

使用 微 信客戶端掃描下面的二維碼來關注小麥苗的微 信公眾號( DB寶)及QQ群(DBA寶典)、新增小麥苗微 信, 學習最實用的資料庫技術。

........................................................................................................................

歡迎與我聯絡

 

 



來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26736162/viewspace-2690247/,如需轉載,請註明出處,否則將追究法律責任。

相關文章