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
<!-- Copyright (c) 1999, 2009, Oracle. All rights reserved. -->
<!-- Do not modify the contents of this file by hand. -->
-- 没有 "OraDb11g_home1"相关信息
恢复后
[oracle@dou_rac2 oraInventory]$ cat ContentsXML/inventory.xml
<!-- Copyright (c) 1999, 2009, Oracle. All rights reserved. -->
<!-- Do not modify the contents of this file by hand. -->
-- 添加了 "OraDb11g_home1"相关信息,问题解决
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26442936/viewspace-768379/ ,如需转载,请注明出处,否则将追究法律责任。