How to Create an OCM Response file to Apply a Patch in Silent Mode - opatch silent (文档 ID 966023.1)

Windows Server 2019 打补丁时缺少Oracle Configuration Manager(OCM) 响应文件处理方式。

适用:

Oracle Universal Installer -版本10.2.0.1到12.1.0.2[版本10.2到12.1]

Oracle数据库-企业版-版本10.2.0.1到12.2.0.1[版本10.2到12.2]

本文档中的信息适用于任何平台。

% export ORACLE_HOME=/u01/app/oracle/11.2/db1
% $ORACLE_HOME/OPatch/ocm/bin/emocmrsp -no_banner -output /u02/ocm.rsp

Provide your email address to be informed of security issues, install and
initiate Oracle Configuration Manager. Easier for you if you use your My
Oracle Support Email address/User Name.
Visit http://www.oracle.com/support/policies.html for details.
Email address/User Name:

<<<< Press Enter/Return key and don't provide any input >>>>

You have not provided an email address for notification of security issues.
Do you wish to remain uninformed of security issues ([Y]es, [N]o) [N]: Y <<< type Y/Yes >>>
The OCM configuration response file (/u02/ocm.rsp) was successfully created. <<

Assume applying patch 12345

% cd 12345
% opatch apply -silent -ocmrf <path_to_response_file>

Example: % opatch apply -silent -ocmrf /u02/ocm.rsp

 Additional Examples (Showing command usage for  CPU/SPU/PSU/ "opatch auto" )

1) User below for CPU/SPU apply
% opatch napply -silent -ocmrf /u02/ocm.rsp
2)Use below for  PSU apply
% opatch apply -silent -ocmrf /u02/ocm.rsp
3)GRID patching command changed sightly as below 
% opatch auto -ocmrf /u02/ocm.rsp

猜你喜欢

转载自www.cnblogs.com/askscuti/p/10883001.html