发明名称 Two-pass multi-version read consistency
摘要 The present invention describes a method and apparatus that forces all parts of an update transaction to commit automatically using a two-phase commit. The present invention uses the two-phase commit messages to negotiate a system commit number (SCN) that is then recorded on each of the nodes as the logical point in time that the distributed transaction committed. The two-phase commit scheme of the present invention consists of a "prepare" phase and a "commit" phase. The transaction in the distributed database environment involves multiple participants (databases). In the prepare phase, one of the N database participants is selected as the "commit point." The commit point includes the log into which the information is written that states the transaction has committed. The remaining N-1 participants enter a "prepare phase." In the prepare phase, the prepare participants lock their databases and enter a state in which they are ready to roll back or commit to the transaction. The mid-point of the two-phase commit is the point at which the commit point database (nth participant) writes the commit transaction to its log. In the second phase, the remaining participants are informed to commit the transaction and release locks that have been set.
申请公布号 US5452445(A) 申请公布日期 1995.09.19
申请号 US19920876626 申请日期 1992.04.30
申请人 ORACLE CORPORATION 发明人 HALLMARK, GARY;BAMFORD, ROGER
分类号 G06F12/00;G06F17/30;(IPC1-7):G06F15/40 主分类号 G06F12/00
代理机构 代理人
主权项
地址