檢視使用者連線

leon830216發表於2014-03-01
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部落格 ” ,連結:http://blog.itpub.net/22558114/viewspace-1097783/,如需轉載,請註明出處,否則將追究法律責任。

相關文章