- 1
- 0
- 约1.34万字
- 约 31页
- 2024-01-26 发布于河南
- 举报
Chapter15:TransactionsTransactionConceptConcurrentExecutionsSerializabilityTestingforSerializabilityRecoverabilityTransactionDefinitioninSQL浙江大学数据库系统概念第十五章共31页,您现在浏览的是第1页!
TransactionConceptE.g.Transactiontotransfer$50fromaccountAtoaccountB:1. read(A) 4.read(B)2. A:=A–50 5.B:=B+503. write(A) 6.write(BAtransactionisaunitofprogramexecutionthataccessesandpossiblyupdatesvariousdataitems.Atransactionmustseeaconsistentdatabase.Duringtransactionexecutionthedatabasemaybeinconsistent.Whenthetransactionismitted,thedatabasemustbeconsistent.Twomainissuestodealwith:Failuresofvariouskinds,suchashardwarefailuresandsystemcrashesConcurrentexecutionofmultipletransactions浙江大学数据库系统概念第十五章共31页,您现在浏览的是第2页!
ACIDPropertiesAtomicity.Eitheralloperationsofthetransactionareproperlyreflectedinthedatabaseornoneare.CommitatransactionRollbackatransactionConsistency.Executionofatransactioninisolationpreservestheconsistencyofthedatabase.Isolation.Althoughmultipletransactionsmayexecuteconcurrently,eachtransactionmustbeunawareofotherconcurrentlyexecutingtransactions.Intermediatetransactionresultsmustbehiddenfromotherconcurrentlyexecutedtransactions.Durability.Afteratransactionpletessuccessfully,thechangesithasmadetothedatabasepersist,eveniftherearesystemfailures.Topreserveintegrityofdata,thedatabasesystemmustensure:浙江大学数据库系统概念第十五章共31页,您现在浏览的是第3页!
ExampleofFundTransferTransactiontotransfer$50fromaccountAtoaccountB:1. read(A)2. A:=A–503. write(A)4. read(B)5. B:=B+506. write(B)Consistencyrequirement–thesumofAandBisunchangedbytheexecutionofthetransaction.Atomicityrequirement—ifthetransactionfailsafterstep3andbeforestep6,thesystemshouldensurethatitsupdatesarenotreflectedinthedatabase,elseaninconsistencywillresult.Failurecouldbeduetosoftwareorhardw
您可能关注的文档
- 用用样本数字特征估计总体数字特征.pptx
- 直角三角形边与角的关系专题复习导学案(1).pptx
- 数控系统的备份与还原训练.pptx
- 旋转位置传感器在暖通空调(HVAC)挡板上的应用.pptx
- 种常见的防空警报器.pptx
- 相鼠笼式异步电动机.pptx
- 沃尔玛企业文化(1).pptx
- 消息流广告素材制作及关键词设置指导.pptx
- 知识产权理论与实务2011第4讲.pptx
- 消费者群体与消费者心理(1).pptx
- 上海市浦东新区2025_2026学年高二数学上学期期末考试试题含解析.doc
- 2025_2026学年新教材高中化学第四章物质结构元素周期律第三节化学键学案新人教版必修1.doc
- 工程款项催收函标准模板.docx
- 2025_2026学年新教材高中数学第10章概率习题课_随机事件的概率巩固练习含解析新人教A版必修第二册.docx
- 备战2026年中考物理实验精练精解专题实验题4测量小灯泡的电功率含解析.docx
- 城市道路建设拓宽项目方案.docx
- 介质输送管道防冻管控.ppt
- 2025_2026学年高中物理第九章固体液体和物态变化1固体学案新人教版选修3_31.doc
- 2026届高考生物一轮复习第2单元遗传的物质基础第1讲DNA是主要的遗传物质学案新人教版必修2.doc
- 楼宇自控系统设计与实施方案.docx
最近下载
- 沟通的力量:护理人文案例集锦.pptx VIP
- 2023-2024学年安徽省宣城市七年级(上)期末语文试卷(含详细答案解析).docx VIP
- 护理人文关怀实践案例与反思.docx VIP
- 匆匆那年钢琴谱五线谱.pdf VIP
- 《大学物理》2024-2025学年第一学期期末试卷及答案.docx VIP
- 橡胶和塑料制品加工系统粉尘防爆安全规范.docx VIP
- AQ_4232-2013 塑料生产系统粉尘防爆规范.pdf VIP
- 2024年江苏中职职教高考文化统考语文试卷真题(含答案详解).docx VIP
- GB50469-2016 橡胶工厂环境保护设计规范.pdf VIP
- 新能源电动汽车的充电桩建设与管理.pptx VIP
原创力文档

文档评论(0)