Friday, September 26, 2014

OUI-67028:Inventory load failed... OPatch cannot load inventory for the given Oracle Home


Error:

[Sep 26, 2014 9:30:25 AM]    Patch history file: /app/oracle/product/11.2.0.4/cfgtoollogs/opatch/opatch_history.txt
[Sep 26, 2014 9:30:25 AM]    Starting LsInventorySession at Fri Sep 26 09:30:25 PDT 2014
[Sep 26, 2014 9:30:25 AM]    List of Homes on this system:
[Sep 26, 2014 9:30:25 AM]    OUI-67028: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
[Sep 26, 2014 9:30:25 AM]    OUI-67073:LsInventorySession failed: OracleHomeInventory gets null oracleHomeInfo
[Sep 26, 2014 9:30:25 AM]    Finishing LsInventorySession at Fri Sep 26 09:30:25 PDT 2014


Solution

Step 1. Check the oraInst.loc file
cat /etc/oraInst.loc
inventory_loc=/app/oracle/product/11.2.0.4/oraInst.loc
inst_group=dba

Check the inventory is exist in the location and in file entries in particular sequence

Step 2. If first step is ok, Then you need to register the Oracle Home in the inventory

# cd $ORACLE_HOME/oui/bin
# ./attachHome.sh

or

# cd $ORACLE_HOME/oui/bin
#./runInstaller -silent -attachHome -invPtrLoc /app/oracle/product/11.2.0.4/oraInst.loc ORACLE_HOME=$ORACLE_HOME ORACLE_HOME_NAME=ORAHOME11Gr24

Starting Oracle Universal Installer...
Checking swap space: must be greater than 500 MB.   Actual 153840 MB    Passed
The inventory pointer is located at /app/oracle/product/11.2.0.4/oraInst.loc
The inventory is located at /app/oracle/product/oraInventory
'AttachHome' was successful.
DBA
oracle@dba:/app/oracle/product/11.2.0.4/oui/bin[31] cd ..


Check the inventory file.

DBA oracle@dba:/app/oracle/product/oraInventory/ContentsXML[30] cat inventory.xml


DBA
oracle@dba:/app/oracle/product/oraInventory/ContentsXML[31]

No comments:

Post a Comment