Home > Database > Mysql Tutorial > body text

Oracle错误日志:Oracle11g R2 RAC重建oraInventory目录

WBOY
Release: 2016-06-07 17:17:30
Original
1406 people have browsed it

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

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!