Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I encountered the error message below while applying Oracle patch set using OUI on server running Oracle and Windows 2003 Enterprise Edition SP2:

Error in writing to file 'C:\oracle\ora92\BIN\orapls9.dll'
[C:\oracle\ora92\BIN\orapls9.dll (he process cannot access
the file because it is being used by another process)]

I've already stopped the Oracle instance and services before invoking the setup.exe.

My question is: Why this is happening and what is the resolution to prevent this error from happening?

share|improve this question

This is happening because some running process has loaded one or more Oracle DLLs and must be stopped before the install can proceed. The fun part is tracking them down.

First, ALL services running out of the Oracle Home being installed must be stopped, including the listener, data gatherer, etc.

Make sure the Microsoft Distributed Transaction Coordinator Service is stopped.

Failing that, download and install Process Explorer and use it to find the DLL's being complained about.

An alternative to process explorer (altho it's pretty nifty) is to simply use tasklist (since you know the name of the offending dll):

C:\>tasklist /m orapls9.dll

Image Name                     PID Modules
========================= ======== ============================================
TNSLSNR.EXE                   1664 orapls9.dll
oracle.exe                    1792 orapls9.dll
oracle.exe                    1836 orapls9.dll
oracle.exe                    1868 orapls9.dll
oracle.exe                    1884 orapls9.dll
oracle.exe                    1900 orapls9.dll
oracle.exe                    1916 orapls9.dll
oracle.exe                    1932 orapls9.dll
oracle.exe                    2028 orapls9.dll

share|improve this answer

Stop what you are doing and then check with task manager to see if any oracle processes are running. If so then kill them and restart.

share|improve this answer
I used task manager and tasklist, I don't see any oracle.exe process runnning. – titanium Jun 19 '09 at 19:29

Microsoft Distributed Transaction Coordinator Service is the most probable cause of your problem.

share|improve this answer

Stop Service "Distributed Transaction Coordinator"

It Work

Credit by Somchid HP Thailand

share|improve this answer

Just stop the "Microsoft Distributed Transaction Coordinator Service " and worked fine after !


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.