- 1、本文档共29页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
北邮数据库课程讲义chapter12
* DataBase System Concepts Chapter 12 Transactions DataBase System Concepts Transaction State Implementation of Atomicity and Durability Concurrent Executions Serializability Recoverability Implementation of Isolation Transaction Definition in SQL Testing for Serializability. The term transaction refers to a collection of operations that form a single logical unit of work. A transaction is a unit of program execution that accesses and possibly updates various data items. DataBase System Concepts Transaction E.g. transaction to transfer $50 from account A to account B: 1. read(A) 2. A := A – 50 3. write(A) 4. read(B) 5. B := B + 50 6. write(B) Two main issues to deal with: Failures of various kinds, such as hardware failures and system crashes Concurrent execution of multiple transactions DataBase System Concepts Atomicity requirement if the transaction fails after step 3 and before step 6, money will be “lost” leading to an inconsistent database state Failure could be due to software or hardware the system should ensure that updates of a partially executed transaction are not reflected in the database Durability requirement — once the user has been notified that the transaction has completed (i.e., the transfer of the $50 has taken place), the updates to the database by the transaction must persist even if there are software or hardware failures. DataBase System Concepts Transaction Example DataBase System Concepts Consistency requirement in above example: the sum of A and B is unchanged by the execution of the transaction A transaction must see a consistent database. During transaction execution the database may be temporarily inconsistent. When the transaction completes successfully the database must be consistent Erroneous transaction logic can lead to inconsistency Transaction Example(2) Isolation requirement — if between steps 3 and 6, another transaction T2 is allowed to access the partially updated database, it will see an inconsistent dat
您可能关注的文档
- 北爱尔兰 3.ppt
- 北美历史1500之后.ppt
- 北美本科直通车测试题阅读精简版.doc
- 北美洲概述jh.ppt
- 北航单片机课后作业讲评.ppt
- 北欧设计及其理念对中国现代设计的启示(硕士论文).doc
- 北科自动化数电pp7.ppt
- 北航研究生英语外教课展示Death Penalty in America.ppt
- 北语15秋《阅读(IV)》作业3.doc
- 北语16秋 大学英语(三)作业3满分答案.doc
- 生活垃圾处理设备更新改造项目可行性研究报告写作模板-申批备案.doc
- 生活垃圾焚烧协同处置工农业废弃物热电联产项目可行性研究报告写作模板-申批备案.doc
- 生活垃圾焚烧发电给水项目可行性研究报告模板-立项拿地.doc
- 碎屑资源再利用项目可行性研究报告写作模板-申批立项.doc
- 2024_2025学年新教材高中物理第二章匀变速直线运动的研究1实验:探究小车速度随时间变化的规律课时作业含解析新人教版必修第一册.doc
- 糖果巧克力、豆制品、烘焙系列生产线设备智能化技术改造更新项目可行性研究报告写作模板-拿地申报.doc
- 陶瓷光纤插芯项目新建厂区项目可行性研究报告写作模板-申批备案.doc
- 年产5000万条纺织品项目可行性研究报告写作模板-申批备案.doc
- 年产5000万套高档文化创意用品和印刷纸张加工智能化生产线项目可行性研究报告写作模板-申批立项.doc
- 2024高考物理一轮复习第八章恒定电流实验十测定电源的电动势和内阻教案鲁科版.doc
最近下载
- 必威体育精装版精编城市排水防涝EPC总承包项目(实施方案、管理方案、技术方案).docx
- 一汽铸造有限公司发展战略研究.pdf
- 两种人安规-辅助类试题题库及答案.pdf VIP
- HarmonyOS应用开发者基础认证-答案(2024).pdf VIP
- 2024年配电两种人理论考核试题及答案.pdf VIP
- 配电类“两种人”理论知识考核试题题库及答案.pdf VIP
- (2024“两种人”) 配电“两种人”类 - 多选专业题附有答案.docx VIP
- 配电类“两种人”理论知识考核试题题库及答案.pdf VIP
- NYT2997-2016 草地分类行业标准.pdf
- 拆除项目的重点、难点分析及合理化建议.docx VIP
文档评论(0)