设为首页 收藏本站
查看: 1093|回复: 0

[经验分享] How to create an OCM Response file to apply patch in silent mode

[复制链接]

尚未签到

发表于 2015-11-9 11:27:23 | 显示全部楼层 |阅读模式
Applies to:
Oracle Universal Installer - Version 10.2.0.4 to 11.2.0.3 [Release 10.2 to 11.2]
Oracle Database - Enterprise Edition - Version 10.2.0.4 to 11.2.0.3 [Release 10.2 to 11.2]
Information in this document applies to any platform.

Goal
  This Article helps in crating 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 refers this files while installing in silent and forwards silently with applying patch without prompting for OCM credentials.
  
  
Solution
We need to created the ocm response file prior Invoking opatch in silent mode - this falls in to 2 parts
  Part A  : first create the OCM response file via  "emocmrsp" executable  ($ORACLE_HOME/OPatch/ocm/bin/emocmrsp)
  Part B  : User the response file created in Part A with opatch silent  ($ORACLE_HOME/OPatch/opatch)
Please refer below prior scrolling down to Part A for creating the response file !
1) 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 OracleCustomer Configuration Repository and replicates this to My Oracle Support so that customer/support can view it. Additinaly MOSanalyzes the Data collected and  informs respective customer about alerts and advise health checks. For more information refer Note:369619.1 2)  Download and install latest opatch tool (recommended)
Patch # 6880880
Select a Release : 10.2 Or 11.1 Or 11.2 OR 12.1 (Based on ORACLE_HOME/Database version )  
  Part A
create a ocm response file  ($ORACLE_HOME/OPatch/ocm/bin/emocmrsp)

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

* creates the response in location specified by the parameter &quot;-output&quot;
* running without &quot;-output <specify_the_location>/file.rsp&quot;  creats the file in current directory with default nameRefer  the examples below to create a ocm response file
  Example 1 :  Create the response file and keep OCM turn OFF (use this if you are not sure OCM ON and OFF)
  % export ORACLE_HOME=/u01/app/oracle/11.2/db1
% $ORACLE_HOME/OPatch/ocm/bin/emocmrsp -no_banner -output /u02/unconfig.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/unconfig.rsp) was successfully created. <<

Example 2  : Create the response file and keep OCM turn ON / Active (use  'Example 1' if you are not sure OEM ON and OFF)
  % export ORACLE_HOME=/u01/app/oracle/11.2/db1
% $ORACLE_HOME/OPatch/ocm/bin/emocmrsp -no_banner -output /u02/config.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: <Provide Oracle Metalink Email address Example: user@oracle.com >
  Password (optional): <Password will be verified if provided / Press return/Enter Key>
The OCM configuration response file (/u02/config.rsp) was successfully created.  <<<

Note1 : we can preserver the file “/u02/config.rsp” (could be renamed )  and use with other opath -silent when used with other ORACLE_HOME/setup/machine, however, mention this file while invoking opatch -silent
Note2: Also applicable to patching Grid Home (opatch -auto -silnet)
Part B
Use the response file created in Part A (/u02/unconfig.rsp) with  opatch -silent
Assume applying patch 12345
  % cd 12345
% opatch apply -silent -ocmrf <path_to_response_file>
  Example: % opatch apply -silent -ocmrf /u02/config.rsp
   Additional Examples (Showing command usgae for  CPU/SPU/PSU/ &quot;opatch auto&quot; )
1) User below for CPU/SPU apply
% opatch napply -silent -ocmrf /u02/config.rsp2)Use below for  PSU apply
% opatch apply -silent -ocmrf /u02/unconfig.rsp3) Use below while applying patch in GRID infra with  &quot;-auto&quot; option
% opatch  auto  -silent  -ocmrf /u02/config.rsp  Note1 : &quot;/u02/config.rsp&quot; is a response file created in Part A
Note2 : we can preserver the file “/u02/config.rsp” (could be renamed )  and use with other opath -silent when used with other ORACLE_HOME/setup/machine, however, mention this file while invoking opatch -silent
Note3: Also applicable to Grid home pathcing (opatch -auto -silent)

         版权声明:本文为博主原创文章,未经博主允许不得转载。

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-136972-1-1.html 上篇帖子: OCM备考 三. Managing Database Availability 之flashback 下篇帖子: OCM备考 三. Managing Database Availability 之recovery catalog
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表