LsInventory session failed: opatch failed with error code 73

LsInventory session failed: RawInventory gets null OracleHomeInfo | In Oracle EBS Instance, recently I have faced the error as lsinventory session failed while try to run ./opatch lsinventory in our Instance. OPatch wasn’t able to find the database home in central Inventory, due to this issue (opatch failed with error code 73) unable to do the oracle database patching.

Fixing LsInventory session failed.

LsInventory session failed
LsInventory session failed

To fix the issue we have to re-attached Oracle Home to the Central Inventory of the server, so that the Opatch can find the exact oracle home related script present in $ORACLE_HOME/oui/bin ‘’attachHome.sh’’.

 

Error:- OPatch failed with error code 73

To reproduce & check the issue go to linux oracle home and run the opatch lsinventory as below.
 
 
[oratest@prodapps OPatch]$ ./opatch lsinventory
 
Oracle Interim Patch Installer version 11.2.0.3.15
Copyright (c) 2017, Oracle Corporation.  All rights reserved.
Oracle Home       : /data03/1225_data/1225dbhome2
Central Inventory : /etc/oraInventory
 from           : /data03/1225_data/1225dbhome2/oraInst.loc
OPatch version    : 11.2.0.3.15
OUI version       : 11.2.0.4.0
Log file location :/data03/1225_data/1225dbhome2/cfgtoollogs/opatch/opatch2017-06-08_11-07-55AM_1.log
List of Homes on this system:
Home name= GST_WEBOH__apps_tech_st_10_1_3, Location= “/apps/tech_st/10.1.3”
Home name= GST_TOOLS__apps_tech_st_10_1_2, Location= “/apps/tech_st/10.1.2”
LsInventorySession failed: RawInventory gets null OracleHomeInfo
 
OPatch failed with error code 73
 
FIX:-
[[email protected]] $ cd $ORACLE_HOME/oui/bin
[oratest@aceapps bin]$ vi attachHome.sh
 
#!/bin/sh
OHOME=/data03/1225_data/1225dbhome2  –>change Oracle HomeOHOMENAME=OraDb11g_home1
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$*
 
 
 [oratest@aceapps bin]$ ./attachHome.sh
 
Starting Oracle Universal Installer…
Checking swap space: must be greater than 500 MB.Actual 40760 MB    Passed
The inventory pointer is located at /etc/oraInst.loc
The inventory is located at /etc/oraInventory
‘AttachHome’ was successful.
 
[[email protected]] $opatch lsinventory
 
Oracle Interim Patch Installer version 11.2.0.3.15
Copyright (c) 2020, Oracle Corporation.  All rights reserved.
 
 
Oracle Home       : /data03/1225_data/1225dbhome2
Central Inventory : /etc/oraInventory
from           : /data03/1225_data/1225dbhome2/oraInst.loc
OPatch version    : 11.2.0.3.15
OUI version         : 11.2.0.4.0
Log file location : /data03/1225_data/1225dbhome2/cfgtoollogs/opatch/opatch2020-06-24_10-38-53AM_1.log
 
Lsinventory Output file location : /data03/1225_data/1225dbhome2/cfgtoollogs/opatch/lsinv/lsinventory2020-06-24_10-38-53AM.txt
 
——————————————————————————–
Local Machine Information::
Hostname: test.******.com
ARU platform id: 226
ARU platform description:: Linux x86-64
 
Installed Top-level Products (2):
 
Oracle Database 11g                                                  11.2.0.4.0
Oracle Database 11g Examples                                   11.2.0.4.0
There are 2 products installed in this Oracle Home.
 
 
Interim patches (41) :
 
Patch  27475598     : applied on Wed Jun 27 10:50:02 IST 2018
Unique Patch ID:  21992620
Patch description:  “OJVM PATCH SET UPDATE 11.2.0.4.180417”
   Created on 2 Mar 2018, 13:34:33 hrs PST8PDT
   Bugs fixed:
     18933818, 19176885, 17201047, 25649873, 25067795, 14774730, 27461842
     19153980, 21911849, 23727132, 18166577, 27000663, 24448240, 17056813
     21811517, 19909862, 25494379, 22675136, 24534298, 19895326, 22253904
     17804361, 19231857, 26023002, 17528315, 19058059, 19554117, 19007266
     17285560, 22670385, 18458318, 19187988, 23265914, 19699946, 19006757
     19374518, 19223010, 25076732, 22118835, 26637592, 19852360, 20408829
     21047766, 21566944
 
Patch  25906117     : applied on Wed Jun 27 10:39:02 IST 2018
Unique Patch ID:  21296878
   Created on 26 May 2017, 03:11:57 hrs PST8PDT
   Bugs fixed:
     25906117
 
Patch  22496904     : applied on Wed Jun 27 10:38:06 IST 2018
Unique Patch ID:  21533001
   Created on 5 Sep 2017, 18:56:33 hrs PST8PDT
   Bugs fixed:
     22496904
   This patch overlays patches:
     26392168
   This patch needs patches:
     26392168
   as prerequisites
 
Patch  21967332     : applied on Wed Jun 27 10:37:17 IST 2018
Unique Patch ID:  20537412
   Created on 6 Sep 2016, 09:24:10 hrs PST8PDT
   Bugs fixed:
     21967332
   This patch overlays patches:
     24006111
   This patch needs patches:
     24006111
   as prerequisites
 
Patch  21904072     : applied on Wed Jun 27 10:34:56 IST 2018
Unique Patch ID:  19608095
   Created on 26 Jan 2016, 07:20:44 hrs PST8PDT
   Bugs fixed:
     21904072
 
Patch  21864513     : applied on Wed Jun 27 10:33:07 IST 2018
Unique Patch ID:  19560248
   Created on 18 Nov 2015, 08:36:51 hrs PST8PDT
   Bugs fixed:
     21864513
 
Patch  21321429     : applied on Wed Jun 27 10:32:15 IST 2018
Unique Patch ID:  19963028
   Created on 9 Mar 2016, 15:14:12 hrs
   Bugs fixed:
     21321429
   This patch overlays patches:
     17478514
   This patch needs patches:
     17478514
   as prerequisites
 
Patch  21028698     : applied on Wed Jun 27 10:25:19 IST 2018
Unique Patch ID:  19578741
   Created on 23 Nov 2015, 19:28:07 hrs PST8PDT
   Bugs fixed:
     21028698
   This patch overlays patches:
     19769489
   This patch needs patches:
     19769489
   as prerequisites
 
Patch  20294666     : applied on Wed Jun 27 10:23:50 IST 2018
Unique Patch ID:  18696911
   Created on 25 Mar 2015, 09:59:12 hrs PST8PDT
   Bugs fixed:
     20294666
   This patch overlays patches:
     20299013
   This patch needs patches:
     20299013
   as prerequisites
 
Patch  19949371     : applied on Wed Jun 27 10:23:01 IST 2018
Unique Patch ID:  18373294
   Created on 17 Dec 2014, 18:06:42 hrs PST8PDT
   Bugs fixed:
     19949371
 
Patch  20523280     : applied on Wed Jun 27 10:16:23 IST 2018
Unique Patch ID:  18677362
   Created on 2 Apr 2015, 03:42:27 hrs PST8PDT
   Bugs fixed:
     20523280
 
Patch  19472320     : applied on Wed Jun 27 10:16:20 IST 2018
Unique Patch ID:  18110563
   Created on 20 Oct 2014, 10:39:38 hrs PST8PDT
   Bugs fixed:
     19472320
 
Patch  18689530     : applied on Wed Jun 27 10:16:12 IST 2018
Unique Patch ID:  18111815
   Created on 30 Oct 2014, 12:31:48 hrs PST8PDT
   Bugs fixed:
     18689530
 
Patch  18685209     : applied on Wed Jun 27 10:16:03 IST 2018
Unique Patch ID:  17618705
   Created on 9 May 2014, 01:41:52 hrs PST8PDT
   Bugs fixed:
     18685209
 
Patch  18419770     : applied on Wed Jun 27 10:15:57 IST 2018
Unique Patch ID:  17474565
   Created on 1 Apr 2014, 08:56:43 hrs PST8PDT
   Bugs fixed:
     18419770
 
Patch  17629476     : applied on Wed Jun 27 10:15:48 IST 2018
Unique Patch ID:  16909151
   Created on 23 Oct 2013, 23:04:54 hrs PST8PDT
   Bugs fixed:
     17421340, 17487358
 
Patch  19835133     : applied on Wed Jun 27 10:08:03 IST 2018
Unique Patch ID:  18860494
   Created on 30 Apr 2015, 07:44:09 hrs PST8PDT
   Bugs fixed:
     19835133
 
Patch  19291380     : applied on Wed Jun 27 10:05:59 IST 2018
Unique Patch ID:  19690977
   Created on 24 Dec 2015, 21:52:49 hrs
   Bugs fixed:
     19291380
   This patch overlays patches:
     21948347
   This patch needs patches:
     21948347
   as prerequisites
 
Patch  18966843     : applied on Wed Jun 27 09:47:18 IST 2018
Unique Patch ID:  17784653
   Created on 25 Jun 2014, 00:03:52 hrs PST8PDT
   Bugs fixed:
     18966843
 
Patch  18708921     : applied on Wed Jun 27 09:46:06 IST 2018
Unique Patch ID:  17806701
   Created on 7 Jul 2014, 07:51:52 hrs PST8PDT
   Bugs fixed:
     18708921
   This patch overlays patches:
     18522509
   This patch needs patches:
     18522509
   as prerequisites
 
Patch  18665660     : applied on Wed Jun 27 09:45:01 IST 2018
Unique Patch ID:  20537338
   Created on 30 Aug 2016, 09:42:34 hrs PST8PDT
   Bugs fixed:
     18665660
   This patch overlays patches:
     24006111
   This patch needs patches:
     24006111
   as prerequisites
 
Patch  18604144     : applied on Wed Jun 27 09:43:51 IST 2018
Unique Patch ID:  17759881
   Created on 18 Jun 2014, 07:22:30 hrs PST8PDT
   Bugs fixed:
     18604144
 
Patch  27076225     : applied on Wed Jun 27 09:42:50 IST 2018
Unique Patch ID:  21698498
   Created on 7 Nov 2017, 03:07:48 hrs PST8PDT
   Bugs fixed:
     26911000, 18485835, 21614112
   This patch overlays patches:
     26392168
   This patch needs patches:
     26392168
   as prerequisites
 
Patch  26122634     : applied on Wed Jun 27 09:41:56 IST 2018
Unique Patch ID:  21291014
   Created on 13 Jun 2017, 03:28:23 hrs PST8PDT
   Bugs fixed:
     19791273, 18284763
   This patch overlays patches:
     25869727
   This patch needs patches:
     25869727
   as prerequisites
 
Patch  17901041     : applied on Wed Jun 27 09:40:55 IST 2018
Unique Patch ID:  20006732
   Created on 23 Mar 2016, 10:55:37 hrs
   Bugs fixed:
     17901041
   This patch overlays patches:
     22502456
   This patch needs patches:
     22502456
   as prerequisites
 
Patch  23477849     : applied on Tue Jun 26 16:04:08 IST 2018
Unique Patch ID:  20294638
   Created on 9 Jun 2016, 16:27:10 hrs
   Bugs fixed:
     17801303, 22737974, 20476776, 17654622
 
Patch  27760613     : applied on Tue Jun 26 15:51:40 IST 2018
Unique Patch ID:  22057997
   Created on 9 Apr 2018, 16:50:22 hrs PST8PDT
   Bugs fixed:
     24326444, 17250794, 20825533, 20627866, 20887355
   This patch overlays patches:
     27338049
   This patch needs patches:
     27338049
   as prerequisites
 
Patch  20883625     : applied on Tue Jun 26 15:50:29 IST 2018
Unique Patch ID:  18819041
   Created on 14 Apr 2015, 13:40:58 hrs PST8PDT
   Bugs fixed:
     16359751, 18730542
   This patch overlays patches:
     20299013
   This patch needs patches:
     20299013
   as prerequisites
 
Patch  27581147     : applied on Tue Jun 26 15:27:57 IST 2018
Unique Patch ID:  21964371
   Created on 23 Feb 2018, 17:04:51 hrs PST8PDT
   Bugs fixed:
     26654363, 16299727, 17781991, 26658759, 24385983, 26336977, 19896336
     20245930, 22666802, 19239846, 25099339, 20936905, 23632545, 22024071
     25971286, 24589081, 17401353, 21813400, 21091431, 23645516, 19879144
     25919622, 22568797, 14255128, 20949558
   This patch overlays patches:
     26925576
   This patch needs patches:
     26925576
   as prerequisites
 
Patch  26751367     : applied on Tue Jun 26 15:26:14 IST 2018
Unique Patch ID:  21535489
   Created on 11 Oct 2017, 15:28:49 hrs PST8PDT
   Bugs fixed:
     12574386, 10427365, 10019002
   This patch overlays patches:
     26392168
   This patch needs patches:
     26392168
   as prerequisites
 
Patch  27338049     : applied on Tue Jun 26 15:22:36 IST 2018
Unique Patch ID:  21969981
Patch description:  “Database Patch Set Update : 11.2.0.4.180417 (27338049)”
   Created on 25 Feb 2018, 22:14:48 hrs PST8PDT
Sub-patch  26925576; “Database Patch Set Update : 11.2.0.4.180116 (26925576)”
Sub-patch  26392168; “Database Patch Set Update : 11.2.0.4.171017 (26392168)”
Sub-patch  26609445; “Database Patch Set Update : 11.2.0.4.170814 (26609445)”
Sub-patch  25869727; “Database Patch Set Update : 11.2.0.4.170718 (25869727)”
Sub-patch  24732075; “Database Patch Set Update : 11.2.0.4.170418 (24732075)”
Sub-patch  24006111; “Database Patch Set Update : 11.2.0.4.161018 (24006111)”
Sub-patch  23054359; “Database Patch Set Update : 11.2.0.4.160719 (23054359)”
Sub-patch  22502456; “Database Patch Set Update : 11.2.0.4.160419 (22502456)”
Sub-patch  21948347; “Database Patch Set Update : 11.2.0.4.160119 (21948347)”
Sub-patch  21352635; “Database Patch Set Update : 11.2.0.4.8 (21352635)”
Sub-patch  20760982; “Database Patch Set Update : 11.2.0.4.7 (20760982)”
Sub-patch  20299013; “Database Patch Set Update : 11.2.0.4.6 (20299013)”
Sub-patch  19769489; “Database Patch Set Update : 11.2.0.4.5 (19769489)”
Sub-patch  19121551; “Database Patch Set Update : 11.2.0.4.4 (19121551)”
Sub-patch  18522509; “Database Patch Set Update : 11.2.0.4.3 (18522509)”
Sub-patch  18031668; “Database Patch Set Update : 11.2.0.4.2 (18031668)”
Sub-patch  17478514; “Database Patch Set Update : 11.2.0.4.1 (17478514)”
   Bugs fixed:
     21174504, 17184721, 21538558, 16091637, 18092127, 17381384, 15979965
     20671094, 16731148, 16314254, 13837378, 18441944, 17835048, 13558557
     17008068, 17201159, 25427662, 17853498, 20717359, 17246576, 18356166
     18681862, 18440047, 20569094, 20031873, 16875449, 20387265, 19788842
     17296856, 21330264, 14010183, 17648596, 17551063, 17025461, 24719736
     17267114, 22507210, 17912217, 17889583, 18202441, 17040764, 17478145
     16524926, 25655390, 19358317, 22148226, 18747196, 26544823, 18641419
     17036973, 18948177, 17811789, 16542886, 14285317, 18009564, 16618694
     8322815, 16832076, 18247991, 16692232, 22507234, 17570240, 13871092
     24624166, 17848897, 17441661, 14034426, 17465741, 16596890, 17437634
     21343897, 20506706, 21453153, 18339044, 22321741, 21795111, 17951233
     18430495, 21787056, 22380919, 19469538, 20506715, 17811429, 19721304
     17903598, 18230522, 19554106, 19458377, 21281607, 17612828, 6599380
     22092979, 22321756, 17040527, 17811438, 18641461, 14657740, 13364795
     21387964, 19490948, 22351572, 17346671, 17588480, 18235390, 26474853
     18849970, 17889549, 19309466, 16472716, 20596234, 18331850, 18641451
     17344412, 21179898, 19461270, 17546761, 24842886, 14521849, 18203835
     18203838, 18964939, 18203837, 17313525, 22195457, 18139690, 16837842
     22296366, 14106803, 17842825, 21352646, 22657942, 16360112, 20657441
     22195441, 17389192, 26198926, 14565184, 17205719, 18440095, 14764829
     22195448, 14354737, 13944971, 16571443, 21868720, 17186905, 17080436
     18673342, 22905130, 17027426, 27374796, 19972569, 19972568, 20144308
     19972566, 17282229, 19972564, 16870214, 21629064, 19615136, 21354456
     17390431, 18762750, 23007241, 16613964, 17957017, 18098207, 18471685
     19730508, 21538485, 18264060, 17323222, 17754782, 17600719, 18317531
     17852463, 17596908, 17655634, 16228604, 27053456, 20074391, 19972570
     18090142, 18996843, 19854503, 16042673, 17835627, 20334344, 17393683
     20861693, 18000422, 17551709, 26575788, 23315889, 20506699, 19006849
     18277454, 18456514, 19174430, 17258090, 17174582, 25654936, 17242746
     16399083, 17824637, 21132297, 22465352, 17762296, 22168163, 17397545
     16450169, 12364061, 20067212, 18856999, 19211724, 19463893, 19463897
     21343775, 17853456, 18673304, 20004021, 26030218, 21668627, 16194160
     17477958, 16538760, 12982566, 24570598, 20828947, 18259031, 20296213
     18293054, 17610798, 19699191, 23065323, 17311728, 18135678, 18774543
     23294548, 16785708, 10136473, 24560906, 22551446, 19777862, 17786518
     18315328, 18334586, 12747740, 18096714, 19032867, 21641760, 18899974
     17390160, 17232014, 20598042, 18673325, 16422541, 18155762, 14015842
     19827973, 22683225, 17726838, 18554871, 23177648, 18051556, 20803583
     21972320, 15990359, 17922254, 18282562, 16855292, 16668584, 21343838
     20299015, 17446237, 18093615, 18043064, 23713236, 17694209, 17288409
     20475845, 17274537, 13955826, 16934803, 17634921, 17501491, 16315398
     22683212, 17006183, 13829543, 18191164, 17655240, 26746894, 22809871
     18384391, 19393542, 21538567, 16198143, 21847223, 25823754, 17892268
     20142975, 19584068, 17165204, 25165496, 18604493, 21756699, 18508861
     16901385, 18554763, 21532755, 18189036, 17443671, 17385178, 14829250
     17936109, 20925795, 20509482, 17478514, 27441326, 16850630, 13951456
     16595641, 14054676, 15861775, 21142837, 16912439, 17299889, 17297939
     23003979, 18619917, 16833527, 17798953, 17816865, 18607546, 17571306
     21286665, 17341326, 26910644, 17851160, 20558005, 17586955, 19049453
     21051840, 17587063, 16956380, 18328509, 25423453, 14133975, 18061914
     18522509, 21051833, 18765602, 20860659, 20324049, 18199537, 17332800
     13609098, 22502493, 18384537, 14338435, 17945983, 16392068, 21067387
     17752995, 21051862, 16863422, 25505382, 17237521, 18244962, 19544839
     24433711, 24717859, 17156148, 18973907, 23026585, 17877323, 17449815
     18180390, 17088068, 17037130, 20004087, 21422580, 19466309, 11733603
     25505371, 21051858, 18084625, 18674024, 21051852, 18091059, 25369547
     16306373, 18306996, 18193833, 19915271, 17787259, 20513399, 20631274
     25879656, 16344544, 14692762, 18614015, 17346091, 18228645, 17721717
     18436307, 21756677, 19888853, 11883252, 17891943, 19475971, 22353199
     16384983, 19121551, 12816846, 17982555, 17761775, 22243719, 17265217
     25505394, 17071721, 16721594, 21756661, 18262334, 17891946, 15913355
     17672719, 17602269, 17239687, 17042658, 17238511, 17811456, 17284817
     17752121, 20879889, 21380789, 17394950, 17011832, 16579084, 22195465
     14602788, 18325460, 24476265, 26569225, 24476274, 12611721, 16903536
     17006570, 19689979, 16043574, 18783224, 24662775, 16494615, 21526048
     17392698, 19197175, 16069901, 17811447, 17308789, 22195477, 24835538
     17865671, 17343514, 19013183, 17325413, 18316692, 16180763, 17348614
     14368995, 21983325, 17393915, 16285691, 19211433, 20331945, 17883081
     17705023, 24316947, 17614227, 19578350, 22195485, 14084247, 13645875
     16777840, 19727057, 14852021, 18744139, 18674047, 17716305, 19285025
     18482502, 17622427, 19289642, 22195492, 25947799, 14458214, 20869721
     21172913, 17767676, 18723434, 25505407, 17786278, 19258504, 17082983
     21351877, 17365043, 13498382, 18331812, 16065166, 25489607, 16685417
     18031668, 22893153, 16943711, 19272701, 21517440, 25897615, 17649265
     13866822, 18094246, 24528741, 17783588, 14245531, 17082359, 18280813
     20448824, 23330119, 16268425, 19487147, 25600421, 18018515, 17302277
     17215560, 24411921, 19271443, 25764020, 17016369, 20777150, 23330124
     16756406, 20441797, 19769489, 17545847, 25093656, 18260550, 13853126
     17227277, 23536835, 25957038, 24652769, 19207117, 9756271, 18868646
     17614134, 26667023, 17546973, 18704244, 19680952, 26667015, 17050888
     18828868, 18273830, 17360606, 24563422, 16992075, 17375354, 12905058
     18362222, 21429602, 27086138, 17571039, 17468141, 18436647, 17235750
     21168487, 16220077, 16929165
 
Patch  17429475     : applied on Tue Jun 26 14:41:12 IST 2018
Unique Patch ID:  17227751
   Created on 8 Oct 2013, 02:46:40 hrs PST8PDT
   Bugs fixed:
     17429475
 
Patch  16989137     : applied on Tue Jun 26 14:28:35 IST 2018
Unique Patch ID:  17622078
   Created on 9 May 2014, 06:02:22 hrs PST8PDT
   Bugs fixed:
     16989137
 
Patch  14046443     : applied on Tue Jun 26 14:01:55 IST 2018
Unique Patch ID:  17991801
   Created on 15 Sep 2014, 09:11:16 hrs PST8PDT
   Bugs fixed:
     14046443
 
Patch  16075609     : applied on Tue Jun 26 12:31:28 IST 2018
Unique Patch ID:  15869822
   Created on 20 Apr 2015, 14:10:05 hrs PST8PDT
   Bugs fixed:
     16075609
 
Patch  4189542      : applied on Tue Jun 26 12:30:31 IST 2018
Unique Patch ID:  17101008
   Created on 8 Jan 2014, 02:50:19 hrs PST8PDT
   Bugs fixed:
     4189542
 
Patch  13417321     : applied on Tue Jun 26 12:27:59 IST 2018
Unique Patch ID:  18023418
   Created on 9 Sep 2014, 23:25:17 hrs PST8PDT
   Bugs fixed:
     13417321
 
Patch  4247037      : applied on Sun Jan 01 11:51:12 IST 2017
Unique Patch ID:  16751181
   Created on 03 SEP 2013, 09:52:00 hrs US/Pacific
   Bugs fixed:
     4247037
 
Patch  22731026     : applied on Sun Jan 01 11:43:55 IST 2017
Unique Patch ID:  20226192
   Created on 25 May 2016, 07:28:30 hrs
   Bugs fixed:
     22731026
 
Patch  17501296     : applied on Sun Jan 01 11:40:00 IST 2017
Unique Patch ID:  18802658
   Created on 10 Apr 2015, 16:40:58 hrs PST8PDT
   Bugs fixed:
     17501296
 
Patch  17402822     : applied on Sun Jan 01 10:33:20 IST 2017
Unique Patch ID:  16826504
   Created on 24 Oct 2013, 23:32:52 hrs PST8PDT
   Bugs fixed:
     17402822
 
 
 
——————————————————————————–
OPatch succeeded.
 
Let’s see the above result, Now have fixed LsInventory session failed and we are able to run opatch lsinventory .
 
 

2 thoughts on “LsInventory session failed: opatch failed with error code 73”

Leave a Comment