system dump------------Enqueue State Object

本文解析了Oracle数据库中死锁产生的原因及如何通过分析enqueue资源来理解死锁的具体情况。enqueue资源标识了请求锁定的类型与ID,通过查看lv、res、mode等字段,可以了解锁定值、资源地址、持有的锁定模式等信息。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Example:
(enqueue) MR-00000008-00000000 [O8: DID: -- ]
lv: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
res:304c7fc, mode: S, prv: 304c804, sess: 3024c5c, proc: 301dd30

Meaning:
Following the (enqueue) we have the enqueue resource type with id1 and id2

In Oracle8 'DID' is the deadlock.

lv.............16 byte array that defines the lock value.
                (See sc.h and the typedef'd struct 'scgv').
res............Address of resource.
mode or req....Lock mode held or requested. Normally 'mode:' and 'req:'
                are mutually exclusive but it is possible for a process to
                hold a lock at one level and be requesting it at a higher
                level.
prv............Previous pointer in a linked list. The values of mode
                and req determine the list we are on as follows :
                  - No mode and No req = Not on a list
                  - No mode and req    = On waiter list
                  - Mode and no req    = On owner list
                  - Mode and req       = On converter list
sess...........Address of session (state object) who has acquired the
                resource.
proc...........Address of the process state object that owns the session
                given in 'sess'.

Comments
~~~~~~~~
  o I have only every seen 'lv:' followed by a string of zeros as in the
    example.

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/16158219/viewspace-605701/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/16158219/viewspace-605701/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值