# ls -lrt /u01/app/oraInventory/ContentsXML/oui-patch.xml
-rw-r--r-- 1 grid oinstall 174 Mar 6 12:50 /u01/app/oraInventory/ContentsXML/oui-patch.xml
对于oracle用户只有读的权限,所以导致IO异常,从opatch的日志也可以看出:
[OPSR-TIME] Finished modifying the system for patch 30557433
ApplySession adding interim patch '30557433' to inventory
[OPSR-TIME] Saving patch 30557433 to inventory
OUI-67124:ApplySession failed in system modification phase... 'ApplySession::apply failed: java.io.IOException: oracle.sysman.oui.patch.PatchException: **java.io.FileNotFoundException: /u01/app/oraInventory/ContentsXML/oui-patch.xml (Permission denied)**'
opatch-external.jar is in /u01/app/oracle/product/19c/db/OPatch/jlib/opatch-external.jar
Unable to create patchObject
Possible causes are:
ORACLE_HOME/inventory/oneoffs/30557433 is corrupted. PatchObject constructor: Input file "/u01/app/oracle/product/19c/db/inventory/oneoffs/30557433/etc/config/actions" or "/u01/app/oracle/product/19c/db/inventory/oneoffs/30557433/etc/config/inventory" does not exist.
OUI-67073:UtilSession failed: NApply was not able to get the list of patches to apply.
Finishing UtilSession at Fri Mar 06 13:00:15 CST 2020