DB2 DB2_RR_TO_RS environment variable

08 December,2011 by Tom Collins

The Environment Variable DB2_RR_TO_RS enables\disables the Repeatable Read attribute. I's enabled for DB2 performance  purposes 

DB2 registry parameter DB2_RR_TO_RS is used to:

  • Set a default isolation level for user tables to Read Stability (RS) isolation level. The RS level is not dissimilar to the Repeatable Read (RR) , with one difference – a page or row retrieved remains locked to the UOW end , but if another application can insert a value , that will be read if your process access the row a second time .
  • Reduce locking the next key for inserted or changed rows
  • Reduce deadlocks when using reverse scan indexes (ALLOW REVERSE SCANS) . i.e performing a scan in the opposite direction it’s intended

This environment variable is now deprecated

Author: Jack Vamvas(http://www.dba-db2.com)
Author: Rambler(http://www.dba-db2.com)


Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.


Post a comment on DB2 DB2_RR_TO_RS environment variable

Comments are moderated, and will not appear until the author has approved them.

dba-db2.com | DB2 Performance Tuning | DBA DB2:Everything | FAQ | Contact | Copyright