查看Oracle连接数

来源:互联网 发布:python 爬虫 登录微博 编辑:程序博客网 时间:2024/04/29 20:15
--当前连接数
select count(*) from v$session unoin

--并发连接数
select count(*) 并发连接数 from v$session where status='ACTIVE' 

--查看不同用户的连接数
select username,count(username) from V$SESSION where username is not null group by username

--查询最大连接数
show parameter processes

--更改系统连接数
alter system set processes=1000 scope=spfile;

--查看数据库默认连接数
select value from v$parameter where name = 'processes'