设为首页 收藏本站
查看: 469|回复: 0

[经验分享] 在linux AS5.4 64bit 安装CRS时,执行root.sh时报错

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2014-6-3 10:51:10 | 显示全部楼层 |阅读模式
在linux AS5.4 64bit 安装CRS时,执行root.sh时报错

[iyunv@rac02 crs]# sh 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
WARNING: directory '/opt' is not owned by root
Checking to see if Oracle CRS stack is already configured
/etc/oracle does not exist. Creating it now.

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


首先开始检查连个节点的/etc/hosts的IP与主机名对应是否都正确,检查/etc/sysconfig/network ,裸设备的权限,检查无误后没找到其他原因
重新安装依旧失败。。。。

按照metalink做法
Failed to upgrade Oracle Cluster Registry segmentation fault executing ocrconfig [ID 393553.1]

适用于:
Linux x86-64 Oracle Enterprise  Version: 10.1.0.2 to 11.1.0.7 - Release: 10.1 to 11.1

Symptoms
Segmentation fault when  root.sh execute ocrconfig


Checking to see if Oracle CRS stack is already configured
Setting the permissions on OCR backup directory
Setting up NS directories
/u00/oracle/product/10.2.0/crs/install/rootconfig: line 815:
20749 Segmentation fault $CH/bin/ocrconfig -upgrade $CRS_ORACLE_OWNER
$CRS_DBA_GROUP
Failed to upgrade Oracle Cluster Registry configuration

导致root.sh执行失败的原因是:
The symbolic link to gcc32 and g++32 were broken .

Action:

#which gcc
/usr/bin/gcc

#which g++
/usr/bin/g++

#ls -ltra /usr/bin/gcc*
-rwxr-xr-x 2 root root 94360 Dec 1 2004 /usr/bin/gcc32
-rwxr-xr-x 1 root root 914 Feb 23 2005 /usr/bin/gcc

#ls -ltra /usr/bin/g+*
-rwxr-xr-x 3 root root 95576 Dec 1 2004 /usr/bin/g++32
-rwxr-xr-x 1 root root 914 Feb 23 2005 /usr/bin/g++


Solution
  
1. #cd /usr/bin  
2. #mv gcc gcc.script
3. #mv g++ g++.script
4. #ln -s gcc32 gcc
5. #ln -s g++32 g++




以root身份执行以下 1-4


1.Make sure the symbolic link is right  You need to see something like

#ls -lrt /usr/bin/gcc

lrwxrwxrwx 1 root root 5 Feb 16 2006 /usr/bin/gcc -> gcc32

2.ls -lrt /usr/bin/g++

lrwxrwxrwx 1 root root 5 Feb 16 2006 /usr/bin/g++ -> g++32

3. Remove the CRS Note 239998.1 How to Clean Up After a Failed Oracle Clusterware (CRS)

4. Reinstall CRS



metalink上的报错是line 815:
20749 Segmentation fault $CH/bin/ocrconfig -upgrade $CRS_ORACLE_OWNER,
但我的报错却是
line 815: 10438  segment fault                 
$CH/bin/ocrconfig -upgrade $CRS_ORACLE_OWNER $CRS_DBA_GROUP,错误类似,还是抱着试试的态度试了下
我的linux是AS5.4 64位的,起初按照metalink的做法并未成功,折腾了好久
最后查看/usr/bin目录下并没有gcc32
只有gcc34,后又按照metalink的 Solution 将gcc32的部分替换成gcc34,以下是执行步骤

Solution
1.root@rac01]# cd /usr/bin  

2.[iyunv@rac01 bin]# mv gcc       gcc.script

3.[iyunv@rac01 bin]# mv g++       g++.script

4.[iyunv@rac01 bin]# ln -s gcc34  gcc

5.[iyunv@rac01 bin]# ln -s g++34  g++

7.[iyunv@rac01 bin]# ls -lrt /usr/bin/gcc

lrwxrwxrwx 1 root root 5 04-21 19:06 /usr/bin/gcc -> gcc34

8.[iyunv@rac01 bin]# ls -lrt /usr/bin/g++

lrwxrwxrwx 1 root root 5 04-21 19:06 /usr/bin/g++ -> g++34

9.删除Linux两个节点的CRS

10. 分别在两个节点运行$ORA_CRS_HOME/install目录的rootdelete.sh,rootdeinstall.sh 脚本
  
Rootdelete.sh 接受如 nosharedvar/sharedvar, and nosharedhome/sharedhome的选项

11. Stop the Nodeapps on all nodes:

root@rac01 bin]# srvctl stop nodeapps -n

12.删除两个节点的以下目录
root@rac01]# rm /etc/oracle/*
root@rac01]# rm -f  /etc/init.d/init.cssd
root@rac01]# rm -f  /etc/init.d/init.crs
root@rac01]# rm -f  /etc/init.d/init.crsd
root@rac01]# rm -f  /etc/init.d/init.evmd
root@rac01]# rm -f  /etc/rc2.d/K96init.crs
root@rac01]# rm -f  /etc/rc2.d/S96init.crs
root@rac01]# rm -f  /etc/rc3.d/K96init.crs
root@rac01]# rm -f  /etc/rc3.d/S96init.crs
root@rac01]# rm -f  /etc/rc5.d/K96init.crs
root@rac01]# rm -f  /etc/rc5.d/S96init.crs
root@rac01]# rm -Rf /etc/oracle/scls_scr
root@rac01]# rm -f  /etc/inittab.crs
root@rac01]# cp /etc/inittab.orig /etc/inittab
        


13. 如果有以下进程,  kill掉 EVM, CRS, and CSS 进程
  
  所有节点上执行
   
   #ps -ef | grep crs   
    kill  PID

   #ps -ef | grep evm
    kill  PID

   #ps -ef | grep css   
    kill PID


14. 在两个节点删除.oracle

    #rm -f /var/tmp/.oracle/*

    #rm -f /tmp/.oracle/*

15. Remove the ocr.loc
   Usually the ocr.loc can be found at /etc/oracle

16. De-install the CRS home in the Oracle Universal Installer

17.删除CRS的安装目录
我的目录是 /opt/ora10g/product/10.2.0/crs/install

在两个节点分别执行

#rm -rf /ora10g/*

18. 清空OCR,VotingDisk裸设备

  root@rac01]# dd if=/dev/zero of=/dev/raw/raw1  bs=8192 count=4000
  root@rac01]# dd if=/dev/zero of=/dev/raw/raw2  bs=8192 count=4000

  确保raw权限正确

  [iyunv@rac01 ~]# ls  -al /dev/raw/
总计 0
drwxr-xr-x  2 oracle oinstall    120 04-21 19:14 .
drwxr-xr-x 14 root   root       4660 04-21 20:50 ..
crw-r--r--  1 oracle oinstall 162, 1 04-22 11:33 raw1
crw-r-----  1 oracle oinstall 162, 2 04-21 19:18 raw2
crw-r-----  1 oracle oinstall 162, 3 04-22 11:33 raw3
crw-r-----  1 oracle oinstall 162, 4 04-22 11:33 raw4

  
18.重新安装CRS  问题解决


References
NOTE:239998.1 - How to Clean Up After a Failed 10g or 11.1 Oracle Clusterware Installation



运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.iyunv.com/thread-20034-1-1.html 上篇帖子: Oracle 10g bigfile表空间、smallfile 表空间 下篇帖子: crsctl 常用命令 linux
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表