Use the crsctl restart resource
command to restart idle resources in the cluster, instead of having to run two commands to stop and start the resource.
crsctl restart resource {resource_name [...] | -w "filter"} [-k cid] [-d did] [-env "env1=val1,env2=val2,..."] [-i] [-f]
Table E-17 crsctl restart resource Command Parameters
Parameter | Description |
---|---|
resource_name [...] |
One or more space-delimited resource names to restart. |
-w filter |
Specify a resource filter surrounded by double quotation marks ( See Also: "Filters" for more information |
-k cid |
Specify the resource cardinality ID. If you specify this parameter, then Oracle Clusterware restarts the resource instances that have the cardinality you specify. |
-d did |
Specify the resource degree ID. If you specify this parameter and the degree ID is greater than 1, then Oracle Clusterware restarts all resource instances that meet this criteria. Note: You cannot use the |
-env "env1=val1, env2=val2,..." |
You can optionally override one or more resource profile attribute values with the |
-i |
If you specify |
-f |
Use the |
Any one of the three following options is required to specify which resources you want to restart:
You can specify one or more resources to restart
You can specify a resource filter that Oracle Clusterware uses to match resources to restart
You must have read and execute permissions on the specified resources to restart them
Do not use this command to restart any resources with names that begin with ora because these resources are Oracle resources