Oracle 查看当前连接数与会话数情况

select  b.MACHINE, b.PROGRAM , 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 order by count(*) desc



select INST_ID, count(*) from gv$session  g group by g.INST_ID

你可能感兴趣的:(Oracle)