【前言】Oracle 12c RAC已经慢慢开始普及使用了,这边简单整理了RAC服务的启停操作。
【环境说明】
数据库版本:12.2.0.1
操作系统:Center OS 7.0
【基础知识】
Oracle RAC跟单节点的启停有很大的不一样,因为RAC是在集群件上面构建起来的,针对集群件Oracle增加了几个工具和命令,所以RAC的启停更多的是这几个工具的使用而已;
工具的分类,按照功能的区分简单可以分成两类:对于Oracle实例的管理srvctl和对于集群的管理crsctl。
【一】CRSCTL命令介绍
【1】crsctl命令的功能
Oracle Clusterware 11 g 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 component
【2】命令的使用
$ crsctl -help
Usage: crsctl add - add a resource, type or other entity
crsctl check - check the state or operating status of a service, resource, or other entity
crsctl config - display automatic startup configuration