How to Create an OCM Response file to Apply a Patch (文档 ID 966023.1)
admin
2023-05-05 02:41:00
0

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


APPLIES TO:

Oracle Universal Installer - Version 10.2.0.1 to 11.2.0.4 [Release 10.2 to 11.2]
Oracle Database - Enterprise Edition - Version 10.2.0.1 to 11.2.0.4 [Release 10.2 to 11.2]
Information in this document applies to any platform.

GOAL

How to Create an OCM Response file to Apply a Patch (文档 ID 966023.1)


This Article helps in creating the OCM response file to run opatch in silent mode

Scenario:
While installing patch in silent mode, opatch tool prompts User for OCM configuration, this makes Opatch to break the silent install process and park patch apply for User response. (And this violates silent install feature).

However, this can be solved via creating an OCM response file and pass all the parameters via this file while silent install. Opatch reads this file while installing in silent does not prompt for OCM credentials.

 

What is OCM (Oracle Configuration Manager?)

The Oracle Configuration Manager (OCM) is a tool which proactively monitor the customers Oracle environment and provide this information to My Oracle Support (MOS). The Data collected from the customer environment is uploaded to Oracle Customer Configuration Repository and replicates this to My Oracle Support so that customer/support can view it. Additionally MOS analyzes the Data collected and  informs respective customer about alerts and advise health checks. For more information refer Note:369619.1

 

SOLUTION

Pre-requirements to use  opatch silent


1) Download and install  latest opatch tool (ignore this if already one)

2) Create response file for  OCM  

3) Use the OCM response file for all opatch silent application

However, If plan to use the ocm.rsp file with other OH - like, GRID, CRS, ORACLE_HOME, then please make sure this file is placed in accessible path and have 775 file permission (i.e $chmod  775 ocm.rsp)

 

========= refer below for detailed steps =============

1)  Download and install latest opatch tool (recommended)

Patch # 6880880
Select a Release: 10.2  -OR-  11.1 -OR-  11.2 -OR-  12.1 

 

2) How to create response file for OCM 

Note : the location of OCM executable is  "$ORACLE_HOME/OPatch/ocm/bin/emocmrsp" 

syntax : 
% export ORACLE_HOME=
% $ORACLE_HOME/OPatch/ocm/bin/emocmrsp  -no_banner -output /file.rsp

* creates the response in location specified by the parameter "-output"
* running without "-output /file.rsp"  creates the file in current directory with default name(ocm.rsp)

Refer  the options below to create a ocm response file

Option 1 :  Create the response file while keeping OCM turned OFF (Yes, OCM can be turned off. use this  options if you are not sure about OCM )

% 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. <<


Option 2  : Create the response file while keep OCM turn ON / Active (Yes, OCM can be turned ON. use this  "options 1" if you are not sure about OCM )

% 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:

Password (optional):
The OCM configuration response file (/u02/ocm.rsp) was successfully created.  <<<


Note 1 : we can preserve the file “/u02/ocm.rsp” ( rename if needed)  and could be used  with other similar ORACLE_HOME/setup/machine 
Note 2 : Also applicable to Grid home patching (opatch -auto -ocmrf   instead "-silent" )

However, If plan to use the ocm.rsp file with other OH - like, GRID, CRS, ORACLE_HOME, then please make sure this file is placed in accessible path and have 775 file permission (i.e $chmod  775 ocm.rsp)

 

 

3)  Use the OCM response file for all "opatch -silent"   operations

 

Assume applying patch 12345

% cd 12345
% opatch apply -silent -ocmrf

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

Note1 : File “/u02/ocm.rsp” (could be renamed as per requirement )  can be used with other opatch -silent when used with other ORACLE_HOME/setup/machine, however, mention this file while invoking opatch -silent 
Note3: Also applicable to Grid home patching (opatch -auto -ocmrf   instead "-silent" )

However, If plan to use the ocm.rsp file with other OH - like, GRID, CRS, ORACLE_HOME, then please make sure this file is placed in accessible path and have 775 file permission (i.e $chmod  775 ocm.rsp)

 

REFERENCES

NOTE:1351428.2 - Information Center: Patching and Maintaining Oracle Database Server/Client Installations
NOTE:293369.1 - Master Note For OPatch
NOTE:369619.1 - OCM ( Oracle Configuration Manager ) and My Oracle Support : FAQ and Troubleshooting



相关内容

热门资讯

菲律宾总统称未下达逮捕德拉罗萨... 新华社马尼拉5月13日电(记者赵晨捷 李萌)据菲律宾媒体报道,菲总统马科斯13日称未下达逮捕参议员德...
时隔九年再度来京,特朗普有何诉... ◆5月12日,特朗普登上“空军一号”前对着镜头挥手告别。(图源:美联社)文/何平编辑/漆菲5月13日...
硬科技管控,中美关系的新压舱石 特朗普此次访华,英伟达CEO黄仁勋随行的消息提振美股市场,凸显芯片与人工智能已成为中美关系的核心议题...
报告:今年一季度AI原生APP... 中国青年网北京5月12日电(记者 高蕾)近日,第三方智能数据服务商QuestMobile发布了《中国...
七大新品发布!国轩高科第15届... 央广网合肥5月13日消息(记者徐鹏)5月16日至17日,电池龙头企业国轩高科将在合肥举办第15届全球...
百度伐谋2.0发布,李彦宏:能... 5月13日举办的Create2026百度AI开发者大会开幕式上,自我演化决策智能体百度伐谋升级至2....
泰顶级豪门曝性侵丑闻!哥哥侵犯... 泰国最有影响力的巨头之一Singha集团(胜狮集团),这两天爆出性侵丑闻。集团第四代成员,环保活动家...
什么信号?多地要求干部带头缴纳... 多地要求干部带头缴纳物业费。最近一段时间,物业费成了社会关注的焦点。原因竟然是多地密集出台文件,号召...
“这不是威胁而是绝佳机遇”,默... 【文/观察者网 张菁娟】“当下挑战之所以如此巨大,是因为我们长期以来为自己制造了太多问题,而这些问题...
老杜盟友半路杀出,“闪电夺权”... 最近两天,马尼拉的政治温度直接爆表。5月11日上午,菲律宾众议院以255票赞成、26票反对、9票弃权...