最新文章專題視頻專題問答1問答10問答100問答1000問答2000關(guān)鍵字專題1關(guān)鍵字專題50關(guān)鍵字專題500關(guān)鍵字專題1500TAG最新視頻文章推薦1 推薦3 推薦5 推薦7 推薦9 推薦11 推薦13 推薦15 推薦17 推薦19 推薦21 推薦23 推薦25 推薦27 推薦29 推薦31 推薦33 推薦35 推薦37視頻文章20視頻文章30視頻文章40視頻文章50視頻文章60 視頻文章70視頻文章80視頻文章90視頻文章100視頻文章120視頻文章140 視頻2關(guān)鍵字專題關(guān)鍵字專題tag2tag3文章專題文章專題2文章索引1文章索引2文章索引3文章索引4文章索引5123456789101112131415文章專題3
問答文章1 問答文章501 問答文章1001 問答文章1501 問答文章2001 問答文章2501 問答文章3001 問答文章3501 問答文章4001 問答文章4501 問答文章5001 問答文章5501 問答文章6001 問答文章6501 問答文章7001 問答文章7501 問答文章8001 問答文章8501 問答文章9001 問答文章9501
當(dāng)前位置: 首頁 - 科技 - 知識(shí)百科 - 正文

HowtocreateanOCMResponsefiletoapplypatchinsilentmode-opatchs

來源:懂視網(wǎng) 責(zé)編:小采 時(shí)間:2020-11-09 15:12:30
文檔

HowtocreateanOCMResponsefiletoapplypatchinsilentmode-opatchs

HowtocreateanOCMResponsefiletoapplypatchinsilentmode-opatchs: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. G
推薦度:
導(dǎo)讀HowtocreateanOCMResponsefiletoapplypatchinsilentmode-opatchs: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. G

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

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 Oracle Customer Configuration Repository and replicates this to My Oracle Support so that customer/support can view it. Additinaly MOS analyzes 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=
% $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" creats the file in current directory with default name

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

Password (optional):
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

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

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

1) User below for CPU/SPU apply
% opatch napply -silent -ocmrf /u02/config.rsp 2)Use below for PSU apply
% opatch apply -silent -ocmrf /u02/unconfig.rsp 3) Use below while applying patch in GRID infra with "-auto" option
% opatch auto -silent -ocmrf /u02/config.rsp

Note1 : "/u02/config.rsp" 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)

聲明:本網(wǎng)頁內(nèi)容旨在傳播知識(shí),若有侵權(quán)等問題請(qǐng)及時(shí)與本網(wǎng)聯(lián)系,我們將在第一時(shí)間刪除處理。TEL:177 7030 7066 E-MAIL:11247931@qq.com

文檔

HowtocreateanOCMResponsefiletoapplypatchinsilentmode-opatchs

HowtocreateanOCMResponsefiletoapplypatchinsilentmode-opatchs: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. G
推薦度:
標(biāo)簽: oracle insta patch
  • 熱門焦點(diǎn)

最新推薦

猜你喜歡

熱門推薦

專題
Top