啓動/關閉數據庫、實例及服務

【關閉集羣順序】
1.使用crs_stat 命令查詢RAC節點的服務狀態是否正常
[grid@ora01sh ~]$ crs_stat -t -v
2.使用srvctl (service control)命令依次關閉集羣服務
關閉順序:關閉數據庫(實例)-->關閉ASM實例-->關閉節點服務
1)關閉數據庫
[grid@ora01sh ~]$ srvctl status database -d rac
--關閉數據庫
srvctl stop database -d rac1
srvctl stop database -d rac2
--關閉各節點ASM實例
[grid@ora01sh ~]$ srvctl status asm -n ora01sh
ASM is running on ora01sh
[grid@ora01sh ~]$ srvctl status asm -n ora02sh
ASM is running on ora02shnode

srvctl stop asm -n ora01sh
srvctl stop asm -n ora02sh數據庫

[grid@ora01sh ~]$ crs_stat -t -vapp

關閉各節點服務:listener、gsd、ons、vip
[grid@ora01sh ~]$ srvctl status nodeapps -n ora01sh
VIP ora01sh-vip is enabled
VIP ora01sh-vip is running on node: ora01sh
Network is enabled
Network is running on node: ora01sh
GSD is disabled
GSD is not running on node: ora01sh
ONS is enabled
ONS daemon is running on node: ora01ship

[grid@ora01sh ~]$ srvctl status nodeapps -n ora02sh
VIP ora02sh-vip is enabled
VIP ora02sh-vip is running on node: ora02sh
Network is enabled
Network is running on node: ora02sh
GSD is disabled
GSD is not running on node: ora02sh
ONS is enabled
ONS daemon is running on node: ora02shasm

srvctl stop nodeapps -n ora01sh
srvctl stop nodeapps -n ora02sh集羣

【啓動集羣順序】
啓動順序:啓動節點服務-->啓動ASM實例-->啓動數據庫實例
1)啓動各節點的服務
srvctl start nodeapps -n ora01sh
srvctl start nodeapps -n ora02sh
2)啓動ASM實例
srvctl start asm -n ora01sh
srvctl start asm -n ora02sh
3)啓動數據庫及實例
[grid@ora01sh ~]$ srvctl status instance -d rac -i rac1,rac2
Instance rac1 is running on node ora01sh
Instance rac2 is running on node ora02shgrid

[grid@ora01sh ~]$ srvctl status database -d rac
Instance rac1 is running on node ora01sh
Instance rac2 is running on node ora02shservice

[grid@ora01sh ~]$ crs_stat -t -v數據

************************************************************************************************************/查詢

【關閉數據庫、實例及服務】
--關閉數據庫
srvctl stop database -d rac1
srvctl stop database -d rac2

--關閉各節點ASM實例
srvctl stop asm -n ora01sh
srvctl stop asm -n ora02sh

--關閉各節點的服務包括:listener、gsd、ons、vip
srvctl stop nodeapps -n ora01sh
srvctl stop nodeapps -n ora02sh

【啓動數據庫、實例及服務】--啓動各節點的服務srvctl start nodeapps -n ora01shsrvctl start nodeapps -n ora02sh--啓動ASM實例srvctl start asm -n ora01shsrvctl start asm -n ora02sh--啓動數據庫及實例srvctl start instance -d rac -i rac1,rac2或srvctl start database -d rac1srvctl start database -d rac2

相關文章
相關標籤/搜索