dba-会话

连接数

select count(*) from v$process ;      --当前的数据库连接数

select value from v$parameter where name ='processes';  --数据库允许的最大连接数

alter system set processes = 500 scope = spfile;  --修改最大连接数:

 查询当前SID

select * from v$mystat

 查询当前会话明细

select * from v$session

select * from v$session where sid=(select distinct sid from v$mystat)  --查询当前会话的所有会话状态

alter system set sessions=500 scope=spfile;

原文地址:https://www.cnblogs.com/buchizaodian/p/9154073.html