wybierać a.event,
liczyć (*) cnt,
minimalny (a.SECONDS_IN_WAIT) min_wait,
a.SECONDS_IN_WAIT (avg (a.SECONDS_IN_WAIT)) avg_wait,
max_wait (a.SECONDS_IN_WAIT) max_wait
od v$session_wait a, v$session B
dokąd a.sid > 7
i b.sid = a.sid
i b.status = "AKTYWNY"
grupa a.event
rozkaz 2 desc;
|