DOYENSYS Knowledge Portal




We Welcome you to visit our DOYENSYS KNOWLEDGE PORTAL : Doyensys Knowledge Portal




Monday, October 23, 2017

LSINVENTORYSESSION FAILED: RAWINVENTORY GETS NULL ORACLEHOMEINFO


error :

$  opatch lsinventory

Oracle Interim Patch Installer version 12.2.0.1.8
Copyright (c) 2017, Oracle Corporation.  All rights reserved.


Oracle Home       : /TEST/oracle/TEST/db/tech_st/12.1.0
Central Inventory : /TEST/oracle/TEST/db/tech_st/12.1.0/oraInventory
   from           : /TEST/oracle/TEST/db/tech_st/12.1.0/oraInst.loc
OPatch version    : 12.2.0.1.8
OUI version       : 12.1.0.2.0
Log file location : /TEST/oracle/TEST/db/tech_st/12.1.0/cfgtoollogs/opatch/opatch2017-10-17_08-46-13AM_1.log

List of Homes on this system:

LsInventorySession failed: RawInventory gets null OracleHomeInfo

OPatch failed with error code 73


Solution :
=====

$ cd $ORACLE_HOME/oui/bin

$ cat attachHome.sh
#!/bin/sh
OHOME=/TEST/oracle/TEST/db/tech_st/12.1.0
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
$

$ ./attachHome.sh
Starting Oracle Universal Installer...

Checking swap space: must be greater than 500 MB.   Actual 16896 MB    Passed
The inventory pointer is located at /etc/oraInst.loc
'AttachHome' was successful.

After Fix :
========

$ opatch lsinventory
Oracle Interim Patch Installer version 12.2.0.1.8
Copyright (c) 2017, Oracle Corporation.  All rights reserved.


Oracle Home       : /TEST/oracle/TEST/db/tech_st/12.1.0
Central Inventory : /TEST/oracle/TEST/db/tech_st/12.1.0/oraInventory
   from           : /TEST/oracle/TEST/db/tech_st/12.1.0/oraInst.loc
OPatch version    : 12.2.0.1.8
OUI version       : 12.1.0.2.0
Log file location : /TEST/oracle/TEST/db/tech_st/12.1.0/cfgtoollogs/opatch/opatch2017-10-17_08-55-06AM_1.log

Lsinventory Output file location : /TEST/oracle/TEST/db/tech_st/12.1.0/cfgtoollogs/opatch/lsinv/lsinventory2017-10-17_08-55-06AM.txt

--------------------------------------------------------------------------------
Local Machine Information::
Hostname: devebs.doyensys.com
ARU platform id: 212
ARU platform description:: IBM_AIX

Installed Top-level Products (1):

Oracle Database 12c                                                  12.1.0.2.0
There are 1 products installed in this Oracle Home.


Interim patches (4) :

Patch  23089357     : applied on Sat Sep 16 07:24:46 IST 2017
Unique Patch ID:  20160189
   Created on 10 May 2016, 20:43:37 hrs PST8PDT
   Bugs fixed:
     23089357

Patch  20204035     : applied on Fri Sep 15 22:26:51 IST 2017
Unique Patch ID:  18381868
   Created on 15 Dec 2014, 05:44:27 hrs PST8PDT
   Bugs fixed:
     20123899, 15894842

Patch  19627012     : applied on Fri Sep 15 22:23:48 IST 2017
Unique Patch ID:  18355531
   Created on 7 Dec 2014, 21:56:35 hrs PST8PDT
   Bugs fixed:
     19627012

Patch  19382851     : applied on Fri Sep 15 22:20:06 IST 2017
Unique Patch ID:  18355484
   Created on 7 Dec 2014, 21:36:19 hrs PST8PDT
   Bugs fixed:
     19382851



--------------------------------------------------------------------------------

OPatch succeeded.
$

No comments: