zoukankan      html  css  js  c++  java
  • OPatch failed with error code 73(OracleHomeInventory gets null oracleHomeInfo)

    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/

  • 相关阅读:
    窥探算法之美妙——详细讲解寻找最长重复字符串的原理
    窥探算法之美妙——寻找数组中最小的K个数&python中巧用最大堆
    窥探算法之美妙——统计整数二进制中1的个数
    第一次向开源项目贡献代码的历程
    编写高质量代码--改善python程序的建议(八)
    Mysql数据类型TINYINT(1)与BOOLEAN踩坑记
    Mysql Hash索引和B-Tree索引区别(Comparison of B-Tree and Hash Indexes)
    详解计算机中的Byte、bit、字、字长、字节
    什么是不忘初心
    最简单的JS实现json转csv
  • 原文地址:https://www.cnblogs.com/future2012lg/p/3930374.html
Copyright © 2011-2022 走看看