计算机与现代化

• 应用与开发 • 上一篇    下一篇

一种基于物理级的关系数据库数据复制模型研究

  

  1. 国网电力科学研究院,江苏南京210003
  • 收稿日期:2015-12-15 出版日期:2016-05-24 发布日期:2016-05-25
  • 作者简介:岳峻松(1979-),男,江苏南京人,国网电力科学研究院高级工程师,学士,研究方向:云灾备; 刘赛(1988-),男,工程师,硕士,研究方向:云灾备; 聂庆节(1975-),男,高级工程师,硕士,研究方向:云灾备,数据库数据容灾。
  • 基金资助:
    国网电网公司总部科技项目:基于关系数据库数据复制技术与产品国产化研究

Research on Relational Database Data Block Replication Model

  1. State Grid Electric Power Research Institute, Nanjing 210003, China
  • Received:2015-12-15 Online:2016-05-24 Published:2016-05-25

摘要: 针对当前逻辑级数据库数据复制技术中存在的问题,本文提出一种基于物理级的数据库数据复制模型。该模型利用一个主备数据库复制组来确立其参照关系,通过对Oracle数据库在文件系统格式下、裸设备下以及对基于数据库特殊卷管理器格式下的Redo日志的解析,在日志变化的第一时间挖掘日志捕获数据变化片段,之后采用弱滚动校验和同步增量方式将数据片段并行同步到备端。备端进行日志片段的重组,修改日志头标志位,合成日志文件并与源端校验通过后注册到灾备库,然后将合成日志以自动或者手动方式写入灾备库,从而实现物理级数据库数据复制。通过测试对比分析,验证了该模型不但可以保证两端数据一致性,而且还可以降低数据复制延时。

关键词: 在线日志挖掘, 数据加密传输, 日志合成, 日志应用, 数据一致性, 复制延时

Abstract:  In view of the problems existing in the current logic level database replication technology, this paper presents a model of database data replication based on physical level. The model uses a database replication group to establish its reference relationship. By analyzing the Oracle log data in the file system format, the raw device and the redo log based on the database, the data fragments are synchronized to the end of the data segment. By end of log fragment reorganization, the log head sign is modified a synthetic log file and source side validation are registered to disaster libraries, and synthetic log is automatically or manually written to disaster libraries, so as to realize the physical database replication. By comparing and analyzing the test data, the model can not only ensure the data consistency, but also reduce the time delay of data replication.

Key words:  , redo mining; encrypted transmission; redo synthesis; redo application; consistency; delay

中图分类号: