RAC6——crsctl 和 srvctl 命令的區別理解


Oracle Clusterware提供了豐富的工具,我們把常用的工具按照rac的四層機構做了划分,然后分別介紹:

 

節點層

olsnodes

參數-n -i -p

 

網絡層:

oifcfg

四個子命令可以通過oifcfg -help查看下

iflist 顯示網口列表

getif 可以獲得單個網口信息

setif 配置單個網口

delif 刪除網口

 

 

集群層:

crstcl 、orccheck 、ocrdump、ocrconfig

 

應用層:

srvctl 、onsctl、crs_stat

----=-------=-----=------=---------=---------=-------=-------=---------=----------=----------=------=---------=--------=---------=--------=--------=---------=--------=-------=-------=-------

通過以上表述,我們能否分清楚crsctl命令,是用於集群層的管理;而srvctl命令,是用於集群層之下的各項服務的管理。如itpub上討論帖:http://www.itpub.net/thread-1701358-1-1.html

crsctl 應該是cluster control 用的,它管理的是cluster level的內容,如crsd cssd css 等進程和配置的管理
srvctl 是資源的管理,是cluster內資源的管理,比如instance asm listener vip ons gsd  service .....

 

 

Oracle的官方解釋,這個沒什么好糾結的,各司其職,不同的level管理:

CRSCTL Overview:

CRSCTL is an interface between you and Oracle Clusterware, parsing and calling Oracle Clusterware APIs for Oracle Clusterware objects.

Oracle Clusterware 11g release 2 (11.2) introduces cluster-aware commands with which you can perform check, start, and stop operations on the
 cluster. You can run these commands from any node in the cluster on another node in the cluster, or on all nodes in the cluster, depending on the
 operation.

You can use CRSCTL commands to perform several operations on Oracle Clusterware, such as:

    Starting and stopping Oracle Clusterware resources

    Enabling and disabling Oracle Clusterware daemons

    Checking the health of the cluster

    Managing resources that represent third-party applications

    Integrating Intelligent Platform Management Interface (IPMI) with Oracle Clusterware to provide failure isolation support and to ensure cluster
 integrity

    Debugging Oracle Clusterware components


Overview of SRVCTL

Use SRVCTL to manage configuration information. You can use SRVCTL commands to add, remove, start, stop, modify, enable, and disable a number of entities, such as databases, instances, listeners, SCAN listeners, services, grid naming service (GNS), and Oracle ASM.

Some SRVCTL operations modify the configuration data stored in the Oracle Cluster Registry (OCR). SRVCTL performs other operations, such as starting and stopping instances, by sending requests to the Oracle Clusterware process (CRSD), which then starts or stops the Oracle Clusterware resources.

 

 

 

但還有點疑問,如果執行crsctl stop resources ,我發現instance vip 等都可以停掉,所以csrctl是不是也可以管理到“cluster內資源”

答:

額。。。這個應該怎么解釋呢:
主機停掉了主機里的進程也會停,這樣直觀嗎?vip 是cluster的資源,cluster 如果被停掉了 cluster里的資源instance ,asm ,vip ....都會停掉

 

轉:http://blog.csdn.net/cymm_liu/article/details/12031605


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM