Before applying any patches to the GI home, an ocm.rsp file should be created. As the GI owner, set the GI environment:
$ export ORACLE_BASE=/opt/app
$ export ORACLE_HOME=$ORACLE_HOME/11.2.0/grid
Create the ocm.rsp file:
$ $ORACLE_HOME/OPatch/ocm/bin/emocmrsp
When prompted for an email address, either leave blank or provide an email address. The file will be created in the directory from which the above command was executed.
For example, when applying a patch to GI and the patch files have been unzipped to a directory, the opatch command will be executed as follows:
# opatch auto <directory location of patch files> -oh <GI HOME>
When pompted:
OPatch is bundled with OCM, Enter the absolute OCM response file path:
Enter the patch of the ocm.rsp file e.g.
/home/oracle/ocm.rsp
and continue with the patch.
Other options:
ReplyDelete$GRID_HOME/OPatch/ocm/bin/emocmrsp -no_banner -output /path/filename.rsp
If emocmrsp is missing...
layout the latest opatch (p6880880) and it should be delivered.
Thanks for your comment
ReplyDeleteThats true ,it's pre-requisite for using auto option with opatch
ReplyDeleteHello,
ReplyDeletePlease I have a question.
My Grid Infrastructure is on /u01
I have a database db_home in /u02
and I have another database db_home in /u03.
I want to patch the database in /u02. How will oracle know which database home I want to patch when I run the opatch auto command as a root user? I am confused.
Also, after patching my database in /u02, I intend patching the database in /u03 too, will I repeat the same process I did for /u02? If I am to repeat the same step, that means the GI Home will be patched all over again because it was patched during /u02 db_home patch. Will it not thrown an error that patch has already been applied on GI /u01. Also, how will oracle figure out that it’s /u03 db_home I want to patch.
Thank you
Hi ,
ReplyDeleteWhat is the use of OCM file?
Thanks
Satish
.
ReplyDelete