My Oracle Support Banner

'opatch version' : Java (1.6) could not be located. OPatch cannot proceed! (Doc ID 2571882.1)

Last updated on AUGUST 16, 2019

Applies to:

Oracle Database - Enterprise Edition - Version 12.2.0.1 and later
Information in this document applies to any platform.

Symptoms

Executing 'opatch version' failed with below error.

[oracle@racnode01 ~]$ opatch version
Java (1.6) could not be located. OPatch cannot proceed!
OPatch returns with error code = 1

 The same command works only if we add the -jdk flag

[oracle@racnode01 ~]$ opatch version -jdk $ORACLE_HOME/jdk
OPatch Version: 12.2.0.1.17

Changes

 Installed the latest opatch utility 12.2.0.1.17

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.