日期:2014-05-16  浏览次数:20416 次

CRS-0184诊断与启动CRS(原创)

CRS-0184错误与CRS初始化
bash-2.05$ id
uid=101(oracle) gid=101(dba)
bash-2.05$ crs_start -all
CRS-0184: Cannot communicate with the CRS daemon.
检查一下crs进程:
$ ps -ef|grep crs
??? root 10469??? 1? 0 16:52:16 ???????? 0:00 /bin/sh /etc/init.d/init.crsd run
? oracle 14164? 9725? 0 17:05:48 pts/1??? 0:00 grep crs
检查一下ocr文件的权限:
$ ls -l /dev/raw/raw1
crw-rw---- 1 oracle oinstall 162, 1 Apr 28 18:00 /dev/raw/raw1
此时需要以root身份启动crs后台进程:
# /etc/init.d/init.crs start
Startup will be queued to init within 30 seconds.
# id
uid=0(root) gid=1(other)
# ps -ef|grep crs
? oracle 10402??? 1? 0 16:52:16 ???????? 0:01 /opt/oracle/product/10.2.0/crs10g/bin/evmd.bin
??? root 10469??? 1? 0 16:52:16 ???????? 0:00 /bin/sh /etc/init.d/init.crsd run
??? root 15320 10469? 0 17:09:26 ???????? 0:03 /opt/oracle/product/10.2.0/crs10g/bin/crsd.bin reboot
? oracle 16569??? 1? 0 17:09:58 ???????? 0:00 /opt/oracle/product/10.2.0/crs10g/opmn/bin/ons -d
? oracle 16570 16569? 0 17:09:58 ???????? 0:00 /opt/oracle/product/10.2.0/crs10g/opmn/bin/ons -d
??? root 15397 15307? 0 17:09:26 ???????? 0:00 /opt/oracle/product/10.2.0/crs10g/bin/oprocd run -t 1000 -m 500 -f
? oracle 15550 15313? 0 17:09:29 ???????? 0:01 /opt/oracle/product/10.2.0/crs10g/bin/ocssd.bin
? oracle 15424 15311? 0 17:09:27 ???????? 0:00 /bin/sh -c cd /opt/oracle/product/10.2.0/crs10g/log/db210-rac1/cssd/oclsomon; u
??? root 17177? 9604? 0 17:10:18 pts/1??? 0:00 grep crs
? oracle 15906 10402? 0 17:09:40 ???????? 0:00 /opt/oracle/product/10.2.0/crs10g/bin/evmlogger.bin -o /opt/oracle/product/10.2
? oracle 15429 15424? 0 17:09:27 ???????? 0:00 /opt/oracle/product/10.2.0/crs10g/bin/oclsomon.bin
启动RAC

# su - oracle
Sun Microsystems Inc.? SunOS 5.9????? Generic May 2002
$ crs_start -all
$ crs_stat -t -v
Name?????????? Type?????????? R/RA?? F/FT?? Target??? State???? Host???????
----------------------------------------------------------------------
ora....M1.inst application??? 0/5??? 0/0??? ONLINE??? ONLINE??? ocm1???????
ora....M2.inst application??? 0/5??? 0/0??? ONLINE??? ONLINE??? ocm2???????
ora.OCM.db???? application??? 0/1??? 0/1??? ONLINE??? ONLINE??? ocm2???????
ora....SM1.asm application??? 0/5??? 0/0??? ONLINE??? ONLINE??? ocm1???????
ora....M1.lsnr application??? 0/5??? 0/0??? ONLINE??? ONLINE??? ocm1???????
ora.ocm1.gsd?? application??? 0/5??? 0/0??? ONLINE??? ONLINE??? ocm1???????
ora.ocm1.ons?? app