Header

  1. View current page

    정상혁의 수첩

Profile_img_60x60_08
195

Transaction

 

Transaction 정의

 A transaction is a series of one or more data statements that either take place as a unit or are aborted as a unit.

 A transaction is a logical unit of work.

  • Defined from business rules.
  • Typically includes at elast one data modification
  • Transforms the database from one consistent state to another

 

A transaction has two possible outcomes.

Commited : All modifications are successfully

Rolled back: Any and all modifications are undone.

 

Role of Transactions

Protect data from software, hardware, and power failures.

 

 

ACID properties

 

Atomicity

A transaction is an all or nothing processes.

 이 특성은 일련의 작업 전체가 모두 성공하거나, 모두 성공하지 않아야 한다는 것을 의미한다.

 

Consistency

A transation changes the database from one consistent state to another.

트랜잭션이 성공적으로 실행을 완료하였을 때, 언제나 일관성있는 데이터베이스 상태를 유지하도록 해야 한다는 것. 이것은 트랜잭션의 결과가 데이터베이스에 정의된 모든 제약 조건들(프라이머리 키, 참조 무결성, 유일성 등등)을 만족해야 한다는 것을 의미한다. 일관성은 개발자와 트랜잭션 시스템에 의해 지켜질 수 있다.

 

Isolation

A transation's changes are not visible to other users until the changes are complete or rolled back.

 트랜잭션이 실행되는 중간에 방해를 받지 말아야한다는 것으로, 트랜잭션이 액세스하고 있는 데이터가 중간에 다른 프로세스나 다른 트랜잭션으로 인해 변하는 걸 방지하기 위해 필요한 성질이다.

 

Durability

Once complete, a transaction can not be undone.

지속성은 성공적으로 완료된 트랜잭션의 결과가 영속성을 가지는 저장 매체에 반영되어야 한다는 것을 의미한다.

 

By default, you cannot create objects(such as tables, indexes, or views) in a transaction.

 

 

 

참고자료

 Sybase Fast Track to Adaptive Server Enterprise

 

응용자료

비즈니스 중심적인 트랜잭션 모니터링 및 관리, Part 1: 엔드투엔드 트랜잭션 트래킹 기술 소개

 

History

Last edited on 12/28/2008 17:56 by benelog

Comments (0)

You must log in to leave a comment. Please sign in.