Enq Tx - Row Lock Contention HOWTO

本文档提供了一套详细的步骤来收集与Oracle数据库BRM对象上出现高行锁竞争相关的信息。具体包括运行特定SQL查询获取会话详情、锁定对象等;收集AWR报告及其他有用的会话信息;记录所有坚持同一数据库的进程、客户端等;从所有CM进程中获取pstack;检查cm.pinlog和dm_oracle.pinlog文件。
Troubleshooting Details

List of information to collect when high Row-Lock contention is seen on BRM DB objects (i.e. "Enq: Tx - Row Lock Contention In AWR Reports" messages seen in AWR reports)

1) output of the following two queries:

a)

SELECT a.sid||decode(request,0,'(holder)','(waiter)'||':blocked by:'||blocking_session) sess_id ,
lmode,
request,
a.type,
c.object_name,
decode(row_wait_obj#,-1,'Holder of Lock !!!',
dbms_rowid.rowid_create(1,row_wait_obj#,row_wait_file#,row_wait_block#,row_wait_row#)) row_id,
nvl(SQL_FULLTEXT,'Holder of Lock !!!')
FROM V$LOCK A, V$LOCKED_OBJECT B, ALL_OBJECTS C, V$SESSION D, V$SQL E
WHERE (id1, id2, a.type) in (select id1, id2, type from v$lock where request>0)
AND a.sid = b.session_id
AND b.object_id = c.object_id
AND d.sid = a.sid
AND d.sql_hash_value = e.hash_value(+)

b)

select * from <object_name> where rowid = <row_id> [ after getting object name and row_id from a) ]

2) the AWR reports, or any other useful collection of session info from BRM DB

3) the list of all processes, clients, etc. insisting on the same DB

4) the "pstack" taken on all CM processes

5) the cm.pinlog and dm_oracle.pinlog
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值