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

  • 相关阅读:
    python 遍历目录 正则
    (含PPT)MySQL托管服务架构及读写分离的优化
    jquery 将一维数组分配给下拉菜单
    kafka安装和使用
    How to search Installed Updates
    How to search Installed Updates
    How to search Installed Updates
    How to search Installed Updates
    复旦软件工程专业课
    复旦软件工程专业课
  • 原文地址:https://www.cnblogs.com/benio/p/1923069.html
Copyright © 2011-2022 走看看