Linux 中Oracle 10g RAC 關閉crs開機自啟動

來源:互聯網
上載者:User

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

另外,也可以通過crs-stat -t查看,把沒有啟動的服務手工啟動

[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在系統重啟後自動啟動:

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

在系統正常啟動後:www.bkjia.com
讓Clusterware在系統重啟後自動啟動:

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

可以用以下方動啟動crs:

$/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.
 

或:

$crsctl start crs
 

檢查crs狀態:

$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
 

啟動資料庫

$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

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.