• 论文 •    

嵌套事务模型下实时数据库故障处理策略

肖迎元,张德干,刘云生   

  1. 1.天津理工大学 计算机科学与技术学院,天津300191;2.天津市智能计算及软件新技术重点实验室, 天津300191;3.华中科技大学 计算机科学与技术学院, 湖北武汉430074
  • 出版日期:2009-01-15 发布日期:2009-01-25

Failure processing strategy for real-time database systems based on the nested transaction model

XIAO Ying-yuan, ZHANG De-gan, LIU Yun-sheng   

  1. 1.School of Computer Science & Technology, Tianjin University of Technology, Tianjin 300191, China;2.Tianjin Key Lab of Intelligence Computing & Novel Software Technology, Tianjin 300191, China;3.School of Computer Science & Technology, Huazhong University of Science & Technology, Wuhan 430074, China
  • Online:2009-01-15 Published:2009-01-25

摘要: 针对嵌套事务的特性,提出了一种新的、支持嵌套实时事务模型的故障恢复模式。该故障恢复模式改进了传统的日志记录类型与结构,能更好地适应嵌套事务的特性与时态数据的时限需求。在日志缓冲区分配策略上,并发的嵌套实时事务被分配在独立的活动日志区,解决了顺序日志模式中当前日志缓冲页因为严重的访问竞争而影响系统性能的问题。在故障发生后的恢复处理算法中,对重做起始点选择与执行顺序进行了优化处理,在确保提交事务持久性的前提下,尽可能地提高恢复性能。性能测试显示,该恢复模式具有比传统恢复模式更好的性能。

关键词: 数据库系统, 嵌套事务, 故障恢复, 日志模式

Abstract: Aiming at the characteristics of nested transactions, a novel failure recovery mode supporting the nested real-time transaction model was presented. Compared to the traditional recovery mode, log record type and structure were improved in the proposed recovery mode to better adapt to the characteristics of nested transactions and the timing constraint requirement of temporal data. On the allocation policy of log buffer, concurrent nested real-time transactions were allocated to independent active log areas, therefore the performance bottleneck caused by severe contention for the current log buffer page in the sequential log mode was solved. On the basis of guaranteeing the continuity of committed transactions, the recovery-processing algorithm after failures was optimized by selecting starting point and execution sequence of Redo to enhance the recovery performance to the largest extent. Performance test showed that the proposed recovery mode had better real-time performance than the traditional one.

Key words: database systems, nested transaction, failure recovery, log mode

中图分类号: