Register resources in Oracle Clusterware 12c using the crsctl add resource
command.
Note:
The CRS_REGISTER
and CRS_PROFILE
commands are still available in the Oracle Clusterware home but are deprecated for this release.
To register an application as a resource:
$ crsctl add resource resource_name -type resource_type [-file file_path] | [-attr "attribute_name='attribute_value', attribute_name='attribute_value', ..."]
Choose a name for the resource based on the application for which it is being created. For example, if you create a resource for an Apache Web server, then you might name the resource myApache
.
The name of the resource type follows the -type
option. You can specify resource attributes in either a text file specified with the -file
option or in a comma-delimited list of resource attribute-value pairs enclosed in double quotation marks (""
) following the -attr
option. You must enclose space- or comma-delimited attribute names and values enclosed in parentheses in single quotation marks (''
).
The following is an example of an attribute file:
PLACEMENT=favored HOSTING_MEMBERS=node1 node2 node3 RESTART_ATTEMPTS@CARDINALITYID(1)=0 RESTART_ATTEMPTS@CARDINALITYID(2)=0 FAILURE_THRESHOLD@CARDINALITYID(1)=2 FAILURE_THRESHOLD@CARDINALITYID(2)=4 FAILURE_INTERVAL@CARDINALITYID(1)=300 FAILURE_INTERVAL@CARDINALITYID(2)=500 CHECK_INTERVAL=2 CARDINALITY=2
The following is an example of using the -attr
option:
$ crsctl add resource resource_name -type resource_type [-attr "PLACEMENT='favored', HOSTING_MEMBERS='node1 node2 node3', ..."]
See Also:
"Adding User-Defined Resources" for examples of using the crsctl add resource
command
"crsctl add resource" for more information about and examples of using the crsctl add resource
command
"Resource Attributes" for more information about resource attributes