数据库rac11.2.0.1升级到11.2.0.2遇到的问题(二)

 

问题三:为DB_HOME打补丁的时候发生错误

su - oracle

cd /tmp/9413827

日志如下:

opatch napply -local -oh $oracle_home -id 9413827
Oracle Interm Patch Installer version 11.2.0.1.9

Verifying environment and performing prerequisite checks...
OUI-67073:UtilSession failed:patch 9413827 requires component(s) that are not installed in OracleHome.These not-installed components are oracle.crs:11.2.0.1.0
Log file location:
Opatch failed with error code 73
今天在MOS上搜索到如下文档解释这个错误:


Opatch Error "UtilSession failed: Patch nnn requires component(s) that are not installed" When Applying CRS or Grid Infrastructure Merge, Bundle or PSU Patches [ID 763680.1]
--------------------------------------------------------------------------------
 
  修改时间 07-JUL-2011     类型 PROBLEM     状态 PUBLISHED  
In this Document
  Symptoms
  Cause
  Solution
     Case 1: One-off patch version does not match target ORACLE_HOME version
     Case 2: Wrong patch path specified for database home
     Case 3: Relative patch path is specified

applies to: Oracle Server - Enterprise Edition - Version: 10.2.0.3 to 11.2.0.2 - Release: 10.2 to 11.2
Information in this document applies to any platform.
Symptoms
OPATCH fails with the following error when applying Oracle Clusterware (CRS or Grid Infrastructure) merge, bundle or PSU patches:
UtilSession failed: Patch nnn requires component(s) that are not installed in OracleHome. These not-installed components are oracle.crs:10.2.0.3.0,
OR
UtilSession failed: Patch nnn requires component(s) that are not installed in OracleHome. These not-installed components are oracle.crs:11.2.0.2.0, oracle.usm:11.2.0.2.0,


OPatch failed with error code 73
Cause
Refer to Solution Section.

Solution

Case 1: One-off patch version does not match target ORACLE_HOME version
An one-off patch can only be applied to an ORACLE_HOME that matches the patch version, for example 11.2.0.2 PSU2 can not be applied to 11.2.0.1 home since version does not match, the error will be reported if there's version mismatch.
To find out what's the version of target ORACLE_HOME, execute the following as oracle home owner:
export ORACLE_HOME=<target-oracle-home>
$ORACLE_HOME/OPatch/opatch lsinventory -oh $ORACLE_HOME
Case 2: Wrong patch path specified for database home
As Oracle Clusterware patches apply to database home in most of the case, but in sub directory under clusterware patch, if wrong patch path is specified when applying to database home, the error will be reported.
For example, after unzipped 11.2.0.2 GI PSU2 to empty directory /depot/patches/11.2/GIPSU2, the following sub directory is created:
/depot/patches/11.2/GIPSU2/11724916
/depot/patches/11.2/GIPSU2/12311357
Patch 11724916 is database PSU2, and /depot/patches/11.2/GIPSU2/11724916 applies to both GI and database homes. But for GI PSU 12311357, /depot/patches/11.2/GIPSU2/12311357 applies to GI home, and /depot/patches/11.2/GIPSU2/12311357/custom/server/12311357 applies to database home. If /depot/patches/11.2/GIPSU2/12311357 is specified when applying to database home, the error will be reported.
Wrong command example:
<DB_HOME>/OPatch/opatch napply -oh <DB_HOME> -local /depot/patches/11.2/GIPSU2/12311357

Correct command example:

<DB_HOME>/OPatch/opatch napply -oh <DB_HOME> -local /depot/patches/11.2/GIPSU2/12311357/custom/server/12311357
Case 3: Relative patch path is specified
The issue could happen if relative path is specified, for example, when the following is executed, the error is reported:
pwd
/depot/patches/11.2/GIPSU2/12311357
<DB_HOME>/OPatch/opatch napply -oh <DB_HOME> -local custom/server/12311357
The workaround is to use full path, for example:
<DB_HOME>/OPatch/opatch napply -oh <DB_HOME> -local /depot/patches/11.2/GIPSU2/12311357/custom/server/12311357
 相关内容

--------------------------------------------------------------------------------
产品
--------------------------------------------------------------------------------
•Oracle Database Products > Oracle Database > Oracle Database > Oracle Server - Enterprise Edition
关键字
--------------------------------------------------------------------------------
CRS; GRID INFRASTRUCTURE; ONE-OFF PATCH; OPATCH; ORACLE CLUSTERWARE; ORACLE_HOME
错误
--------------------------------------------------------------------------------
311357 ERROR; ERROR CODE 73

你可能感兴趣的:(数据库rac11.2.0.1升级到11.2.0.2遇到的问题(二))