打补丁 9413827 报错
$ /app/grid/11.2.0/OPatch/opatch napply -local -oh $ORACLE_HOME -id 9413827
Invoking OPatch 11.1.0.6.6
Oracle Interim Patch Installer version 11.1.0.6.6
Copyright (c) 2009, Oracle Corporation. All rights reserved.
UTIL session
Oracle Home : /app/grid/11.2.0
Central Inventory : /app/grid/oraInventory
from : /etc/oraInst.loc
OPatch version : 11.1.0.6.6
OUI version : 11.2.0.1.0
OUI location : /app/grid/11.2.0/oui
Log file location : /app/grid/11.2.0/cfgtoollogs/opatch/opatch2013-09-23_16-08-07PM.log
Patch history file: /app/grid/11.2.0/cfgtoollogs/opatch/opatch_history.txt
List of Homes on this system:
OPatchSession cannot load inventory for the given Oracle Home /app/grid/11.2.0. 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
目录权限没问题
$ ll -ld $ORACLE_HOME/.patch_storage
也没进程使用目录
$ lsof /app/grid/11.2.0/oui/
inventory目录也存在,不过下面只有logs目录和locks目录2个目录,好像缺少了一个重要的ContentsXML目录。
如是,安装如下文档步骤重建oraInventory
1、Locate the central inventory
cat /etc/oraInst.loc
2、cd $ORACLE_HOME/oui/bin
3、Execute runInstaller with attachHome option for OraCrsHome.
./runInstaller -silent -ignoreSysPrereqs -attachHome ORACLE_HOME="<11g Ora_Crs_Home Path>" ORACLE_HOME_NAME="" LOCAL_NODE='node1' CLUSTER_NODES=node1,node2 CRS=true
例如:
./runInstaller -silent -ignoreSysPrereqs -attachHome ORACLE_HOME="/oracle/app/oracle/product/11.2.0/crs_1" ORACLE_HOME_NAME="OraCrs10g_home" LOCAL_NODE='rac1' CLUSTER_NODES=rac1,rac2 CRS=true
4、Execute runInstaller with attachHome option for OraDbHome
./runInstaller -silent -ignoreSysPrereqs -attachHome ORACLE_HOME="<11g Oracle_Home Path>" ORACLE_HOME_NAME="" LOCAL_NODE='node1' CLUSTER_NODES=node1,node2
例如:
./runInstaller -silent -ignoreSysPrereqs -attachHome ORACLE_HOME="/oracle/app/oracle/product/11.2.0/db_1" ORACLE_HOME_NAME="OraDb11g_home1" LOCAL_NODE='rac1' CLUSTER_NODES=rac1,rac2
5、Verify the inventory creation in all the nodes.
6、Verify and compare XML files size inside oraInventory/ContentsXML across all the nodes.
7、继续升级
可参考metalink id :413939.1
重新完后,再次打补丁成功完成。
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/9399028/viewspace-773215/
,如需转载,请注明出处,否则将追究法律责任。