-- -----------------------------------------------------------------------------------
-- File Name    : active_plan.sql
-- Author       : DBA Learning Hub
-- Description  : Lists the currently active resource plan if one is set.
-- Call Syntax  : @active_plan
-- Requirements : Access to the v$ views.
-- Last Modified: 15/07/2025
-- -----------------------------------------------------------------------------------
SELECT name,
       is_top_plan
FROM   v$rsrc_plan
ORDER BY name;
