You can use the DELETE_CONSUMER_GROUP subprogram in the DBMS_RESOURCE_MANAGER package to delete an unused resource group.
Prerequisites
The target resource group already exists.
Considerations
Deleting a resource group will also delete the associated resource management plan config.
Procedure
Log in to an Oracle tenant of the cluster using the administrator.
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 resource group.Query the
DBA_RSRC_CONSUMER_GROUPSview to verify whether the resource group has been 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.