Opatch failed with XML error 'XML-20210' or 'XML-20121' due to local inventory corruption
(Doc ID 1535848.1)
Last updated on MARCH 29, 2024
Applies to:
Oracle Database - Enterprise Edition - Version 10.2.0.4 and laterOracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Cloud Exadata Service - Version N/A and later
Oracle Database Exadata Express Cloud Service - Version N/A and later
Information in this document applies to any platform.
Symptoms
The below XML error may occur while applying patch or when invoking 'opatch lsinventory' from Clusterware or Database home.
[oracle@racnode2 OPatch]$ opatch lsinventory
at oracle.sysman.oii.oiii.OiiiInstallXMLReader.readComps(OiiiInstallXMLReader.java:330)
at oracle.sysman.oii.oiii.OiiiInstallXMLReader.readComps(OiiiInstallXMLReader.java:232)
at oracle.sysman.oii.oiii.OiiiInstallInventory.getCompOHListElement(OiiiInstallInventory.java:2250)
at oracle.sysman.oii.oiii.OiiiAreaInventory.getAllCompsVect(OiiiAreaInventory.java:1057)
at oracle.opatch.OUIInstallInventory.getAllCompsVect(OUIInstallInventory.java:333)
at oracle.opatch.OracleHomeInventory.load(OracleHomeInventory.java:2859)
at oracle.opatch.LsInventorySession.loadAndPrintInventory(LsInventorySession.java:387)
at oracle.opatch.LsInventorySession.process(LsInventorySession.java:347)
at oracle.opatch.OPatchSession.main(OPatchSession.java:1906)
at oracle.opatch.OPatch.main(OPatch.java:583)
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 a null Vector of installed products
OPatch failed with error code 73
- or -
java.io.IOException: <Line 4806, Column 17>: XML-20121: (Fatal Error) End tag does not match start tag 'COMP'.
at oracle.sysman.oii.oiii.OiiiInstallXMLReader.readComps(OiiiInstallXMLReader.java:277)
at oracle.sysman.oii.oiii.OiiiInstallInventory.getCompOHListElement(OiiiInstallInventory.java:1984)
at oracle.sysman.oii.oiii.OiiiAreaInventory.getAllCompsVect(OiiiAreaInventory.java:1053)
at oracle.opatch.OUIInstallInventory.getAllCompsVect(OUIInstallInventory.java:157)
at oracle.opatch.OracleHomeInventory.load(OracleHomeInventory.java:2540)
at oracle.opatch.LsInventorySession.loadAndPrintInventory(LsInventorySession.java:374)
at oracle.opatch.LsInventorySession.process(LsInventorySession.java:327)
at oracle.opatch.OPatchSession.main(OPatchSession.java:1657)
at oracle.opatch.OPatch.main(OPatch.java:630)
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 a null Vector of installed products
OPatch failed with error code 73
- or -
at oracle.sysman.oii.oiii.OiiiInstallXMLReader.readComps(OiiiInstallXMLReader.java:330)
at oracle.sysman.oii.oiii.OiiiInstallXMLReader.readComps(OiiiInstallXMLReader.java:232)
at oracle.sysman.oii.oiii.OiiiInstallInventory.getCompOHListElement(OiiiInstallInventory.java:2250)
at oracle.sysman.oii.oiii.OiiiAreaInventory.getAllCompsVect(OiiiAreaInventory.java:1057)
at oracle.opatch.OUIInstallInventory.getAllCompsVect(OUIInstallInventory.java:333)
at oracle.opatch.OracleHomeInventory.load(OracleHomeInventory.java:2859)
at oracle.opatch.LsInventorySession.loadAndPrintInventory(LsInventorySession.java:365)
at oracle.opatch.LsInventorySession.process(LsInventorySession.java:325)
at oracle.opatch.OPatchSession.main(OPatchSession.java:1903)
at oracle.opatch.OPatch.main(OPatch.java:614)
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 a null Vector of installed products
OPatch failed with error code 73
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |
References |