Skip to main content
The CREATE RESOURCE GROUP creates a , which sets the share of CPU that a workload receives when CPU is contended.
This feature is in and subject to change. To share feedback and/or issues, contact Support.
To use CREATE RESOURCE GROUP, you must first .

Required privileges

Only members of the can create resource groups.

Synopsis

create_resource_group syntax diagram

Parameters

Options

Examples

Create a resource group

The following statement creates a resource group named reporting with a CPU weight of 100:
Create a second resource group named oltp with a larger weight. Set max_cpu so that the group stays in the burst tier when it uses more than its share:
To view the resource groups and their CPU shares, use :

Create a resource group only if it does not exist

The following statement does nothing, because a resource group named reporting already exists:
Without IF NOT EXISTS, the statement returns an error:

Assign sessions to a new resource group

After you create a resource group, assign sessions to it with the resource_group . The following statement assigns all future sessions of the report_user role to the reporting group:
For all of the ways to assign sessions to a resource group, refer to .

See also