1 2 Previous Next 22 Replies Latest reply: Feb 23, 2013 3:18 PM by 992948 RSS

    OPatch failed with error code 73

    755678
      I need to apply a APRCPU2010 patch on 11.1.0.7 environment on HPUX IA64 platform.
      But I get the below error while invoking opatch. Could someone please help me out with a solution?
      [default](xxxxxx)/u01/app/oracle/product/10.2.0.4_2Q10/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       : /u01/app/oracle/product/10.2.0.4_2Q10
      Central Inventory : /u01/app/oracle/oraInventory
         from           : /var/opt/oracle/oraInst.loc
      OPatch version    : 10.2.0.4.3
      OUI version       : 10.2.0.4.0
      OUI location      : /u01/app/oracle/product/10.2.0.4_2Q10/oui
      Log file location : /u01/app/oracle/product/10.2.0.4_2Q10/cfgtoollogs/opatch/opatch2010-09-13_05-09-57AM.log
      
      org.xml.sax.SAXParseException: <Line 1, Column 1>: XML-20108: (Fatal Error) Start of root element expected.
              at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:415)
              at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:284)
              at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:331)
              at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:293)
              at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:209)
              at oracle.sysman.oii.oiii.OiiiOracleHomeInfoXMLReader.updateHomeProperties(OiiiOracleHomeInfoXMLReader.java:86)
              at oracle.sysman.oii.oiii.OiiiInstallInventory.updateOracleHomesProperties(OiiiInstallInventory.java:724)
              at oracle.sysman.oii.oiii.OiiiInstallInventory.updateOracleHomesProperties(OiiiInstallInventory.java:702)
              at oracle.sysman.oii.oiii.OiiiInstallInventory.readHomes(OiiiInstallInventory.java:659)
              at oracle.sysman.oii.oiii.OiiiInstallAreaControl.loadPartialInstallInv(OiiiInstallAreaControl.java:654)
              at oracle.sysman.oii.oiii.OiiiInstallAreaControl.initInstallInv(OiiiInstallAreaControl.java:699)
              at oracle.sysman.oii.oiii.OiiiInstallAreaControl.loadInstallInventory(OiiiInstallAreaControl.java:566)
              at oracle.sysman.oii.oiii.OiiiInstallAreaControl.initAreaControl(OiiiInstallAreaControl.java:1783)
              at oracle.sysman.oii.oiii.OiiiInstallAreaControl.initAreaControl(OiiiInstallAreaControl.java:1736)
              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:292)
              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:231)
              at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:180)
              at oracle.opatch.OUIInventorySession.initSession(OUIInventorySession.java:63)
              at oracle.opatch.OUISessionManager.setupSession(OUISessionManager.java:146)
              at oracle.opatch.OUISessionManager.lockCentralInventory(OUISessionManager.java:263)
              at oracle.opatch.OUISessionManager.instantiate(OUISessionManager.java:83)
              at oracle.opatch.OUISessionManager.updateOPatchEnvironment(OUISessionManager.java:646)
              at oracle.opatch.InventorySessionManager.updateOPatchEnvironment(InventorySessionManager.java:76)
              at oracle.opatch.OPatchSession.main(OPatchSession.java:1500)
              at oracle.opatch.OPatch.main(OPatch.java:619)
      
      
      Inventory load failed... OPatch cannot load inventory for the given Oracle Home.
      
      LsInventorySession failed: Unable to create patchObject
      
      OPatch failed with error code 73
      Thanks!

      Edited by: user9104898 on Sep 14, 2010 5:24 AM
        • 1. Re: OPatch failed with error code 73
          Chinar
          You do not have sufficient permission *$ORACLE_HOME/inventory/oneoffs* directory please refer below metalink doc
          *Opatch Lsinventory Fails With "Unable to create patchObject" OPatch failed with error code 73 [ID 751152.1]*
          • 2. Re: OPatch failed with error code 73
            755678
            I set the OPatch variable in the PATH. PATH=$ORACLE_HOME/OPatch:$PATH; export PATH
            and now I am getting the below output.
            [default](xxxxxxx)/home/oracle-> 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       : /u01/app/oracle/product/10.2.0.4_2Q10
            Central Inventory : /u01/app/oracle/oraInventory
               from           : /var/opt/oracle/oraInst.loc
            OPatch version    : 10.2.0.4.3
            OUI version       : 10.2.0.4.0
            OUI location      : /u01/app/oracle/product/10.2.0.4_2Q10/oui
            Log file location : /u01/app/oracle/product/10.2.0.4_2Q10/cfgtoollogs/opatch/opatch2010-09-14_08-01-10AM.log
            
            org.xml.sax.SAXParseException: <Line 1, Column 1>: XML-20108: (Fatal Error) Start of root element expected.
                    at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:415)
                    at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:284)
                    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:331)
                    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:293)
                    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:209)
                    at oracle.sysman.oii.oiii.OiiiOracleHomeInfoXMLReader.updateHomeProperties(OiiiOracleHomeInfoXMLReader.java:86)
                    at oracle.sysman.oii.oiii.OiiiInstallInventory.updateOracleHomesProperties(OiiiInstallInventory.java:724)
                    at oracle.sysman.oii.oiii.OiiiInstallInventory.updateOracleHomesProperties(OiiiInstallInventory.java:702)
                    at oracle.sysman.oii.oiii.OiiiInstallInventory.readHomes(OiiiInstallInventory.java:659)
                    at oracle.sysman.oii.oiii.OiiiInstallAreaControl.loadPartialInstallInv(OiiiInstallAreaControl.java:654)
                    at oracle.sysman.oii.oiii.OiiiInstallAreaControl.initInstallInv(OiiiInstallAreaControl.java:699)
                    at oracle.sysman.oii.oiii.OiiiInstallAreaControl.loadInstallInventory(OiiiInstallAreaControl.java:566)
                    at oracle.sysman.oii.oiii.OiiiInstallAreaControl.initAreaControl(OiiiInstallAreaControl.java:1783)
                    at oracle.sysman.oii.oiii.OiiiInstallAreaControl.initAreaControl(OiiiInstallAreaControl.java:1736)
                    at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:292)
                    at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:231)
                    at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:180)
                    at oracle.opatch.OUIInventorySession.initSession(OUIInventorySession.java:63)
                    at oracle.opatch.OUISessionManager.setupSession(OUISessionManager.java:146)
                    at oracle.opatch.OUISessionManager.lockCentralInventory(OUISessionManager.java:263)
                    at oracle.opatch.OUISessionManager.instantiate(OUISessionManager.java:83)
                    at oracle.opatch.OUISessionManager.updateOPatchEnvironment(OUISessionManager.java:646)
                    at oracle.opatch.InventorySessionManager.updateOPatchEnvironment(InventorySessionManager.java:76)
                    at oracle.opatch.OPatchSession.main(OPatchSession.java:1500)
                    at oracle.opatch.OPatch.main(OPatch.java:619)
            Lsinventory Output file location : /u01/app/oracle/product/10.2.0.4_2Q10/cfgtoollogs/opatch/lsinv/lsinventory2010-09-14_08-01-10AM.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.
            
            There are no Interim patches installed in this Oracle Home.
            --------------------------------------------------------------------------------
            
            OPatch succeeded.
            Edited by: user9104898 on Sep 14, 2010 5:27 AM
            • 3. Re: OPatch failed with error code 73
              Vivek
              If Admin privs are ok, then please check that all oracle services are stopped properly..


              Vivek
              • 4. Re: OPatch failed with error code 73
                askraks
                Hi,

                DONOT Stop any servives and its not required


                working on your issue


                Kind Regards,
                Rakesh Jayappa

                Edited by: Rakesh jayappa on Sep 14, 2010 5:52 AM
                • 5. Re: OPatch failed with error code 73
                  askraks
                  Hi,

                  Please paste the contents of following files


                  1) cat oraInventory/ContentsXML/inventory.xml

                  2) Also please try to locate the comps.xml files

                  Looks like local inventory got corrupted


                  do you have backup of your oracle software?

                  Kind Regards,
                  Rakesh jayappa
                  • 6. Re: OPatch failed with error code 73
                    755678
                    Hi Rakesh,

                    Thanks for your response!.

                    1) cat oraInventory/ContentsXML/inventory.xml
                    <?xml version="1.0" standalone="yes" ?>
                    <!-- Copyright (c) 2009 Oracle Corporation. All rights Reserved -->
                    <!-- Do not modify the contents of this file by hand. -->
                    <INVENTORY>
                    <VERSION_INFO>
                       <SAVED_WITH>10.2.0.5.0</SAVED_WITH>
                       <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>
                    </VERSION_INFO>
                    <HOME_LIST>
                    <HOME NAME="ORA10203_3" LOC="/u01/app/oracle/product/10.2.0.3_3" TYPE="O" IDX="1"/>
                    <HOME NAME="ORA10204_4" LOC="/u01/app/oracle/product/10.2.0.4_4" TYPE="O" IDX="2"/>
                    <HOME NAME="ORA10204_2" LOC="/u01/app/oracle/product/10.2.0.4_2" TYPE="O" IDX="3"/>
                    <HOME NAME="ORA11106_1" LOC="/u01/app/oracle/product/11.1.0.6_2" TYPE="O" IDX="4"/>
                    <HOME NAME="ORA11107_2" LOC="/u01/app/oracle/product/11.1.0.7_2" TYPE="O" IDX="5"/>
                    <HOME NAME="ORA10204_2_1" LOC="/u01/app/oracle/product/10.2.0.4_2_1" TYPE="O" IDX="6"/>
                    <HOME NAME="agent10g" LOC="/u01/app/oracle/agent/10.2.0.4/agent10g" TYPE="O" IDX="7"/>
                    <HOME NAME="agent10g1" LOC="/u01/app/oracle/agent/10.2.0.5/agent10g" TYPE="O" IDX="8"/>
                    <HOME NAME="agent10g2" LOC="/u01/app/oracle/agent/10205/agent10g" TYPE="O" IDX="9"/>
                    <HOME NAME="ORA11107_4" LOC="/u01/app/oracle/product/11.1.0.7_4" TYPE="O" IDX="10"/>
                    <HOME NAME="agent10g3" LOC="/u01/app/oracle/product/agent10g" TYPE="O" IDX="11"/>
                    <HOME NAME="OUIHome1" LOC="/u01/app/oracle/product/10.2.0.4_2Q10" TYPE="O" IDX="12"/>
                    <HOME NAME="agent10g5" LOC="/u01/app/oracle/agent10g/agent10g" TYPE="O" IDX="14"/>
                    <HOME NAME="agent10g4" LOC="/u01/app/oracle/agent10g" TYPE="O" IDX="13"/>
                    </HOME_LIST>
                    </INVENTORY>
                    2) Also please try to locate the comps.xml files
                    I could see this file under $ORACLE_BASE/oraInventory/ContentsXML and also under $ORACLE_HOME/inventory/ContentsXML

                    This is a new Oracle Home (10.2.0.4) which I created 2 days back. When I was trying to apply the APRCPU2010 patch, I observed this error.
                    Do you feel reinsallation of the whole Oracle binaries (10.2.0.1 and 10.2.0.4 patch will solve this issue?)

                    Thanks!

                    Edited by: user9104898 on Sep 14, 2010 7:18 AM
                    • 7. Re: OPatch failed with error code 73
                      user13310368
                      mmmmmmm
                      • 8. Re: OPatch failed with error code 73
                        Mohamed ELAzab
                        Hello,
                        i had the same problem before:
                        Please try the following:
                        ORACLE_HOME/OPatch/opatch apply -invPtrLoc ORACLE_HOME/oraInst.loc
                        Just change the place to where your oraInst.loc exists.
                        kind regards
                        Mohamed
                        • 9. Re: OPatch failed with error code 73
                          755678
                          When I use - invPtrLoc, I get the same error which I got initially
                          [default](xxxxxxxx)/u01/app/oracle/product/10.2.0.4_2Q10/OPatch-> opatch lsinventory -invPtrLoc $ORACLE_HOME/oraInst.loc
                          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       : /u01/app/oracle/product/10.2.0.4_2Q10
                          Central Inventory : /u01/app/oracle/product/new_inventory
                             from           : /u01/app/oracle/product/10.2.0.4_2Q10/oraInst.loc
                          OPatch version    : 10.2.0.4.3
                          OUI version       : 10.2.0.4.0
                          OUI location      : /u01/app/oracle/product/10.2.0.4_2Q10/oui
                          Log file location : /u01/app/oracle/product/10.2.0.4_2Q10/cfgtoollogs/opatch/opatch2010-09-14_10-34-54AM.log
                          
                          List of Homes on this system:
                          
                          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
                          • 10. Re: OPatch failed with error code 73
                            user13310368
                            mmmmmmmmmm
                            • 11. Re: OPatch failed with error code 73
                              Mohamed ELAzab
                              Hello,
                              Please dont use the $ORACLE_HOME just use the full path for both opatch and the loc file.
                              Kind regards
                              Mohamed
                              • 12. Re: OPatch failed with error code 73
                                755678
                                Its stil the same. I am getting the same error message!
                                • 13. Re: OPatch failed with error code 73
                                  AnandKumar
                                  Hi

                                  My suggestion is to
                                  1] De-install Oracle and clear the registry.
                                  2] Re-install the DB
                                  3] Apply the patch on top of it(if it is a fresh installation).

                                  If you still want to crack this....go ahead...and wait for others to reply.

                                  Regards
                                  Anand.
                                  • 14. Re: OPatch failed with error code 73
                                    Mohamed ELAzab
                                    I dont agree with this process as i had the same problem before and oracle recommended to me to use the full path and it worked.Also you have to check if you are using the correct ORACLE_HOME.
                                    kind regards
                                    Mohamed
                                    1 2 Previous Next