查看Oracle的连接数

2014-11-24 18:45:20 · 作者: · 浏览: 0

2.修改最大连接数
SQL>alter system set processes=value scope=spfile #value为需要设置的连接数的值


重启数据库后,即可查看到修改的最大连接已经生效


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的数目