Applying GI PSU "opatch auto" fails with "The opatch Component check failed"

Applying GI PSU using "opatch auto" fails with "The opatch Component check failed" (文档 ID 1169036.1)

APPLIES TO:

Oracle Database - Enterprise Edition - Version 11.2.0.3 and later
Information in this document applies to any platform.
***Checked for relevance on 11-Mar-2013***

SYMPTOMS

Applying Grid Infrastructure PSU using "opatch auto" fails with "The opatch Component check failed", for example:

11.2.0.1 example:

# opatch auto /haclu/home
Executing /usr/bin/perl /haclu/64bit/crs112/OPatch/crs/patch112.pl -patchdir /haclu -patchn home -paramfile /haclu/64bit/crs112/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: /haclu/64bit/crs112/crs/install/crsconfig_params
The opatch Component check failed. This patch is not applicable for /haclu/64bit/app/oracle/product/11.2.0
The opatch Component check failed. This patch is not applicable for /haclu/64bit/app/oracle/product/11.2.0
The opatch Applicable check failed for /haclu/64bit/app/oracle/product/11.2.0. The patch is not applicable for /haclu/64bit/app/oracle/product/11.2.0
The opatch Applicable check failed for /haclu/64bit/app/oracle/product/11.2.0. The patch is not applicable for /haclu/64bit/app/oracle/product/11.2.0
prepatch execution for DB home ... failed

11.2.0.3 example:

# /u01/app/11.2.0/grid/OPatch/opatch auto /patch -ocmrf /patch/ocm.rsp
Executing /u01/app/11.2.0/grid/perl/bin/perl /u01/app/11.2.0/grid/OPatch/crs/patch11203.pl -patchdir / -patchn patch -ocmrf /patch/ocm.rsp -paramfile /u01/app/11.2.0/grid/crs/install/crsconfig_params
/u01/app/11.2.0/grid/crs/install/crsconfig_params
/u01/app/11.2.0/grid/crs/install/s_crsconfig_defs

This is the main log file: /u01/app/11.2.0/grid/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: /u01/app/11.2.0/grid/cfgtoollogs/opatchauto2013-05-30_07-40-32.report.log

2013-05-30 07:40:32: Starting Clusterware Patch Setup
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
The opatch Component check failed. This patch is not applicable for /u01/app/oracle/product/11.2.0/dbhome_1
Conflict check failed for oracle home /u01/app/oracle/product/11.2.0/dbhome_1
Conflict check failed
Conflict-Check has failed . Please refer to /u01/app/11.2.0/grid/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.

REFERENCES

NOTE:1082394.1 - 11.2.0.1.X Grid Infrastructure PSU Known Issues

NOTE:1553964.1 - "This Patch Is Not Applicable" Encountered While Using ‘opatch auto‘ Where ‘OPatch‘ Directory is Not Owned by :

时间: 2024-10-12 20:26:21

Applying GI PSU "opatch auto" fails with "The opatch Component check failed"的相关文章

GI OPatch升级 The opatch Component check failed. This patch is not applicable for...

Oracle11gr2RAC(11204)打补丁11.2.0.4.8,系统为:SuSE11sp3 X86_64 通过/u01/app/11.2.0/grid/OPatch/opatch auto /tmp/21523375 -ocmrf /tmp/ocm.rsp 同时对ORACLE_HOME,GI_HOME同时升级.出现如下报错: jason1:/u01/app/11.2.0/grid/OPatch # /u01/app/11.2.0/grid/OPatch/opatch auto /tmp/2

一次误操作导致的gi psu升级失败

oracle使用opatch auto的方式安装gi psu时需要一个节点一个节点来,昨晚的升级中,因为误操作而是两节点同时安装gi psu,最终在补丁安装完成后,无法拉起crs. 选择进行补丁的rollback,结果悲剧的发现rollback的前提是需要crs启动的状态,无奈之下只能进行备份文件的恢复了. 不过因为意识的疏忽,压缩$oracle_home目录和$grid_home目录时没有使用root用户,导致部分文件没有备份出来. 以后打类似的psu,有两个注意点: 第一,一定要一个节点一个

Oracle 11g RAC自动打GI PSU补丁(11.2.0.4.8)

一.准备工作 1,数据库环境 操作系统版本   : Redhat 6.5 x64   数据库版本     : Oracle 11.2.0.4 x64 RAC    Grid           : 11.2.0.4     Oracle database: 11.2.0.4 本文出自:http://koumm.blog.51cto.com/ 2,准备内容 GI PSU : p21523375_112040_Linux-x86-64.zip    OPatch : p6880880_112000_

Oracle Rac opatch auto的时候为什么不打到Rac database home上

先交代环境: 操作系统:AIX 7.1 Oracle版本:Oracle Rac 11.2.0.3 之前打了11.2.0.3.9的补丁集,Rac装上还没正式用,所以就干脆再打到最新的11.2.0.3.11补丁集. 今日在前段时间新装的两套Rac打最新的psu,同样使用opatch auto的方式来打psu,但是其中一套Rac是连同Rac和Grid一起patch,而另一套是只patch Grid的补丁集.很郁闷,两套rac的crsconfig_params是基本一样的,两套Rac的相关配置都是我一手

opatch auto in windows db in 11.2.0.4

cd D:\oracle_patch\1612D:\app\Administrator\product\11.2.0\dbhome_1\OPatch\ocm\bin\emocmrsp.bat set ORACLE_HOME=D:\app\Administrator\product\11.2.0\dbhome_1mkdir dbmkdir ojvmunzip p23530402_112040_MSWIN-x86-64.zip -d dbunzip p23515277_112040_MSWIN-x8

ORACLE升级PSU&amp;OJVM遇到问题

[环境介绍] 系统环境:Solaris + Oracle 11R2 + OGG + 脚本定时任务统计信息收集 [背景描述] 基于集团的安全检查,需要对数据库版本进行漏洞扫描,漏洞扫描中存在RBDMS和JVM类型的漏洞,需要通过升级小版本的PSU和OJVM来修复漏洞.下面大概说明一下升级的注意部分和出现问题的解决. [问题处理] 升级时一般在晚上操作,在升级数据库前注意的问题(由于脚本较多,这里贴脚本,如果有需要脚本可以留言): 提前进行数据库软件备份(可排除aud小文件,备份小文件多导致备份时间

Oracle Recommended Patches -- &quot;Oracle JavaVM Component Database PSU&quot; (OJVM PSU) Patches (文档 ID 1929745.1)

From: https://support.oracle.com What is "Oracle JavaVM Component Database PSU" ? Oracle JavaVM Component Database PSU is released as part of the Critical Patch Update program from October 2014 onwards.It consists of two separate patches: One fo

[转帖]Oracle 补丁体系(PSR/PSU/CPU) 及 opatch 工具 介绍

Oracle 补丁体系(PSR/PSU/CPU) 及 opatch 工具 介绍 原文:http://blog.csdn.net/tianlesoftware/article/details/5809526 其实 原始blog 比较早了 应该是六年前的内容了 但是感觉还是挺好的 自己公司的产品暂时没做到这样 但是存在一个问题, 一个是 云转型 一个是 原始的monolith 的应用 的区别对待 其实 认为不管是micro service 还是 monolithic 的应用 其实都是差不多的东西.

Oracle 12c RAC安装PSU(12.1.0.2.161018)

一.准备工作 1,数据库环境 操作系统版本   : Redhat 6.8 x64   数据库版本     : Oracle 12.1.0.2 x64 RAC    Grid           : 12.1.0.2     Oracle database: 12.1.0.2 2,准备内容 GI PSU : p24412235_121020_Linux-x86-64.zip   OPatch : p6880880_122010_Linux-x86-64.zip    DB PSU : p24006