当前位置:网站首页>Modify the number of Oracle connections

Modify the number of Oracle connections

2022-06-26 04:19:00 Fat sb

sqlplus / as sysdba

Number of connections to the current database process

select count(1) from v$process;

Number of connections for the current session

select count(1) from v$session;

See the maximum number of connections

select value from v$parameter where name ='processes';

Modify the maximum number of connections to 3000

alter system set processes = 3000 scope = spfile;

Restart the database

shutdown immediate;  startup;

Check whether the maximum number of connections has been modified

show parameter processes;

 Insert picture description here

View the current connection consumption

select b.MACHINE, b.PROGRAM, b.USERNAME, count(*) from v$process a, v$session b where a.ADDR = b.PADDR and b.USERNAME is not null group by b.MACHINE, b.PROGRAM, b.USERNAME order by count(*) desc;
原网站

版权声明
本文为[Fat sb]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/177/202206260418093755.html