LsInventorySession failed: RawInventory gets null OracleHomeInfo

Issue:

LsInventorySession failed: RawInventory gets null OracleHomeInfo

“Opatch lsinventory” command failed with the error as “LsInventorySession failed: RawInventory gets null OracleHomeInfo” and “OPatch failed with error code 73”.

Error:

[oracle@XXXX.com] $ env | grep ORA
ORACLE_BASE=/opt/oracle
ORACLE_SID=xxxx
ORACLE_TERM=xterm
ORACLE_HOME=/opt/oracle/product/12.1.0.2
ORAENV_ASK=YES
[oracle@XXXX.com] $
[oracle@XXXX.com] $ cd $ORACLE_HOME/OPatch
[oracle@XXXX.com] $ pwd
/opt/oracle/product/12.1.0.2/OPatch
[oracle@XXXX.com] $ opatch lsinventory
Oracle Interim Patch Installer version 12.2.0.1.8
Copyright (c) 2016, Oracle Corporation.  All rights reserved.

Oracle Home       : /opt/oracle/product/12.1.0.2
Central Inventory : /opt/oracle/oraInventory
   from           : /opt/oracle/product/12.1.0.2/oraInst.loc
OPatch version    : 12.2.0.1.11
OUI version       : 12.1.0.2.0
Log file location : /opt/oracle/product/12.1.0.2/cfgtoollogs/opatch/opatch2016-11-23_11-15-31AM_1.log

List of Homes on this system:

  Home name= OraDb11g_home1, Location= “/opt/oracle/product/11.2.0.1”
  Home name= OraDb11g_home2, Location= “/opt/oracle/product/11.2.0.1se”
  Home name= OraDb11g_home3, Location= “/opt/oracle/product/11.2.0.3”
  Home name= OraDb11g_home4, Location= “/opt/oracle/product/11.2.0.3se”
  Home name= OraDb11g_home5, Location= “/opt/oracle/product/11.2.0.4”
LsInventorySession failed: RawInventory gets null OracleHomeInfo

OPatch failed with error code 73

FIX:

attach the oracle_home by using below command in mentioned location

[oracle@XXXX.com] $ cd $ORACLE_HOME/oui/bin
[oracle@XXXX.com] $ pwd
/opt/oracle/product/12.1.0.2/oui/bin

[oracle@XXXX.com] $ cat attachHome.sh
#!/bin/sh
OHOME=/opt/oracle/product/12.1.0.2
OHOMENAME=OraDB12Home1
CUR_DIR=`pwd`
cd $OHOME/oui/bin
./runInstaller -detachhome ORACLE_HOME=$OHOME ORACLE_HOME_NAME=$OHOMENAME $* > /dev/null 2>&1
./runInstaller -attachhome ORACLE_HOME=$OHOME ORACLE_HOME_NAME=$OHOMENAME $*
cd $CUR_DIR

[oracle@XXXX.com] $
[oracle@XXXX.com] $ ./attachHome.sh
Starting Oracle Universal Installer…

Checking swap space: must be greater than 500 MB.   Actual 8192 MB    Passed
The inventory pointer is located at /var/opt/oracle/oraInst.loc
‘AttachHome’ was successful.

  • September 24, 2018 | 22 views
  • Comments