Overview
Displays information about all resource groups in the tenant.
Columns
Field type |
Type |
Whether can be NULL |
Description |
|---|---|---|---|
| CONSUMER_GROUP_ID | bigint(20) | NO | 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 | For compatibility only. The current value is fixed to NULL. |
| MGMT_METHOD | varchar(128) | NO | For compatibility only. The current value is fixed as NULL. |
| INTERNAL_USE | varchar(3) | NO | Indicates whether the resource group is for internal use only or for compatibility only. The current value is fixed as NULL. |
| COMMENTS | varchar(2000) | YES | The remarks for the resource group. |
| CATEGORY | varchar(128) | NO | The category of the resource group, used only for compatibility. The current value is fixed as NULL. |
| STATUS | varchar(128) | NO | The status of the resource group, used only for compatibility. The current value is fixed as NULL. |
| MANDATORY | varchar(3) | NO | Indicates whether this resource group is required. This parameter is for compatibility only and its value is fixed as NULL. |
Sample query
The system tenant queries 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
References
For information about how to view the binding relationship between users and resource groups, see oceanbase.DBA_RSRC_GROUP_MAPPINGS.