SET PAGESIZE 100
SET LINESIZE 220

ALTER SESSION SET CURRENT_SCHEMA = ADMIN;

PROMPT Generate auditable activity.

SELECT payment_id, customer_name, country, payment_amount, card_token, risk_flag
FROM dds_audit_payments
ORDER BY payment_id;

PROMPT Review local audit trail. Data Safe should collect equivalent activity after target auditing is enabled.

SELECT event_timestamp,
       dbusername,
       action_name,
       object_schema,
       object_name,
       unified_audit_policies
FROM unified_audit_trail
WHERE object_name = 'DDS_AUDIT_PAYMENTS'
ORDER BY event_timestamp DESC
FETCH FIRST 20 ROWS ONLY;
