码迷,mamicode.com
首页 > 数据库 > 详细

Oracle EBS-SQL (SYS-10):锁定表查询.sql

时间:2014-06-09 17:17:11      阅读:460      评论:0      收藏:0      [点我收藏+]

标签:c   a   name      sql   oracle   

/*死锁查询-1*/

SELECT o.object_name,

            l.session_id,l.process,

            l.locked_mode FROM v$locked_object l ,

            dba_objects o WHERE

o.object_id=l.object_id

------------------------------------------------

/*死锁查询-2*/

select GL.SESSION_ID,
         do.object_name,
         GL.PROCESS,
         GL.LOCKED_MODE,
         GL.ORACLE_USERNAME,
         GL.PROCESS
  from gv$locked_object GL,
          DBA_OBJECTS      DO
 WHERE GL.OBJECT_ID = DO.object_id
      order by
      do.object_name

Oracle EBS-SQL (SYS-10):锁定表查询.sql,布布扣,bubuko.com

Oracle EBS-SQL (SYS-10):锁定表查询.sql

标签:c   a   name      sql   oracle   

原文地址:http://www.cnblogs.com/st-sun/p/3777579.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!