查询应用的连接数的SQL语句:
/* Formatted on 2011/6/12 13:06:23 (QP5 v5.163.1008.3004) */
SELECT b.MACHINE, b.PROGRAM,COUNT(*)
FROM v$process a, v$session b
WHEREa.ADDR = b.PADDR AND b.USERNAME ISNOTNULL
GROUPBY b.MACHINE, b.PROGRAM
ORDER BY COUNT ( * ) DESC;