Database Reference
In-Depth Information
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
You can get the detailed syntax of a specific command, such as
crsctl status -help
. Starting with 11gR2,
crsctl
commands are used to replace a few deprecated
crs_*
commands, such as
crs_start, crs_stat,
and
crs_stop
. In the following sections, we discuss the management tasks in correlation with the corresponding
crsctl
commands.
Another set of command-line tools are based on the
srvctl
utility. These commands are used to manage the
Oracle resources managed by the Clusterware.
A
srvctl
command consists of four parts:
$ srvctl <command> <object> [<options>]
The command part specifies the operation of this command. The object part specifies the resource where this
operation will be executed. You can get Help with the detailed syntax of the
srvctl
by running the
srvctl
Help
command. For detailed Help on each command and object and its options for use, run the following commands:
$ srvctl <command> -h or
$ srvctl <command> <object> -h
There are also other utilities:
oifcfg
is a command-line tool that can be used to configure network interfaces.
•
ocrconfig
is a command-line tool that can be used to administer the OCR and OLR.
•
ocrcheck
is the OCR Check tool to check the state of the OCR.
•
ocrdump
is the Oracle Clusterware Registry Dump tool that can be used to dump the contents
of OCR.
•
•
Oracle Enterprise Manager Database Control 11g and Enterprise Manager Grid control 11g
and 12c can be used to manage the Oracle Clusterware environment.
Start Up and Stop Clusterware
As we discussed in the previous section, through the OS
init
process, Oracle Clusterware is automatically started up
when the OS starts. The clusterware can also be manually started and stopped by using the
crsctl
utility.
The
crsctl
utility provides the commands to start up the Oracle Clusterware manually:
Start the Clusterware stack on all servers in the cluster or on one or more named server in the cluster:
$ crsctl start cluster [-all | - n server1[,..]]
For example:
$crsctl start cluster -all
$ crsctl start cluster -n k2r720n1