首页 > 数据库 > 【转】查看oracle当前连接数

【转】查看oracle当前连接数

2010年3月10日 发表评论 阅读评论

【转自】http://www.blogjava.net/temper/archive/2009/03/24/261657.html

怎样查看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 count(*) from v$session #连接数

Select count(*) from v$session where status=’ACTIVE’ #并发连接数

show parameter processes #最大连接

alter system set processes = value scope = spfile;重启数据库 #修改连接

/home/oracle9i/app/oracle9i/dbs/init.ora

/home/oracle9i/app/oracle9i/dbs/spfilexxx.ora ## open_cursor

分类: 数据库 标签: 260 views
  1. 本文目前尚无任何评论.
  1. 本文目前尚无任何 trackbacks 和 pingbacks.