Oracle 11g当前数据库会话

时间:2011-10-07 22:40:39

标签: database oracle oracle11g

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上)?请建议

1 个答案:

答案 0 :(得分:1)