Disables a service. Disabling an entire service affects all of the instances, disabling each one. When the entire service is already disabled, a srvctl disable service
operation on the entire service affects all of the instances and disables them; it just returns an error. This means that you cannot always use the entire set of service operations to manipulate the service indicators for each instance.
Use the srvctl disable service
command with the following syntax:
srvctl disable service -db db_unique_name -servics "service_name_list" [-instance instance_name | -node node_name]
If you do not specify either the -instance
instance_name
or -node
node_name
parameters, then the command disables the service on all nodes.
Table A-44 srvctl disable service Parameters
Parameter | Description |
---|---|
-database db_unique_name |
Unique name for the database. |
-service "service_name_list" |
Comma-delimited list of service names, or a single service name |
-instance instance_name |
The name of the instance for which you want to disable the service. Notes:
|
-node node_name |
The name of the node on which to disable the service. Notes:
|
The following example globally disables two services for the CRM
database:
$ srvctl disable service -db crm -service "crm,marketing"
The following example disables a service for the CRM
database that is running on the CRM1
instance, resulting in the service still being available for the database, but on one less instance:
$ srvctl disable service -db crm -service crm -instance crm1