查看oracle连接数以及活跃连接数
程序员文章站
2024-02-24 11:37:40
...
select t.INST_ID,
count(*) count_all,
sum(case
when t.STATUS = 'ACTIVE' then
1
else
0
end) count_active
from gv$session t
group by t.INST_ID
order by t.inst_id;
上一篇: ORACLE如何一次性修改用户连接数?