最近在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
,