Saturday, August 23, 2008

OUI-10020: A write lock cannot be obtained.

Problem Description
While using OUI it fails with following message,
OUI-10020:The target area /oracle/10gR2/oraInventory is being used by another session. A write lock cannot be obtained.

Cause of The Problem
There is some process or software that holds lock on the /oracle/10gR2/oraInventory file. Until that software release lock OUI continues to display message OUI-10020.

Solution of The Problem
1.Go to the oraInventory directory.
$cd /oracle/10gR2/oraInventory

2. See the contents of it.
$ls /oracle/10gR2/oraInventory
You will see the locks directory here.

3.Go to the lock directory and delete the read lock under the directory.
$cd locks
$ rm /oracle/10gR2/oraInventory/locks/reader0.lock


4.Now run your Oracle Universal Installer.

2 comments:

  1. Your solution was extremely helpful even after more than two years since it was posted. Thank you for taking your time to relieve others of going through a hard time.

    ReplyDelete