1.查看session:
select * from v$session where username is not null
select username,count(username) from v$session where username is not null group by username
2.当前连接数:
select count(*) from v$process
3.查看连接数参数的设置情况
select value from v$parameter where name = 'processes'
Select count(*) from v$session where status='ACTIVE' #并发连接数
本文介绍了Oracle数据库中用于监控连接数和会话状态的几个关键SQL查询,包括如何查看活动连接、会话详情及并发连接数等。通过这些查询可以帮助数据库管理员更好地理解系统的负载状况。
2万+

被折叠的 条评论
为什么被折叠?



