future2012lg

博客园 首页 新随笔 联系 订阅 管理

OPatch failed with error code 73(OracleHomeInventory gets null oracleHomeInfo)

 

1、问题描述

[oracle@dou_rac2 oraInventory]$/u01/app/oracle/product/11.2.0/dbhome_1/OPatch/opatch napply /u01/app/oracle/product/11.2.0/dbhome_1/9413827/custom/server/ -local -oh /u01/app/oracle/product/11.2.0/dbhome_1 -id 9413827

 

错误主要描述

  Home name= Ora11g_gridinfrahome1, Location= "/u01/app/11.2.0/grid"

OPatchSession 无法加载指定 Oracle 主目录 /u01/app/oracle/product/11.2.0/dbhome_1 的产品清单。原因可能是:

   对 ORACLE_HOME/.patch_storage 没有读权限或写权限

   其他 OUI 实例锁定了主产品清单

   对主产品清单没有读权限

   锁文件位于 ORACLE_HOME/.patch_storage 中

   主产品清单中不存在 Oracle 主目录

UtilSession 失败: OracleHomeInventory gets null oracleHomeInfo

OPatch failed with error code 73

2、问题解决思路

根据错误查看了权限,发现不是权限问题。为什么会出现gets null oracleHomeInfo,红色部分获取了Ora11g_gridinfrahome1,但没有获取到 oracleHomeInfo

收索 OracleHomeInventory gets null oracleHomeInfo 找到

OPatch Fails With "LsInventorySession failed: OracleHomeInventory gets null oracleHomeInfo" (文档 ID 728417.1) 根据文档提示把问题解决

 

3、问题解决方法

 

恢复前

[oracle@dou_rac2 oraInventory]$ cat ContentsXML/inventory.xml

<?xml version="1.0" standalone="yes" ?>

<!-- Copyright (c) 1999, 2009, Oracle. All rights reserved. -->

<!-- Do not modify the contents of this file by hand. -->

<INVENTORY>

<VERSION_INFO>

   <SAVED_WITH>11.2.0.1.0</SAVED_WITH>

   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>

</VERSION_INFO>

<HOME_LIST>

<HOME NAME="Ora11g_gridinfrahome1" LOC="/u01/app/11.2.0/grid" TYPE="O" IDX="1" CRS="true">

   <NODE_LIST>

      <NODE NAME="dou_rac1"/>

      <NODE NAME="dou_rac2"/>

   </NODE_LIST>

</HOME>

</HOME_LIST>

</INVENTORY>

--没有"OraDb11g_home1"相关信息

 

恢复后

[oracle@dou_rac2 oraInventory]$ cat ContentsXML/inventory.xml

 

<?xml version="1.0" standalone="yes" ?>

<!-- Copyright (c) 1999, 2009, Oracle. All rights reserved. -->

<!-- Do not modify the contents of this file by hand. -->

<INVENTORY>

<VERSION_INFO>

   <SAVED_WITH>11.2.0.1.0</SAVED_WITH>

   <MINIMUM_VER>2.1.0.6.0</MINIMUM_VER>

</VERSION_INFO>

<HOME_LIST>

<HOME NAME="Ora11g_gridinfrahome1" LOC="/u01/app/11.2.0/grid" TYPE="O" IDX="1" CRS="true">

   <NODE_LIST>

      <NODE NAME="dou_rac1"/>

      <NODE NAME="dou_rac2"/>

   </NODE_LIST>

</HOME>

<HOME NAME="OraDb11g_home1" LOC="/u01/app/oracle/product/11.2.0/dbhome_1" TYPE="O" IDX="2"/>

</HOME_LIST>

</INVENTORY>

--添加了"OraDb11g_home1"相关信息,问题解决

转载:http://blog.itpub.net/26442936/viewspace-768379/

posted on 2014-08-22 22:59  future2012lg  阅读(2063)  评论(0编辑  收藏  举报