现象:
While performing OPatch Conlict Check via command - opatch prereq CheckConflictAgainstOHWithDetail -ph ./ below error is generated -
[Sep 5, 2023 11:46:12 AM] [INFO] OPatch invoked as follows: 'prereq CheckConflictAgainstOHWithDetail -ph ./ -invPtrLoc /u01/app/oracle/product/19.0.0/dbhome_1/oraInst.loc '
[Sep 5, 2023 11:46:12 AM] [INFO] Oracle Home : /u01/app/oracle/product/19.0.0/dbhome_1
Central Inventory : /u01/app/oraInventory
from : /u01/app/oracle/product/19.0.0/dbhome_1/oraInst.loc
OPatch version : 12.2.0.1.39
OUI version : 12.2.0.7.0
OUI location : /u01/app/oracle/product/19.0.0/dbhome_1/oui
Log file location : /u01/app/oracle/product/19.0.0/dbhome_1/cfgtoollogs/opatch/opatch2023-09-05_11-46-11AM_1.log
[Sep 5, 2023 11:46:21 AM] [INFO] Stack Description: java.lang.Exception: java.lang.RuntimeException: /u01/staging/Patch/35320081/etc/config/actions.xml with java.lang.RuntimeException: java.lang.RuntimeException: Unzip failed
at oracle.opatch.ZipUtilities.depressFiles(ZipUtilities.java:185)
at oracle.opatch.ActionsFileParser.startElement(ActionsFileParser.java:881)
at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1653)
at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:473)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:419)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:248)
at oracle.xml.jaxp.JXSAXParser.parse(JXSAXParser.java:298)
at oracle.opatch.ActionsFileParser.parseActionsContent(ActionsFileParser.java:110)
at oracle.opatch.PatchObject.loadActionFile(PatchObject.java:3185)
at oracle.opatch.PatchObject.createPatchObject(PatchObject.java:2743)
at oracle.opatch.PatchObject.<init>(PatchObject.java:2223)
at oracle.opatch.PatchObject.getInstance(PatchObject.java:7388)
at oracle.opatch.opatchprereq.PQSession.checkConflictAgainstOHWithDetailAndPrint(PQSession.java:2937)
at oracle.opatch.opatchprereq.PQSession.checkConflictAgainstOHWithDetailAndPrint(PQSession.java:2909)
at oracle.opatch.opatchprereq.PQSession.checkconflictagainstohwithdetail(PQSession.java:2896)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at oracle.opatch.PrereqSession.process(PrereqSession.java:242)
at oracle.opatch.OPatchSession.process(OPatchSession.java:2763)
at oracle.opatch.OPatch.process(OPatch.java:873)
at oracle.opatch.OPatch.main(OPatch.java:930)
Caused by: java.lang.RuntimeException: /u01/staging/Patch/35320081/etc/config/actions.xml with java.lang.RuntimeException: java.lang.RuntimeException: Unzip failed
... 23 more
[Sep 5, 2023 11:46:21 AM] [INFO] Prereq "checkConflictAgainstOHWithDetail" is not executed.
[Sep 5, 2023 11:46:21 AM] [INFO] The details are:
Unable to create Patch Object.
Exception occured : java.lang.RuntimeException: /u01/staging/Patch/35320081/etc/config/actions.xml with java.lang.RuntimeException: java.lang.RuntimeException: Unzip failed
[Sep 5, 2023 11:46:21 AM] [INFO] Finishing PrereqSession at Tue Sep 05 11:46:21 GST 2023
原因:
Patch Zip file corrupt. This can be verified via SHA1/SHA256 Patch using MOS Note 549617.1
<ORACLE_HOME>/.patch_storage Folder & it's contents missing OR the directory has incorrect permissions/ownership
处理方法:
Re-Download Patch and perform Conflict Check
Copy <ORACLE_HOME>/.patch_storage Folder along with Contents from a similar <ORACLE_HOME> (same OS) with correct permissions/ownership
|