• 中国计算机学会会刊
  • 中国科技核心期刊
  • 中文核心期刊

J4 ›› 2011, Vol. 33 ›› Issue (8): 84-88.

• 论文 • 上一篇    下一篇

支持数据库访问的进程检查点技术研究与实现

韦中伟1,陈海涛2,王强2,沈志宇2   

  1. (1.西昌卫星发射中心,四川 西昌 615000;2.国防科学技术大学计算机学院,湖南 长沙 410073)
  • 收稿日期:2009-07-09 修回日期:2010-09-27 出版日期:2011-08-25 发布日期:2011-08-25
  • 作者简介:韦中伟(1984),男,安徽临泉人,硕士,研究方向为软件与理论。

Research and Implementation of a Process Checkpoint  Technology That Supports Database Access

WEI Zhongwei1,CHEN Haitao2,WANG Qiang2,SHEN Zhiyu2   

  1. (1.Xichang Satellite Launch Center,Xichang 615000;
    2.School of Computer Science,National University of Defense Technology,Changsha 410073,China)
  • Received:2009-07-09 Revised:2010-09-27 Online:2011-08-25 Published:2011-08-25

摘要:

现有的检查点技术不支持socket连接的恢复,也没有将进程恢复和数据恢复结合起来,因此不能支持含有数据库访问的应用程序。本文提出一种支持含有数据库访问的进程检查点技术。对于含有数据库访问的应用程序,在设置进程检查点之前,先设置数据库检查点,获取当前数据库的系统改变号SCN,然后生成进程检查点。当程序从进程检查点处恢复运行时,将未关闭的数据库重新建立连接,并利用数据库的回退技术,将用户所操作的数据库表回退到数据库检查点,保证数据和应用的一致性。实验表明该方案是可行的,且性能开销率较低。

关键词: 进程检查点, 数据恢复, 容错, 容灾

Abstract:

The existing checkpoint technology does not support the socket connection recovery. It does not combine the process restoration and data recovery either. Therefore, it does not support the program with database applications. This paper addresses the process checkpoint technology that can solve these problems. Before setting the process checkpoints, the database checkpoints are set first, and the system changed number of the database(SCN) is obtained. When programs restart from the checkpoints, the unclosed database handlers are reconnected, and all the tables changed are returned to the database checkpoint. Then the coherence of the data and programs can be ensured. Experimental results indicate that this scheme can be implemented with low expense of the performance.

Key words: process checkpoint;data recovery;faulttolerance;disastertolerance