Archive for 十二月 2011

安装rac执行root.sh出现rootconfig: line 815: 10338 Segmentation fault错误

在REDHAT 5.4上安装oracle 10g rac,安装cluster时,在执行/opt/ora10g/product/10.2.0/crs_1/root.sh时出现了如下错误:

WARNING: directory ‘/opt/ora10g/product/10.2.0’ is not owned by root
WARNING: directory ‘/opt/ora10g/product’ is not owned by root
WARNING: directory ‘/opt/ora10g’ is not owned by root
Checking to see if Oracle CRS stack is already configured

Setting the permissions on OCR backup directory
Setting up NS directories
/opt/ora10g/product/10.2.0/db_1/install/rootconfig: line 815: 10338 Segmentation fault $CH/bin/ocrconfig -upgrade $CRS_ORACLE_OWNER $CRS_DBA_GROUP
Failed to upgrade Oracle Cluster Registry configuration

最后查找到原因是GCC的问题,需进行如下操作:

1. cd /usr/bin
2. mv gcc gcc.script
3. mv g++ g++.script
4. ln -s gcc34 gcc
5. ln -s g++34 g++