I renamed my oracle home /apps/ebs/product/oa11idev/12.1.0.2
I ran the opatch lsinventory
List of homes on this system:
Home name= OraDB12Home6, Location= "/apps/ebs/product/12.1.0.2"
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.
Action:
under my central inventory ContentsXML/inventory.xml, I added my new inventory home.
save the file.
$ opatch lsinventory
...
......
oracle Database 12c 12.1.0.2.0
There are 1 products installed in this Oracle Home.
There are no Interim patches installed in this Oracle Home.
--------------------------------------------------------------------------------
opatch napply -skip_subset -skip_duplicate
Oracle Interim Patch Installer version 11.2.0.3.4
Copyright (c) 2012, Oracle Corporation. All rights reserved.
Oracle Home : /apps/ebs/product/oa11its/db11g/11.2.0.4
Central Inventory : /apps/ebsoraInventory
from : /apps/ebs/product/oa11its/db11g/11.2.0.4/oraInst.loc
OPatch version : 11.2.0.3.4
OUI version : 11.2.0.4.0
Log file location : /apps/ebs/product/oa11its/db11g/11.2.0.4/cfgtoollogs/opatch/opatch2016-04-25_15-11-54PM_1.log
List of Homes on this system:
Home name= PRO0TS, Location= "/apps/ebsproduct/oa11its/db11g/11.2.0.3"
OPatchSession cannot load inventory for the given Oracle Home /apps/ebs/product/oa11its/db11g/11.2.0.4. Possible causes are:
No read or write permission to ORACLE_HOME/.patch_storage
Central Inventory is locked by another OUI instance
No read permission to Central Inventory
The lock file exists in ORACLE_HOME/.patch_storage
The Oracle Home does not exist in Central Inventory
UtilSession failed: OracleHomeInventory gets null oracleHomeInfo
Log file location: /apps/ebs/product/oa11its/db11g/11.2.0.4/cfgtoollogs/opatch/opatch2016-04-25_15-11-54PM_1.log
OPatch failed with error code 73
/apps/ebs/product/oa11its/db11g/11.2.0.4 this home was corrupted.
solution:
go to your inventory location .eg /apps/OraInventory/ContentsXML
take copy of inventory.xml file.
remove the previous home from xml file and save.
go to /apps/ebs/product/oa11its/db11g/11.2.0.4/oui/bin
./runInstaller -ignoreSysPrereqs -attachHome ORACLE_HOME="/apps/ebs/product/oa11its/db11g/11.2.0.4" ORACLE_HOME_NAME="SID"
test opatch lsinventory