sql:
1. 查看当前的数据库连接数
select count(*) fromv$processselect count(*) from v$process where program=‘Oracle.EXE(SHAD)’;
select value from v$parameter where name ='processes'
3. 查看当前有哪些用户正在使用数据
SELECT osuser,a.username,cpu_time/executions/1000000||'s',b.sql_text,machine
from v$session a,v$sqlareab
where a.sql_address =b.address order by cpu_time/executionsdesc;
4. 查看当前的session连接数
select count(*) fromv$session
5. 查看并发连接数
select count(*) from v$session where status='ACTIVE'
命令:
1. 查看最大连接数show parameter processes
2. 修改最大连接数 alter system set processes = 300 scope = spfile;
3. 重启数据库 shutdown immediate; startup; 原文链接:https://www.f2er.com/oracle/210176.html