這篇文章將為大家詳細(xì)講解有關(guān)oracle11gRAC中crsctl命令怎么用,小編覺(jué)得挺實(shí)用的,因此分享給大家做個(gè)參考,希望大家閱讀完這篇文章后可以有所收獲。
目前成都創(chuàng)新互聯(lián)已為上1000+的企業(yè)提供了網(wǎng)站建設(shè)、域名、虛擬空間、網(wǎng)站運(yùn)營(yíng)、企業(yè)網(wǎng)站設(shè)計(jì)、易門網(wǎng)站維護(hù)等服務(wù),公司將堅(jiān)持客戶導(dǎo)向、應(yīng)用為本的策略,正道將秉承"和諧、參與、激情"的文化,與客戶和合作伙伴齊心協(xié)力一起成長(zhǎng),共同發(fā)展。oracle11gRAC之crsctl命令:
完整的crsctl命令:
# su - grid
[grid@dbserver1:/home/grid]$crsctl -h
Usage: crsctl add - add a resource, type or other entity
crsctl check - check a service, resource or other entity
crsctl config - output autostart configuration
crsctl debug - obtain or modify debug state
crsctl delete - delete a resource, type or other entity
crsctl disable - disable autostart
crsctl enable - enable autostart
crsctl get - get an entity value
crsctl getperm - get entity permissions
crsctl lsmodules - list debug modules
crsctl modify - modify a resource, type or other entity
crsctl query - query service state
crsctl pin - Pin the nodes in the nodelist
crsctl relocate - relocate a resource, server or other entity
crsctl replace - replaces the location of voting files
crsctl setperm - set entity permissions
crsctl set - set an entity value
crsctl start - start a resource, server or other entity
crsctl status - get status of a resource or other entity
crsctl stop - stop a resource, server or other entity
crsctl unpin - unpin the nodes in the nodelist
crsctl unset - unset a entity value, restoring its default
1、常用crsctl start命令
啟動(dòng)crs服務(wù):
[grid@dbserver1:/oracle/app/11.2.0/grid/log/dbserver1/client]$crsctl start crs
啟動(dòng)crs所有資源:
[grid@dbserver1:/oracle/app/11.2.0/grid/log/dbserver1/client]$crsctl start -all
啟動(dòng)單個(gè)資源(如果部分資源不能自動(dòng)啟動(dòng),需要手工啟動(dòng)如下)
[grid@dbserver1:/oracle/app/11.2.0/grid/log/dbserver1/client]$crsctl start res ora.crsd -init
2、常用crsctl stop命令
停止crs服務(wù):
[grid@dbserver1:/oracle/app/11.2.0/grid/log/dbserver1/client]$crsctl stop crs
停止crs所有資源:
[grid@dbserver1:/oracle/app/11.2.0/grid/log/dbserver1/client]$crsctl stop -all
啟動(dòng)單個(gè)資源(如果部分資源不能自動(dòng)啟動(dòng),需要手工啟動(dòng)如下)
[grid@dbserver1:/oracle/app/11.2.0/grid/log/dbserver1/client]$crsctl stop res ora.crsd -init (-f)
3、常用crsctl check命令
檢查crs服務(wù)情況:
[grid@dbserver1:/home/grid]$crsctl check crs
CRS-4638: Oracle High Availability Services is online
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
檢查crs集群服務(wù)情況:
[grid@dbserver1:/home/grid]$crsctl check cluster -all
**************************************************************
dbserver1:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************
dbserver2:
CRS-4537: Cluster Ready Services is online
CRS-4529: Cluster Synchronization Services is online
CRS-4533: Event Manager is online
**************************************************************
4、常用crsctl query命令
檢查votedisk狀態(tài):
[grid@dbserver1:/oracle/app/11.2.0/grid/log/dbserver1/client]$crsctl query css votedisk
## STATE File Universal Id File Name Disk group
-- ----- ----------------- --------- ---------
1. ONLINE 0b12969addea4f8fbf61eeaa0df697e6 (/dev/rhdisk6) [CRS]
Located 1 voting disk(s).
檢查crs版本:
[grid@dbserver1:/oracle/app/11.2.0/grid/log/dbserver1/client]$crsctl query crs releaseversion
Oracle High Availability Services release version on the local node is [11.2.0.1.0]
檢查crs各節(jié)點(diǎn)版本:
[grid@dbserver1:/oracle/app/11.2.0/grid/log/dbserver1/client]$crsctl query crs softwareversion dbserver1
Oracle Clusterware version on node [dbserver1] is [11.2.0.1.0]
關(guān)于“oracle11gRAC中crsctl命令怎么用”這篇文章就分享到這里了,希望以上內(nèi)容可以對(duì)大家有一定的幫助,使各位可以學(xué)到更多知識(shí),如果覺(jué)得文章不錯(cuò),請(qǐng)把它分享出去讓更多的人看到。