My Oracle Support Banner

opatch apply fails with Error:"OUI-67073:UtilSession failed: Java heap space" or "ApplySession::apply failed: Java heap space" (Doc ID 888252.1)

Last updated on SEPTEMBER 18, 2023

Applies to:

Oracle Database - Enterprise Edition - Version 11.1.0.7 and later
Oracle Database Cloud Schema Service - Version N/A and later
Gen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Solaris on SPARC (64-bit)
Sun Solaris SPARC (64-bit)


Symptoms

1) Following error is encountered while applying a one off patch on rdbms home 11.1.0.7:

 

INFO:Registered Encoding value is : ISO8859-1 for the file
<ORACLE_HOME>/inventory/oneoffs/6530141/etc/config/actions.xml
SEVERE:OUI-67073:ApplySession failed: ApplySession failed in system modification phase...
'ApplySession::apply failed: Java heap space'
INFO:OPatch will attempt to restore the system...
INFO:Restoring the Oracle Home...
INFO:Checking if OPatch needs to invoke 'make' to restore some binaries...
INFO:Running make for target "ioracle"
INFO:Start invoking 'make' at Mon Aug 24 10:29:02 PDT 2009Mon Aug 24 10:29:02 PDT 2009
INFO:Finish invoking 'make' at Mon Aug 24 10:29:34 PDT 2009
INFO:OPatch was able to restore your system. Look at log file and timestamp of each file to make
sure your system is in the state prior to applying the patch.
INFO:Finishing ApplySession at Mon Aug 24 10:29:34 PDT 2009
INFO:Total time spent waiting for user-input is 2 seconds. Finish at Mon Aug 24 10:29:34 PDT 2009
INFO:Stack Description: java.lang.Error: ApplySession failed in system modification phase...
'ApplySession::apply failed: Java heap space'
INFO:StackTrace: oracle.opatch.ApplySession.processLocal(ApplySession.java:4548)
INFO:StackTrace: oracle.opatch.ApplySession.process(ApplySession.java:5476)
INFO:StackTrace: oracle.opatch.OPatchSession.main(OPatchSession.java:1633)
INFO:StackTrace: oracle.opatch.OPatch.main(OPatch.java:630)

 

 2) Applying patch on 19c ORACLE_HOME fails as below:

[SEVERE] OUI-67073:UtilSession failed: Java heap space
..
..
[INFO] Stack Description: java.lang.RuntimeException: Java heap space
at java.util.Arrays.copyOf(Arrays.java:3332)
at java.lang.AbstractStringBuilder.ensureCapacityInternal(AbstractStringBuilder.java:124)
at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:448)
at java.lang.StringBuilder.append(StringBuilder.java:142)
at oracle.opatch.PatchObject.toString(PatchObject.java:1663)
at java.lang.String.valueOf(String.java:2994)
....
at oracle.opatch.OPatch.main(OPatch.java:930)
Caused by: java.lang.OutOfMemoryError: Java heap space
... 21 more

 

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
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.