Recently after applying multiple patches to a 10.1.2 oracle in EBS and then doing opatch lsinventory ,i received below error
Oracle Interim Patch Installer version 10.0.0.64.0
Copyright (c) 2015, Oracle Corporation. All rights reserved.
Oracle Home : /u11/app/oracle/product/10.1.2
Central Inventory : /var/opt/app/oraInventory
from : /u11/app/oracle/product/10.1.2/oraInst.loc
OPatch version : 10.0.0.64.0
OUI version : 10.2.0.3.0
Log file location : /u11/app/oracle/product/10.1.2/cfgtoollogs/opatch/opatch2015-01-18_12-16-38PM.log
org.xml.sax.SAXParseException: : 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:803)
at oracle.sysman.oii.oiii.OiiiInstallInventory.updateOracleHomesProperties(OiiiInstallInventory.java:781)
at oracle.sysman.oii.oiii.OiiiInstallInventory.readHomes(OiiiInstallInventory.java:737)
at oracle.sysman.oii.oiii.OiiiInstallAreaControl.loadPartialInstallInv(OiiiInstallAreaControl.java:776)
at oracle.sysman.oii.oiii.OiiiInstallAreaControl.initInstallInv(OiiiInstallAreaControl.java:821)
at oracle.sysman.oii.oiii.OiiiInstallAreaControl.loadInstallInventory(OiiiInstallAreaControl.java:592)
at oracle.sysman.oii.oiii.OiiiInstallAreaControl.initAreaControl(OiiiInstallAreaControl.java:1977)
at oracle.sysman.oii.oiii.OiiiInstallAreaControl.initAreaControl(OiiiInstallAreaControl.java:1930)
at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:301)
at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:240)
at oracle.sysman.oii.oiic.OiicStandardInventorySession.initSession(OiicStandardInventorySession.java:189)
at oracle.opatch.OUIInventorySession.initSession(OUIInventorySession.java:63)
at oracle.opatch.OUISessionManager.setupSession(OUISessionManager.java:150)
at oracle.opatch.OUISessionManager.lockCentralInventory(OUISessionManager.java:267)
at oracle.opatch.OUISessionManager.instantiate(OUISessionManager.java:87)
at oracle.opatch.OUISessionManager.updateOPatchEnvironment(OUISessionManager.java:661)
at oracle.opatch.InventorySessionManager.updateOPatchEnvironment(InventorySessionManager.java:91)
at oracle.opatch.OPatchSession.main(OPatchSession.java:1661)
at oracle.opatch.OPatch.main(OPatch.java:653)No matter which Oracle home was choosen the same error came up.
The central inventory is hosting many 10.1.2 and 10.1.3 Oracle home. We found many metalink notes for this error.Some of them listed below
OPatch Is Failing With “org.xml.sax.SAXParseException” XML-20108: (Fatal Error) [ID 1365569.1]
Opatch command throws warning:org.xml.sax.SAXParseException: : XML-20108: (Fatal Error) Start of root element expected. [ID 1344580.1]
As per all of them,this error could be reported for any of these reasons
- if the opatch version does matches the oracle home version.
- The permission of $ORACLE_HOME/inventory/ContentsXML is not correct and it is not writable by oracle home user
- if $ORACLE_HOME/inventory/ContentsXML/<files> are corrupt.
All these looks good for the oracle home. But error was still coming.
We further found that if point 2 and point 3 are not good for any oracle home in central inventory,it will show this error,So we check all the oracle home in central inventory and found problem in one home. We corrected it and it resolved the issue.
Another way to solve this problem will be to create new central inventory for the oracle home ,Then this problem will not occurred
Hope you like this post.Please do comments