select a.last_call_et,
a.event,
a.sql_id,
a.sid,
a.serial#,
a.username,
a.sql_id,
a.osuser,
a.machine,
a.program
from v$session a,v$session_wait b
where a.sid=b.sid
and b.wait_class<>'Idle'
order by 1 desc
a.event,
a.sql_id,
a.sid,
a.serial#,
a.username,
a.sql_id,
a.osuser,
a.machine,
a.program
from v$session a,v$session_wait b
where a.sid=b.sid
and b.wait_class<>'Idle'
order by 1 desc
本文探讨了如何使用SQL查询来分析数据库会话的最后调用时间、事件、SQL ID等关键信息,并通过筛选非空闲等待类来洞察数据库性能瓶颈。通过排序最后调用时间,帮助数据库管理员优化性能。
222

被折叠的 条评论
为什么被折叠?



