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



相关内容

热门资讯

Google在港推出AI代理G... 观点网讯:7月29日,Google在香港推出AI代理Gemini Spark,该代理可全天候在后台运...
5G+165Hz!联想新品官宣... 近两年来,小屏平板一直是比较有趣的一个品类。 不同于大平板注重效率、手机追求万能的特点,拯救者Y70...
原创 马... 马斯克又出来了。这次说2036年钱就没用了。 理由是人工智能加机器人,东西多到你用不完,还拿钱干嘛...
美的集团:我国智能家居互联互通... IT之家 7 月 30 日消息,美的集团今日发布公告,7 月 21 日至 23 日,智能家居互联互通...
华为新款MatePad Pro... 【CNMO科技消息】7月30日,@华为终端 官宣全新旗舰平板华为MatePad Pro。 新款华为...
从实验室到实景验证:6G光子太... 全息通信是第六代移动通信(6G)的典型应用场景之一,旨在通过融合无线传输与全息三维成像技术,实现超大...
从“能对话”到“能干活”——人... 【经济界面】 光明日报记者 刘坤 李晓东 周洪双 人工智能(AI)眼镜化身为个人“助理”,实时进行...
【全新发布】UminiP Pr... (来源:洲明科技)
日本通过“H3火箭8号”发射失... △H3火箭(资料图) 日本文部科学省30日召开关于去年“H3火箭8号”发射失败的会议。会议通过的最终...
互联网巨头抢滩健康硬件,上游芯... 封面新闻记者 付文超 当下,互联网巨头对健康硬件的押注,正在成为产业现实,加速拉动整个产业链步入新一...