ITPub博客

首页 > 数据库 > Oracle > 查看用户连接

查看用户连接

原创 Oracle 作者:leon830216 时间:2014-03-01 18:55:09 0 删除 编辑
select
    /*s.osuser,
    decode
    (
        sign(48-command),
        1, to_char(command), 'Action Code #' || to_char(command)
    ) action,
    p.program,*/
    status,
    s.terminal,
    s.program,
    s.username,
    /*s.fixed_table_sequence activity_meter,
    '' query,
    0 memory,
    0 max_memory,
    0 cpu_usage,*/
    s.sid,
    s.serial#
from
    v$session s,
    v$process p
where
    s.paddr = p.addr and
    s.type = 'USER'
order by s.username, s.osuser
/

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/22558114/viewspace-1097783/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: 基础命令
下一篇: REDO日志切换频率
请登录后发表评论 登录
全部评论

注册时间:2009-09-18

  • 博文量
    160
  • 访问量
    380451