SET LINESIZE 200
COL OS_USERNAME FOR A11
COL USERHOST FOR A20
COL DBUSERNAME FOR A15
COL ACTION_NAME FOR A15
COL OBJECT_NAME FOR A25
COL CLIENT_PROGRAM_NAME FOR A15
COL SQL_TEXT FOR A50
select DBUSERNAME,EVENT_TIMESTAMP,SQL_TEXT,ACTION_NAME,SYSTEM_PRIVILEGE_USED,UNIFIED_AUDIT_POLICIES,OBJECT_SCHEMA,OBJECT_NAME,CLIENT_PROGRAM_NAME,OS_USERNAME,USERHOST
from unified_audit_trail
order by event_timestamp desc ;
select DBUSERNAME,ACTION_NAME,COUNT(*)
from unified_audit_trail
group by DBUSERNAME,ACTION_NAME
order by DBUSERNAME,ACTION_NAME;
select DBUSERNAME,EVENT_TIMESTAMP,SQL_TEXT,ACTION_NAME,SYSTEM_PRIVILEGE_USED,UNIFIED_AUDIT_POLICIES,OBJECT_SCHEMA,OBJECT_NAME,CLIENT_PROGRAM_NAME,OS_USERNAME,USERHOST
from unified_audit_trail
Where event_timestamp >= TO_DATE('15/FEB/2019','dd/mon/yyyy')
order by event_timestamp desc ;
select DBUSERNAME,EVENT_TIMESTAMP,SQL_TEXT,ACTION_NAME,SYSTEM_PRIVILEGE_USED,UNIFIED_AUDIT_POLICIES,OBJECT_SCHEMA,OBJECT_NAME,CLIENT_PROGRAM_NAME,OS_USERNAME,USERHOST
from unified_audit_trail
Where event_timestamp >= TO_DATE('20/FEB/2019','dd/mon/yyyy') and action_name not in('LOGON','LOGOFF BY CLEANUP')
order by event_timestamp desc ;
select DBUSERNAME,EVENT_TIMESTAMP,SQL_TEXT,ACTION_NAME,SYSTEM_PRIVILEGE_USED,UNIFIED_AUDIT_POLICIES,OBJECT_SCHEMA,OBJECT_NAME,CLIENT_PROGRAM_NAME,OS_USERNAME,USERHOST
from unified_audit_trail
Where TRUNC(event_timestamp) = '16-DEC-2019'
order by event_timestamp desc ;
select DBUSERNAME,TO_CHAR(EVENT_TIMESTAMP,'DD-MON-YYYY HH24:MI') EVENT_TIMESTAMP,Count(*)
from unified_audit_trail
where DBUSERNAME='SYS'
group by DBUSERNAME,TO_CHAR(EVENT_TIMESTAMP,'DD-MON-YYYY HH24:MI')
order by EVENT_TIMESTAMP desc ;
select DBUSERNAME,EVENT_TIMESTAMP,SQL_TEXT,ACTION_NAME,SYSTEM_PRIVILEGE_USED,UNIFIED_AUDIT_POLICIES,OBJECT_NAME,CLIENT_PROGRAM_NAME,OS_USERNAME,USERHOST
from unified_audit_trail
WHERE DBUSERNAME IN ('DBA_PITOU')
AND TRUNC(event_timestamp)='21-SEP-2019'
order by event_timestamp desc ;