You can call the DELETE_CONSUMER_GROUP subprogram in the DBMS_RESOURCE_MANAGER package to delete an idle resource group.
Prerequisites
The resource group to be deleted exists.
Considerations
After a resource group is deleted, the resource management plan config associated with the resource group is also deleted.
Procedure
Log on to a MySQL tenant of the cluster as the administrator of the tenant.
Call the
DELETE_CONSUMER_GROUPsubprogram in theDBMS_RESOURCE_MANAGERpackage to delete the resource group.obclient [test]> CALL DBMS_RESOURCE_MANAGER.DELETE_CONSUMER_GROUP( CONSUMER_GROUP => 'interactive_group' );Here,
CONSUMER_GROUPspecifies the name of the resource group to be deleted.Query the
oceanbase.DBA_RSRC_CONSUMER_GROUPSview to verify whether the resource group is deleted.obclient [test]> SELECT CONSUMER_GROUP_ID, CONSUMER_GROUP, COMMENTS FROM oceanbase.DBA_RSRC_CONSUMER_GROUPS; +-------------------+----------------+-----------------+ | CONSUMER_GROUP_ID | CONSUMER_GROUP | COMMENTS | +-------------------+----------------+-----------------+ | 5 | batch_group | AP | | 2 | group1 | Transaction processing team | | 3 | group2 | Daily O&M team | | 0 | OTHER_GROUPS | NULL | | 1 | SYS_GROUP | NULL | +-------------------+----------------+-----------------+ 5 rows in setFor more information about the
oceanbase.DBA_RSRC_CONSUMER_GROUPSview, see oceanbase.DBA_RSRC_CONSUMER_GROUPS.