ORACLE 相关游标数 查询

前端之家收集整理的这篇文章主要介绍了ORACLE 相关游标数 查询前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
--各用户的打开游标总数 SELECT A.USER_NAME,COUNT(*) FROM V$OPEN_CURSOR A GROUP BY A.USER_NAME; --查找数据库用户各个终端的缓存游标数 SELECT AA.USERNAME,AA.MACHINE,SUM(AA.VALUE) FROM (SELECT A.VALUE,S.MACHINE,S.USERNAME FROM V$SESSTAT A,V$STATNAME B,V$SESSION S WHERE A.STATISTIC# = B.STATISTIC# AND S.SID = A.SID AND B.NAME = 'session cursor cache count') AA GROUP BY AA.USERNAME,AA.MACHINE ORDER BY AA.USERNAME,AA.MACHINE; --查找数据库用户各个终端的打开游标数 SELECT AA.USERNAME,S.USERNAME FROM V$SESSTAT A,V$SESSION S WHERE A.STATISTIC# = B.STATISTIC# AND S.SID = A.SID AND B.NAME = 'opened cursors current') AA GROUP BY AA.USERNAME,AA.MACHINE;
原文链接:https://www.f2er.com/oracle/206225.html

猜你在找的Oracle相关文章