set lines 100 pages 999
col ID format a15
select username
, sid || ',' || serial# "ID"
, status
, last_call_et "Last Activity"
from v$session
where username is not null
order by status desc
, last_call_et desc
/
以上查询是否正确显示Session ID,所有者的用户名和会话状态(无论是等待还是在CPU上)?请建议
答案 0 :(得分:1)
您需要使用v$session_wait
视图...
请参阅:http://download.oracle.com/docs/cd/B28359_01/server.111/b28320/dynviews_3023.htm