-- -----------------------------------------------------------------------------------
-- File Name    : consumer_groups.sql
-- Author       : DBA Learning Hub
-- Description  : Lists all consumer groups.
-- Call Syntax  : @consumer_groups
-- Requirements : Access to the DBA views.
-- Last Modified: 15/07/2025
-- -----------------------------------------------------------------------------------
SET LINESIZE 200
SET VERIFY OFF

COLUMN status FORMAT A10
COLUMN comments FORMAT A50

SELECT consumer_group,
       status,
       comments
FROM   dba_rsrc_consumer_groups
ORDER BY consumer_group;