Opatch Command Fails with Error:"OPatch Cannot Load Inventory for the Given Oracle Home"

(Doc ID 1308866.1)

Last updated on JUNE 16, 2017

Applies to:

Oracle Database - Enterprise Edition - Version and later
Information in this document applies to any platform.


On : version, Dataserver Installation and Relinking issue

When attempting to run opatch lsinventory,the following error occurs.:


OPatch could not create/open history file for writing : /oracle/app10205/cfgtoollogs/opatch/opatch_history.txt
/oracle/app10205/cfgtoollogs/opatch/opatch_history.txt (Permission denied)
Inventory load failed... OPatch cannot load inventory for the given Oracle Home.

LsInventorySession failed: LsInventory cannot create the log directory /oracle/app10205/cfgtoollogs/opatch/lsinv/lsinventory2011-03-27_15-37-05PM.txt

OPatch failed with error code 73

The issue can be reproduced at will with the following steps:

% opatch lsinventory


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