简体   繁体   English

Oracle 11g当前数据库会话

[英]Oracle 11g Current database sessions

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
/

Is the above query correct for displaying Session ID, Ownerʼs username and the session status (whether it is Waiting or On CPU) ? 上面的查询是否正确地显示了会话ID,所有者的用户名和会话状态(无论是正在等待还是在CPU上)? kindly advise 好心提醒

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM