SOS!! 回滚段请求等待!?!?!

[复制链接]
查看11 | 回复5 | 2005-10-30 17:05:33 | 显示全部楼层 |阅读模式
程序在执行insert某表时就一直等待了。查v$lock如下
ADDR KADDR SID TYID1ID2LMODEREQUEST
-------- -------- ---------- -- ---------- ---------- ---------- ----------
CTIMEBLOCK
---------- ----------
02788190 027881A0 19 TX65576729
0
4
902
0

REQUEST = 4共享锁???
进程19 请求 回滚段 RS0,但我不知道怎么释放RS0的东西哪,我该怎么办呢!?我如何查看RSO中是谁占用了呢,谢谢
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层

回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
column Username format A15 column Sid format 9990 heading SID
column Type format A4 column Lmode format 990 heading 'HELD'
column Request format 990 heading 'REQ' column Id1 format 9999990
column Id2 format 9999990 break on Id1 skip 1 dup
SELECT SN.Username, M.Sid, M.Type,
DECODE(M.Lmode, 0, 'None', 1, 'Null', 2, 'Row Share', 3, 'Row
Excl.', 4, 'Share', 5, 'S/Row Excl.', 6, 'Exclusive',
LTRIM(TO_CHAR(Lmode,'990'))) Lmode,
DECODE(M.Request, 0, 'None', 1, 'Null', 2, 'Row Share', 3, 'Row
Excl.', 4, 'Share', 5, 'S/Row Excl.', 6, 'Exclusive',
LTRIM(TO_CHAR(M.Request, '990'))) Request,
M.Id1, M.Id2
FROM V$SESSION SN, V$LOCK M
WHERE (SN.Sid = M.Sid and M.Request ! = 0)
or (SN.Sid = M.Sid and M.Request = 0 and Lmode != 4 and (id1, id2)
in (select S.Id1, S.Id2 from V$LOCK S where Request != 0 and S.Id1
= M.Id1 and S.Id2 = M.Id2) ) order by Id1, Id2, M.Request;
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
好像不是我要的呀,要不就是我没看懂
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
你查一下看有什么结果
回复

使用道具 举报

千问 | 2005-10-30 17:05:33 | 显示全部楼层
系统现在没有等待了,不知道为什么,吃了顿晚饭lock等待就没了:(
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行