在數據庫開發中,打開數據庫連接是很慢的。怎樣oracle當前的連接數呢?只需要用下面的SQL語句查詢一下就可以了。
select * from v$session where username is not null
查看不同用戶的連接數
select username,count(username) from v$session where username is not null group by username
select * from v$session where username is not null
查看不同用戶的連接數
select username,count(username) from v$session where username is not null group by username