修改oracle最大连接数

 select count(*) from v$session; -- 查看当前连接数
 SELECT COUNT(*) FROM v$process; -- 查看当前的连接数,包含oracle服务进程
 Select count(*) from v$session where status='ACTIVE'; -- 并发连接数
 select value from v$parameter where name = 'processes'; -- 数据库允许的最大连接数
 -- 或者使用命令查看最大连接 
 show parameter processes 
 select username,count(username) from v$session where username is not null group by username; --查看不同用户的连接数
ALTER SYSTEM SET processes=666 SCOPE = SPFILE; -- 修改最大连接数,修改后需要重启数据库

更多推荐