OPatch Fails With "LsInventorySession failed: OracleHomeInventory gets null oracleHomeInfo" (Doc ID 728417.1)

Last updated on FEBRUARY 07, 2017

Applies to:

Oracle Universal Installer - Version 10.2.0.1 and later
Information in this document applies to any platform.

Symptoms

After detaching an ORACLE_HOME from the central inventory, the OPatch commands 'opatch lsinventory' and 'opatch lsinventory -all' report the following error if ORACLE_HOME points to the detached home:

Inventory load failed... OPatch cannot load inventory for the given Oracle Home.
Possible causes are:
Oracle Home dir. path does not exist in Central Inventory
Oracle Home is a symbolic link
Oracle Home inventory is corrupted
LsInventorySession failed: OracleHomeInventory gets null oracleHomeInfo


If ORACLE_HOME points to a separate attached home, the OPatch commands work.

After re-attaching the home to the central inventory, the OPatch commands work again

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