11.07.2015 Views

DB2 9 vs Oracle 10g Admin. Technology - IBM

DB2 9 vs Oracle 10g Admin. Technology - IBM

DB2 9 vs Oracle 10g Admin. Technology - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>DB2</strong> Information Management동시성<strong>DB2</strong> 분리레벨 설정● Statement 레벨:SELECT (INTO), DELETE, UPDATE ... WITH {RR, RS, CS, UR}● 현재 세션에서 dynamic SQL:SET CURRENT ISOLATION = {RR, RS, CS, UR} or SET ISOLATION {RR, RS, CS, UR}● precompile 이나 bind 시:ISOLATION {RR, RS, CS, UR} option of the command line processor PREP or BIND commands● <strong>DB2</strong> Call Level Interface (<strong>DB2</strong> CLI):For <strong>DB2</strong> CLI, change the isolation level as part of the <strong>DB2</strong> CLI configuration (db2cli.ini). This can be doneeither by: UPDATE CLI CFG FOR SECTION sectionname USING TXNISOLATION {1, 2, 4, 8}where:1 = SQL_TXN_READ_UNCOMMITTED - Read Uncommitted (Uncommitted Read)2 = SQL_TXN_READ_COMMITTED (default) - Read Committed (Cursor Stability)4 = SQL_TXN_REPEATABLE_READ - Repeatable Read (Read Stability)8 = SQL_TXN_SERIALIZABLE - Serializable (Repeatable Read) Editing db2cli.ini and setting applTxnIsolation = {1, 2, 4, 8}● JDBC 또는 SQLJ :Use the setTransactionIsolation method in the java.sql interface connection, where:TRANSACTION_SERIALIZABLE = Repeatable readTRANSACTION_REPEATABLE_READ = Read stabilityTRANSACTION_READ_COMMITTED = Cursor stabilityTRANSACTION_READ_UNCOMMITTED = Uncommitted read● Command Line Processor (CLP) :CHANGE ISOLATION TO {RR, RS, CS, UR, NC} where NC stands for No Commit● REXX:CHANGE SQLISL TO {RR|CS|UR|RS|NC} {RR, RS, CS, UR, NC}<strong>DB2</strong> 9 <strong>vs</strong> <strong>Oracle</strong> <strong>10g</strong>© 2008 <strong>IBM</strong> Corporation 89

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

Saved successfully!

Ooh no, something went wrong!