linux 中oracle 10g rac 關閉crs開機自啟動

season0891發表於2010-07-16

linux 中在沒有對init.crs作修改的時候,在開機時總是會自動把的cluster 軟體和一起和系統起來.資料庫raclinux

另外,也可以透過crs-stat -t檢視,把沒有啟動的服務手工啟動

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
[oracle@rac1 ~]$ crs_stat -t
Name Type Target State Host
------------------------------------------------------------
ora.....CRM.cs application OFFLINE OFFLINE
ora....db1.srv application OFFLINE OFFLINE
ora.devdb.db application ONLINE ONLINE rac1
ora....b1.inst application ONLINE ONLINE rac1
ora....b2.inst application ONLINE OFFLINE
ora....SM1.asm application ONLINE ONLINE rac1
ora....C1.lsnr application ONLINE ONLINE rac1
ora.rac1.gsd application ONLINE ONLINE rac1
ora.rac1.ons application ONLINE ONLINE rac1
ora.rac1.vip application ONLINE ONLINE rac1
ora....SM2.asm application ONLINE OFFLINE
ora....C2.lsnr application ONLINE OFFLINE
ora.rac2.gsd application ONLINE OFFLINE
ora.rac2.ons application ONLINE OFFLINE
ora.rac2.vip application ONLINE ONLINE rac1


禁止Clusterware在系統重啟後自動啟動:

1
$ /etc/init.d/init.crs disable

在系統正常啟動後:
讓Clusterware在系統重啟後自動啟動:

1
$ /etc/init.d/init.crs enable

可以用以下方動啟動crs:

1
2
3
4
5
6
7
8
9
$/etc/init.d/init.cssd start
$/etc/init.d/init.crs start
rac1-> ./init.crs start
 
Startup will be queued to init within 90 seconds.
 
rac1-> ./init.cssd start
 
Startup will be queued to init within 90 seconds.

或:

1
$crsctl start crs

檢查crs狀態:

1
2
3
4
5
6
7
8
9
$crsctl check crs
rac1-> crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy
rac2-> crsctl check crs
CSS appears healthy
CRS appears healthy
EVM appears healthy

啟動資料庫

1
2
3
4
5
6
$srvctl start nodeapps -n rac1
$srvctl start nodeapps -n rac2
$srvctl start asm -n rac1
$srvctl start asm -n rac2
$srvctl start instance -d racdb -i racdb1
$srvctl start instance -d racdb -i racdb2

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

相關文章