Java (1.6) could not be located. OPatch cannot proceed!

I got ” Java (1.6) could not be located. OPatch cannot proceed! ” error in the Oracle database during Patch apply.

 

Java (1.6) could not be located

Details of error are as follows.

[msdbadm01]/u01/middleware $ OPatch/opatch version
Java (1.6) could not be located. OPatch cannot proceed!
OPatch returns with error code = 1
[msdbadm01]/u01/middleware $ 
[msdbadm01]/u01/middleware/OPatch $

 

 

 

 OPatch cannot proceed!

This errors are related with the Opatch version or opatch utility was downloaded for a wrong platform or using older version of opatch.

Installed the latest opatch.

 

OR

Use the JDK option like following.

opatch apply -jdk <<FULL_PATH_OF_JDK>



[msdbadm01]/u01/middleware $ 
[msdbadm01]/u01/middleware $ OPatch/opatch version
Java (1.6) could not be located. OPatch cannot proceed!
OPatch returns with error code = 1
[msdbadm01]/u01/middleware $ 
[msdbadm01]/u01/middleware/OPatch $ 


[msdbadm01]/u01/middleware/OPatch $ ./opatch lsinventory -jdk /export2/jdk/ -oh /u01/middleware/
Oracle Interim Patch Installer version 13.9.4.2.4
Copyright (c) 2021, Oracle Corporation. All rights reserved.


Oracle Home : /u01/middleware
Central Inventory : /u01/app/18c/oraInventory
from : /u01/middleware//oraInst.loc
OPatch version : 13.9.4.2.4
OUI version : 13.9.4.0.0
Log file location : /u01/middleware/cfgtoollogs/opatch/opatch2021-06-21_14-11-18PM_1.log


OPatch detects the Middleware Home as "/u01"

Lsinventory Output file location : /u01/middleware/cfgtoollogs/opatch/lsinv/lsinventory2021-06-21_14-11-18PM.txt

--------------------------------------------------------------------------------
Local Machine Information::
Hostname: knebdp01
ARU platform id: 226
ARU platform description:: Linux x86-64


There are no Interim patches installed in this Oracle Home.


--------------------------------------------------------------------------------

OPatch succeeded.
[msdbadm01]/u01/middleware/OPatch $ 
[msdbadm01]/u01/middleware/OPatch $ 
[msdbadm01]/u01/middleware/OPatch $ 
[msdbadm01]/u01/middleware/OPatch $ cd ../32757869/
[msdbadm01]/u01/middleware/32757869 $ 
[msdbadm01]/u01/middleware/32757869 $ 
[msdbadm01]/u01/middleware/32757869 $ ../OPatch/opatch apply -jdk /export2/jdk/ -oh /u01/middleware/
Oracle Interim Patch Installer version 13.9.4.2.4
Copyright (c) 2021, Oracle Corporation. All rights reserved.


Oracle Home : /u01/middleware
Central Inventory : /u01/app/18c/oraInventory
from : /u01/middleware//oraInst.loc
OPatch version : 13.9.4.2.4
OUI version : 13.9.4.0.0
Log file location : /u01/middleware/cfgtoollogs/opatch/opatch2021-06-21_14-12-00PM_1.log


OPatch detects the Middleware Home as "/u01"

Verifying environment and performing prerequisite checks...
OPatch continues with these patches: 32757869

Do you want to proceed? [y|n]
y
User Responded with: Y
All checks passed.

Please shutdown Oracle instances running out of this ORACLE_HOME on the local system.
(Oracle Home = '/u01/middleware')


Is the local system ready for patching? [y|n]
y
User Responded with: Y
Backing up files...
Applying interim patch '32757869' to OH '/u01/middleware'
ApplySession: Optional component(s) [ oracle.rcu.veridata, 12.2.1.4.0 ] , [ oracle.veridata.web.core, 12.2.1.4.0 ] , [ oracle.veridata.web.core, 12.2.1.4.0 ] , [ oracle.fmw.upgrade.veridata, 12.2.1.4.0 ] not present in the Oracle Home or a higher version is found.

Patching component oracle.veridata.agent.core, 12.2.1.4.0...

Patching component oracle.veridata.agent.core, 12.2.1.4.0...
Patch 32757869 successfully applied.
Log file location: /u01/middleware/cfgtoollogs/opatch/opatch2021-06-21_14-12-00PM_1.log

OPatch succeeded.
[msdbadm01]/u01/middleware/32757869 $ 
[msdbadm01]/u01/middleware/32757869 $ 
[msdbadm01]/u01/middleware/32757869 $ 
[msdbadm01]/u01/middleware/32757869 $ ../OPatch/opatch lsinventory -jdk /export2/jdk/ -oh /u01/middleware/
Oracle Interim Patch Installer version 13.9.4.2.4
Copyright (c) 2021, Oracle Corporation. All rights reserved.


Oracle Home : /u01/middleware
Central Inventory : /u01/app/18c/oraInventory
from : /u01/middleware//oraInst.loc
OPatch version : 13.9.4.2.4
OUI version : 13.9.4.0.0
Log file location : /u01/middleware/cfgtoollogs/opatch/opatch2021-06-21_14-13-47PM_1.log


OPatch detects the Middleware Home as "/u01"

Lsinventory Output file location : /u01/middleware/cfgtoollogs/opatch/lsinv/lsinventory2021-06-21_14-13-47PM.txt

--------------------------------------------------------------------------------
Local Machine Information::
Hostname: knebdp01
ARU platform id: 226
ARU platform description:: Linux x86-64


Interim patches (1) :

Patch 32757869 : applied on Mon Jun 21 14:12:11 EET 2021
Unique Patch ID: 24201563
Patch description: "One-off"
Created on 21 Apr 2021, 23:29:24 hrs PST8PDT
Bugs fixed:
32213540, 32322787, 32717596, 32313798, 30533210, 32531882, 32258415
32486366, 32050877, 32250963, 32249623, 32113971, 30351843, 32348306
29376272, 30608181, 30771003, 30811737, 30923601, 31126930, 31152591
31290595, 31344851, 31401520, 31442050, 31568607, 30778093, 21276396
30712451, 25418342, 30392409, 30425385, 30558507




--------------------------------------------------------------------------------

OPatch succeeded.
[msdbadm01]/u01/middleware/32757869 $

 

 

 

Do you want to learn Oracle Database for Beginners, then read the following articles.

https://ittutorial.org/oracle-database-19c-tutorials-for-beginners/

 2,015 views last month,  4 views today

About Mehmet Salih Deveci

I am Founder of SysDBASoft IT and IT Tutorial and Certified Expert about Oracle & SQL Server database, Goldengate, Exadata Machine, Oracle Database Appliance administrator with 10+years experience.I have OCA, OCP, OCE RAC Expert Certificates I have worked 100+ Banking, Insurance, Finance, Telco and etc. clients as a Consultant, Insource or Outsource.I have done 200+ Operations in this clients such as Exadata Installation & PoC & Migration & Upgrade, Oracle & SQL Server Database Upgrade, Oracle RAC Installation, SQL Server AlwaysOn Installation, Database Migration, Disaster Recovery, Backup Restore, Performance Tuning, Periodic Healthchecks.I have done 2000+ Table replication with Goldengate or SQL Server Replication tool for DWH Databases in many clients.If you need Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS Consultancy and Training you can send my email adress [email protected].-                                                                                                                                                                                                                                                 -Oracle DBA, SQL Server DBA, APPS DBA,  Exadata, Goldengate, EBS ve linux Danışmanlık ve Eğitim için  [email protected] a mail atabilirsiniz.

Leave a Reply