For local resources, the definition of a local_resource
type is extended to be category-aware. In other words, you can restrict local resources to belong to a particular server category. For cluster resources, the value for the SERVER_CATEGORY
attribute always functions with the value for the PLACEMENT
attribute. Set SERVER_POOLS
to *
when PLACEMENT
is restricted and SERVER_CATEGORY
is used. If you set PLACEMENT
to restricted
, then Oracle Clusterware expects one of the following attributes to also be set:
For example, a resource, known as resource1,
can have a policy that sets the value of PLACEMENT
to be restricted
, and SERVER_CATEGORY
is set to HubCategory
. In such a case, Oracle Clusterware would only enable resource1
to run on the servers that belong to the HubCategory
.
If PLACEMENT
is set to favored
and if only one of HOSTING_MEMBERS
, SERVER_POOLS
, or SERVER_CATEGORY
is set, then that value expresses a preference. If HOSTING_MEMBERS
is populated and one of SERVER_POOLS
or SERVER_CATEGORY
is set, then the HOSTING_MEMBERS
indicates placement preference and SERVER_POOLS
or SERVER_CATEGORY
indicates a restriction. For example, the ora.cluster.vip
resource can have a policy that sets the value of PLACEMENT
to favored
, and SERVER_CATEGORY
is set to HubCategory
and HOSTING_MEMBERS
is set to server_name1
. In such a case, Oracle Clusterware restricts the placement of ora.cluster.vip
to the servers in the HubCategory
and then it prefers the server known as server_name1
.
Usage Example
SERVER_CATEGORY=my_category