Sunday, May 28, 2017

OPATCH_JAVA_ERROR : An exception of type "OPatchException" has occurred - 10.1.2 Home in EBS R12

OPATCH_JAVA_ERROR : An exception of type "OPatchException" has occurred - 10.1.3 Home in EBS R12


Error Stack  from "opatch lsinvenory":

[oracle@oracle[test/apps/10.1.3]#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           : test/apps
Oracle Home Inventory : test/apps/inventory
Central Inventory     : test/apps/inventory
from                  : /etc/oraInst.loc
OUI location          : test/apps/oui
OUI shared library    : test/apps/oui/lib/ibm_aix/liboraInstaller.so
Java location         : test/apps/jre/1.4.2/bin/java
Log file location     : test/apps/.patch_storage//*.log

Creating log file "test/apps/.patch_storage/LsInventory__11-04-2014_13-26-09.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.
[oracle@oracle[test/apps/10.1.3]#

As a workaround downloaded the latest opatch utility but still same Issue exists.

Cause:

ORACLE_HOME (10.1.3) not exists in the central Inventory. Hence the Opatch is failing.

Solution:

Attach (10.1.3) ORACLE_HOME to an existing Inventory/new Inventory  using OUI - Installer.

[oradev@ERPDEV[/oradev/R12_app/apps/tech_st/10.1.3/oui/bin]#./runInstaller -silent -attachHome ORACLE_HOME=/oradev/R12_app/apps/tech_st/10.1.3 ORACLE_HOME_NAME=test_1013_home
Starting Oracle Universal Installer...

Checking installer requirements...

Checking operating system version: must be 5200, 5300 or 6100
                                      Passed


All installer requirements met.

Checking operating system packages: bos.adt.base,bos.adt.lib,bos.adt.libm,bos.perf.libperfstat,bos.perf.perfstat,bos.perf.proctools,X11.motif.lib    Passed
Checking swap space: must be greater than 1536 MB.   Actual 10240MB    Passed
Checking Temp space: must be greater than 1000 MB.   Actual 1264 MB    Passed
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2014-11-04_02-22-21PM. Please wait ...[oradev@ERPDEV
[/oradev/R12_app/apps/tech_st/10.1.3/oui/bin]#'AttachHome' was successful.

[oradev@ERPDEV[/oradev/R12_app/apps/tech_st/10.1.3/oui/bin]#


Now run opatch and check it should work fine.

[oradev@ERPDEV[/oradev]#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           : /oradev/R12_app/apps/tech_st/10.1.3
Oracle Home Inventory : /oradev/R12_app/apps/Inventory
Central Inventory     : /oradev/R12_app/apps/tech_st/10.1.3/inventory
   from               : /etc/oraInst.loc
OUI location          : /oradev/R12_app/apps/tech_st/10.1.3/oui
OUI shared library    : /oradev/R12_app/apps/tech_st/10.1.3/oui/lib/ibm_aix/liboraInstaller.so
Java location         : /oradev/R12_app/apps/tech_st/10.1.3/jre/1.4.2/bin/java
Log file location     : /oradev/R12_app/apps/tech_st/10.1.3/.patch_storage//*.log

Creating log file "/oradev/R12_app/apps/tech_st/10.1.2/.patch_storage/LsInventory__11-04-2014_14-24-29.log"

Result:

There is no Interim Patch

OPatch succeeded.

[oracle@oracle[/test]#

These steps will be applicable also for 10.1.2 ORACLE_HOME of EBS R12 Instance.

No comments:

Post a Comment