Segments by Row Lock Waits

来源:互联网 发布:php 自定义模版引擎 编辑:程序博客网 时间:2024/06/08 11:53

SQL> select OWNER,INDEX_NAME,TABLE_NAME from DBA_indexes where INDEX_NAME='F_AGT_BUSS_DUEB_END_DT';

 

OWNER             INDEX_NAME                     TABLE_NAME

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

DWF         F_AGT_BUSS_DUEB_END_DT         F_AGT_BUSINESS_DUEBILL_H

 

enq TX - index contention

 

这个等待事件表示发生了索引等待,如果该等待事件排名靠前,可以查看 AWR 中的 Segments by Row Lock Waits 里面的 index row lock waits 条目

 

根据 Segments by Row Lock Waits 中的索引名字,查看索引是否是 unique index

 

1.如果是unique index,很有可能是2个或者多个session同时insert相同的索引条目,就会引发 enq TX - index contention

 

2.索引block分裂 ,下面是索引分裂产生 enq TX - index contention 的实验


0 0