Note
This view is available starting with V3.2.4.
Purpose
This view displays information about all resource groups in the current tenant.
Columns
| Column | Type | Nullable | Description |
|---|---|---|---|
| CONSUMER_GROUP_ID | bigint(20) | NO | The ID of the resource group. |
| CONSUMER_GROUP | varchar(128) | NO | The name of the resource group to which the user is bound. |
| CPU_METHOD | varchar(128) | NO | Reserved for compatibility. The value is always NULL. |
| MGMT_METHOD | varchar(128) | NO | Reserved for compatibility. The value is always NULL. |
| INTERNAL_USE | varchar(3) | NO | Indicates whether the resource group is used only internally. Reserved for compatibility. The value is always NULL. |
| COMMENTS | varchar(2000) | YES | The remarks about the resource group. |
| CATEGORY | varchar(128) | NO | The category of the resource group. Reserved for compatibility. The value is always NULL. |
| STATUS | varchar(128) | NO | The status of the resource group. Reserved for compatibility. The value is always NULL. |
| MANDATORY | varchar(3) | NO | Indicates whether the resource group is mandatory. Reserved for compatibility. The value is always NULL. |
Sample query
Query information about all resource groups in the system tenant.
obclient [oceanbase]> SELECT CONSUMER_GROUP_ID, CONSUMER_GROUP FROM oceanbase.DBA_RSRC_CONSUMER_GROUPS;
The query result is as follows:
+-------------------+-------------------+
| CONSUMER_GROUP_ID | CONSUMER_GROUP |
+-------------------+-------------------+
| 10001 | batch_group |
| 10000 | interactive_group |
+-------------------+-------------------+
2 rows in set
References
To view the binding relationships between users and resource groups, see oceanbase.DBA_RSRC_GROUP_MAPPINGS.
