Chinaunix首页 | 论坛 | 博客
  • 博客访问: 876014
  • 博文数量: 206
  • 博客积分: 10276
  • 博客等级: 上将
  • 技术积分: 2358
  • 用 户 组: 普通用户
  • 注册时间: 2006-04-01 02:41
文章分类

全部博文(206)

文章存档

2014年(1)

2013年(1)

2012年(2)

2011年(10)

2010年(14)

2009年(15)

2008年(33)

2007年(90)

2006年(40)

我的朋友

分类: Oracle

2011-12-21 10:11:35

查找锁源方法:
1、查找出被锁的进程:
SQL>select * from gv$lock where lmode=0 and sid>9;
2、根据被锁进程的ID1 ID2查找出lmode不等于0的进程(即为锁源)
SQL>select * from gv$lock where id1=1114142 and id2=9205553; 
找出lmode<>0的那条的SID号
3、根据lmode不等于0的那条sid查找session名称:
SQL>select * from gv$session where sid=92;
SQL>select * from gv$lock where id1=3604524 and id2=7292675;
SQL>select * from gv$session where sid=333
阅读(855) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~