Home > Patching, TroubleShooting > OPatch failed with error code 73

OPatch failed with error code 73

Yesterday, I installed CRS PSU 9294495 ( 11.1.0.7.4). I successfully installed on the first node. I got failed on the second node since the opatch got the message: OPatch failed with error code 73.

I turned on OPATCH_DEBUG ( =true), we got details error below.

Registering the caller : OPatch
OracleHomeInventory::createInventoryObj() gets OUIInstallAreaControl object
OracleHomeInventory::createInventoryObj() gets OUIInstallInventory object
OracleHomeInventory::createInventoryObj() gets OUIOracleHomeInfo object
   OracleHomeInfo::lock() fails, and there is no retry supported.
OracleHomeInventory::createInventoryObj() gets a null OUIOracleHomeInfo object
OracleHomeInventory::createInventoryObj() tries to print a list of Oracle Homes on this system
OracleHomeInventory::createInventoryObj() Your Oracle Home path: "/opt/oracle/product/11g/crs"
List of Homes on this system:

  Home name= oracle_11ghome, Location= "/opt/oracle/product/11g"
OracleHomeInventory::createInventoryObj() construction done
LsInventory::loadAndPrintInventory()
Retrieving inventory from Oracle Home...
OracleHomeInventory::load()
Inventory load failed... OPatch cannot load inventory for the given Oracle Home.
Possible causes are:
   Oracle Home dir. path does not exist in Central Inventory
   Oracle Home is a symbolic link
   Oracle Home inventory is corrupted
Locker::release()
OUISessionManager::unRegister()
Un-Registering the caller : OPatch
LsInventory::getInstance() returns
LsInventorySession failed: OracleHomeInventory gets null oracleHomeInfo
Cleaning up the directory : "/opt/oracle/product/11g/crs/.patch_storage/patch_unzip"...

OPatch failed with error code 73

1. It showed that opatch failure may caused by inventory. Then I compared the inventory on both nodes, I found the inventory.xml is not same.

At node 1:
ls -l /opt/oracle/product/oraInventory/ContentsXML
total 6
-rw-rw----   1 oracle   dba          260 Dec  4 22:51 comps.xml
-rw-rw----   1 oracle   dba          683 May  5  2009 inventory.xml
-rw-rw----   1 oracle   dba          270 Dec  4 22:51 libs.xml

At node 2: 
$  ls -l /opt/oracle/product/oraInventory/ContentsXML
total 8
-rw-r--r--   1 oracle   dba          260 Dec  5 00:50 comps.xml
-rw-r--r--   1 oracle   dba          495 Dec  4 23:48 inventory.xml
-rw-r--r--   1 oracle   dba          270 Dec  5 00:50 libs.xml

2. Compare the contents of them, I found that there was missing CRS Home List in node 2 inventory. 

At node 1:

$ cat inventory.xml
<?xml version="1.0" standalone="yes" ?>
<!-- Copyright (c) 1999, 2006, Oracle. All rights reserved. -->
<!-- Do not modify the contents of this file by hand. -->
<INVENTORY>
<VERSION_INFO>
 <SAVED_WITH>11.1.0.6.0</SAVED_WITH>
 <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
</VERSION_INFO>
<HOME_LIST>
<HOME NAME="OraCrs11g_home" LOC="/opt/oracle/product/11g/crs" TYPE="O" IDX="1" CRS="true">
 <NODE_LIST>
 <NODE NAME="qapdb01"/>
 <NODE NAME="qapdb03"/>
 </NODE_LIST>
</HOME>
<HOME NAME="OraDb11g_home1" LOC="/opt/oracle/product/11g" TYPE="O" IDX="2">
 <NODE_LIST>
 <NODE NAME="qapdb01"/>
 <NODE NAME="qapdb03"/>
 </NODE_LIST>
</HOME>
</HOME_LIST>
</INVENTORY>

At node 2:
$ cat inventory.xml
<?xml version="1.0" standalone="yes" ?>
<!-- Copyright (c) 1999, 2008, Oracle. All rights reserved. -->
<!-- Do not modify the contents of this file by hand. -->
<INVENTORY>
<VERSION_INFO>
 <SAVED_WITH>11.1.0.7.0</SAVED_WITH>
 <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
</VERSION_INFO>
<HOME_LIST>
<HOME NAME="oracle_11ghome" LOC="/opt/oracle/product/11g" TYPE="O" IDX="1">
 <NODE_LIST>
 <NODE NAME="qapdb01"/>
 <NODE NAME="qapdb03"/>
 </NODE_LIST>
</HOME>
</HOME_LIST>
</INVENTORY>

Fixed

I copy the inventory.xml at node 1 to node 2. It worked.
 











Advertisements
Categories: Patching, TroubleShooting
  1. OWB_User
    October 6, 2011 at 1:35 pm

    Thanks for this solution.

    I hat a similar problem with a patch of the Windows-Client (OWB 11.2.0.2).
    The OWB-Home-Entry in the File inventory.xml was missing.

    After putting OWB-Home-Entry in, it worked!

    • September 25, 2013 at 8:33 am

      Welcome

  2. Raj
    September 24, 2013 at 1:55 pm

    Excellent post.
    Your instructions worked like Charm.
    Thank You.
    —Rajorshi

  1. No trackbacks yet.

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

%d bloggers like this: