热门标签 | HotTags
当前位置:  开发笔记 > Android > 正文

Oracle错误日志:Oracle11gR2RAC重建oraInventory目录

最近在11gRAC升级过程中,发现oraInventory目录丢失了。导致在db安装程序的过程中提示以下错误:Cause:Beforeyoucaninstall

最近在11g RAC升级过程中,发现oraInventory目录丢失了。导致在db安装程序的过程中提示以下错误:Cause:Before you can install

最近在11g RAC升级过程中,发现oraInventory目录丢失了。导致在db安装程序的过程中提示以下错误:
Cause:
Before you can install Oracle RAC, you must install Oracle Grid Infrastructure on all servers (Oracle Clusterware and Oracle ASM) to create a cluster.
Action:
Oracle Grid Infrastructure is not installed. Install it either from the separate installation media included in your media pack, or install it by downloading it from Electronic Product Delivery (EPD) or the Oracle Technology Network (OTN). Oracle Grid Infrastructure normally is installed by a different operating system user than the one used for Oracle Database. It may need to be installed by your system administrator. See the installation guide for more details.

因此需要重建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="" 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="" 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

更多Oracle相关信息见Oracle 专题页面 ?tid=12

linux


推荐阅读
author-avatar
云峰家园
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有