How to list active / open connections in Oracle?

后端 未结 9 810
孤街浪徒
孤街浪徒 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:27

    select 
        count(1) "NO. Of DB Users", 
        to_char(sysdate,'DD-MON-YYYY:HH24:MI:SS') sys_time
    from 
        v$session 
    where 
        username is NOT  NULL;
    

提交回复
热议问题