본문 바로가기

Oracle

Read Consistency

■ Transaction 수준의 읽기 일관성 

Level 0  :  Read Uncommitted      ( Dirty Read , Non-Repeatable Read  and Phantom Read )

Level 1  :  Read Committed         ( Non-Repeatable Read  and Phantom Read )

Level 2  :  Repeatable Read

Level 3  :  Serializable Read

비관적 동시성 제어

   Select * from Product for update nowait   //  대기없이 Exception
                                                 wait 3    //  3초 대기 후 Exception

낙관적 동시성 제어

   Update BP set status = 3 
      Where ProductNumber = :
          and 변경일시 = : modifieddate;    // 최종변경일시가 앞서 읽은 값과 같은지 비교





















 

'Oracle' 카테고리의 다른 글

MSSQL 테이블 정보 조회  (0) 2011.06.05
Materialized View Refresh Option  (0) 2011.06.05
Oracle DBMS_OBFUSCATION_TOOLKIT.DESENCRYPT  (0) 2011.05.11
Oracle 복구 관련  (0) 2011.05.08
Oracle Lock  (0) 2011.05.03