-- -----------------------------------------------------------------------------------
-- File Name    : job_chains.sql
-- Author       : DBA Learning Hub
-- Description  : Displays scheduler information about job chains.
-- Requirements : Access to the DBA views.
-- Call Syntax  : @job_chains
-- Last Modified: 15/07/2025
-- -----------------------------------------------------------------------------------
SET LINESIZE 200
COLUMN owner FORMAT A10
COLUMN chain_name FORMAT A15
COLUMN rule_set_owner FORMAT A10
COLUMN rule_set_name FORMAT A15
COLUMN comments FORMAT A15

SELECT owner,
       chain_name,
       rule_set_owner,
       rule_set_name,
       number_of_rules,
       number_of_steps,
       enabled,
       comments
FROM   dba_scheduler_chains;