查看Oracle当前连接数


1.查看Oracle最大连接数
SQL>show parameter processes    #最大连接数

2.修改最大连接数
SQL>alter system set processes=value scope=spfile
重启数据库
SQL>shutdown force
SQL>start force

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

你可能感兴趣的:(oracle,数据库,session,jdbc,null,System)