-- -----------------------------------------------------------------------------------
-- File Name    : priv_captures.sql
-- Author       : DBA Learning Hub
-- Description  : Displays privilege capture policies.
-- Requirements : Access to the DBA views.
-- Call Syntax  : @priv_captures.sql
-- Last Modified: 15/07/2025
-- -----------------------------------------------------------------------------------

COLUMN name FORMAT A15
COLUMN description FORMAT A30
COLUMN roles FORMAT A20
COLUMN context FORMAT A30
SET LINESIZE 200

SELECT name,
       description,
       type,
       enabled,
       roles,
       context
FROM   dba_priv_captures
ORDER BY name;