bnp是什么意思| 怀孕前有什么症状| 穷书生是什么生肖| 胆碱能性荨麻疹吃什么药| 旗袍穿什么鞋子好看图| 女人打呼噜是什么原因| 登门拜访是什么意思| 非洲讲什么语言| 麾下是什么意思| 清秋是什么意思| 身体皮肤痒是什么原因| 庚日是什么意思啊| 6.5是什么星座| 喉咙痛喝什么饮料| 高祖父的爸爸叫什么| 灵魂伴侣是指什么意思| 玄冥是什么意思| 一饿就心慌是什么原因引起的| 玄关是什么| 它是什么用英语怎么说| 天目湖白茶属于什么茶| A型血为什么是完美血型| 检查肾挂什么科| 孩子爱咬指甲是什么原因| 合肥有什么玩的| 俄罗斯乌克兰为什么打仗| 牛头不对马嘴是什么意思| 艾草有什么功效| 混合性皮肤用什么护肤品比较好| 禾真念什么| 想成为什么样的人| 孕吐什么时候结束| 牛奶和什么不能一起吃| 朱允炆为什么不杀朱棣| 拉肚子喝什么| 肺气阴两虚吃什么中成药| 人参片泡水喝有什么功效和作用| 筋膜炎有什么症状| 焦虑症是什么意思| 手脚发麻是什么原因| 一直打嗝是什么原因引起的| 黄金属于五行属什么| 梦见把老鼠打死是什么意思| 脊柱侧弯挂什么科| nba下个赛季什么时候开始| 红袖什么意思| 高密度脂蛋白胆固醇低是什么意思| 三点水山今读什么| 六月八号是什么星座| 肝裂不宽是什么意思| 翡翠和玉石有什么区别| 内伤湿滞什么意思| 舌根放血有什么好处| 牙龈肿痛吃什么药快速消肿止痛| 子宫低回声结节是什么意思| 媳妇是什么意思| 尿常规是检查什么的| 天花板是什么意思| 前列腺增生用什么药| 生育保险有什么用| 乌龟肠胃炎用什么药| 误食干燥剂有什么危害| 一九四九年属什么生肖| 年检是什么意思| 百什么百什么的成语| 慢性宫颈炎是什么原因引起的| 疱疹是什么样子的| 熊猫属于什么科动物| 夜盲症缺什么| 顶格是什么意思| 胡萝卜什么时间种| 貔貅是什么动物| 什么叫免疫组化| tb是什么意思啊| 低压高什么症状| 肠绞痛什么原因引起的| 鼻腔干燥是什么原因| 躯体症状是什么| 急性肠胃炎吃什么药| ecom什么意思| 憋尿会造成什么后果| 术后吃什么补元气| 什么是尿毒症| 重庆五行属什么| 口语化是什么意思| 头晕四肢无力是什么原因| 朱元璋属什么生肖| 男人射精快什么原因| 吃什么能养肝护肝| 肠粉是用什么材料做的| 阿魏是什么中药| 众所周知是什么生肖| 林是什么生肖| bg是什么意思| holly是什么意思| 头晕晕的是什么原因| 7月4是什么星座| 十二指肠溃疡吃什么药| 做梦梦到乌龟是什么预兆| 古驰是什么品牌| 送命题是什么意思| 来月经同房会有什么后果| 石斛能治什么病| 为什么明星整牙那么快| 金银花泡水喝有什么好处| 血热吃什么药可以凉血| ochirly是什么品牌| 怕冷畏寒是什么原因| 慢性浅表性胃炎伴糜烂吃什么药| 知柏地黄丸对男性功能有什么帮助| 取笑是什么意思| 尿道口有灼热感是什么原因| 高血糖可以吃什么| heineken是什么啤酒| 中天是什么意思| 近视是什么| 气虚的人适合什么运动| a是什么单位| 彩霞是什么意思| 什么是水印| 考生号是什么| 马拉松pb是什么意思| 什么情况会胎停| 为什么长白头发| 为什么不一样| 帕金森吃什么药最好| 喝什么解暑| 蛋白酶是什么东西| 什么是自由度| 鱼完念什么| 嬴姓赵氏是什么意思| 两边白头发多是什么原因造成的| ccd是什么意思| 胎儿头偏大是什么原因| 15岁属什么| 水油是什么| hcg是什么| 什么毛什么血| 绷不住了是什么意思| 阴囊积液是什么原因引起的| 月经推迟不来什么原因| 女性得疱疹是什么症状| 直肠肿物是什么意思| 男性生殖痒是什么原因| 籍贯指的是什么| 月经一个月来两次是什么原因| 组胺是什么| ap医学上是什么意思| 喝菊花有什么好处| 1995年是什么年| 尿液带血什么原因| 过期的维生素c有什么用途| 什么去湿气| 7点到9点是什么时辰| 6月12日是什么星座| 败火是什么意思| 10月29号是什么星座| wing什么意思| 霜花店讲了什么故事| 男人吃女人有什么好处| 小孩手足口病吃什么药| 手忙脚乱是什么意思| rpe是什么意思| 肥宅是什么意思| 转奶是什么意思| mic是什么意思| 经常喝蜂蜜水有什么好处和坏处| 叶黄素是什么东西| 亥是什么意思| 一代表什么意思| 马冲什么生肖| 什么原因会导致尿路感染| 为什么叫印度三哥| 云南雪燕有什么作用| 失眠去药店买什么药| 鱼不能和什么食物一起吃| 死有余辜是什么意思| 6969是什么意思| 纯粹是什么意思| 鼠的守护神是什么菩萨| 角的大小和什么有关| 枸杞有什么用| 螨虫用什么药膏| 老人过生日送什么礼物好| 多动症是什么原因造成的| 左腹部疼是什么原因| 合疗和医保有什么区别| 波推飞机什么意思| 背部长痘痘是什么原因造成| 义乌有什么大学| 衣原体感染用什么药| 原研药是什么意思| 王毅是什么级别| 胃窦在胃的什么位置| 我要控制我自己是什么歌| 狗狗拉虫子又细又长吃什么药| 气血不足吃什么补最快| 联名款是什么意思| 吃瓜什么意思| 猫代表什么象征意义| 虎父无犬子是什么意思| 成人改名字需要什么手续| 西红柿和什么搭配最好| 43属什么| 褶是什么意思| 乐果农药适合杀什么虫| 光圈是什么| 刘庄为什么要灭了阴家| 煲仔饭用什么米最好| 什么是化疗| camouflage什么意思| 什么样的天山| 麦高芬是什么意思| 清江鱼又叫什么鱼| 利空是什么意思| 老马识途是什么意思| 汪小菲什么星座| 碳酸钙是什么东西| 漏尿是什么原因造成的| 8月2号是什么星座| 胃疼喝什么药| 救星是什么意思| 拒服兵役是什么意思| 羊肉不能和什么食物一起吃| 豆沙色是什么颜色| 共青团书记是什么级别| 黑米是什么米| 猫藓是什么| 男孩学什么技术最好| 肛瘘是什么病| 月下老人什么意思| 颠了是什么意思| 开字加一笔是什么字| 什么样的田野| 酸入肝是什么意思| 多糖是什么意思| shiraz是什么名字红酒| 胃溃疡什么症状| 胃肠感冒什么症状| ace是什么| 白狗子是什么意思| 牙龈一直肿不消什么原因| 什么可以美白牙齿| 夫妇是什么意思| 女生排卵期是什么意思| 客车是什么车| 铁锈是什么| 鱼吃什么| 玫瑰的花语是什么| 从胃到小腹连着疼是什么原因| 盆腔积液什么症状| 唱腔是什么意思| cea检查是什么意思| 径行是什么意思| 提高免疫力吃什么维生素| 肝风是什么意思| 乙肝小三阳是什么意思| 生日送什么礼物最好| 吃什么有助于排便| 老鼠的尾巴有什么作用| 甲沟炎是什么引起的| 糖尿病不能吃什么| 肝郁是什么意思| 老是发烧是什么原因| 百度Jump to content

杭州亚运会新进展:组委会成立一办九部都有啥?

From Wikipedia, the free encyclopedia
百度 新世纪外国通俗文学的译介,还为“中国文化走出去”提供了有益的启示。

In computer science, transaction processing is information processing [1] that is divided into individual, indivisible operations called transactions. Each transaction must succeed or fail as a complete unit; it can never be only partially complete.

For example, when you purchase a book from an online bookstore, you exchange money (in the form of credit) for a book. If your credit is good, a series of related operations ensures that you get the book and the bookstore gets your money. However, if a single operation in the series fails during the exchange, the entire exchange fails. You do not get the book and the bookstore does not get your money. The technology responsible for making the exchange balanced and predictable is called transaction processing. Transactions ensure that data-oriented resources are not permanently updated unless all operations within the transactional unit complete successfully. By combining a set of related operations into a unit that either completely succeeds or completely fails, one can simplify error recovery and make one's application more reliable.

Transaction processing systems consist of computer hardware and software hosting a transaction-oriented application that performs the routine transactions necessary to conduct business. Examples include systems that manage sales order entry, airline reservations, payroll, employee records, manufacturing, and shipping.

Since most, though not necessarily all, transaction processing today is interactive, the term is often treated as synonymous with online transaction processing.

Description

[edit]

Transaction processing is designed to maintain a system's Integrity (typically a database or some modern filesystems) in a known, consistent state, by ensuring that interdependent operations on the system are either all completed successfully or all canceled successfully.

For example, consider a typical banking transaction that involves moving $700 from a customer's savings account to a customer's checking account. This transaction involves at least two separate operations in computer terms: debiting the savings account by $700, and crediting the checking account by $700. If one operation succeeds but the other does not, the books of the bank will not balance at the end of the day. There must, therefore, be a way to ensure that either both operations succeed or both fail so that there is never any inconsistency in the bank's database as a whole.

Transaction processing links multiple individual operations in a single, indivisible transaction, and ensures that either all operations in a transaction are completed without error, or none of them are. If some of the operations are completed but errors occur when the others are attempted, the transaction-processing system "rolls back" all of the operations of the transaction (including the successful ones), thereby erasing all traces of the transaction and restoring the system to the consistent, known state that it was in before processing of the transaction began. If all operations of a transaction are completed successfully, the transaction is committed by the system, and all changes to the database are made permanent; the transaction cannot be rolled back once this is done.

Transaction processing guards against hardware and software errors that might leave a transaction partially completed. If the computer system crashes in the middle of a transaction, the transaction processing system guarantees that all operations in any uncommitted transactions are cancelled.

Generally, transactions are issued concurrently. If they overlap (i.e. need to touch the same portion of the database), this can create conflicts. For example, if the customer mentioned in the example above has $150 in his savings account and attempts to transfer $100 to a different person while at the same time moving $100 to the checking account, only one of them can succeed. However, forcing transactions to be processed sequentially is inefficient. Therefore, concurrent implementations of transaction processing is programmed to guarantee that the end result reflects a conflict-free outcome, the same as could be reached if executing the transactions sequentially in any order (a property called serializability). In our example, this means that no matter which transaction was issued first, either the transfer to a different person or the move to the checking account succeeds, while the other one fails.

Methodology

[edit]

The basic principles of all transaction-processing systems are the same. However, the terminology may vary from one transaction-processing system to another, and the terms used below are not necessarily universal.

Rollback

[edit]

Transaction-processing systems ensure database integrity by recording intermediate states of the database as it is modified, then using these records to restore the database to a known state if a transaction cannot be committed. For example, copies of information on the database prior to its modification by a transaction are set aside by the system before the transaction can make any modifications (this is sometimes called a before image). If any part of the transaction fails before it is committed, these copies are used to restore the database to the state it was in before the transaction began.

Rollforward

[edit]

It is also possible to keep a separate journal of all modifications to a database management system. (sometimes called after images). This is not required for rollback of failed transactions but it is useful for updating the database management system in the event of a database failure, so some transaction-processing systems provide it. If the database management system fails entirely, it must be restored from the most recent back-up. The back-up will not reflect transactions committed since the back-up was made. However, once the database management system is restored, the journal of after images can be applied to the database (rollforward) to bring the database management system up to date. Any transactions in progress at the time of the failure can then be rolled back. The result is a database in a consistent, known state that includes the results of all transactions committed up to the moment of failure.

Deadlocks

[edit]

In some cases, two transactions may, in the course of their processing, attempt to access the same portion of a database at the same time, in a way that prevents them from proceeding. For example, transaction A may access portion X of the database, and transaction B may access portion Y of the database. If at that point, transaction A then tries to access portion Y of the database while transaction B tries to access portion X, a deadlock occurs, and neither transaction can move forward. Transaction-processing systems are designed to detect these deadlocks when they occur. Typically both transactions will be cancelled and rolled back, and then they will be started again in a different order, automatically, so that the deadlock does not occur again. Or sometimes, just one of the deadlocked transactions will be cancelled, rolled back, and automatically restarted after a short delay.

Deadlocks can also occur among three or more transactions. The more transactions involved, the more difficult they are to detect, to the point that transaction processing systems find there is a practical limit to the deadlocks they can detect.

Compensating transaction

[edit]

In systems where commit and rollback mechanisms are not available or undesirable, a compensating transaction is often used to undo failed transactions and restore the system to a previous state.

ACID criteria

[edit]

Jim Gray defined properties of a reliable transaction system in the late 1970s under the acronym ACID—atomicity, consistency, isolation, and durability.[1]

Atomicity

[edit]

A transaction's changes to the state are atomic: either all happen or none happen. These changes include database changes, messages, and actions on transducers.

Consistency

[edit]

Consistency: A transaction is a correct transformation of the state. The actions taken as a group do not violate any of the integrity constraints associated with the state.

Isolation

[edit]

Even though transactions execute concurrently, it appears to each transaction T, that others executed either before T or after T, but not both.

Durability

[edit]

Once a transaction completes successfully (commits), its changes to the database survive failures and retain its changes.

Implementations

[edit]

Standard transaction-processing software, such as IBM's Information Management System, was first developed in the 1960s, and was often closely coupled to particular database management systems. Client–server computing implemented similar principles in the 1980s with mixed success. However, in more recent years, the distributed client–server model has become considerably more difficult to maintain. As the number of transactions grew in response to various online services (especially the Web), a single distributed database was not a practical solution. In addition, most online systems consist of a whole suite of programs operating together, as opposed to a strict client–server model where the single server could handle the transaction processing. Today a number of transaction processing systems are available that work at the inter-program level and which scale to large systems, including mainframes.

One effort is the X/Open Distributed Transaction Processing (DTP) (see also Java Transaction API (JTA). However, proprietary transaction-processing environments such as IBM's CICS are still very popular,[citation needed] although CICS has evolved to include open industry standards as well.

The term extreme transaction processing (XTP) was used to describe transaction processing systems with uncommonly challenging requirements, particularly throughput requirements (transactions per second). Such systems may be implemented via distributed or cluster style architectures. It was used at least by 2011.[2][3]

References

[edit]
  1. ^ a b Gray, Jim; Reuter, Andreas. "Transaction Processing – Concepts and Techniques (Powerpoint)". Retrieved Nov 12, 2012.
  2. ^ Koen Vanderkimpen and Dirk Deridder. "Going eXtreme for Health Care". Devoxx 2011 presentation. Retrieved March 18, 2017.
  3. ^ Kevin Roebuck (2011). Extreme Transaction Processing. Lightning Source. ISBN 978-1-74304-266-3.

Further reading

[edit]
  • Gerhard Weikum, Gottfried Vossen, Transactional information systems: theory, algorithms, and the practice of concurrency control and recovery, Morgan Kaufmann, 2002, ISBN 1-55860-508-8
  • Jim Gray, Andreas Reuter, Transaction Processing—Concepts and Techniques, 1993, Morgan Kaufmann, ISBN 1-55860-190-2
  • Philip A. Bernstein, Eric Newcomer, Principles of Transaction Processing, 1997, Morgan Kaufmann, ISBN 1-55860-415-4
  • Ahmed K. Elmagarmid (Editor), Transaction Models for Advanced Database Applications, Morgan-Kaufmann, 1992, ISBN 1-55860-214-3
[edit]
古早是什么意思 彩金是什么材质 高考早点吃什么好 茄子不能和什么食物一起吃 男性乳头疼是什么原因
三焦是什么 女性朋友生日送什么礼物好 为什么16岁不能吃维生素B 红楼梦什么朝代 眼科pd是什么意思
早上起床吐痰带血是什么原因 木木耳朵旁是什么字 hpr是什么意思 心律不齐吃什么药效果好 趁什么不什么
宫颈炎用什么药物治疗比较好 嘴巴苦什么原因 神经性头疼吃什么药效果好 一月五日是什么星座 什么叫单反相机
叶韵是什么意思hcv9jop2ns5r.cn 什么然泪下hcv7jop7ns4r.cn ph值是什么意思hcv8jop9ns2r.cn 血压测不出来什么原因hcv8jop2ns5r.cn 枇杷不能和什么一起吃hcv9jop1ns5r.cn
3000年前是什么朝代hcv8jop5ns9r.cn 什么家庭养出自私冷漠hcv7jop7ns2r.cn 高血糖吃什么菜好hcv9jop4ns7r.cn 1964年是什么命hcv8jop2ns2r.cn 中伤是什么意思fenrenren.com
叒怎么读音是什么意思hcv8jop9ns6r.cn 甄别是什么意思hcv9jop7ns2r.cn lycra是什么面料hcv9jop2ns3r.cn 乳酸菌素片什么时候吃hcv8jop9ns7r.cn 龙井茶什么季节喝最好hcv8jop4ns8r.cn
淡是什么意思hcv8jop8ns4r.cn 菊花什么时候扦插最好hcv8jop7ns9r.cn 睡多了头疼是什么原因520myf.com 今年清明节有什么讲究hcv9jop2ns4r.cn 浅表性胃炎用什么药hcv8jop4ns3r.cn
百度