My Oracle Support Banner

13c: Applying WLS Stack Bundle Patch on the OMS Middleware Home Fails With Error: jdk should not be residing inside the ORACLE_HOME (Doc ID 2797320.1)

Last updated on OCTOBER 18, 2022

Applies to:

Enterprise Manager Base Platform - Version and later
Information in this document applies to any platform.


Applying the WLS SPB (Stack Patch Bundle) on the OMS Oracle Home fails with the error:

$ ./ -phase apply -oracle_home $ORACLE_HOME
SPBAT Release Version: 1.3.0
The current patching user oracle matches with the product install user oracle
-log_dir value is not set, defaulting it to <PATCH_LOC>/WLS_SPB_12.
SPBAT Phase - apply is executing ...
The consolidated SPBAT execution logs have been written to: <PATCH_LOC>/WLS_SPB_12.
Do not close this terminal as SPBAT apply phase is currently executing...
[2021-08-04_19-17-38] Log file : <PATCH_LOC>/WLS_SPB_12.<hostname>-2021-08-04_19-17-18.log
[2021-08-04_19-17-38] [FAILED] JAVA_HOME: <OMS_HOME>/oracle_common/jdk should not be residing inside the ORACLE_HOME: <OMS_HOME>
[2021-08-04_19-17-38] Refer to SPB Readme.txt for JDK installation and upgrade information


SPBAT apply phase has FAILED
Time Taken to run apply phase: 00 hours 00 min 20 secs
The console output has been written to: <PATCH_LOC>/WLS_SPB_12.

However, applying the WLS SPB patch on the OMS Middleware home using the opatch utility works normally.


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

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