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

  • 相关阅读:
    [Luogu]小Z的AK计划
    [POI2006]OKR-Periods of Words
    [NOI2014]动物园
    [NOI2009]管道取珠
    [IOI2005]河流
    [国家集训队]Crash的文明世界
    [HDU5382]GCD?LCM!
    [AGC027E]ABBreviate
    [CF]Round510
    [NOIp2005]篝火晚会
  • 原文地址:https://www.cnblogs.com/benio/p/1923069.html
Copyright © 2011-2022 走看看