如何理解Oracle中连接和会话

2025-06-29 10:44:17
推荐回答(1个)
回答1:

 查看session:
  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 count(*) from v$process
  查看连接数参数的设置情况
  select value from v$parameter where name = 'processes'
  Select count(*) from v$session where status='ACTIVE' #并发连接数