Locked DLLs during “OPatch apply”

It’s not the first time when I install patches on Oracle with OPatch and getting following error:

Active Files

There are a lot of threads on the different forums describing the issue and giving solutions for that. But I’ve never seen full step-by-step guide following which I could deal with the error above. The best one you can find is here. But it also didn’t solve the problem completely for me. That is why I decided to write this post.

You must stop all Oracle services before patching. I prefer disable them for patching period.

To find out what processes are holding DLLs I use Process Explorer utility.

process_explorer_results

Then you might need to stop following processes and services using commands:

net stop vmtools

net stop msdtc

net stop COMSysApp

In my case I also had to disable service Windows Management Instrumentation.

WMI_service

To find out if the process still holding on DLLs you can use following command:

tasklist /m /fi “imagename eq wmiprvse.exe

tasklist_output

Don’t forget to turn on disabled services and processes after patching is complete.

Use net start name

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>