DB2 the popular 4 ISOLATION Levels, CS, RR, UR, RS

DB2 4 isolation levels
DB2 4 isolation levels

DB2 has 4 isolation levels. All 4 have advantages and disadvantages. Explained in detail about each isolation levels.

  1. CS- Cursor stability-Page level lock. After every page reads it releases locks to a page for READ. The disadvantage is when whole table reads during commit time may not match for first reading and second reading.
  2. RR-Repeatable Read: Page level locking-It holds till commit occurs. The report received before and after would be the same.
  3. UR- uncommitted read. Allows an application to read while acquiring few locks, at the risk of reading uncommitted data
  4. RS- Read stability: Read stability option enables an application to read the same pages or rows more than once and prevents updates or deletes to qualifying rows by other processes. However, other applications can insert or update rows that did not satisfy the search condition of the original application.

Author: Srini

Experienced software developer. Skills in Development, Coding, Testing and Debugging. Good Data analytic skills (Data Warehousing and BI). Also skills in Mainframe.