标题: Patch Installation Error on 19c Oracle Client: Active Files/Executables in Us... [打印本页] 作者: 刘泽宇 时间: 2025-8-10 18:26 标题: Patch Installation Error on 19c Oracle Client: Active Files/Executables in Us... 现象:
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
[<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
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
改动:
Executing patch in the Windows environment.
原因:
Even though the OPatch software is updated to the latest version, these DLLs may be locked by active services, preventing the patch from accessing or modifying them. Insufficient permissions can also lead to patch failure; please ensure the patch is run with administrative privileges. Additionally, corrupt or incompatible versions of these files may contribute to the failure of the patch.
处理方法:
In this case, please rename the following DLLs: