日期:2014-05-17 浏览次数:20705 次
select distinct
a.os_username os_user,
a.userhost,
a.username db_user,
to_char(a.timestamp,'yyyy-mm') Year_Month,
a.action_name action_name
from dba_audit_trail a
where a.timestamp >= to_date(to_char(sysdate,'yyyymm')-1||'16','yyyymmdd')
and a.timestamp < to_date(to_char(sysdate,'yyyymm')||'01','yyyymmdd')
and a.action in (100)
order by a.action_name
select distinct
a.os_username os_user,
a.userhost,
a.username db_user,
to_char(a.timestamp,'yyyy-mm') Year_Month,
a.action_name action_name
from dba_audit_trail a
where a.timestamp >= to_date(to_char(sysdate,'yyyymm')||'01','yyyymmdd')
and a.timestamp < to_date(to_char(sysdate,'yyyymm')||'16','yyyymmdd')
and a.action in (100)
order by a.action_name