My Oracle Support Banner

OPatch throwing "Unable to lock Central Inventory" on Windows 7 (Doc ID 1568694.1)

Last updated on SEPTEMBER 20, 2018

Applies to:

Oracle Universal Installer - Version to [Release 10.2 to 12.1]
Oracle Fusion Middleware - Version and later
Microsoft Windows (32-bit) - OS Version: 7
Microsoft Windows x64 (64-bit) - OS Version: 7


OPatch throwing the following error when trying to apply or rollback a patch:

C:\Users\oracle\Desktop\16803775>C:\app\oracle\product\11.2.0\dbhome_1\OPatch\opatch apply
Oracle Interim Patch Installer version
Copyright (c) 2012, Oracle Corporation.  All rights reserved.

Oracle Home       : C:\app\oracle\product\11.2.0\dbhome_1
Central Inventory : C:\Program Files\Oracle\Inventory
   from           : n/a
OPatch version    :
OUI version       :
Log file location : C:\app\oracle\product\11.2.0\dbhome_1\cfgtoollogs\opatch\16803775_Jul_12_2013_17_47_25\apply2013-07-12_17-47-24PM_1.log

Applying interim patch '16803775' to OH 'C:\app\oracle\product\11.2.0\dbhome_1'
Verifying environment and performing prerequisite checks...
OiiolLogger.addFileHandler:Error while adding file handler - C:\Program Files\Oracle\Inventory/logs\OPatch2013-07-12_05-47-32-PM.log C:\Program Files\Oracle\Inventory\logs\OPatch2013-07-12_05-47-32-PM.log (Access is denied)
Unable to lock Central Inventory.  OPatch will attempt to re-lock.
Do you want to proceed? [y|n]
User Responded with: N
Unable to lock Central Inventory.  Stop trying per user-request?
OPatchSession cannot load inventory for the given Oracle Home C:\app\oracle\product\11.2.0\dbhome_1. Possible causes are:
   No read or write permission to ORACLE_HOME/.patch_storage
   Central Inventory is locked by another OUI instance
   No read permission to Central Inventory
   The lock file exists in ORACLE_HOME/.patch_storage
   The Oracle Home does not exist in Central Inventory

OPatch failed: ApplySession failed to prepare the system. Unable to lock Central Inventory.  Stop trying per user-request?
Log file location: C:\app\oracle\product\11.2.0\dbhome_1\cfgtoollogs\opatch\16803775_Jul_12_2013_17_47_25\apply2013-07-12_17-47-24PM_1.log

OPatch failed with error code = 22





 Trying to apply or rollback a patch


To view full details, 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 a vibrant support community of peers and Oracle experts.