Hi,
I am trying to apply patch 36521936 to my Oracle19c instance. The precheck is fine. I have shutdown all running Oracle services and stopped the Distributed Transaction Coordinator service using this command net stop msdtc
But then I get errors like this:
Copy failed from 'C:\Users\<user>\Desktop\p36521936_190000_MSWIN-x86-64\36521936\files\jdk\bin\java.exe' to 'D:\db_home\jdk\bin\java.exe'...
Please verify all applications associated with the Oracle Home 'D:\db_home' are shut down. If this is AIX, please perform solution documented in Note 739963.1 on https://myoraclesupport.oracle.com.
And similar errors occurs for ~10 other files.
I have tried to copy the files manually and then continue the patch proccess, but then it fails with the following error:
ApplySession failed in system modification phase... 'ApplySession::apply failed: java.io.IOException: oracle.sysman.oui.patch.PatchException: java.lang.NoClassDefFoundError: javax/xml/stream/XMLOutputFactory'
Restoring "D:\db_home" to the state prior to running NApply...
#### Stack trace of processes holding locks ####
Time: 2024-08-29_11-07-30AM
Command: oracle/opatch/OPatch apply -oh D:\db_home -restart
Lock File Name: C:\Program Files\Oracle\Inventory\locks\D__db_home_writer.lock
StackTrace:
-----------
java.lang.Throwable
at oracle.sysman.oii.oiit.OiitLockHeartbeat.writeStackTrace(OiitLockHeartbeat.java:193)
at oracle.sysman.oii.oiit.OiitLockHeartbeat.<init>(OiitLockHeartbeat.java:173)
at oracle.sysman.oii.oiit.OiitTargetLocker.getWriterLock(OiitTargetLocker.java:346)
at oracle.sysman.oii.oiit.OiitTargetLocker.getWriterLock(OiitTargetLocker.java:238)
at oracle.sysman.oii.oiic.OiicStandardInventorySession.acquireLocks(OiicStandardInventorySession.java:564)
at oracle.sysman.oii.oiic.OiicStandardInventorySession.initAreaControl(OiicStandardInventorySession.java:359)
at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:332)
at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:294)
at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:243)
at oracle.sysman.oui.patch.impl.HomeOperationsImpl.initialize(HomeOperationsImpl.java:107)
at oracle.glcm.opatch.common.api.install.HomeOperationsShell.initialize(HomeOperationsShell.java:117)
at oracle.opatch.ipm.IPMRWServices.addPatchCUP(IPMRWServices.java:134)
at oracle.opatch.ipm.IPMRWServices.add(IPMRWServices.java:146)
at oracle.opatch.ApplySession.apply(ApplySession.java:898)
at oracle.opatch.ApplySession.processLocal(ApplySession.java:4110)
at oracle.opatch.ApplySession.process(ApplySession.java:4989)
at oracle.opatch.ApplySession.process(ApplySession.java:4842)
at oracle.opatch.OPatchACL.processApply(OPatchACL.java:310)
at oracle.opatch.opatchutil.NApply.legacy_process(NApply.java:1556)
at oracle.opatch.opatchutil.NApply.legacy_process(NApply.java:373)
at oracle.opatch.opatchutil.NApply.process(NApply.java:353)
at oracle.opatch.opatchutil.OUSession.napply(OUSession.java:1139)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at oracle.opatch.UtilSession.process(UtilSession.java:355)
at oracle.opatch.OPatchSession.process(OPatchSession.java:2640)
at oracle.opatch.OPatch.process(OPatch.java:888)
at oracle.opatch.OPatch.main(OPatch.java:945)
------------------------------------
OPatch failed to restore OH 'D:\db_home'. Consult OPatch document to restore the home manually before proceeding.
NApply was not able to restore the home. Please invoke the following scripts:
- restore.[sh,bat]
- make.txt (Unix only)
to restore the ORACLE_HOME. They are located under
"D:\db_home\.patch_storage\NApply\2024-08-29_11-07-25AM"
UtilSession failed: ApplySession failed in system modification phase... 'ApplySession::apply failed: java.io.IOException: oracle.sysman.oui.patch.PatchException: java.lang.NoClassDefFoundError: javax/xml/stream/XMLOutputFactory'
Log file location: D:\db_home\cfgtoollogs\opatch\opatch2024-08-29_11-07-25AM_1.log
OPatch failed with error code = 73
Have any of you experienced this before? Or do you have any suggestions on what I can try to fix the issue?