Trend Identification with the AWR
select
to_char(begin_interval_time,'day')
snap_time,
avg(value)
avg_value
from
dba_hist_sysstat
natural join
dba_hist_snapshot
SEE CODE DEPOT FOR FULL SCRIPT
group by
to_char(begin_interval_time,'day')
order by
decode(
to_char(begin_interval_time,'day'),
'sunday',1,
'monday',2,
'tuesday',3,
'wednesday',4,
'thursday',5,
'friday',6,
'saturday',7
)
;
The
listing below displays the output.