启动oracle rac时,报如下错误
[root@capitek1 ~]# su - oracle
-bash-3.00$ srvctl start database -d capitek
PRKH-1010 : Unable to communicate with CRS services.
[OCR Error(Native: prsr_initCLSS:[21])]
PRKO-2005 : Application error: Failure in getting Cluster Database Configuration for: capitek
-bash-3.00$ srvctl start database -d capitek
PRKH-1010 : Unable to communicate with CRS services.
[OCR Error(Native: prsr_initCLSS:[21])]
PRKO-2005 : Application error: Failure in getting Cluster Database Configuration for: capitek
-bash-3.00$ crs_stat -t
CRS-0184: Cannot communicate with the CRS daemon.
处理方法:
1,在每个节点上:
/etc/init.d/init.crs stop
/etc/init.d/init.crs start
若crs进程正常,采用ps结果如下:
[root@capitek1 tmp]# ps -ef|grep crs
root 3541 1 0 04:07 ? 00:00:00 /bin/su -l oracle -c sh -c 'ulimit -c unlimited; cd /u01/app/oracle/product/10.2.0/crs_1/log/capitek1/evmd; exec /u01/app/oracle/product/10.2.0/crs_1/bin/evmd '
root 3991 1 0 04:07 ? 00:00:02 /u01/app/oracle/product/10.2.0/crs_1/bin/crsd.bin reboot
oracle 7192 3541 0 06:04 ? 00:00:00 /u01/app/oracle/product/10.2.0/crs_1/bin/evmd.bin
root 7271 7177 0 06:04 ? 00:00:00 /bin/su -l oracle -c /bin/sh -c 'ulimit -c unlimited; cd /u01/app/oracle/product/10.2.0/crs_1/log/capitek1/cssd; /u01/app/oracle/product/10.2.0/crs_1/bin/ocssd || exit $?'
oracle 7272 7271 0 06:04 ? 00:00:00 /bin/sh -c ulimit -c unlimited; cd /u01/app/oracle/product/10.2.0/crs_1/log/capitek1/cssd; /u01/app/oracle/product/10.2.0/crs_1/bin/ocssd || exit $?
oracle 7293 7272 0 06:04 ? 00:00:00 /u01/app/oracle/product/10.2.0/crs_1/bin/ocssd.bin
oracle 7532 7192 0 06:04 ? 00:00:00 /u01/app/oracle/product/10.2.0/crs_1/bin/evmlogger.bin -o /u01/app/oracle/product/10.2.0/crs_1/evm/log/evmlogger.info -l /u01/app/oracle/product/10.2.0/crs_1/evm/log/evmlogger.log
oracle 8460 1 0 06:04 ? 00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
oracle 8461 8460 0 06:04 ? 00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
root 17951 4548 0 06:11 pts/1 00:00:00 grep crs
[root@capitek1 tmp]#
若crs进程有问题,结果如下:
[root@capitek1 tmp]# ps -ef|grep crs
root 3991 1 0 04:07 ? 00:00:00 /bin/sh /etc/init.d/init.crsd run
root 6818 4548 0 06:01 pts/1 00:00:00 grep crs
[root
2,查看/tmp下面的crsctl相关日志,发现是vote and ocs权限有问题,修正权限和所有权如下:
--ocr
chown root:oinstall /dev/hdb1
chown root:oinstall /dev/raw/raw4
chmod 660 /dev/hdb1
chmod 660 /dev/raw/raw4
--voting disk
chown oracle:oinstall /dev/hdb2
chown oracle:oinstall /dev/raw/raw5
chmod 660 /dev/hdb2
chmod 660 /dev/raw/raw5
3,切换到oracle用户,利用srvctl正常启动rac
4,crs_stat -t查看rac各组件状态
[root@capitek1 ~]# su - oracle
-bash-3.00$ srvctl start database -d capitek
PRKH-1010 : Unable to communicate with CRS services.
[OCR Error(Native: prsr_initCLSS:[21])]
PRKO-2005 : Application error: Failure in getting Cluster Database Configuration for: capitek
-bash-3.00$ srvctl start database -d capitek
PRKH-1010 : Unable to communicate with CRS services.
[OCR Error(Native: prsr_initCLSS:[21])]
PRKO-2005 : Application error: Failure in getting Cluster Database Configuration for: capitek
-bash-3.00$ crs_stat -t
CRS-0184: Cannot communicate with the CRS daemon.
处理方法:
1,在每个节点上:
/etc/init.d/init.crs stop
/etc/init.d/init.crs start
若crs进程正常,采用ps结果如下:
[root@capitek1 tmp]# ps -ef|grep crs
root 3541 1 0 04:07 ? 00:00:00 /bin/su -l oracle -c sh -c 'ulimit -c unlimited; cd /u01/app/oracle/product/10.2.0/crs_1/log/capitek1/evmd; exec /u01/app/oracle/product/10.2.0/crs_1/bin/evmd '
root 3991 1 0 04:07 ? 00:00:02 /u01/app/oracle/product/10.2.0/crs_1/bin/crsd.bin reboot
oracle 7192 3541 0 06:04 ? 00:00:00 /u01/app/oracle/product/10.2.0/crs_1/bin/evmd.bin
root 7271 7177 0 06:04 ? 00:00:00 /bin/su -l oracle -c /bin/sh -c 'ulimit -c unlimited; cd /u01/app/oracle/product/10.2.0/crs_1/log/capitek1/cssd; /u01/app/oracle/product/10.2.0/crs_1/bin/ocssd || exit $?'
oracle 7272 7271 0 06:04 ? 00:00:00 /bin/sh -c ulimit -c unlimited; cd /u01/app/oracle/product/10.2.0/crs_1/log/capitek1/cssd; /u01/app/oracle/product/10.2.0/crs_1/bin/ocssd || exit $?
oracle 7293 7272 0 06:04 ? 00:00:00 /u01/app/oracle/product/10.2.0/crs_1/bin/ocssd.bin
oracle 7532 7192 0 06:04 ? 00:00:00 /u01/app/oracle/product/10.2.0/crs_1/bin/evmlogger.bin -o /u01/app/oracle/product/10.2.0/crs_1/evm/log/evmlogger.info -l /u01/app/oracle/product/10.2.0/crs_1/evm/log/evmlogger.log
oracle 8460 1 0 06:04 ? 00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
oracle 8461 8460 0 06:04 ? 00:00:00 /u01/app/oracle/product/10.2.0/crs_1/opmn/bin/ons -d
root 17951 4548 0 06:11 pts/1 00:00:00 grep crs
[root@capitek1 tmp]#
若crs进程有问题,结果如下:
[root@capitek1 tmp]# ps -ef|grep crs
root 3991 1 0 04:07 ? 00:00:00 /bin/sh /etc/init.d/init.crsd run
root 6818 4548 0 06:01 pts/1 00:00:00 grep crs
[root
2,查看/tmp下面的crsctl相关日志,发现是vote and ocs权限有问题,修正权限和所有权如下:
--ocr
chown root:oinstall /dev/hdb1
chown root:oinstall /dev/raw/raw4
chmod 660 /dev/hdb1
chmod 660 /dev/raw/raw4
--voting disk
chown oracle:oinstall /dev/hdb2
chown oracle:oinstall /dev/raw/raw5
chmod 660 /dev/hdb2
chmod 660 /dev/raw/raw5
3,切换到oracle用户,利用srvctl正常启动rac
4,crs_stat -t查看rac各组件状态
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/9240380/viewspace-628923/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/9240380/viewspace-628923/