# WLOC Administration Console Online Help

# Assign policies to services

Before you begin

Read about Define and assign policies

When assigning a policy to a service, you must take into consideration the scope of the constraints and actions in a policy, and the component to which the policy is assigned. For more information, see "Scope of a Policy" in Define and assign policies.

To assign a policy to a service:

1. Access the Policies page in one of the following ways:
   - Click the Policies tab in the WLOC navigation bar and click the Policies tab.
   - Click the Home tab in the WLOC navigation bar and click Active Policies under Manage Policies.

   The list of currently defined policies is displayed in the Policies table.

2. Click Assign Policy on the Policies page.
3. Modify the following fields, as required:

   Field | Description
   --- | ---
   Service | Service to which the policy is assigned. Select a service from the drop-down list or select All Services.
   Process | Process to which the policy is assigned. Select a process from the drop-down list. If you set Service to All Services, you can select All Processes only.
   Instance | Instance to which the policy is assigned. Select an instance from the drop-down list. If you set Process to All Processes, you can select All Instances only.
   Definitions | Constraint to use for the policy. For information about defining constraints, see Define constraints.
   Run Action | Action to use for the policy. Select an action from the drop-down list. This field is grayed out if the selected constraint is a resource agreement, as described in Define constraints. For more information about defining actions, see Define actions. Note: You can select either an action or action pipeline for the policy but not both.
   Run Pipeline | Action pipeline to use for the policy. Select an action pipeline from the drop-down list. This field is grayed out if the selected constraint is a resource agreement, as described in Define constraints. For more information about defining action pipelines, see Define action pipelines. Note: You can select either an action or action pipeline for the policy but not both.
   Automatic Console Notification | Automatically generates a console notification when the specified action for the policy is violated. A notification is also automatically generated when the action taken to rectify the SLA violation has completed. This option is enabled by default for any bound constraint. However, you can decline using the default console notification on a per-constraint basis by clearing this check box while creating or updating the binding. By disabling this option, the automated notification is not sent for anything bound to this rule. Note: Oracle recommends not using this feature if you are already using the full-featured Console Notification as a defined action, as this could potentially cause a notification conflict.

4. Click Finish.

   The policy assignment is created and the following confirmation message is displayed:

       Binding created successfully