首页 > 数据库 > Oracle > 查看Oracle连接数
SQL>show parameter processes --最大连接数
2. 修改最大连接数
SQL>alter system set processes=value scope=spfile
3. 查看当前连接数
SQL>select * from V$SESSION where username is not null
4.
查看不同用户的连接数
SQL>select username,count(username) from V$SESSION where username is not
null group by username --查看指定用户的连接数
5.
查看并发连接数
SQL>select count(*) from V$SESSION where status='ACTIVE' --查看并发连接数
6.
查指定程序的连接数
SQL>select count(*) from V$SESSION where program='JDBC Thin Client' #查看JDBC连接Oracle的数目
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/29702473/viewspace-1188584/ ,如需转载,请注明出处,否则将追究法律责任。