Note
This view is available starting with V3.2.4.
Purpose
This view displays the information about all resource groups of the current tenant.
Columns
| Type | Type | Nullable | Description |
|---|---|---|---|
| CONSUMER_GROUP_ID | bigint(20) | NO | The resource group ID. |
| CONSUMER_GROUP | varchar(128) | NO | The name of the resource group to which the user is bound. |
| CPU_METHOD | varchar(128) | NO | Reserved for future compatibility. The current value is fixed at NULL. |
| MGMT_METHOD | varchar(128) | NO | It is for compatibility. The value is fixed as NULL currently. |
| INTERNAL_USE | varchar(3) | NO | Indicates whether the resource group is only for internal use. This parameter is retained for compatibility only. Its value is fixed to NULL. |
| COMMENTS | varchar(2000) | YES | Remarks about the resource group. |
| CATEGORY | varchar(128) | NO | The category of the resource group, which is compatible and the value is fixed to NULL. |
| STATUS | varchar(128) | NO | The status of the resource group, which is only compatible and the value is fixed to NULL. |
| MANDATORY | varchar(3) | NO | Indicates whether this resource group is mandatory. For compatibility, this column has a fixed value of NULL. |
Sample query
The user tenant can query information about all resource groups of the current 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