Tuesday, June 21, 2011

OPatch failed with error code 73 :Inventory load failed... OPatch cannot load inventory for the given Oracle Home.

Visit the Below Website to access unlimited exam questions for all IT vendors and Get Oracle Certifications for FREE
http://www.free-online-exams.com
Problem Description: After successfully cloning of ERP DB and ERP Instance, inventory was not found


/var/opt/oracle/oraInst.loc was not exists before the clone


oratest@erptest$ ./opatch lsinventory -invPtrLoc /oracle/aderptest/10.2.0/oraInst.loc
Invoking OPatch 10.2.0.3.4

Oracle Interim Patch Installer version 10.2.0.3.4
Copyright (c) 2007, Oracle Corporation. All rights reserved.


Oracle Home : /oracle/aderptest/10.2.0
Central Inventory : /oracle/aderptest/10.2.0/admin/oui/adtst_erptest/oraInventory
from : /oracle/aderptest/10.2.0/oraInst.loc
OPatch version : 10.2.0.3.4
OUI version : 10.2.0.3.0
OUI location : /oracle/aderptest/10.2.0/oui
Log file location : /oracle/aderptest/10.2.0/cfgtoollogs/opatch/opatch2010-08-31_09-32-04AM.log

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

OPatch failed with error code 73


Explanation:


As the central inventory needs to exist it needs to be recreated, without this inventory it is not possible to install any patch.


as per ID 742477.1
Procedure 1: Adding an Oracle Home using ouicli.pl
This procedure will make the Oracle Home(s) match its/their current environment and register it/them in the Central Inventory. The ouicli.pl is normally also executed by the Rapid Clone procedure. For more information about Rapid Clone please check Note 406982.1 - "Cloning Oracle Applications Release 12 with Rapid Clone".

As ouicli.pl should be normall run with the post clone and as my operating system user "oracle" has no write access on /var/opt ,could be source of the issue?





Solution:


recreate the inventory using: Note 742477.1 - How to create, update or rebuild the Central Inventory for Applications R12 


If /var/opt/oracle/oraInst.loc does not exist you can create this directory and file with the following contents: The contents should look like this:

inventory_loc=/oracle/oraInventory

where:

/oracle/oraInventory points to the directory where the central inventory is to be located and must be writable by the owner of the oracle files and the application files.


The Central inventory can be created as follows: Note 742477.1 - How to create, update or rebuild the Central Inventory for Applications R12 





Prior the rapidclone you can create this directory and file with the following contents: The contents should look like this:

inventory_loc=/oracle/oraInventory

where:

/oracle/oraInventory points to the directory where the central inventory is to be located and must be writable by the owner of the oracle files and the application files.





References:
Note 603104.1 - Troubleshooting RapidClone issues with Oracle Applications R12 


Create a new inventory using: Note 742477.1 - How to create, update or rebuild the Central Inventory for Applications R12 be sure when creating the -invPtrLoc
Get Oracle Certifications for all Exams
Free Online Exams.com

No comments: