oracle连接数
发布时间:2020-12-12 14:46:31 所属栏目:百科 来源:网络整理
导读:查看当前连接数 select count(*) from v$process ; 查看允许最大连接数 select value from v$parameter where name ='processes' ; 查看当前连接情况 SELECT osuser,a.username,cpu_time/executions/1000000||'s',b.sql_text,machine from v$session a,v$sql
查看当前连接数 select count(*) from v$process ; 查看允许最大连接数 select value from v$parameter where name ='processes' ; SELECT osuser,a.username,cpu_time/executions/1000000||'s',b.sql_text,machine from v$session a,v$sqlarea b where a.sql_address =b.address order by cpu_time/executions desc; select * from v$sgastat where pool='shared pool'; 查看当前回话数以及历史最高回话数,用来确定设置多大的连接数最合适。 select sessions_current,sessions_highwater from v$license; (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |