数据库系统概念第八章-48页文档资料

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

SSDUT-Software School
2
Transactions
Collections of operations that form a single logical unit of work are called transactions.
For instance, transfer of money from one account to another is a transaction consisting of two updates, one to each account.
SSDUT-Software School
4
Properties of the transactions
Isolation. Even though multiple transactions may execute concurrently, the system guarantees that, for every pair of transactions Ti and Tj , it appears to Ti that either Tj finished execution before Ti started or Tj started execution after Ti finished. Thus, each transaction is unaware of other transactions executing concurrently in the system.
Atomicity. Either all operations of the transaction are reflected properly in the database, or none are.
Consistency. Execution of a transaction in isolation (that is, with no other transaction executing concurrently) preserves the consistency of the database.
It is important that either all actions of a transaction be executed completely, or, in case of some failure, partial effects of each incomplete transaction be undone.
SSDUT-Software Schห้องสมุดไป่ตู้ol
7
A transaction must be in one of the following states
Active, the initial state; the transaction stays in this state while it is executing.
Principles of Database Systems
Transactions
Mission
The concept of a transaction in detail, including the properties of atomicity, durability, isolation, and other properties provided by the transaction abstraction.
SSDUT-Software School
5
Properties of the transactions
Durability. After a transaction completes successfully, the changes it has made to the database persist, even if there are system failures.
SSDUT-Software School
3
Properties of the transactions
These properties are often called the ACID properties; the acronym is derived from the first letter of each of the four properties.
Partially committed, after the final statement has been executed.
Failed, after the discovery that normal execution can no longer proceed.
SSDUT-Software School
6
Transaction Committed
A transaction that completes its execution successfully is said to be committed.
We need to be more precise about what we mean by successful completion of a transaction. We therefore establish a simple abstract transaction model. A transaction must be in one of the following states:
Several concurrency-control techniques that help implement the isolation property.
The recovery management component of a database, which implements the atomicity and durability properties.
相关文档
最新文档