版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、会计学1浙江大学数据库系统概念浙江大学数据库系统概念PPT第十五章第十五章 对应原版教材第五版对应原版教材第五版第1页/共31页nIsolation. Although multiple transactions may execute concurrently, each transaction must be unaware of other concurrently executing transactions. Intermediate transaction results must be hidden from other concurrently executed transac
2、tions. nDurability. After a transaction completes successfully, the changes it has made to the database persist, even if there are system failures. To preserve integrity of data, the database system must ensure:第2页/共31页第3页/共31页database, it will see an inconsistent database (the sum A + B will be les
3、s than it should be).nCan be ensured trivially by running transactions serially,that is one after the other. nHowever, executing multiple transactions concurrently has significant benefits, as we will see.第4页/共31页transactions need not wait behind long ones.nConcurrency control schemes mechanisms to
4、achieve isolation, i.e., to control the interaction among the concurrent transactions in order to prevent them from destroying the consistency of the database第5页/共31页T1T21Read(x)2Read(x)3X = x+14Write(x)X = x*25Write(x)T1T21Write(T)2Read(T)3rollback第6页/共31页T1T21Read(x)2Write(x)3Read(x)X ?第7页/共31页nEq
5、uivalent schedulenSerializable Schedule第8页/共31页第9页/共31页In both Schedule 1 and 3, the sum A + B is preserved.第10页/共31页第11页/共31页第12页/共31页ilj are consecutive in a schedule and they do not conflict, their results would remain the same even if they had been interchanged in the schedule.第13页/共31页not confl
6、ict serializable:T3T4read(Q)write(Q)write(Q)We are unable to swap instructions in the above schedule to obtain either the serial schedule , or the serial schedule .第14页/共31页第15页/共31页transaction Tj(if any), then transaction Ti must in schedule Salso read the value of Q that was produced by transactio
7、n Tj .3.For each data item Q, the transaction (if any) that performs the final write(Q) operation in schedule S must perform the finalwrite(Q) operation in schedule S.As can be seen, view equivalence is also based purely on readsand writes alone.第16页/共31页nEvery view serializable schedule that is not
8、 conflict serializable has blind writes (write(Q) without having performed a read(Q) operation).第17页/共31页nDetermining such equivalence requires analysis of operations other than read and write.第18页/共31页nWe may label the arc by the item that was accessed.nExample 1xy第19页/共31页read(W)read(Y)write(Y)wri
9、te(Z)read(U)read(Y)write(Y)read(Z)write(Z)read(U)write(U)第20页/共31页T3T4T1T2T5第21页/共31页第22页/共31页concurrency they allow and the amount of overhead that they incur.nTests for serializability help understand why a concurrency control protocol is correct. 第23页/共31页nIf T8should abort, T9 would have read (a
10、nd possibly shown to the user) an inconsistent database state. Hence database must ensure that schedules are recoverable.Need to address the effect of transaction failures on concurrently running transactions.第24页/共31页第25页/共31页第26页/共31页ntransaction and begins a new one.nRollback work causes current transaction to abort.nLevels of consistency specified by SQL-92:nSerializable defaultnRepeatable readnRead committednRead uncommitted第27页/共31页ncommitted records can be read, but successive reads of record may return different (but committed) values.nRead uncommitted even uncommitted recor
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2026广东佛山南海区丹灶镇仙湖幼儿园招聘备考题库(精练)附答案详解
- 2026中德住房储蓄银行春季校园招聘2人备考题库附完整答案详解(名师系列)
- 2026浙江金华市义乌市教育系统招聘教师564人备考题库有答案详解
- 2026江苏镇江市润州区卫生健康系统事业单位招聘专业技术人员21人备考题库及答案详解【基础+提升】
- 2026湖南娄底市人力资源和社会保障局娄底市就业见习岗位备考题库附参考答案详解【完整版】
- 2026江苏宿迁市卫生健康委员会所属事业单位招聘11人备考题库附答案详解(b卷)
- 2026四川成都市第二十五幼儿园储备教职工招聘备考题库及完整答案详解(考点梳理)
- 2026甘肃兰州城关区《卫生职业教育》杂志社招聘备考题库(考点梳理)附答案详解
- 2026上海市消防救援局招聘500名政府专职消防员备考题库附答案详解【a卷】
- 吉林长春市面向2026年普通高校毕业生开展“强医计划”招聘事业单位人员110人备考题库完整附答案详解
- 2026年安徽城市管理职业学院单招职业适应性测试题库带答案详解(满分必刷)
- 2026年安徽警官职业学院单招综合素质考试题库有答案详解
- 2026年宁夏葡萄酒与防沙治沙职业技术学院自主公开招聘工作人员考试参考试题及答案解析
- 推动职业教育国际化-交流协会的探索与实践
- 2025年“安全生产月”《安全知识》培训考试题库及答案
- 重庆市科学素养大赛题库
- 公司薪酬管理制度公告模板(3篇)
- 湖南白银股份有限公司2026年公开招聘笔试备考题库及答案解析
- 春节后医院后勤工作年度计划课件
- 2026年临汾职业技术学院单招职业倾向性考试题库含答案详解(完整版)
- 2026校招:远大物产集团试题及答案
评论
0/150
提交评论