OPatch failed with error code 73

安装Grid psu补丁,安装的过程中报下面73的错误
[root@zxdb01 OPatch]# ./opatch auto /tools/21150904/20996944 -oh /u01/app/11.2.0/grid -ocmrf /tmp/ocm.rsp
Executing /u01/app/11.2.0/grid/perl/bin/perl ./crs/patch11203.pl -patchdir /tools/21150904 -patchn 20996944 -oh /u01/app/11.2.0/grid -ocmrf /tmp/ocm.rsp -paramfile /u01/app/11.2.0/grid/crs/install/crsconfig_params


This is the main log file: /u01/app/11.2.0/grid/cfgtoollogs/opatchauto2016-09-14_11-16-30.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/opatchauto2016-09-14_11-16-30.report.log


2016-09-14 11:16:30: Starting Oracle Restart Patch Setup
Using configuration parameter file: /u01/app/11.2.0/grid/crs/install/crsconfig_params
The opatch minimum version  check for patch /tools/21150904/20996944/17592127 failed  for /u01/app/11.2.0/grid
The opatch minimum version  check for patch /tools/21150904/20996944/20760997 failed  for /u01/app/11.2.0/grid
Opatch version check failed for oracle home  /u01/app/11.2.0/grid
Opatch version  check failed
ERROR: update the opatch version for the failed homes and retry

opatch auto failed.
[root@zxdb01 OPatch]# 

报错提示是opatch的版本太低,但是很显然opatch版本没问题。升级补丁要求最低的opatch版本为11.2.0.3.5,而我的opatch版本为11.2.0.3.6

查看 /u01/app/11.2.0/grid/cfgtoollogs/opatchauto2016-09-14_11-16-30.log日志

 Oracle Home       : /u01/app/11.2.0/grid
 Central Inventory : /u01/app/oraInventory
    from           : /u01/app/11.2.0/grid/oraInst.loc
 OPatch version    : 11.2.0.3.6
 OUI version       : 11.2.0.3.0
 Log file location : /u01/app/11.2.0/grid/cfgtoollogs/opatch/opatch2016-09-14_11-28-55AM_1.log
 
 List of Homes on this system:
 
   Home name= OraDb11g_home1, Location= "/u01/app/oracle/product/11.2.0/dbhome_1"
 OPatchSession cannot load inventory for the given Oracle Home /u01/app/11.2.0/grid. Possible causes are:
    No read or write permission to ORACLE_HOME/.patch_storage
    Central Inventory is locked by another OUI instance
    No read permission to Central Inventory
    The lock file exists in ORACLE_HOME/.patch_storage
    The Oracle Home does not exist in Central Inventory
 
 UtilSession failed: OracleHomeInventory gets null oracleHomeInfo
 
 OPatch failed with error code 73
 
说明有很多中情况,不仅仅是因为opatch版本太低的原因。

想起这个环境,我是先安装过一次,然后把环境删掉重新安装的。
重新安装的步骤如下:
1.删掉原来的grid软件
2.安装grid
3.删掉数据库软件, 同时move移除 /u01/app/oraInventory目录 (此处是重点
4.安装数据库软件

查看/u01/app/oraInventory/ContentsXML/inventory.xml 文件,只有下面一条记录:





而再看移除备份目录下的inventory.xml文件中的内容,有三条记录:







所以问题很明显,我在安装完grid之后,把inventory目录删掉这个步骤是错误的,把grid home的信息给删掉了,所以在安装的时候找不到。

处理方法,在现有的 /u01/app/oraInventory/ContentsXML/ inventory.xml  文件中增加grid home的信息
修改成如下:





再做升级时问题解决。

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/23850820/viewspace-2124983/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/23850820/viewspace-2124983/

你可能感兴趣的:(OPatch failed with error code 73)