Oracle Learning RAC (vii) cluster startup parsing

Source: Internet
Author: User

After the cluster is installed, restart the computer and the cluster will start up with the system. A lot of articles on the web are said to add a line in/etc/inittab

H1:35:RESPAWN:/ETC/INIT.D/INIT.OHASD Run >/dev/null 2>&1

But in the system I installed, Inittab did not set any cluster-initiated information. So how did the cluster start?

Let's take a look at the script in the directory/etc/rc5.d or/ETC/RC3.D.

[[email protected] rc5.d]# ll s96ohasd lrwxrwxrwx 1 root root + 11:11 S96OHASD-/ETC/INIT.D/OHASD

Because of this, the cluster will start randomly.


OHASD is a highly available service for the entire cluster, monitoring individual processes in the cluster. After the cluster process crashes, try restarting these processes.

When the system starts, it calls the

Crsctl Start has-nowait


So how do you prohibit the cluster from starting?

[Email protected] ~]# Cd/u01/app/11.2.0/grid/bin/[[email protected] bin]#./crsctl Disable Crscrs-4621:oracle High Avai Lability Services autostart is disabled.
/etc/oracle/scls_scr/11grac1/root/ohasdstr

The value in this script controls whether the cluster can start automatically.


How to manually start a cluster:

[[email protected] root]#/u01/app/11.2.0/grid/bin/crsctl start crscrs-4123:oracle High Availability Services have been St Arted.

This command starts OHASD, and then OHASD starts the background process CRSD, CSSD, and so on.

[Email protected] root]#/u01/app/11.2.0/grid/bin/crsctl check crscrs-4638:oracle high Availability Services is Onlinec Rs-4537:cluster ready Services are Onlinecrs-4529:cluster Synchronization Services is onlinecrs-4533:event Manager are on Line

At the same time, it will start the database, ASM, and listen together.


Turn off cluster use commands

[[email protected] root]#/u01/app/11.2.0/grid/bin/crsctl stop CRS


If you want to close all or most of this cluster, you can use the following command

[[email protected] root]#/u01/app/11.2.0/grid/bin/crsctl start Cluster-all or [[email protected] root]#/u01/app/11.2.0 /grid/bin/crsctl Start Cluster-n 11grac1 11grac2

However, the start cluster command is used only if OHASD is already started.


This article is from the "Ding Dong" blog, please be sure to keep this source http://lqding.blog.51cto.com/9123978/1684495

Oracle Learning RAC (vii) cluster startup parsing

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.