重庆思庄Oracle、Redhat认证学习论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 650|回复: 0
打印 上一主题 下一主题

[补丁] Applying GI PSU using "opatch auto" fails with...

[复制链接]
跳转到指定楼层
楼主
发表于 2023-11-12 17:29:25 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
SYMPTOMS
Applying Grid Infrastructure PSU using "opatch auto" fails with "The opatch Component check failed", for example:

11.2.0.1 example:

# opatch auto /u01/home
Executing /usr/bin/perl <GI_HOME>/OPatch/crs/patch112.pl -patchdir /u01 -patchn home -paramfile <GI_HOME>/crs/install/crsconfig_params
2010-07-29 05:37:28: Parsing the host name
2010-07-29 05:37:28: Checking for super user privileges
2010-07-29 05:37:28: User has super user privileges
Using configuration parameter file: <GI_HOME>/crs/install/crsconfig_params
The opatch Component check failed. This patch is not applicable for /u01
The opatch Component check failed. This patch is not applicable for <DB_HOME>
The opatch Applicable check failed for <DB_HOME>. The patch is not applicable for <DB_HOME>
The opatch Applicable check failed for <DB_HOME>. The patch is not applicable for <DB_HOME>
prepatch execution for DB home ... failed
11.2.0.3 example:

# <GI_HOME>/OPatch/opatch auto /patch -ocmrf /patch/ocm.rsp
Executing <GI_HOME>/perl/bin/perl <GI_HOME>/OPatch/crs/patch11203.pl -patchdir / -patchn patch -ocmrf /patch/ocm.rsp -paramfile <GI_HOME>/crs/install/crsconfig_params
<GI_HOME>/crs/install/crsconfig_params
<GI_HOME>/crs/install/s_crsconfig_defs

This is the main log file: <GI_HOME>/cfgtoollogs/opatchauto2013-05-30_07-40-32.log
This file will show your detected configuration and all the steps that opatchauto attempted to do on your system: <GI_HOME>/cfgtoollogs/opatchauto2013-05-30_07-40-32.report.log

2013-05-30 07:40:32: Starting Clusterware Patch Setup
Using configuration parameter file: <GI_HOME>/crs/install/crsconfig_params
The opatch Component check failed. This patch is not applicable for <DB_HOME>
Conflict check failed for oracle home <DB_HOME>
Conflict check failed
Conflict-Check has failed . Please refer to <GI_HOME>/cfgtoollogs/opatchauto2013-05-30_07-40-32.log for details
The opatch auto log may show ZOP-45:

ZOP-45: The patch(es) are not applicable on the Oracle Home because some required components are not installed (or) languages not supported.
CHANGES
Applying Grid Infrastructure PSU using "opatch auto"

CAUSE
There are several possibilities that can cause this:

1). "opatch auto <UNZIPPED_PATCH_LOCATION>". The directory where patch is unzipped is not supplied as <UNZIPPED_PATCH_LOCATION>


2). patch is downloaded and unzipped into an existing and non-empty directory.


3). opatch executable is not installed and launched from $GRID_HOME/OPatch.


4). $OH/.patch_storage cannot be created.

5). listener is running from DB home

6). "OPatch" directory in DB home is owned by root:oinstall instead of <homeowner>:<oinstall> as required.

7). GI user and RDBMS user are different. workaround is to apply manually (Note: 1210964.1. This is an internal note, please contact Oracle Support to get assistance).



SOLUTION
1). Make sure the <path> after "opatch auto <path> " is pointed the directory where patch is unzipped.

2). Make sure the patch is downloaded and unzipped into an empty directory.

3). OPatch should be installed in $GRID_HOME/OPatch. It should not be installed outside of $GRID_HOME.  Use the syntax given in readme unzip <opatch zipfile> -d $GRID_HOME to install opatch to $GRID_HOME.

Do not launch opatch directly from $GRID_HOME/OPatch. i.e.
cd $GRID_HOME/OPatch
./opatch auto
This will cause an issue fixed in bug: 10009350. Workaround for bug 10009350 is:
As root user:
cd $GRID_HOME/crs/install
./rootcrs.pl -patch

Instead, one should include the $GRID_HOME/OPatch in the path, and launch opatch from the unzipped patch directory.

4). If opatch complain $ORACLE_HOME/.patch_storage cannot be created, manually create .patch_storage and give read-write-execute permission for the normal user (who operates OPatch)
5). Check if there is listener running out of DB home, if so shutdown listener from DB home.

6). For each home to be patched, "OPatch" directory in DB home must be owned by <homeowner>:<oinstall>.

See: Document 1553964.1 "This Patch Is Not Applicable" Encountered While Using 'opatch auto' Where 'OPatch' Directory is Not Owned by <homeowner>:<oinstall>


If above steps have been examined, but you are still getting "opatch Applicable check failed", please contact Oracle Support.

7). If GRID user and RDBMS user are different, workaround is to apply manually (Note: 1210964.1. This is an internal note, please contact Oracle Support to get assistance).  For Oracle Restart environment, one can use note 1089476.1.

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏 支持支持 反对反对
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|手机版|小黑屋|重庆思庄Oracle、Redhat认证学习论坛 ( 渝ICP备12004239号-4 )

GMT+8, 2024-4-28 06:29 , Processed in 0.107235 second(s), 20 queries .

重庆思庄学习中心论坛-重庆思庄科技有限公司论坛

© 2001-2020

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