OPatch Failed With Error Code 73

I have to install a patch on a database, by running the following command to see what’s in the inventory

opatch lsinventory -all

I get the following error;

JUPITER/orasiebel/oracle/product/10.2.0/db_1/OPatch => opatch lsinventory
Invoking OPatch 10.2.0.4.3

Oracle Interim Patch Installer version 10.2.0.4.3
Copyright (c) 2007, Oracle Corporation.  All rights reserved.

Oracle Home       : /orasiebel/oracle/product/10.2.0/db_1
Central Inventory : /agentgc/oraInventory
   from           : /var/opt/oracle/oraInst.loc
OPatch version    : 10.2.0.4.3
OUI version       : 10.2.0.4.0
OUI location      : /orasiebel/oracle/product/10.2.0/db_1/oui
Log file location : /orasiebel/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2015-05-14_15-18-06PM.log

List of Homes on this system:

  Home name= agent10g, Location= "/agentgc/OracleHomes/agent10g"
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

OPatch failed with error code 73

The problem in this case is in inventory, which does not exist, someone may have deleted by mistake. The solution is to run the installer with the option -attachHome or from version 10.2.0.2 or higher can run the script attachHome.sh as in the example below;

JUPITER/orasiebel/oracle/product/10.2.0/db_1/oui/bin => ./attachHome.sh
Starting Oracle Universal Installer...

No pre-requisite checks found in oraparam.ini, no system pre-requisite checks will be executed.
The inventory pointer is located at /var/opt/oracle/oraInst.loc
The inventory is located at /agentgc/oraInventory
'AttachHome' was successful.

If we run again “opatch lsinventory -all” get the following output, which is right.

JUPITER/orasiebel/oracle/product/10.2.0/db_1/OPatch => opatch lsinventory
Invoking OPatch 10.2.0.4.3

Oracle Interim Patch Installer version 10.2.0.4.3
Copyright (c) 2007, Oracle Corporation.  All rights reserved.

Oracle Home       : /orasiebel/oracle/product/10.2.0/db_1
Central Inventory : /agentgc/oraInventory
   from           : /var/opt/oracle/oraInst.loc
OPatch version    : 10.2.0.4.3
OUI version       : 10.2.0.4.0
OUI location      : /orasiebel/oracle/product/10.2.0/db_1/oui
Log file location : /orasiebel/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/opatch2015-05-14_15-21-46PM.log

Lsinventory Output file location : /orasiebel/oracle/product/10.2.0/db_1/cfgtoollogs/opatch/lsinv/lsinventory2015-05-14_15-21-46PM.txt

--------------------------------------------------------------------------------
Installed Top-level Products (2):

Oracle Database 10g                                                  10.2.0.1.0
Oracle Database 10g Release 2 Patch Set 3                            10.2.0.4.0
There are 2 products installed in this Oracle Home.

Interim patches (15) :

Patch  7609058      : applied on Thu May 07 16:00:23 CEST 2009
   Created on 31 Dec 2008, 00:42:37 hrs PST8PDT
   Bugs fixed:
     7609058

Patch  7609057      : applied on Thu May 07 16:00:13 CEST 2009
   Created on 31 Dec 2008, 01:17:11 hrs PST8PDT
   Bugs fixed:
     7609057

Patch  7592346      : applied on Thu May 07 16:00:07 CEST 2009
   Created on 31 Dec 2008, 01:23:22 hrs PST8PDT
   Bugs fixed:
     7375644, 7150470, 7592346

Patch  7375617      : applied on Thu May 07 16:00:02 CEST 2009
   Created on 17 Sep 2008, 05:02:15 hrs PST8PDT
   Bugs fixed:
     7375617

Patch  7375613      : applied on Thu May 07 15:59:57 CEST 2009
   Created on 17 Sep 2008, 05:02:13 hrs PST8PDT
   Bugs fixed:
     7375613

Patch  7375611      : applied on Thu May 07 15:59:52 CEST 2009
   Created on 17 Sep 2008, 05:02:09 hrs PST8PDT
   Bugs fixed:
     7375611

Patch  7197583      : applied on Thu May 07 15:59:42 CEST 2009
   Created on 2 Jul 2008, 10:06:43 hrs PST8PDT
   Bugs fixed:
     7197583

Patch  7155254      : applied on Thu May 07 15:59:31 CEST 2009
   Created on 2 Jul 2008, 10:06:14 hrs PST8PDT
   Bugs fixed:
     7155254

Patch  7155253      : applied on Thu May 07 15:57:34 CEST 2009
   Created on 2 Jul 2008, 10:05:45 hrs PST8PDT
   Bugs fixed:
     7155253

Patch  7155252      : applied on Thu May 07 15:55:59 CEST 2009
   Created on 2 Jul 2008, 10:05:15 hrs PST8PDT
   Bugs fixed:
     7155252

Patch  7155251      : applied on Thu May 07 15:55:49 CEST 2009
   Created on 2 Jul 2008, 10:04:30 hrs PST8PDT
   Bugs fixed:
     7155251

Patch  7155250      : applied on Thu May 07 15:55:38 CEST 2009
   Created on 2 Jul 2008, 10:03:58 hrs PST8PDT
   Bugs fixed:
     7155250

Patch  7155249      : applied on Thu May 07 15:55:25 CEST 2009
   Created on 2 Jul 2008, 10:03:27 hrs PST8PDT
   Bugs fixed:
     7155249

Patch  7155248      : applied on Thu May 07 15:55:20 CEST 2009
   Created on 2 Jul 2008, 10:01:21 hrs PST8PDT
   Bugs fixed:
     7155248

Patch  7172752      : applied on Mon Mar 16 15:13:06 CET 2009
   Created on 2 Feb 2009, 11:19:35 hrs PST8PDT
   Bugs fixed:
     7172752

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

OPatch succeeded.

HTH – Antonio NAVARRO

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s