我们专注攀枝花网站设计 攀枝花网站制作 攀枝花网站建设
成都网站建设公司服务热线:400-028-6601

网站建设知识

十年网站开发经验 + 多家企业客户 + 靠谱的建站团队

量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决

[OracleScript]checklatch

select l.latch# latch,l.name, nvl(c.latches, 0) children, l.gets, l.misses, l.gets-l.misses "Simple Gets",
       round((l.gets-l.misses) / l.gets,4)*100 "Simple Gets Ratio(%)",
       l.spin_gets, round(l.spin_gets / l.gets,4)*100 "Spin Gets Ratio(%)",
       l.sleeps "Sleep Get", round(l.sleeps / l.gets,4)*100 "Sleep Gets Ratio(%)",
       l.immediate_gets,
       l.immediate_misses,
       to_char(sysdate, 'yyyy/mm/dd hh34:mi:ss') currTime
  from v$latch l,
       (SELECT latch#, count(*) latches
          FROM v$latch_children c
         GROUP BY latch#) c
 where l.latch# = c.latch#(+)
   AND l.gets > 0
 ORDER BY latch;

文章题目:[OracleScript]checklatch
URL链接:http://shouzuofang.com/article/jdhdco.html

其他资讯