下载此文档

异构数据库准实时同步技术研究.pdf


文档分类:IT计算机 | 页数:约50页 举报非法文档有奖
1/50
下载提示
  • 1.该资料是网友上传的,本站提供全文预览,预览什么样,下载就什么样。
  • 2.下载该文档所得收入归上传者、原创者。
  • 3.下载的文档,不会出现我们的网址水印。
1/50 下载此文档
文档列表 文档介绍
华中科技大学
硕士学位论文
异构数据库准实时同步技术研究
姓名:宫涛
申请学位级别:硕士
专业:系统分析与集成
指导教师:李衷怡
2010-03-04
华中科技大学硕士学位论文
摘要
随着网络通信技术的发展,分布式数据库的应用越来越广泛,如何使数据库中各
节点的数据保持一致性显得尤为重要。数据库同步技术即是为解决此问题而诞生。
在实际应用中存在这样一种情况,系统中的各节点采用的不是同一类数据库或者
由于历史原因所用数据库的版本并不统一,我们统称之为数据库异构问题。在数据库
异构的情况下保持数据的一致性不是简单的数据复制,而需考虑如何正确存储异构数
据并保持其精确性和完整性。
论文提出基于“SQL 语句的分解重现法”的异构数据库同步机制。利用触发器和变
更轨迹表进行数据库变化捕捉,结合 XML 技术对变更记录进行解析并重现 SQL 语句,
然后将其传输到目标数据库运行以实现同步。同步的准实时效果采用按计划轮询的机
制来实现。
论文研究重点在于数据库异构的情况下如何解决同步问题,先提出了对异构数据
类型进行转换需遵循的三大原则,然后根据处理的复杂程度将常用同步类型分成三类
进行讨论,包括简单转换类、复杂转换类和大对象类,尤其对大对象类的同步方法进
行了较为详尽的阐述。
论文还对同步的效率进行了细致的分析,通过选取不同的数据类型,组合成字段
数不同的表格,对其进行大量地增删改操作来对同步效率进行检验,得出的结论为:
同步耗时与变更记录数基本成线性关系,随着记录数的增多,行平均同步耗时略有减
小。最后论文还对同步过程中可能出现的各种问题进行了分析与讨论。

关键词:数据库同步异构数据库准实时


I
华中科技大学硕士学位论文
Abstract
With the development munication technology, distributed database
applications are more and more widely used, so how to make sure the data consistency in
each node of the database is all of the most important. It is the Database synchronization
technology that is born to solve this problem.
In practice there is a existence of such a situation, the system used in each node is not
of the same database type of , or due to historical reasons, the version used in the database
are not uniform, which we call heterogeneous database problem in all. In the case of
heterogeneous databases, to maintain consistency of the data is not a simple data replication,
while we need to consider how to properly store and maintain its heterogeneous data
accuracy and integrity.
In this paper, we propose a heterogeneous database synchronization mechanism based
on the "SQL statements position reconstruction method". We use triggers and change
record tables to capture changes of the database, bine with XML parsing
technology to parse the change record and reproduce the SQL statements, which are then
transferred to the target database to run in order to achieve synchronization. The
Quasi-simulta

异构数据库准实时同步技术研究 来自淘豆网m.daumloan.com转载请标明出处.

非法内容举报中心
文档信息
  • 页数50
  • 收藏数0 收藏
  • 顶次数0
  • 上传人numten7
  • 文件大小0 KB
  • 时间2014-06-24