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 文件,只有下面一条记录:
<HOME_LIST>
<HOME NAME="OraDb11g_home1" LOC="/u01/app/oracle/product/11.2.0/dbhome_1" TYPE="O" IDX="1"/>
</HOME_LIST>
<COMPOSITEHOME_LIST>

而再看移除备份目录下的inventory.xml文件中的内容,有三条记录:
<HOME_LIST>
<HOME NAME="Ora11g_gridinfrahome1" LOC="/u01/app/grid/product/11.2.0/grid" TYPE="O" IDX="1" CRS="true"/>
<HOME NAME="OraDb11g_home1" LOC="/u01/app/oracle/product/11.2.0/dbhome_1" TYPE="O" IDX="2"/>
<HOME NAME="Ora11g_gridinfrahome2" LOC="/u01/app/11.2.0/grid" TYPE="O" IDX="3" CRS="true"/>
</HOME_LIST>
<COMPOSITEHOME_LIST>

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

处理方法,在现有的 /u01/app/oraInventory/ContentsXML/ inventory.xml  文件中增加grid home的信息
修改成如下:
<HOME_LIST>
<HOME NAME="Ora11g_gridinfrahome1" LOC="/u01/app/11.2.0/grid" TYPE="O" IDX="1" CRS="true"/>
<HOME NAME="OraDb11g_home1" LOC="/u01/app/oracle/product/11.2.0/dbhome_1" TYPE="O" IDX="2"/>
</HOME_LIST>

再做升级时问题解决。

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

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

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值