Detectamos el snap_id con mayor número de lecturas y escrituras físicas de las estadísticas AWR almacenadas.
select
b.snap_id, sum(b.ios-a.ios)
from
(select snap_id, file#, phyrds+phywrts ios
from
dba_hist_filestatxs dhf) a,
(select snap_id, file#, phyrds+phywrts ios
from
dba_hist_filestatxs dhf) b
where
a.snap_id+1=b.snap_id and
a.file#=b.file#
group by a.snap_id order by 2
select * from dba_hist_snapshot where snap_id=....
No hay comentarios:
Publicar un comentario