1. 程式人生 > >檢視Oracle當前連線數

檢視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的數目