oracle查询链接占用数

荷楠仁 / 2023-05-22 / 原文

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