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 an Oracle tenant in the cluster as the administrator of the tenant.
Call the
DELETE_CONSUMER_GROUPsubprogram in theDBMS_RESOURCE_MANAGERpackage to delete the resource group.obclient [SYS]> delimiter // obclient [SYS]]> BEGIN DBMS_RESOURCE_MANAGER.DELETE_CONSUMER_GROUP( CONSUMER_GROUP => 'big_group' ); END ;// obclient [SYS]> delimiter ;Here,
CONSUMER_GROUPspecifies the name of the resource group to be deleted.Query the
DBA_RSRC_CONSUMER_GROUPSview to verify whether the resource group is deleted.obclient [SYS]> SELECT CONSUMER_GROUP_ID, CONSUMER_GROUP, COMMENTS FROM DBA_RSRC_CONSUMER_GROUPS; +-------------------+----------------+-----------------+ | CONSUMER_GROUP_ID | CONSUMER_GROUP | COMMENTS | +-------------------+----------------+-----------------+ | 4 | GROUP1 | Transaction processing group | | 0 | OTHER_GROUPS | NULL | | 3 | SMALL_GROUP | AP | | 1 | SYS_GROUP | NULL | +-------------------+----------------+-----------------+ 4 rows in setFor more information about the
DBA_RSRC_CONSUMER_GROUPSview, see DBA_RSRC_CONSUMER_GROUPS.