前一篇文章中提到CSS服务启不来,提示如下的错误:
Giving up: Oracle CSS stack appears NOT to be running.
Oracle CSS service would not start as installed
Automatic Storage Management(ASM) cannot be used until Oracle CSS service is started
在单节点上使用ASM是不需要安装CRS的,但使用ASM就一定要CSS的支持,CSS在安装DATABASE的时候已经默认安装,只需要配置就行了。从技术上来讲,上述的错误只要重新配置CSS服务即可。
下面的操作需要root权限:
# rm -f /usr/tmp/.oracle/*
# rm -f /tmp/.oracle/*
# rm -f /var/tmp/.oracle/*
#cd $ORACLE_HOME/bin
#./localconfig delete
#./localconfig add
#/etc/init.cssd run &
Oracle用户:
$ crsctl check crs
CSS appears healthy
Cannot communicate with CRS
Cannot communicate with EVM
$ crsctl check css
CSS appears healthy
$ ps -ef |grep ocssd |grep -v grep
root 123274 151730 0 17:09:48 pts/0 0:00 /u01/app/oracle/product/10.2.0/db_1/bin/ocssd.bin
可以根据CSS相关的log文件来进行诊断:
–$ORACLE_HOME/log/<$HOST>/client/css*.log
这是我机器上的错误信息
$ more css917.log
Oracle Database 10g CRS Release 10.2.0.4.0 Production Copyright 1996, 2008 Oracle. All rights reserved.
2009-11-11 15:00:04.472: [ CSSCLNT][1]clsssInitNative: connect failed, rc 9
其它log files:
–$ORACLE_HOME/log/hostname/cssd/cssdOUT.log
–$ORACLE_HOME/log/hostname/cssd/ocssd.log
–$ORACLE_HOME/log/hostname/alert<hostname>.log
–/var/tmp/.oracle
还可参考:
http://frits.homelinux.com/wordpress/?p=34
-The End-
