zoukankan      html  css  js  c++  java
  • 查看锁


    select object_name,
           lmode,
           sid session_id,
           decode(type,
                  'MR',
                  'Media Recovery',
                  'RT',
                  'Redo Thread',
                  'UN',
                  'User Name',
                  'TX',
                  'Transaction',
                  'TM',
                  'DML',
                  'UL',
                  'PL/SQL User Lock',
                  'DX',
                  'Distributed Xaction',
                  'CF',
                  'Control File',
                  'IS',
                  'Instance State',
                  'FS',
                  'File Set',
                  'IR',
                  'Instance Recovery',
                  'ST',
                  'Disk Space Transaction',
                  'TS',
                  'Temp Segment',
                  'IV',
                  'Library Cache Invalidation',
                  'LS',
                  'Log Start or Switch',
                  'RW',
                  'Row Wait',
                  'SQ',
                  'Sequence Number',
                  'TE',
                  'Extend Table',
                  'TT',
                  'Temp Table',
                  type) lock_type,
           decode(lmode,
                  0,
                  'None', /* Mon Lock equivalent */
                  1,
                  'Null', /* N */
                  2,
                  'Row-S (SS)', /* L */
                  3,
                  'Row-X (SX)', /* R */
                  4,
                  'Share', /* S */
                  5,
                  'S/Row-X (SSX)', /* C */
                  6,
                  'Exclusive', /* X */
                  to_char(lmode)) mode_held,
           decode(request,
                  0,
                  'None', /* Mon Lock equivalent */
                  1,
                  'Null', /* N */
                  2,
                  'Row-S (SS)', /* L */
                  3,
                  'Row-X (SX)', /* R */
                  4,
                  'Share', /* S */
                  5,
                  'S/Row-X (SSX)', /* C */
                  6,
                  'Exclusive', /* X */
                  to_char(request)) mode_requested,
           to_char(id1) lock_id1,
           to_char(id2) lock_id2,
           ctime last_convert,
           decode(block,
                   0,
                   'Not Blocking', /* Not blocking any other processes */
                   1,
                   'Blocking', /* This lock blocks other processes */
                   2,
                   'Global', /* This lock is global, so we can't tell */
                  to_char(block)) blocking_others
      from v$lock      l,
           dba_objects o
     where o.object_id = l.id1
       and l.type = 'TM'

             

                成长

           /      |     \

        学习   总结   分享

    QQ交流群:122230156

  • 相关阅读:
    setTimeout和setInterval的区别(面试题)
    什么是跨域?列出几种JS跨域解决方法?(前端面试题)
    建网站的流程
    CSS Sprite(雪碧图)简单使用
    前端不得不说的性能优化
    面试题
    前端如何做好SEO优化
    JavaScript string字符串对象常见方法
    微信号复制跟跳转——clipboard.js
    微信号复制跟跳转——execCommand()
  • 原文地址:https://www.cnblogs.com/benio/p/1923069.html
Copyright © 2011-2022 走看看