OPatch error : "Unable to lock Central Inventory"

(Doc ID 861677.1)

Last updated on MARCH 07, 2018

Applies to:

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


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

Oracle Interim Patch Installer version
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    :
OUI version       :
OUI location      : /db/dr/drdb/10.2.0/oui
Log file location : /db/dr/drdb/10.2.0/cfgtoollogs/opatch/opatch2009-07-22_10-

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]
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]


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