首页 > 应用开发 > IT综合 > Introduction to Data Concurrency and Consistency in a Multiuser Environment (308)

Introduction to Data Concurrency and Consistency in a Multiuser Environment (308)

原创 IT综合 作者:tsinglee 时间:2007-12-04 11:32:53 0 删除 编辑

In a single-user database, the user can modify data in the database without concern for
other users modifying the same data at the same time. However, in a multiuser
database, the statements within multiple simultaneous transactions can update the
same data. Transactions executing at the same time need to produce meaningful and
consistent results. Therefore, control of data concurrency and data consistency is vital
in a multiuser database.

■ Data concurrency means that many users can access data at the same time.
■ Data consistency means that each user sees a consistent view of the data,
including visible changes made by the user’s own transactions and transactions of
other users.

To describe consistent transaction behavior when transactions run at the same time,
database researchers have defined a transaction isolation model called serializability.
The serializable mode of transaction behavior tries to ensure that transactions run in
such a way that they appear to be executed one at a time, or serially, rather than

While this degree of isolation between transactions is generally desirable, running
many applications in this mode can seriously compromise application throughput.
Complete isolation of concurrently running transactions could mean that one
transaction cannot perform an insert into a table being queried by another transaction.
In short, real-world considerations usually require a compromise between perfect
transaction isolation and performance.

Oracle offers two isolation levels, providing application developers with operational
modes that preserve consistency and provide high performance.

1. 数据并发访问是指多用户同时访问相同的数据.
2. 数据一致性是指系统中每个用户都能够查看数据的一致性,包括自己或其他用户所提交的事务对数据的修改
3. 串行化处理 : 认为同一时间只有一个事务在运行 ,而非并发的


来自 “ ITPUB博客 ” ,链接:,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
  • 博文量
  • 访问量