«

»

Print this Post

OPatch error: “Inventory load failed… OPatch cannot load inventory for the given Oracle Home

trying to do an opatch lsinventory and it’s giving your problems? perhaps like the one below:

 

Oracle Interim Patch Installer version 11.1.0.9.0
Copyright (c) 2011, Oracle Corporation.  All rights reserved.


Oracle Home       : /u01/app/oracle_fmw/Oracle_SOA1
Central Inventory : /u01/app/oraInventory
   from           : /u01/app/oracle_fmw/Oracle_SOA1/oraInst.loc
OPatch version    : 11.1.0.9.0
OUI version       : 11.1.0.9.0
OUI location      : /u01/app/oracle_fmw/Oracle_SOA1/oui
Log file location : /u01/app/oracle_fmw/Oracle_SOA1/cfgtoollogs/opatch/opatch2014-01-01_01-01-00AM_1.log

Patch history file: /u01/app/oracle_fmw/Oracle_SOA1/cfgtoollogs/opatch/opatch_history.txt


OPatch detects the Middleware Home as "/u01/app/oracle_fmw"

List of Homes on this system:
  ...
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
LsInventorySession failed: OracleHomeInventory gets null oracleHomeInfo

OPatch failed with error code 73

 

the cause: it’s probably because the ORACLE_HOME is not registered in the Central Inventory (also known as the oraInventory)

 

fix it! by attaching the ORACLE_HOME information to the existing Central Inventory

$ORACLE_HOME/oui/bin/attachHome.sh

About devnumbertwo

IT consultant, software developer, technical writer, nba basketball spectator, tea (and occasionally coffee) drinker, cheese enthusiast, dog lover, and a person who once spotted heather locklear at the mall. chiggity check me out on twitter and
OPatch error: “Inventory load failed… OPatch cannot load inventory for the given Oracle Home was last modified: October 31st, 2014 by devnumbertwo

Permanent link to this article: http://devnumbertwo.com/opatch-cannot-load-inventory-for-the-given-oracle-home/