Error:
=====
opatch lsinventory
Oracle Interim Patch Installer version 11.2.0.3.12
Copyright (c) 2017, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/product/11.2.0.4/db_1
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/11.2.0.4/db_1/oraInst.loc
OPatch version : 11.2.0.3.12
OUI version : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0.4/db_1/cfgtoollogs/opatch/optch2017-08-30_17-34-07PM_1.log
Inventory load failed... OPatch cannot load inventory for the given Oracle Home
LsInventorySession failed: Unable to create patchObject
Possible causes are:
ORACLE_HOME/inventory/oneoffs/23054359 is corrupted. PatchObject constructor Input file "/u01/app/oracle/product/11.2.0.4/db_1/inventory/oneoffs/23054359/ec/config/actions" or "/u01/app/oracle/product/11.2.0.4/db_1/inventory/oneoffs/2054359/etc/config/inventory" does not exist.
OPatch failed with error code 73
Cause:
======
Patch construction input file not exists.
Inventory load failed... OPatch cannot load inventory for the given Oracle Home.
LsInventorySession failed: Unable to create patchObject
Possible causes are:
ORACLE_HOME/inventory/oneoffs/22502456 is corrupted. PatchObject constructor: Input file "/u01/app/oracle/product/11.2.0.4/db_1/inventory/oneoffs/22502456/etc/config/actions" or "/u01/app/oracle/product/11.2.0.4/db_1/inventory/oneoffs/22502456/etc/config/inventory" does not exist.
Locker::release()
OUISessionManager::unRegister()
Un-Registering the caller : OPatch
==> OUIInventorySession::endSession(): Process ID: 13540. Thread ID: 1
OPatch failed with error code 73
Non-RAC or RAC Solution:
=========================
Backup the existing central inventory.
2. Detach all the existing Oracle Homes from central inventory.
cd $ORACLE_HOME/oui/bin
./runInstaller -silent -ignoreSysPrereqs -detachHome ORACLE_HOME="/u01/app/oracle/product/11.2.0.4/db_1" ORACLE_HOME_NAME="OraDb11g_home2"
If this operation is successful,
3. Attach all existing Oracle Homes again to the default central inventory.
cd $ORACLE_HOME/oui/bin
./runInstaller -silent -ignoreSysPrereqs -attachHome ORACLE_HOME="/u01/app/oracle/product/11.2.0.4/db_1" ORACLE_HOME_NAME="OraDb11g_home2"
Other Possible RAC Solution:
=====================
copy the affected folder from the other node then the issue will get resolved.
Error:
====
opatch lsinventory
Oracle Interim Patch Installer version 11.2.0.3.12
Copyright (c) 2017, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/product/11.2.0.4/db_1
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/11.2.0.4/db_1/oraInst.loc
OPatch version : 11.2.0.3.12
OUI version : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0.4/db_1/cfgtoollogs/opatch/optch2017-08-30_17-34-07PM_1.log
Inventory load failed... OPatch cannot load inventory for the given Oracle Home
LsInventorySession failed: Unable to create patchObject
Possible causes are:
ORACLE_HOME/inventory/oneoffs/23054359 is corrupted. PatchObject constructor Input file "/u01/app/oracle/product/11.2.0.4/db_1/inventory/oneoffs/23054359/ec/config/actions" or "/u01/app/oracle/product/11.2.0.4/db_1/inventory/oneoffs/2054359/etc/config/inventory" does not exist.
OPatch failed with error code 73
Copy the File:
==========
Second node:
cd /u01/app/oracle/product/11.2.0.4/db_1/inventory/oneoffs/
scp -rp 23054359/ oracle@xxxxxxxxxxx:/u01/app/oracle/product/11.2.0.4/db_1/inventory/oneoffs/
Check the Inventory again:
====================
opatch lsinventory
Oracle Interim Patch Installer version 11.2.0.3.12
Copyright (c) 2017, Oracle Corporation. All rights reserved.
Oracle Home : /u01/app/oracle/product/11.2.0.4/db_1
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/11.2.0.4/db_1/oraInst.loc
OPatch version : 11.2.0.3.12
OUI version : 11.2.0.4.0
Log file location : /u01/app/oracle/product/11.2.0.4/db_1/cfgtoollogs/opatch/optch2017-08-30_17-41-09PM_1.log
Lsinventory Output file location : /u01/app/oracle/product/11.2.0.4/db_1/cfgtoologs/opatch/lsinv/lsinventory2017-08-30_17-41-09PM.txt
-------------------------------------------------------------------------------
Local Machine Information::
Hostname: xxxxxxxxxxxx
ARU platform id: 226
ARU platform description:: Linux x86-64
Installed Top-level Products (1):
Oracle Database 11g 11.2.0.4.0
There are 1 products installed in this Oracle Home.
Interim patches (4) :
Patch 25869727 : applied on Wed Aug 30 15:50:33 EDT 2017
Unique Patch ID: 21364644
Patch description: "Database Patch Set Update : 11.2.0.4.170718 (25869727)"
Created on 21 Jun 2017, 01:40:19 hrs PST8PDT