db2set DB2_RR_TO_RE=YES;
* RR: Repeatable Read
* RS: Read Stability
The potential deadlock and timeout problems can be resolved by turning on DB2_RR_TO_RS environment variable.
* It sets a default isolation level for user tables to RS isolation level.
* It reduces locking of the next key for inserted or changed rows.
* It reduces deadlocks when using reverse scan indexes
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24123206/viewspace-667391/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/24123206/viewspace-667391/
本文介绍如何通过设置 DB2_RR_TO_RS 环境变量解决 DB2 数据库中可能出现的死锁及超时问题。开启该选项后,将默认隔离级别从 Repeatable Read (RR) 更改为 Read Stability (RS),这有助于减少插入或更改行时的下一个键锁定,并降低使用逆向扫描索引时出现死锁的可能性。
673

被折叠的 条评论
为什么被折叠?



