总结(1):Transient Journal(类似oracle undo)
The system maintains the before-update copies of rows updated within a transaction in the Transient Journal.After-update images, as well as all of the following items, are contained within
the file system Write Ahead Log, or WAL.
• Images of updates made to data blocks
• Images of updates made to cylinder indexes
• Images of updates made to File Information Blocks (FIBs)
• Instructions for where and how to use all these change images
These WAL images are called redo records. After the system applies the appropriate set of WAL log redo records to the data on disk, then the data blocks, cylinder indexes, and FIB images appear as if the updated copies of those blocks that had really only been in memory, had actually been written to disk. In other words, the redo records apply their updates to older versions of those blocks.
The Transient Journal records in the WAL log are undo records. After the system finishes processing the redo records, the data is in a consistent state, which permits the processing of the undo records.
the file system Write Ahead Log, or WAL.
• Images of updates made to data blocks
• Images of updates made to cylinder indexes
• Images of updates made to File Information Blocks (FIBs)
• Instructions for where and how to use all these change images
These WAL images are called redo records. After the system applies the appropriate set of WAL log redo records to the data on disk, then the data blocks, cylinder indexes, and FIB images appear as if the updated copies of those blocks that had really only been in memory, had actually been written to disk. In other words, the redo records apply their updates to older versions of those blocks.
The Transient Journal records in the WAL log are undo records. After the system finishes processing the redo records, the data is in a consistent state, which permits the processing of the undo records.
----------------------------------------------------------------------------------------------------------
临时日志容许事务可以成功回滚(TXN)。事务在AMP 没有收到结束请求是
不能提交给数据的,无论是隐式还是显式。事务有可能失败,如果这样,涉及到
的数据表就必须恢复到事件前的状态。
临时日志维护一张事务影响的数据行的副本。如果事务失败,事务前的数据
副本就会应用到受影响的表上,然后从日志中删除,回滚操作完成。如果事务提
交成功,则将在事务提交前的数据副本从日志中删除.
不能提交给数据的,无论是隐式还是显式。事务有可能失败,如果这样,涉及到
的数据表就必须恢复到事件前的状态。
临时日志维护一张事务影响的数据行的副本。如果事务失败,事务前的数据
副本就会应用到受影响的表上,然后从日志中删除,回滚操作完成。如果事务提
交成功,则将在事务提交前的数据副本从日志中删除.
----------------------------------------------------------------------------------------------------------
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/24620620/viewspace-758459/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/24620620/viewspace-758459/