OPatch error: “Inventory load failed… OPatch cannot load inventory for the given Oracle Home
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