Patch Installation Error on 19c Oracle Client: Active Files/Executables in Use by ORACLE_HOME
(Doc ID 3049574.1)
Last updated on SEPTEMBER 24, 2024
Applies to:
Oracle Database - Enterprise Edition - Version 19.21.0.0.0 and laterGen 1 Exadata Cloud at Customer (Oracle Exadata Database Cloud Machine) - Version N/A to N/A
Oracle Cloud Infrastructure - Database Service - Version N/A to N/A [Release 1.0]
Microsoft Windows x64 (64-bit)
Symptoms
Error Encountered During RDBMS Patch Installation on 19c Client
[<ORACLE_HOME_19C_CLIENT>] [INFO] CAS Dynamic Loading :
[<ORACLE_HOME_19C_CLIENT>] [INFO] CUP_LOG: Trying to load HomeOperations object
[<ORACLE_HOME_19C_CLIENT>] [INFO] CUP_LOG: HomeOperations object created. CUP1.0 is enabled
[<ORACLE_HOME_19C_CLIENT>] [INFO] OPatch invoked as follows: 'apply -oh <ORACLE_HOME_19C_CLIENT> -restart '
[<ORACLE_HOME_19C_CLIENT>] [INFO] Runtime args: [-DOPatch.ORACLE_HOME=<ORACLE_HOME_19C_CLIENT>, -DOPatch.DEBUG=false, -DOPatch.RUNNING_DIR=<ORACLE_HOME_19C_CLIENT>\.patch_storage\oracle-home-1727121444214364\OPatch, -DOPatch.MW_HOME=, -DOPatch.WL_HOME=, -DOPatch.COMMON_COMPONENTS_HOME=, -DOPatch.OUI_LOCATION=, -DOPatch.FMW_COMPONENT_HOME=, -DOPatch.WEBLOGIC_CLASSPATH=, -DOPatch.OPATCH_CLASSPATH=]
[<ORACLE_HOME_19C_CLIENT>] [INFO] Heap in use : 26 MB
Total memory: 123 MB
Free memory : 96 MB
Max memory : 1799 MB
[<ORACLE_HOME_19C_CLIENT>] [INFO] Oracle Home : <ORACLE_HOME_19C_CLIENT>
Central Inventory : C:\Program Files\Oracle\Inventory
from :
OPatch version : 12.2.0.1.43
OUI version : 12.2.0.7.0
OUI location : <ORACLE_HOME_19C_CLIENT>\oui
Log file location : <ORACLE_HOME_19C_CLIENT>\cfgtoollogs\opatch\opatch<TIME_STAMP_DATE>.log
[<ORACLE_HOME_19C_CLIENT>] [INFO] Patch history file: <ORACLE_HOME_19C_CLIENT>\cfgtoollogs\opatch\opatch_history.txt
[<TIME_STAMP_DATE> ] [INFO] [OPSR-TIME] Loading raw inventory
[<TIME_STAMP_DATE> ] [INFO] [OPSR-MEMORY] Loaded all components from inventory. Heap memory in use: 21 (MB)
[<TIME_STAMP_DATE> ] [INFO] [OPSR-MEMORY] Loaded all one offs from inventory. Heap memory in use: 21 (MB)
[<TIME_STAMP_DATE>] [INFO] Following active files/executables/libs are used by ORACLE_HOME :<ORACLE_HOME_19C_CLIENT>
<ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\java.dll
<ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\management.dll
<ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\msvcr100.dll
<ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\net.dll
<ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\nio.dll
<ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\server\jvm.dll
<ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\verify.dll
<ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\zip.dll
<ORACLE_HOME_19C_CLIENT>\jdk\jre\lib\rt.jar
<ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\java.dll
<ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\management.dll
<ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\net.dll
<ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\nio.dll
<ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\server\jvm.dll
<ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\verify.dll
<ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\zip.dll
<ORACLE_HOME_19C_CLIENT>\jdk\jre\lib\rt.jar
<ORACLE_HOME_19C_CLIENT>\jdk\bin\java.exe
<ORACLE_HOME_19C_CLIENT>\jdk\jre\lib\ext\cldrdata.jar
<ORACLE_HOME_19C_CLIENT>\jdk\jre\lib\ext\localedata.jar
<ORACLE_HOME_19C_CLIENT>\jdk\jre\lib\ext\zipfs.jar
<ORACLE_HOME_19C_CLIENT>\jdk\bin\java.exe
<ORACLE_HOME_19C_CLIENT>\jdk\jre\lib\ext\cldrdata.jar
<ORACLE_HOME_19C_CLIENT>\jdk\jre\lib\ext\localedata.jar
<ORACLE_HOME_19C_CLIENT>\jdk\jre\lib\ext\zipfs.jar
Furthermore, the following errors are occurring:
[<TIME_STAMP_DATE>] [INFO] Copying file to "<ORACLE_HOME_19C_CLIENT>\jdk\bin\jar.exe"
[<TIME_STAMP_DATE>] [INFO] Copying file to "<ORACLE_HOME_19C_CLIENT>\jdk\bin\jarsigner.exe"
[<TIME_STAMP_DATE>] [INFO] Copying file to "<ORACLE_HOME_19C_CLIENT>\jdk\bin\java-rmi.exe"
[<TIME_STAMP_DATE>] [WARNING]OUI-67124:ApplySession failed in system modification phase... 'ApplySession::apply failed: <DOMAIN_NAME>.FileNotFoundException: \<ORACLE_HOME_19C_CLIENT>\jdk\jre\lib\ext\sunec.jar'
[<TIME_STAMP_DATE>] [INFO] Restoring "<ORACLE_HOME_19C_CLIENT>" to the state prior to running NApply...
[<TIME_STAMP_DATE>] [INFO] Restoring files: copy recurse from <ORACLE_HOME_19C_CLIENT>\.patch_storage\NApply\<TIME_STAMP_DATE>\backup to <ORACLE_HOME_19C_CLIENT>
<TIME_STAMP_DATE> [INFO] Failed to copy <ORACLE_HOME_19C_CLIENT>\.patch_storage\NApply\<TIME_STAMP_DATE>\backup\jdk\bin\java.exe to destination <ORACLE_HOME_19C_CLIENT>\jdk\bin\java.exe
Reason=java.nio.file.FileSystemException: <ORACLE_HOME_19C_CLIENT>\jdk\bin\java.exe: The process cannot access the file because it is being used by another process.
<TIME_STAMP_DATE> [INFO] Failed to copy <ORACLE_HOME_19C_CLIENT>\.patch_storage\NApply\<TIME_STAMP_DATE>\backup\jdk\jre\bin\java.dll to destination <ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\java.dll
Reason=java.nio.file.FileSystemException: <ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\java.dll: The process cannot access the file because it is being used by another process.
<TIME_STAMP_DATE> [INFO] Failed to copy <ORACLE_HOME_19C_CLIENT>\.patch_storage\NApply\<TIME_STAMP_DATE>\backup\jdk\jre\bin\management.dll to destination <ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\management.dll
Reason=java.nio.file.FileSystemException: <ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\management.dll: The process cannot access the file because it is being used by another process.
<TIME_STAMP_DATE>] [INFO] Failed to copy <ORACLE_HOME_19C_CLIENT>\.patch_storage\NApply\<TIME_STAMP_DATE>\backup\jdk\jre\bin\msvcr100.dll to destination <ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\msvcr100.dll
Reason=java.nio.file.FileSystemException: <ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\msvcr100.dll: The process cannot access the file because it is being used by another process.
<TIME_STAMP_DATE> [INFO] Failed to copy <ORACLE_HOME_19C_CLIENT>\.patch_storage\NApply\<TIME_STAMP_DATE>\backup\jdk\jre\bin\net.dll to destination <ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\net.dll
Reason=java.nio.file.FileSystemException: <ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\net.dll: The process cannot access the file because it is being used by another process.
<TIME_STAMP_DATE> [INFO] Failed to copy <ORACLE_HOME_19C_CLIENT>\.patch_storage\NApply\<TIME_STAMP_DATE>\backup\jdk\jre\bin\nio.dll to destination <ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\nio.dll
Reason=java.nio.file.FileSystemException: <ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\nio.dll: The process cannot access the file because it is being used by another process.
<TIME_STAMP_DATE> [INFO] Failed to copy <ORACLE_HOME_19C_CLIENT>\.patch_storage\NApply\<TIME_STAMP_DATE>\backup\jdk\jre\bin\server\jvm.dll to destination <ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\server\jvm.dll
Reason=java.nio.file.FileSystemException: <ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\server\jvm.dll: The process cannot access the file because it is being used by another process.
<TIME_STAMP_DATE> [INFO] Failed to copy <ORACLE_HOME_19C_CLIENT>\.patch_storage\NApply\<TIME_STAMP_DATE>\backup\jdk\jre\bin\verify.dll to destination <ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\verify.dll
Reason=java.nio.file.FileSystemException: <ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\verify.dll: The process cannot access the file because it is being used by another process.
<TIME_STAMP_DATE> [INFO] Failed to copy <ORACLE_HOME_19C_CLIENT>\.patch_storage\NApply\<TIME_STAMP_DATE>\backup\jdk\jre\bin\zip.dll to destination <ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\zip.dll
Reason=java.nio.file.FileSystemException: <ORACLE_HOME_19C_CLIENT>\jdk\jre\bin\zip.dll: The process cannot access the file because it is being used by another process.
<TIME_STAMP_DATE> [INFO] OPatch failed to restore the files from backup area. Not running "make".
<TIME_STAMP_DATE> [WARNING]OUI-67124:
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
"<ORACLE_HOME_19C_CLIENT>\.patch_storage\NApply\<TIME_STAMP_DATE>"
<TIME_STAMP_DATE>[SEVERE] OUI-67073:UtilSession failed: ApplySession failed in system modification phase... 'ApplySession::apply failed: java.FileNotFoundException: \<ORACLE_HOME_19C_CLIENT>\jdk\jre\lib\ext\sunec.jar'
<TIME_STAMP_DATE> [INFO] --------------------------------------------------------------------------------
<TIME_STAMP_DATE> The following warnings have occurred during OPatch execution:
<TIME_STAMP_DATE> 1) OUI-67124:ApplySession failed in system modification phase... 'ApplySession::apply failed: java.FileNotFoundException: \<ORACLE_HOME_19C_CLIENT>\jdk\jre\lib\ext\sunec.jar'
<TIME_STAMP_DATE> 2) OUI-67124:
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
"<ORACLE_HOME_19C_CLIENT>\.patch_storage\NApply\<TIME_STAMP_DATE>"
<TIME_STAMP_DATE> [INFO] --------------------------------------------------------------------------------
<TIME_STAMP_DATE>[INFO] Finishing UtilSession at <TIME_STAMP_DATE>
<TIME_STAMP_DATE>[INFO] Log file location: <ORACLE_HOME_19C_CLIENT>\cfgtoollogs\opatch\opatch<TIME_STAMP_DATE>_1.log
<TIME_STAMP_DATE> [INFO] Stack Description: java.lang.RuntimeException: ApplySession failed in system modification phase... 'ApplySession::apply failed: <DOMAIN_NAME>.FileNotFoundException: \<ORACLE_HOME_19C_CLIENT>\jdk\jre\lib\ext\sunec.jar'
at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:1052)
at oracle.opatch.OPatch.process(OPatch.java:888)
at oracle.opatch.OPatch.main(OPatch.java:945)
Caused by: java.lang.Error: ApplySession failed in system modification phase... 'ApplySession::apply failed: java.FileNotFoundException: \<ORACLE_HOME_19C_CLIENT>\jdk\jre\lib\ext\sunec.jar'
... 43 more
Caused by: java.lang.RuntimeException: ApplySession::apply failed: java.FileNotFoundException: \<ORACLE_HOME_19C_CLIENT>\jdk\jre\lib\ext\sunec.jar
... 43 more
Caused by: java.lang.InternalError: java.FileNotFoundException: \<ORACLE_HOME_19C_CLIENT>\jdk\jre\lib\ext\sunec.jar
... 43 more
Caused by: java.FileNotFoundException: \<ORACLE_HOME_19C_CLIENT>\jdk\jre\lib\ext\sunec.jar
at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:938)
at sun.misc.URLClassPath$JarLoader.access$800(URLClassPath.java:801)
at sun.misc.URLClassPath$JarLoader$1.run(URLClassPath.java:886)
at sun.misc.URLClassPath$JarLoader$1.run(URLClassPath.java:879)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:878)
at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:1050)
... 42 more
Changes
Executing patch in the Windows environment.
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 |