Skip to main content
The ALTER RESOURCE GROUP changes the options of a .
This feature is in and subject to change. To share feedback and/or issues, contact Support.
To use ALTER RESOURCE GROUP, you must first .

Required privileges

Only members of the can alter resource groups.

Synopsis

alter_resource_group syntax diagram

Parameters

Options

Considerations

  • A change applies to sessions that are already assigned to the resource group.
  • Changing one group’s cpu_weight changes the CPU share of every user-defined resource group, because each share is calculated from the sum of all weights.

Examples

The examples on this page use the following resource groups:

Change the CPU weight of a resource group

The following statement increases the CPU weight of the reporting group:
View the new CPU shares with . The share of oltp also changes, because the sum of the weights changed:

Change the max_cpu option of a resource group

The following statement sets max_cpu for the reporting group, so that the group stays in the burst tier when it uses more than its share. The group’s cpu_weight does not change:
View the group with SHOW RESOURCE GROUP:

See also