7 Mart 2013 Perşembe

LsInventory: OPatch Exception while accessing O2O



Problem:

bash-4.2$ opatch lsinventory

Oracle Interim Patch Installer version 1.0.0.0.57
Copyright (c) 2007 Oracle Corporation. All Rights Reserved..

We recommend you refer to the OPatch documentation under
OPatch/docs for usage reference. We also recommend using
the latest OPatch version. For the latest OPatch version
and other support related issues, please refer to document
293369.1 which is viewable from metalink.oracle.com

Oracle Home           : /appdata/data_appl/apps/tech_st/10.1.2
Oracle Home Inventory : /appdata/data_appl/apps/tech_st/10.1.2/inventory
Central Inventory     : /appdata/data_appl/inst/apps/BRLTEST_testburlaapp/admin/oraInventory
   from               : /etc/oraInst.loc
OUI location          : /appdata/data_appl/apps/tech_st/10.1.2/oui
OUI shared library    : /appdata/data_appl/apps/tech_st/10.1.2/oui/lib/ibm_aix/liboraInstaller.so
Java location         : /appdata/data_appl/apps/tech_st/10.1.2/jre/1.4.2/bin/java
Log file location     : /appdata/data_appl/apps/tech_st/10.1.2/.patch_storage/<patch ID>/*.log

Creating log file "/appdata/data_appl/apps/tech_st/10.1.2/.patch_storage/LsInventory__03-07-2013_10-27-38.log"

Result:

LsInventory: OPatch Exception while accessing O2O


OPATCH_JAVA_ERROR  : An exception of type "OPatchException" has occurred:
OPatch Exception:
  OUI found no such ORACLE_HOME set in the environment
  Can not get details for given Oracle Home
  An exception occurs
  null


There is no Interim Patch



OPATCH_JAVA_ERROR  : An exception of type "OPatchException" has occurred:
Can not get a list of inventory on this home.

ERROR: OPatch failed because of Inventory problem.


Solution:


cd $ORACLE_HOME/appsutil/clone
perl ouicli.pl

Then OPatch succeeded.

Ref:
How To Create, Update or Rebuild The Central Inventory For Oracle Applications EBS R12 [ID 742477.1]