首页 > 数据库技术 > 详细

查看oracle连接数和会话情况

时间:2017-04-01 09:22:28      阅读:357      评论:0      收藏:0      [点我收藏+]

select  b.MACHINE, b.PROGRAM , count(*) from v$process a, v$session b where a.ADDR = b.PADDR and  b.USERNAME is not null   group by  b.MACHINE  , b.PROGRAM order by count(*) desc

或者

查看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

查看oracle连接数和会话情况

原文:http://www.cnblogs.com/huangdewei/p/6654485.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!