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

本文探讨了多用户数据库环境中数据并发访问与一致性的挑战。介绍了串行化处理的概念,确保事务以串行方式执行,避免并发冲突。并讨论了Oracle提供的两种隔离级别,旨在平衡事务隔离性和应用性能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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
concurrently.

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. 串行化处理 : 认为同一时间只有一个事务在运行 ,而非并发的

[@more@]

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/10599713/viewspace-988271/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/10599713/viewspace-988271/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值