OPatch Apply of GI PSU 12.1.0.2.161018 fails


Overview

OPatch Analysis of GI PSU 12.1.0.2.161018 fails with message:

java.text.ParseException: Unparseable date: "2017.Jan.06 06:33:25 AEDT"
at java.text.DateFormat.parse(DateFormat.java:337)
at oracle.sysman.oii.oiii.OiiiCompsXMLHandler$OiiiInstallCompElementHandler.onStart(OiiiCompsXMLHandler.java:923)

Status

Work-around Available

References

Investigation

Patch Apply Fails

While I was attempting to apply the OPatch Apply of GI PSU 12.1.0.2.161018 with the following command (as described in 13 Downgrade GORDON to OEL6U5 ):

/opt/app/oracle/product/12.1.0/grid/OPatch/opatch lsinventory -invPtrLoc /opt/app/oracle/product/12.1.0/grid/oraInst.loc -oh /opt/app/oracle/product/12.1.0/grid

I got the following messages:

Execution of [OracleHomeLSInventoryGrepAction] patch action failed, check log for more details. Failures:
Patch Target : gordon->/opt/app/oracle/product/12.1.0/grid Type[siha]
Details: [
---------------------------Patching Failed---------------------------------
Command execution failed during patching in home: /opt/app/oracle/product/12.1.0/grid, host: gordon.
Command failed: /opt/app/oracle/product/12.1.0/grid/OPatch/opatch lsinventory -invPtrLoc /opt/app/oracle/product/12.1.0/grid/oraInst.loc -oh /opt/app/oracle/product/12.1.0/grid | grep 21436941
Command failure output:


After fixing the cause of failure Run opatchauto resume with session id "1P81"

]
OPATCHAUTO-68061: The orchestration engine failed.
OPATCHAUTO-68061: The orchestration engine failed with return code 1
OPATCHAUTO-68061: Check the log for more details.
OPatchAuto failed.

OPatchauto session completed at Fri Jan 6 16:30:46 2017
Time taken to complete the session 12 minutes, 28 seconds

opatchauto failed with error code 42

Review Log Messages

The cmd.log showed the following messages:

Oracle Home : /opt/app/oracle/product/12.1.0/grid
Central Inventory : /opt/app/oraInventory
from : /opt/app/oracle/product/12.1.0/grid/oraInst.loc
OPatch version : 12.2.0.1.8
OUI version : 12.1.0.2.0
Log file location : /opt/app/oracle/product/12.1.0/grid/cfgtoollogs/opatch/opatch2017-01-09_17-06-00PM_1.log

sInstallTime = >2017.Jan.06 06:33:25 AEDT<
java.text.ParseException: Unparseable date: "2017.Jan.06 06:33:25 AEDT"
at java.text.DateFormat.parse(DateFormat.java:337)
at oracle.sysman.oii.oiii.OiiiCompsXMLHandler$OiiiInstallCompElementHandler.onStart(OiiiCompsXMLHandler.java:923)
at oracle.sysman.oix.oixs.OixsElementHandler.startElement(OixsElementHandler.java:140)
at oracle.sysman.oix.oixs.OixsDefaultHandler.startElement(OixsDefaultHandler.java:109)
at oracle.xml.parser.v2.XMLContentHandler.startElement(XMLContentHandler.java:182)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1635)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:458)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:404)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:244)
at oracle.sysman.oii.oiii.OiiiInstallXMLReader.readComps(OiiiInstallXMLReader.java:324)
at oracle.sysman.oii.oiii.OiiiInstallXMLReader.readComps(OiiiInstallXMLReader.java:232)
at oracle.sysman.oii.oiii.OiiiInstallInventory.getCompOHListElement(OiiiInstallInventory.java:2307)
at oracle.sysman.oii.oiii.OiiiAreaInventory.getAllCompsVect(OiiiAreaInventory.java:1057)
at oracle.opatch.ipm.RawInventory.loadRawInventory(RawInventory.java:217)
at oracle.opatch.ipm.RawInventory.init(RawInventory.java:171)
at oracle.opatch.ipm.RawInventory.getInstance(RawInventory.java:87)
at oracle.opatch.ipm.IPMReadServices.getRawInventory(IPMReadServices.java:149)
at oracle.opatch.ipm.IPMReadServices.loadInventory(IPMReadServices.java:1031)
at oracle.opatch.LsInventorySession.process(LsInventorySession.java:317)
at oracle.opatch.OPatchSession.process(OPatchSession.java:2058)
at oracle.opatch.OPatch.process(OPatch.java:808)
at oracle.opatch.OPatch.main(OPatch.java:858) 

Work-around

After opening a service request with Oracle Support, I was directed to OPatch/OPatchauto/DBCA throws “Unparseable date” error for TZ entries like AEST in comps.xml (Doc ID 2178555.1) which said:

This occurs due to unpublished BUG 24373668

To resolved the issue with opatch lsinventory , I had to use:

$ORACLE_HOME/OPatch/opatch lsinventory -jre $ORACLE_HOME/OPatch/jre

This showed that the PSU was successfully applied.