About Oracle Cluster Registry

About Oracle Cluster Registry


Oracle Cluster Registry (OCR) is a file that contains information about the cluster node list and instance-to-node mapping information. OCR also contains information about Oracle Clusterware resource profiles for resources that you have customized. The voting disk data is also backed up in OCR.
OCR里面包含了集群的节点信息还有实例到节点的映射信息等。也包含了自定义的集群资源,voting disk的数据也备份到OCR中


Each node in a cluster also has a local copy of the OCR, called an Oracle Local Registry (OLR), that is created when Oracle Clusterware is installed. Multiple processes on each node have simultaneous read and write access to the OLR particular to the node on which they reside, whether Oracle Clusterware is fully functional. By default, OLR is located at Grid_home/cdata/$HOSTNAME.olr
集群中每一个节点也包括一个本地的OCR备份,叫做OLR,在集群安装的时候就被创建了.在每一个节点的多个进程同时读写本地的OLR.默认情况下,OLR存在于$Grid_home/cdata/$HOSTNAME.olr


Managing the Oracle Clusterware Stack
Note:
Do not use Oracle Clusterware Control (CRSCTL) commands on Oracle entities (such as resources, resource types, and server pools) that have names beginning with ora unless you are directed to do so by Oracle Support. The Server Control utility (SRVCTL) is the correct utility to use on Oracle entities.
不要以crsctl命令去开启ora开头的进程名字,除非由oracle support通知.启动这种进程要使用srvctl




Starting Oracle Clusterware


You use the CRSCTL utility to manage Oracle Clusterware. If the Oracle High Availability Services daemon (OHASD) is running on all the cluster nodes, then you can start the entire Oracle Clusterware stack (all the processes and resources managed by Oracle Clusterware), on all nodes in the cluster by executing the following command on any node:


crsctl start cluster -all
----如果OHASD进程已经在所有节点启动,那么就可以使用上面的命令启动整个集群.




You can start the Oracle Clusterware stack on specific nodes by using the -n option followed by a space-delimited list of node names, for example:


crsctl start cluster -n racnode1 racnode4
----使用上面的命令来启动集群中的单个节点




To use the previous command, the OHASD process must be running on the specified nodes.


To start the entire Oracle Clusterware stack on a node, including the OHASD process, run the following command on that node:


crsctl start crs
-----使用上面的命令可以启动包括OHASD进程在内的集群资源,但是只是在一个节点.




Stopping Oracle Clusterware


To stop Oracle Clusterware on all nodes in the cluster, execute the following command on any node:


crsctl stop cluster -all
----停止集群中所有节点的资源


The previous command stops the resources managed by Oracle Clusterware, the Oracle ASM instance, and all the Oracle Clusterware processes (except for OHASD and its dependent processes).


To stop Oracle Clusterware and Oracle ASM on select nodes, include the -n option followed by a space-delimited list of node names, for example:


crsctl stop cluster -n racnode1 racnode3
----停止单个节点


If you do not include either the -all or the -n option in the stop cluster command, then Oracle Clusterware and its managed resources are stopped only on the node where you execute the command.


To completely shut down the entire Oracle Clusterware stack, including the OHASD process, use the crsctl stop crs command. CRSCTL attempts to gracefully stop the resources managed by Oracle Clusterware during the shutdown of the Oracle Clusterware stack. If any resources that Oracle Clusterware manages are still running after executing the crsctl stop crs command, then the command fails. You must then use the -f option to unconditionally stop all resources and stop the Oracle Clusterware stack, for example:


crsctl stop crs -all -f
----强制关闭crs

Note:
When you shut down the Oracle Clusterware stack, you also shut down the Oracle Automatic Storage Management (Oracle ASM) instances. If the Oracle Clusterware files (voting disk and OCR) are stored in an Oracle ASM disk group, then the only way to shut down the Oracle ASM instances is to shut down the Oracle Clusterware stack.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值