最近在11g RAC升級過程中,發(fā)現(xiàn)oraInventory目錄丟失了。導(dǎo)致在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、繼續(xù)升級
可參考metalink id :413939.1
本文出自:億恩科技【mszdt.com】
服務(wù)器租用/服務(wù)器托管中國五強!虛擬主機域名注冊頂級提供商!15年品質(zhì)保障!--億恩科技[ENKJ.COM]
|