Friday, December 8, 2017

OPATCH_JAVA_ERROR : An exception of type "OPatchException" has occurred

When trying to apply opatch on Oracle Apps Tier faced the following Issue. The Issue exactly occured when trying to run opatch lsinventory

Error:

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.


Exact Scenario:

bash-3.00$ 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           : /t02/d02/DEV/apps/tech_st/10.1.2
Oracle Home Inventory : /t02/d02/DEV/apps/tech_st/10.1.2/inventory
Central Inventory     : /etc/oraInventory
   from               : /etc/oraInst.loc
OUI location          : /t02/d02/DEV/apps/tech_st/10.1.2/oui
OUI shared library    : /t02/d02/DEV/apps/tech_st/10.1.2/oui/lib/ibm_aix/liboraInstaller.so
Java location         : /t02/d02/DEV/apps/tech_st/10.1.2/jre/1.4.2/bin/java
Log file location     : /t02/d02/DEV/apps/tech_st/10.1.2/.patch_storage/<patch ID>/*.log

Creating log file "/t02/d02/DEV/apps/tech_st/10.1.2/.patch_storage/LsInventory__12-08-2017_16-14-57.log"

Result:


Creating log file "/t02/d02/DEV/apps/tech_st/10.1.2/.patch_storage/LsInventory__12-08-2017_15-57-15.log"


Accessing inventory ... (retry 10 times, delay 30 seconds each time)

Invoking command "/t02/d02/DEV/apps/tech_st/10.1.2/jre/1.4.2/bin/java -classpath "/t02/d02/DEV/apps/tech_st/10.1.2/oui/jlib/OraInstaller.jar:/t02/d02/DEV/apps/tech_st/1
0.1.2/oui/jlib/srvm.jar:/t02/d02/DEV/apps/tech_st/10.1.2/OPatch/jlib/opatch.jar:/t02/d02/DEV/apps/tech_st/10.1.2/oui/jlib/xmlparserv2.jar:/t02/d02/DEV/apps/tech_st/10.1
.2/oui/jlib/share.jar"    -Doracle.installer.invPtrLoc=/etc/oraInst.loc -Dopatch.retry=10 -Dopatch.delay=30  opatch/LsInventory "/t02/d02/DEV/apps/tech_st/10.1.2/oui" "
/t02/d02/DEV/apps/tech_st/10.1.2" opatch.pl 1.0.0.0.57 FALSE FALSE FALSE /etc/oraInst.loc"
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:

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

'opatch lsinventory -detail' is Failing With Error "OPatch failed because of Inventory problem" (Doc ID 2019997.1)

1. cd /test/apps/tech_st/10.1.2/appsutil/clone
2. $ perl ouicli.pl
3. Retest the issue


Ref : http://newtoappsdba.blogspot.in/2012/06/opatchjavaerror-exception-of-type.html

No comments:

Post a Comment

IAS Cache initialization failed

 Today I faced an Issue in R12.2 instance. The solution I followed to overcome the issue is very simple, but they are more than one solution...