srvctl stop instance

Stops instances and stops any services running on specified instances, unless you specify the -force parameter. If you specify -force, then the services fail over to an available instance when the instance stops.

Note:

  • This command is only available with Oracle Clusterware and Oracle RAC.

  • If you run this command on an Oracle RAC One Node database, then the command returns an error instructing you to use the database noun, instead.

Syntax and Parameters

Use the srvctl stop instance command with the following syntax:

srvctl stop instance -db db_unique_name {-node node_name 
    | -instance "instance_name_list"} [-stopoption stop_options] [-force]

You must enclose the list of comma-delimited instance names in double quotation marks ("").

Table A-193 srvctl stop instance Parameters

Parameter Description
-db db_unique_name

Unique name for the database

-node node_name

The name of a single node

Note: Use this parameter for policy-managed databases.

-instance "inst_name_list"

Comma-delimited list of instance names enclosed in double quotation marks

Note: Use this parameter for administrator-managed databases.

-stopoption stop_options

Options for shutdown command, such as NORMAL, TRANSACTIONAL LOCAL, IMMEDIATE, or ABORT

See Also: SQL*Plus User's Guide and Reference for more information about shutdown options

-force

This parameter fails the running services over to another instance.

Example

An example of stopping an instance in a policy-managed database is:

$ srvctl stop instance -db crm -node node1

An example of stopping an instance in an administrator-managed database is:

$ srvctl stop instance -db crm -instance "crm1"