OPatch error : "Unable to lock Central Inventory" (Doc ID 861677.1)

Last updated on JANUARY 30, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 9.2.0.1 to 12.1.0.2 [Release 9.2 to 12.1]
Information in this document applies to any platform.
This problem can occur on any UNIX platform

***Checked for relevance on 29-Mar-2013***

Symptoms

Opatch apply failing with following errors

  Unable to lock Central Inventory. OPatch will attempt to re-lock.
  Do you want to proceed? [y|n]

Following are the messages during 'opatch apply'

[oracle@ccuine19 5596276]$ id
uid=500(oracle) gid=500(oinstall) groups=100(users),500(oinstall)

[oracle@ccuine19 5596276]$ opatch apply
Invoking OPatch 10.2.0.4.7

Oracle Interim Patch Installer version 10.2.0.4.7
Copyright (c) 2009, Oracle Corporation.  All rights reserved.


Oracle Home       : /db/dr/drdb/10.2.0
Central Inventory : /etc/oraInventory
   from           : /etc/oraInst.loc
OPatch version    : 10.2.0.4.7
OUI version       : 10.2.0.4.0
OUI location      : /db/dr/drdb/10.2.0/oui
Log file location : /db/dr/drdb/10.2.0/cfgtoollogs/opatch/opatch2009-07-22_10-
50-24AM.log

Patch history file: /db/dr/drdb/10.2.0/cfgtoollogs/opatch/opatch_history.txt

ApplySession applying interim patch '5596276' to OH '/db/dr/drdb/10.2.0'
Unable to lock Central Inventory.  OPatch will attempt to re-lock.
Do you want to proceed? [y|n]
y
User Responded with: Y
OPatch will sleep for few seconds, before re-trying to get the lock...

Unable to lock Central Inventory.  OPatch will attempt to re-lock.
Do you want to proceed? [y|n]

Changes

 

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms