先看错误信息
[2019-8-26 20:21:09] [INFO] Following patches are auto rollbackable:
[2019-8-26 20:21:09] [INFO] Finished checking prereq checkConflictAgainstOHWithDetail
[2019-8-26 20:21:09] [SEVERE] OUI-67073:UtilSession 失败:
To run in silent mode, OPatch requires a response file for Oracle Configuration Manager (OCM).
Please run "C:\Users\Administrator\AppData\Local\Temp\2\oracle-home-1566822043434185\OPatch\ocm\bin\emocmrsp.bat" to generate an OCM response file. The generated response file
can be reused on different platforms and in multiple OPatch silent installs.
To regenerate an OCM response file, Please rerun "C:\Users\Administrator\AppData\Local\Temp\2\oracle-home-1566822043434185\OPatch\ocm\bin\emocmrsp.bat".
[2019-8-26 20:21:09] [INFO] Finishing UtilSession at Mon Aug 26 20:21:09 CST 2019
[2019-8-26 20:21:09] [INFO] Log file location: D:\app\oracle\product\11.2.0\dbhome_1\cfgtoollogs\opatch\opatch2019-08-26_20-20-59下午_1.log
[2019-8-26 20:21:09] [INFO] 堆栈说明: java.lang.RuntimeException:
To run in silent mode, OPatch requires a response file for Oracle Configuration Manager (OCM).
Please run "C:\Users\Administrator\AppData\Local\Temp\2\oracle-home-1566822043434185\OPatch\ocm\bin\emocmrsp.bat" to generate an OCM response file. The generated response file
can be reused on different platforms and in multiple OPatch silent installs.
To regenerate an OCM response file, Please rerun "C:\Users\Administrator\AppData\Local\Temp\2\oracle-home-1566822043434185\OPatch\ocm\bin\emocmrsp.bat".
at oracle.opatch.OPatchSessionHelper.validateOCMOption(OPatchSessionHelper.java:3120)
at oracle.opatch.opatchutil.NApply.legacy_process(NApply.java:918)
at oracle.opatch.opatchutil.NApply.legacy_process(NApply.java:368)
at oracle.opatch.opatchutil.NApply.process(NApply.java:348)
at oracle.opatch.opatchutil.OUSession.napply(OUSession.java:1108)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at oracle.opatch.UtilSession.process(UtilSession.java:359)
at oracle.opatch.OPatchSession.process(OPatchSession.java:2650)
at oracle.opatch.OPatch.process(OPatch.java:784)
at oracle.opatch.OPatch.main(OPatch.java:834)
Caused by: oracle.opatch.OCMException:
To run in silent mode, OPatch requires a response file for Oracle Configuration Manager (OCM).
Please run "C:\Users\Administrator\AppData\Local\Temp\2\oracle-home-1566822043434185\OPatch\ocm\bin\emocmrsp.bat" to generate an OCM response file. The generated response file
can be reused on different platforms and in multiple OPatch silent installs.
To regenerate an OCM response file, Please rerun "C:\Users\Administrator\AppData\Local\Temp\2\oracle-home-1566822043434185\OPatch\ocm\bin\emocmrsp.bat".
... 13 more
服务器:win Server 12R
Oracle版本:11.2.0.4.0
补丁版本:BP 11.2.0.4.181016
解决办法:
原因是 oracle.opatch.OCMException
参阅该博客链接
解决办法是:
运行%ORACLE_HOME%\Opatch\ocm\bin\emocmrsp.bat文件
生成ocm.rsp文件
再安装补丁
%ORACLE_HOME%\Opatch\opatch apply -ocmrf D:\app\Administrator\product\11.2.0\dbhome_1\OPatch\ocm\bin\ocm.rsp