Chapter Contents |
Previous |
Next |
READ_ISOLATION_LEVEL= |
Default value: | CS |
Alias: | RIL= |
Syntax | |
Details |
Syntax |
READ_ISOLATION_LEVEL= RR | RS | CS | UR |
RR = Repeatable Read | |
RS = Read Stability | |
CS = Cursor Stability | |
UR = Uncommitted Read |
Details |
The degree of isolation identifies
The DB2 database manager supports four isolation levels. Regardless of the isolation level, the database manager places exclusive locks on every row that is inserted, updated, or deleted. Thus, all isolation levels ensure that any row that is changed by this application process during a unit of work is not changed by any other application process until the unit of work is complete. The isolation levels are defined in terms of several possible occurrences:
For example, suppose that transaction T1 performs an update on a row, transaction T2 then retrieves that row, and transaction T1 then terminates with rollback. Transaction T2 has then seen a row that no longer exists.
For example, suppose that transaction T1 retrieves a row, transaction T2 then updates that row, and transaction T1 then retrieves the same row again. Transaction T1 has now retrieved the same row twice but has seen two different values for it.
For example, suppose that transaction T1 retrieves the set of all rows that satisfy some condition. Suppose that transaction T2 then inserts a new row that satisfies that same condition. If transaction T1 now repeats its retrieval request, it will see a row that did not previously exist, a phantom.
The isolation levels for READ_ISOLATION_LEVEL= include the following:
READ_ISOLATION_LEVEL= is ignored if READ_LOCK_TYPE= is not set to ROW.
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.