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

Source: Internet
Author: User
Tags email address example
<span id="Label3"></p><p><p><span style="font-size:16px;font-weight:bold;text-align:right;">How to Create an OCM Response file to Apply a Patch in Silent mode-opatch Silent (document ID 966023.1)</span></p></p><p><p><br></p></p> <table id="kmPgTpl:r1:0:tl7" cellpadding="0" cellspacing="0" width="100%" summary=""> <tbody> <tr id="kmPgTpl:r1:0:rl14"> <td id="kmPgTpl:r1:0:cf54" style="vertical-align:top;"><p><p><span id="kmPgTpl:r1:ot71" class="kmContent" style="font-size:small;color:#000000;"></span></p></p>Applies to:oracle Universal installer-version 10.2.0.1 to 11.2.0.4 [Release 10.2 to 11.2]<br>Oracle database-enterprise edition-version 10.2.0.1 to 11.2.0.4 [Release 10.2 to 11.2]<br>Information in this document applies to any Platform.<br>GOAL<p><p>650) this.width=650; "src=" https://support.oracle.com/epmos/main/downloadattachmentprocessor?attachid=1268927.1: Ad_hor_db_generic&clickstream=no "style=" width:524.5px;border:none; "alt=" downloadattachmentprocessor? attachid=126 "/></p></p><p><p><br></p></p><p><p>This article helps in creating the OCM response file to run Opatch in silent mode</p></p><p><p>Scenario:<br>While installing patch in silent mode, opatch tool prompts User for OCM configuration, This makes opatch to break the Sile NT install process and park patch apply for User Response. (and This violates silent install feature).</p></p><p><p>however, this can be solved via creating a OCM response file and pass all the parameters via this file while silent Insta Ll. Opatch reads this file and installing in silent does not prompt for OCM credentials.</p></p><p><p><strong><em></em></strong></p></p><p><p><strong><em>What is OCM (Oracle Configuration Manager?)</em></strong></p></p><p><p>The Oracle Configuration Manager (OCM) is a tool which proactively monitor the customers Oracle environment and provide th is information to My Oracle support (MOS). The Data collected from the customer environment are uploaded to Oracle customer Configuration Repository and replicates th Is-to-My Oracle support-so-customer/support can view it. Additionally MOS <span class="vk_ans vk_bk">analyzes</span> the Data collected and informs respective customer about alerts and advise health CHEC Ks. For more information refer note:369619.1</p></p><p><p></p></p>Solution<p><p><strong><em>Pre-requirements to use Opatch silent</em></strong></p></p><br><strong><strong><em>1) Download and install latest Opatch tool (ignore this if already one)</em></strong></strong><strong><strong><em>2) Create response file for OCM</em></strong></strong><strong><strong><em>3) Use the OCM response file for all Opatch silent application</em></strong></strong><p><p><strong><em>however, If plan to use the OCM.RSP file with other oh-like, GRID, CRS, oracle_home, and then * * Sure this file is Placed in accessible path and has 775 file permission (i.e $chmod 775 Ocm.rsp)</em></strong></p></p><p><p></p></p><p><p><strong><em>========= refer below for detailed steps =============</em></strong></p></p><span style="font-size:medium;"><span style="font-size:medium;"><strong>1) Download and install latest Opatch tool (recommended)</strong></span></span><p><p>Patch # 6880880<br>Select a release:10.2-or-11.1-or-11.2-or-12.1</p></p><p><p><strong><em></em></strong></p></p><p><p><span style="font-size:medium;"><strong>2) How to create response file for OCM</strong></span> <strong> <em> </em></strong></p></p><span style="font-size:x-small;"><span style="font-size:x-small;">note:the Location of OCM executable is "$ORACLE _home/opatch/ocm/bin/emocmrsp"</span></span><p><p>Syntax:<br>% Export oracle_home=<my_oracle_home_path><br>% $ORACLE _home/opatch/ocm/bin/emocmrsp-no_banner-output <SPECIFY_THE_LOCATION>/FILE.RSP<br><br>* Creates the response in location specified by the parameter "-output"<br>* Running without "-output <specify_the_location>/file.rsp" creates the file in current directory with default name (ocm.rsp)</p></p>Refer the options below to create a OCM response file<p><p>Option 1:create The response file while keeping OCM turned off (Yes, OCM can is turned off. use of the options if you AR E not sure about OCM)</p></p><p><p>% Export ORACLE_HOME=/U01/APP/ORACLE/11.2/DB1<br>% $ORACLE _HOME/OPATCH/OCM/BIN/EMOCMRSP-NO_BANNER-OUTPUT/U02/OCM.RSP</p></p><p><p>Provide your email address to be informed of security issues, install and<br>Initiate Oracle Configuration Manager. Easier for your My<br>Oracle Support Email Address/user Name.<br>Visit http://www.oracle.com/support/policies.html for Details.<br>Email Address/user Name:</p></p><p><p><<<< Press Enter/return Key and don ' t provide any input >>>></p></p><p><p>You don't have a provided an email address for notification of security Issues.<br>Do your wish to remain uninformed of security issues ([y]es, [n]o] [N]: Y <<< type Y/yes >>><br>The OCM configuration response file (/u02/ocm.rsp) was successfully created. <<</p></p><p><p><br>Option 2:create The response file while keep OCM turn on/active (Yes, OCM can is turned on. use this "options 1" if You aren't sure about OCM)<br></p></p><p><p>% Export ORACLE_HOME=/U01/APP/ORACLE/11.2/DB1<br>% $ORACLE _HOME/OPATCH/OCM/BIN/EMOCMRSP-NO_BANNER-OUTPUT/U02/OCM.RSP</p></p><p><p>Provide your email address to be informed of security issues, install and<br>Initiate Oracle Configuration Manager. Easier for your My<br>Oracle Support Email Address/user Name.<br>Visit http://www.oracle.com/support/policies.html for Details.<br>Email address/user Name: <provide Oracle Metalink Email address Example: <span class="__cf_email__" data-cfemail="92e7e1f7e0d2fde0f3f1fef7bcf1fdff">[email protected]</span> ></p></p><p><p>Password (optional): <password'll be verified if provided/press return/enter key><br>The OCM configuration response file (/u02/ocm.rsp) was successfully created. <<<</p></p><p><p><br><em>Note 1:we can preserve the file "/u02/ocm.rsp" (rename if Needed) and could is used with other similar oracle_home/se Tup/machine</em><br><em>Note 2:also applicable to Grid home patching (OPATCH-AUTO-OCMRF instead "-silent")<br><br><em><strong>however, If plan to use the OCM.RSP file with other oh-like, GRID, CRS, oracle_home, and then * * Sure this file is Placed in accessible path and has 775 file permission (i.e $chmod 775 Ocm.rsp)</strong></em><br></em></p></p><p><p></p></p><p><p></p></p><p><p><span style="font-size:medium;"><strong><em>3) Use the OCM response file for all "opatch-silent" operations</em></strong></span></p></p><p><p><strong><em></em></strong></p></p><p><p><strong><em>Assume applying patch 12345</em></strong></p></p><p><p>% CD 12345<br>% Opatch APPLY-SILENT-OCMRF <path_to_response_file></p></p><p><p>Example:% Opatch APPLY-SILENT-OCMRF/U02/OCM.RSP</p></p><p><p><strong>Additional</strong> <strong>Examples (Showing command usage for cpu/spu/psu/"opatch Auto")</strong></p></p><p><p>1) User below for CPU/SPU apply<br>% Opatch NAPPLY-SILENT-OCMRF/U02/OCM.RSP</p></p><p><p>2) use the below for PSU apply<br>% Opatch APPLY-SILENT-OCMRF/U02/OCM.RSP</p></p><p><p>3) GRID patching command changed sightly as below<br>% Opatch AUTO-OCMRF/U02/OCM.RSP</p></p><p><p><em>note1:f</em> <em>ile "/u02/ocm.rsp" (could be renamed as per Requirement) can is used with other opatch-silent when used with other oracle_home/setup/machine, however, mention this file while invoking Opatch-silent</em><br><em>Note3:also applicable to Grid home patching (OPATCH-AUTO-OCMRF instead "-silent")<br><br><em><strong>however, If plan to use the OCM.RSP file with other oh-like, GRID, CRS, oracle_home, and then * * Sure this file is Placed in accessible path and has 775 file permission (i.e $chmod 775 Ocm.rsp)</strong></em><br></em></p></p><p><p></p></p>Referencesnote:1351428.2-information center:patching and Maintaining Oracle Database server/client Installations<br>Note:293369.1-master Note for Opatch<br>NOTE:369619.1-OCM (oracle Configuration Manager) and My Oracle Support:faq and troubleshooting<br><p><p><br></p></p></td> </tr> </tbody> </table><p><p><br></p></p><p><p>This article is from "technical achievement dream!" "blog, Be sure to keep this provenance http://dreamsanqin.blog.51cto.com/845412/1736863</p></p><p><p>How to Create an OCM Response file to Apply a Patch (document ID 966023.1)</p></p></span>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.