oracle查询数据库连接数相关

select username,count(username) from v$session where username is not null group by username;--查询各个用户占用连接数情况
select count(*) AS JAVACOUNT  from v$session where username='PCMS' and SCHEMANAME='JDBC Thin Client';--查询PCMS用户下,jdbc占用的连接数
原文地址:https://www.cnblogs.com/penghq/p/10058108.html