基于XML映射规则的油气管道数据动态迁移系统设计
2020-06-15高建章吴志锋孙啸刘昊李怡
高建章 吴志锋 孙啸 刘昊 李怡



摘 要: 针对传统油气管道数据动态迁移系统数据映射性能较差的问题,提出一种基于XML映射规则的油气管道数据动态迁移系统。系统硬件配置为调度模块,由FIFO调度器、计算能力调度器、公平调度器、I/O调度器、TaskTracker、JobTracker构成。系统软件包括数据转换模块、数据动态迁移模块,其中,数据转换模块主要利用XML映射规则获取XML映射数据,并将其嫁接在目的数据库与源数据库之间,以实现油气管道数据的数据类型转换与数据备份;数据动态迁移模块主要通过数据迁移程序发出的数据迁移命令来迁移XML 配置文件。该系统通过硬件与软件相结合实现了油气管道数据的动态迁移。为了验证该系统的数据映射性能,将该系统与几种传统油气管道数据动态迁移系统对比,共同进行油气管道数据动态迁移的对比实验。实验结果证明,基于XML映射规则的油气管道数据动态迁移系统的数据映射性能更强并且更稳定,说明该系统更适用于油气管道数据的动态迁移。
关键词: 油气管道; 数据动态迁移; XML映射规则; 数据嫁接; 数据类型转换; 任务调度
中图分类号: TN02?34; TP311 文献标识码: A 文章编号: 1004?373X(2020)07?0155?04
Design of oil?gas pipeline data dynamic migration system based on XML mapping rules
GAO Jianzhang1, 2, WU Zhifeng2, SUN Xiao2, LIU Hao2, LI Yi3
(1. Beijing University of Posts and Telecommunications, Beijing 100876, China; 2. PetroChina Southwest Pipeline Company, Chengdu 610037, China;
3. Chengdu Aerospace Science & Industry Big Data Institute Ltd., Chengdu 610000, China)
Abstract: An oil?gas pipeline data dynamic migration system based on XML mapping rules is proposed to improve the performance of data mapping in traditional oil?gas pipeline data dynamic migration system. The hardware configuration of the system includes a scheduling module, which consists of FIFO dispatcher, computing power dispatcher, fair dispatcher, I/O dispatcher, TaskTracker and JobTracker. The system software includes data conversion module and data dynamic migration module. The data conversion module is used to obtain XML mapping data mainly by means of XML mapping rules, and graft it between the target database and the source database in order to realize data type transformation and data backup of oil?gas pipeline data. The data dynamic migration module is used to migrate XML configuration file according to the data migration command issued by the data migration program. The dynamic migration of oil?gas pipeline data is realized by the combination of hardware and software in the system. In order to verify the data mapping performance of the system, the system is compared with several traditional oil?gas pipeline data dynamic migration systems, and a contrast experiment of oil?gas pipeline data dynamic migration was carried out. The experimental results prove that the oil?gas pipeline data dynamic migration system based on XML mapping rules has stronger data mapping performance and is more stable, which shows that the system is more suitable for the dynamic migration of oil?gas pipeline data.
Keywords: oil?gas pipeline; data dynamic migration; XML mapping rule; data grafting; data type transformation; task scheduling
0 引 言
在转移存储的电子文献、升级网络、更换存储设备、迁移分系统数据至新建的综合数据管理中心时,都需要解决数据更新问题与数据迁移问题,特别是处于异构环境下时,数据的高度复杂使迁移数据时面临着巨大的压力[1]。对于油气企业,油气管道数据多种数据库、多种方式的数据存储问题已经成为企业数据应用中难以解决的问题。……
