码迷,mamicode.com
首页 > 数据库 > 详细

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

时间:2014-08-22 23:43:19      阅读:560      评论:0      收藏:0      [点我收藏+]

标签:blog   http   io   strong   文件   问题   log   sp   ad   

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/

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

标签:blog   http   io   strong   文件   问题   log   sp   ad   

原文地址:http://www.cnblogs.com/future2012lg/p/3930374.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!