查看Oracle当前的连接数

怎样查看Oracle当前的连接数呢?只需要用下面的SQL语句查询一下就可以了。

  1. select * from v$session where username
     is not null  
  2. select username,count(username) from
     v$session where username is not null group by username  

查看不同用户的连接数

  1. select count(*) from v$session  

连接数

  1. Select count(*) from v$session where status='ACTIVE' 

并发连接数

  1. show parameter processes 

最大连接

  1. alter system set processes = value scope = spfile

重启数据库修改连接

  1. /home/Oracle9i/app/Oracle9i/dbs/init.ora  
  2. /home/Oracle9i/app/Oracle9i/dbs/spfilexxx.ora 
    ## open_cursor 

以上的相关内容就是对Oracle当前连接数相关内容的介绍,望你能有所收获。

posted @ 2010-05-24 14:30  super_mario  阅读(184)  评论(0编辑  收藏  举报