oracle10g rac(rhel4)_srvctl啟動出錯_PRKH-1010

wisdomone1發表於2010-03-08
啟動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各元件狀態

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/9240380/viewspace-628923/,如需轉載,請註明出處,否則將追究法律責任。

相關文章