16.10.2015 Views

Getting Started with DB2 Express-C

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

224 <strong>Getting</strong> <strong>Started</strong> <strong>with</strong> <strong>DB2</strong> <strong>Express</strong>-C<br />

Figure 13.8 – Comparing isolation levels for a fetch<br />

13.4.6 Setting the isolation level<br />

Isolation levels can be specified at many levels:<br />

• Session (application)<br />

• Connection<br />

• Statement<br />

The isolation level is normally defined at the session or Application Level. If no isolation<br />

level is specified in your application, it defaults to cursor stability. For example, Table 13.1<br />

shows the possible isolation levels for a .NET or JDBC program and how these properties,<br />

when set, match a <strong>DB2</strong> isolation level.<br />

<strong>DB2</strong> .NET JDBC<br />

Uncommitted Read (UR) ReadUncommitted TRANSACTION_READ_UNCOMMITTED<br />

Cursor Stability (CS) ReadCommitted TRANSACTION_READ_COMMITTED<br />

Read Stability (RS) RepeatableRead TRANSACTION_REPEATABLE_READ<br />

Repeatable Read (RR) Serializable TRANSACTION_SERIALIZABLE<br />

Table 13.1 - Comparison of isolation level terminology

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!