How to list active / open connections in Oracle?

后端 未结 9 783
孤街浪徒
孤街浪徒 2020-11-30 17:25

Is there any hidden table, system variable or something to show active connections in a given moment?

9条回答
  •  北海茫月
    2020-11-30 18:19

    The following gives you list of operating system users sorted by number of connections, which is useful when looking for excessive resource usage.

    select osuser, count(*) as active_conn_count 
    from v$session 
    group by osuser 
    order by active_conn_count desc
    

提交回复
热议问题