Friday, October 9, 2026
  • About Us
  • Contact
DBAInsight
  • Guides
    • 23ai
    • RMAN
    • 26ai
    • Patch Update
    • RMAN
    • MySQL
    • Oracle GoldenGate
  • Cloud Technology
  • Case Studies
  • Troubleshooting
  • Training & Certification
NEWSLETTER
No Result
View All Result
DBAInsight
Home Patch Update

How to Resolve OPatch “CheckActiveFilesAndExecutables” Error on Oracle Client for Windows

August 18, 2026
in Patch Update
0
How to Resolve OPatch “CheckActiveFilesAndExecutables” Error on Oracle Client for Windows
0
SHARES
134
VIEWS

When applying an Oracle Client patch on Windows, you may encounter the following OPatch error:

Prerequisite check "CheckActiveFilesAndExecutables" failed.
Following active files/executables/libs are used by ORACLE_HOME

This error occurs because one or more applications are currently using DLLs from the Oracle Client Home, preventing OPatch from updating them.

Table of Contents

Toggle
    • Related posts
    • When datapatch Won’t Finish: An ORA-04021 Lock on DBMS_AQADM_SYS During a 19c RU Apply
    • When “Invalid Objects” Isn’t What It Looks Like: A GSMADMIN_INTERNAL Detective Story
  • Environment
  • Error Message
  • Step 1 – Identify the Process Using Oracle DLLs
  • Step 2 – Stop or Kill the Processes
  • Step 3 – Verify No Oracle DLLs Are Locked
  • Step 4 – Apply the Patch Again
  • Why This Happens
  • Useful Commands
    • Find processes using OCI.dll
    • Find processes using another Oracle DLL
    • Kill a process by PID
    • Kill a process by name
  • Conclusion

Related posts

ORA-04021

When datapatch Won’t Finish: An ORA-04021 Lock on DBMS_AQADM_SYS During a 19c RU Apply

September 25, 2026
GSMADMIN_INTERNAL

When “Invalid Objects” Isn’t What It Looks Like: A GSMADMIN_INTERNAL Detective Story

September 24, 2026

Environment

  • Oracle Client: 19c
  • Operating System: Windows Server
  • OPatch Version: 12.2.0.1.52

Error Message

While running:

C:\app\client\Administrator\product\19.0.0\client_1\OPatch\opatch apply

OPatch returned:

Prerequisite check "CheckActiveFilesAndExecutables" failed.

It also listed several Oracle DLLs in use, including:

  • oci.dll
  • oraons.dll
  • oracore19.dll
  • oracommon19.dll
  • orapls19.dll
  • oraxml19.dll

This indicates that another process is actively using the Oracle Client installation.


Step 1 – Identify the Process Using Oracle DLLs

Open PowerShell or Command Prompt as Administrator and execute:

tasklist /M oci.dll

Example output:

Image Name                     PID     Modules
========================= ======== ===================
PRIME Jobs Administrator.   6844     OCI.dll
hsmisserver.exe             5808     OCI.dll
km.exe                      2260     OCI.dll
Online Administration.exe   6172     OCI.dll
PRIME Jobs Administrator.   3328     OCI.dll

The command displays all processes currently loading OCI.dll, confirming which applications are locking the Oracle Client Home.

Tip: You can also search for other Oracle DLLs such as oraons.dll or oracore19.dll if needed.

CheckActiveFilesAndExecutables

Step 2 – Stop or Kill the Processes

After identifying the processes, close the applications gracefully if possible.

If they cannot be closed normally, terminate them using their Process ID (PID):

taskkill /PID 6844 /F
taskkill /PID 5808 /F
taskkill /PID 2260 /F
taskkill /PID 6172 /F
taskkill /PID 3328 /F

Alternatively:

taskkill /IM hsmisserver.exe /F

Important: Ensure these applications are safe to stop and coordinate with the application owners before terminating production services.


Step 3 – Verify No Oracle DLLs Are Locked

Run the command again:

tasklist /M oci.dll

If no processes are returned (or only expected ones remain), the Oracle Home is no longer in use.


Step 4 – Apply the Patch Again

Re-run OPatch:

cd C:\Users\administrator.PEOPLESBANK\Desktop\Patch\38818049

C:\app\client\Administrator\product\19.0.0\client_1\OPatch\opatch apply

This time, the patch should proceed successfully.


Why This Happens

Oracle Client DLLs such as OCI.dll are shared libraries used by many third-party applications. Any application connected to an Oracle database using the Oracle Client will load these DLLs into memory.

Common examples include:

  • Custom Windows services
  • Banking or enterprise applications
  • SQL*Plus
  • Toad
  • PL/SQL Developer
  • SQL Developer (OCI connections)
  • Middleware or integration services

As long as these DLLs remain loaded, Windows prevents OPatch from replacing them.


Useful Commands

Find processes using OCI.dll

tasklist /M oci.dll

Find processes using another Oracle DLL

tasklist /M oraons.dll

Kill a process by PID

taskkill /PID <PID> /F

Kill a process by name

taskkill /IM processname.exe /F

Conclusion

The CheckActiveFilesAndExecutables prerequisite failure is one of the most common issues encountered when patching Oracle Client on Windows. Instead of rebooting the server, you can quickly identify the applications locking the Oracle Home by using:

tasklist /M oci.dll

After stopping or terminating the identified processes, rerun OPatch and the patch installation should complete successfully. This simple troubleshooting method can save valuable maintenance time and minimize downtime during Oracle Client patching.

Tags: OpatchOracle 19cOracle ClientOracle PatchingWindows Server
Previous Post

ORA-16157: Media Recovery Not Allowed Following Successful FINISH Recovery

Next Post

ORA-19751: Could Not Create the Change Tracking File – Solution After Database Recovery

Next Post
ORA-19751: Could Not Create the Change Tracking File – Solution After Database Recovery

ORA-19751: Could Not Create the Change Tracking File – Solution After Database Recovery

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

POPULAR NEWS

  • Oracle Patch 38632161: Step-by-Step Guide to Upgrade Oracle 19c to Release Update 19.30

    Oracle Patch 38632161: Step-by-Step Guide to Upgrade Oracle 19c to Release Update 19.30

    0 shares
    Share 0 Tweet 0
  • How To Download And Install The Latest OPatch

    0 shares
    Share 0 Tweet 0
  • Oracle Database 19.32 Release Update (RU) Patching Guide – Patch 39472050

    0 shares
    Share 0 Tweet 0
  • How to Install Oracle 19c Database on Red Hat Enterprise Linux 9

    0 shares
    Share 0 Tweet 0
  • Installing Oracle Database 26AI on Red Hat Enterprise Linux 9

    0 shares
    Share 0 Tweet 0
  • About Us
  • Contact

© 2026 DBAInsight - Smarter Databases. Sharper Insights. DBAInsight.

No Result
View All Result
  • Home
  • Cloud & Modern DBs
  • Guides
  • Cloud Technology
  • Case Studies
  • Troubleshooting
  • Training & Certification

© 2026 DBAInsight - Smarter Databases. Sharper Insights. DBAInsight.

Add as a preferred source on Google
Add as preferred source on Google