Tuesday, October 27, 2020

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

 Error:-

[applmgr@ebslearning appl]$ opatch lsinventory
Oracle Interim Patch Installer version 1.0.0.0.64
Copyright (c) 2011 Oracle Corporation. All Rights Reserved..
Oracle recommends you to use the latest OPatch version
and read the OPatch documentation available in the OPatch/docs
directory for usage. For information about the latest OPatch and
other support-related issues, refer to document ID 293369.1
available on My Oracle Support (https://myoraclesupport.oracle.com)
Oracle Home           : /u02/R12APP/fs1/EBSapps/10.1.2
Oracle Home Inventory : /u02/R12APP/fs1/EBSapps/10.1.2/inventory
Central Inventory     : /u01/clonedb/database/PROD/db/tech_st/11.2.0.4/oraInvent                                                      ory
   from               : /etc/oraInst.loc
OUI location          : /u02/R12APP/fs1/EBSapps/10.1.2/oui
OUI shared library    : /u02/R12APP/fs1/EBSapps/10.1.2/oui/lib/linux/liboraInsta                                                      ller.so
Java location         : /u02/R12APP/fs1/EBSapps/10.1.2/jdk/jre/bin/java
Log file location     : /u02/R12APP/fs1/EBSapps/10.1.2/.patch_storage/<patch ID>                                                      /*.log
Creating log file "/u02/R12APP/fs1/EBSapps/10.1.2/.patch_storage/LsInventory__07                                                      -01-2018_16-28-31.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:-

[applmgr@ebslearning appl]$ cd $ORACLE_HOME
[applmgr@ebslearning 10.1.2]$ cat oraInst.loc
inventory_loc=/u01/clonedb/database/PROD/db/tech_st/11.2.0.4/oraInventory
inst_group=dba
[applmgr@ebslearning 10.1.2]$ ll /u01/clonedb/database/PROD/db/tech_st/11.2.0.4/oraInventory
total 8
drwxrwx--- 2 oracle dba 4096 Jul  1 16:19 ContentsXML
drwxrwx--- 2 oracle dba 4096 Jul  1 16:19 logs
[applmgr@ebslearning 10.1.2]$ cd oui/
[applmgr@ebslearning oui]$ ls
bin                   guide  oraparam.ini
clusterparam.ini      jlib   oraparam.ini.bak
clusterparam.ini.bak  lib    ouica.properties
[applmgr@ebslearning oui]$ cd bin/
[applmgr@ebslearning bin]$ ls
addNode.sh      attachHome.sh.bak  ouica.sh.bak  runInstaller.sh
addNode.sh.bak  lsnodes            resource      runInstaller.sh.bak
attachHome.sh   ouica.sh           runInstaller
[applmgr@ebslearning bin]$ ./attachHome.sh
Starting Oracle Universal Installer...
No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
Preparing to launch Oracle Universal Installer from /tmp/OraInstall2018-07-01_04-32-19PM. 
Please wait ...
[applmgr@ebslearning bin]$ Java HotSpot(TM) Server VM warning: You have loaded library /tmp/OraInstall2018-07-01_04-32-19PM/oui/lib/liux/liboraInstaller.so which might have disabled stack guard. 
The VM will try tofix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>',or link it with '-z noexecstack'.
'AttachHome' was successful.

[applmgr@ebslearning bin]

No comments:

Post a Comment

Featured post

Migrate OCR & vote from external to normal or High redundancy in ASM

How to Move OCR & Vote from external to Normal or high. 1)  Create New diskgroup(CRS) with suitable redundancy for OCR and Voting files....

Popular Posts