在数据库开发中,打开数据库连接是很慢的。怎样oracle当前的连接数呢?只需要用下面的SQL语句查询一下就可以了。
select * from v$session where username is not null
查看不同用户的连接数
select username,count(username) from v$session where username is not null group by username
select * from v$session where username is not null
查看不同用户的连接数
select username,count(username) from v$session where username is not null group by username