Note:
This section assumes that you are using an SPFILE for your database.
Enter the following SRVCTL syntax from the command line, providing the required database name and instance name, or include multiple instance names to start multiple specific instances:
To start or stop your entire cluster database, that is, all of the instances and its enabled services, enter the following SRVCTL commands:
$ srvctl start database -db db_unique_name [-startoption start_options]
$ srvctl stop database -db db_unique_name [-o stop_options]
The following SRVCTL command, for example, mounts all of the non-running instances of an Oracle RAC database:
$ srvctl start database -db orcl -startoption mount
To start administrator-managed databases, enter a comma-delimited list of instance names:
$ srvctl start instance -db db_unique_name -instance instance_name_list [-startoption start_options]
In Windows you must enclose a comma-delimited list in double quotation marks (""
).
To start policy-managed databases, enter a single node name:
$ srvctl start instance -db db_unique_name -node node_name [-startoption start_options]
Note that this command also starts all enabled and non-running services that have AUTOMATIC
management policy, and for which the database role matches one of the service's roles.
To stop one or more instances, enter the following SRVCTL syntax from the command line:
$ srvctl stop instance -db db_unique_name [ -instance "instance_name_list" | -node node_name ] [ -stopoption stop_options ]
You can enter either a comma-delimited list of instance names to stop several instances or you can enter a node name to stop one instance. In Windows you must enclose a comma-delimited list in double quotation marks (""
).
This command also stops the services related to the terminated instances on the nodes where the instances were running. As an example, the following command shuts down the two instances, orcl3
and orcl4
, on the orcl
database using the immediate
stop option:
$ srvctl stop instance -db orcl -instance "orcl3,orcl4" -stopoption immediate
See Also:
Server Control Utility Reference for information about SRVCTL options and information about other administrative tasks that you can perform with SRVCTL