← Security
Oracle · Security
How to query the Unified Audit Trail in Oracle
Read recent activity from UNIFIED_AUDIT_TRAIL: who did what, from which host, and whether it succeeded.
Tested on12c18c19c21c23ai26ai
Read recent activity from the unified audit trail: who did what, from where, and whether it succeeded. Adjust the time window as needed.
SELECT event_timestamp, dbusername, action_name,
object_schema, object_name, return_code,
os_username, userhost
FROM unified_audit_trail
WHERE event_timestamp > SYSTIMESTAMP - INTERVAL '1' DAY
ORDER BY event_timestamp DESC
FETCH FIRST 100 ROWS ONLY;SecurityAuditingUNIFIED_AUDIT_TRAIL