Oracle DLL files cannot be deleted because they are in use

Document ID : KB000033234
Last Modified Date : 14/02/2018
Show Technical Document Details

PROBLEM

If an eHealth installation fails on a Windows server, it is often necessary to completely remove the files partially installed on the server before making another attempt. When removing the Oracle directory, users may encounter errors that one or more DLL files are in use and cannot be deleted.

 

ENVIRONMENT: This could affect any version of eHealth on the Windows platform

 

RESOLUTION:

To determine what process is locking the DLL, run the following command from a command line interface:

tasklist /M moduleName.dll 

The name of the service or process that is using that DLL file will be displayed. You can then end the process using the Services control panel, the Task Manager, or the kill command.

EXAMPLE

c:\>tasklist /M ora32.dll

Image Name          PID   Modules
=====================
thisProg.exe          1234  ora32.dll

c:\>kill 1234

ADDITIONAL RESOURCES

Microsoft TechNet description of the tasklist command
https://technet.microsoft.com/en-us/library/bb491010.aspx