My Oracle Support Banner

opatch fails with distinct errors/warnings when opatch utility for Incorrect Release or Platform is used. (Doc ID 3052146.1)

Last updated on NOVEMBER 22, 2024

Applies to:

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

Symptoms

Execution of latest OPatch version failed with below errors .

1. OPatch failed with error code 1

Unrecognized option: --illegal-access=deny
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.

 

2.Prereq checkPatchApplicableOnCurrentPlatform Passed for patch : 36538667
[Sep 22, 2024 8:04:05 AM] [INFO] OPatch/jre does not exist. <<<<<<<<<<<<<<<<<<<<
Adding <ORACLE_HOME>\jdk\bin\java.exe to oop dependency list
[Sep 22, 2024 8:04:05 AM] [WARNING] Action file <ORACLE_HOME>\jdk\bin\java.exe is in the jar list,OOP should be launched
|
|
Following active files/executables/libs are used by ORACLE_HOME :<ORACLE_HOME>
<ORACLE_HOME>\jdk\jre\bin\java.dll
<ORACLE_HOME>\jdk\jre\bin\management.dll
|
|
at oracle.opatch.OPatch.main(OPatch.java:945)
Caused by: java.lang.Error: ApplySession failed in system modification phase... 'ApplySession::apply failed: java.io.FileNotFoundException: \<ORACLE_HOME>\jdk\jre\lib\ext\sunec.jar'
... 43 more
Caused by: java.lang.RuntimeException: ApplySession::apply failed: java.io.FileNotFoundException: \<ORACLE_HOME>\jdk\jre\lib\ext\sunec.jar
... 43 more
Caused by: java.lang.InternalError: java.io.FileNotFoundException: \<ORACLE_HOME>\jdk\jre\lib\ext\sunec.jar
... 43 more
Caused by: java.io.FileNotFoundException: \<ORACLE_HOME>\jdk\jre\lib\ext\sunec.jar
at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:911)
at sun.misc.URLClassPath$JarLoader.access$800(URLClassPath.java:774)
at sun.misc.URLClassPath$JarLoader$1.run(URLClassPath.java:859)
at sun.misc.URLClassPath$JarLoader$1.run(URLClassPath.java:852)
t java.security.AccessController.doPrivileged(Native Method)

 

3 . $ ./opatch version
Error: This Java instance does not support a 64-bit JVM.
Please install the desired version.
OPatch failed with error code 1

 4.  opatch hang after conflict check

  Running prereq checkConflictAgainstOHWithDetail
[Oct 27, 2024 11:13:22 AM] [INFO] Following patches can be applied: 36582781
[Oct 27, 2024 11:13:22 AM] [INFO] Following patches are not required:
[Oct 27, 2024 11:13:22 AM] [INFO] Following patches are auto rollbackable:
[Oct 27, 2024 11:13:22 AM] [INFO] Finished checking prereq checkConflictAgainstOHWithDetail
[Oct 27, 2024 11:14:26 AM] [INFO] Execution of 'sh /opt/oracle/tmp/36522340/36582781/custom/scripts/init -apply 36582781 ':
[Oct 27, 2024 11:14:39 AM] [INFO] Return Code = 0
[Oct 27, 2024 11:14:39 AM] [INFO] Execution of ' Command and arguments of init script is restricted to be viewed in log file ':

Return Code = 0
[Oct 27, 2024 11:15:40 AM] [INFO] Running prerequisite checks...
[Oct 27, 2024 11:16:36 AM] [INFO] Space Needed : 7810.857MB
[Oct 27, 2024 11:16:36 AM] [INFO] Prereq checkPatchApplicableOnCurrentPlatform Passed for patch : 36582781
[Oct 27, 2024 11:17:24 AM] [WARNING]Action file <ORACLE_HOME>/jdk/jre/lib/ext/cldrdata.jar is in the jar list,OOP should be launched

 5.

 

36912597]$ $ORACLE_HOME/OPatch/opatch prereq CheckConflictAgainstOHWithDetail -ph ./
Java HotSpot(TM) Server VM warning: You have loaded library <ORACLE_HOME>/oui/lib/linux64/liboraInstaller.so which might have disabled stack guard. The VM will try to fix the stack guard now.
It's highly recommended that you fix the library with 'execstack -c <libfile>', or link it with '-z noexecstack'.
The java.library.path system variable is missing or invalid. Please set java.library.path with a correct value and retry the operation.
java.lang.UnsatisfiedLinkError: no oraInstaller in java.library.path
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1863)
at java.lang.Runtime.loadLibrary0(Runtime.java:843)
at java.lang.System.loadLibrary(System.java:1134)
at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.loadNativeLib(OiipuUnixOps.java:388)
at oracle.sysman.oii.oiip.osd.unix.OiipuUnixOps.<clinit>(OiipuUnixOps.java:130)
at oracle.sysman.oii.oiip.oiipg.OiipgEnvironment.ssgetUidux(OiipgEnvironment.java:528)
at oracle.sysman.oii.oiix.OiixEnvironmentOps.ssgetUidux(OiixEnvironmentOps.java:159)
at oracle.opatch.OUIReplacer.isRootAccess(OUIReplacer.java:635)
at oracle.opatch.OPatch.process(OPatch.java:648)
at oracle.opatch.OPatch.main(OPatch.java:945)
Could not check if user is root. no oraInstaller in java.library.path

OPatch failed with error code 255

 

Note: 'Latest opatch version is used '

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
References


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