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

  • 相关阅读:
    乱码解决方案SecureCRT中文乱码解决方案
    普通用户注销windows server 2003 普通用户(users)远程登录立即自动注销的解决方法
    jquery同步基于jquery的$.ajax async使用
    服务解释WinSer 8 无法访问共享官方解释
    备用nulljs 输出内容到新窗口
    返回解释Java乔晓松Android SD卡路径问题以及如何获取SDCard内存大小
    复制最佳实践MySQL 磁盘复制技术DRBD:优缺点比较、注意事项以及最佳实践
    schema类SpringMVC+Hibernate+Spring整合(二)
    类class2013第十四周上机任务【项目2 抽象Shape类】
    数据库javaJAVA连接oracle数据库
  • 原文地址:https://www.cnblogs.com/benio/p/1923069.html
Copyright © 2011-2022 走看看