Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I encountered the error message below while applying Oracle 9.2.0.8 patch set using OUI on server running Oracle 9.2.0.7 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

5 Answers 5

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

C:\>
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 !

Thanks

share|improve this answer

Your Answer

 
discard

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.