[go: up one dir, main page]

CN103440273A - Data cross-platform migration method and device - Google Patents

Data cross-platform migration method and device Download PDF

Info

Publication number
CN103440273A
CN103440273A CN2013103382728A CN201310338272A CN103440273A CN 103440273 A CN103440273 A CN 103440273A CN 2013103382728 A CN2013103382728 A CN 2013103382728A CN 201310338272 A CN201310338272 A CN 201310338272A CN 103440273 A CN103440273 A CN 103440273A
Authority
CN
China
Prior art keywords
data
database
platform
information
private
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2013103382728A
Other languages
Chinese (zh)
Other versions
CN103440273B (en
Inventor
李睿
马世龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beihang University
Original Assignee
Beihang University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beihang University filed Critical Beihang University
Priority to CN201310338272.8A priority Critical patent/CN103440273B/en
Publication of CN103440273A publication Critical patent/CN103440273A/en
Application granted granted Critical
Publication of CN103440273B publication Critical patent/CN103440273B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

本发明是一种数据跨平台迁移方法及装置,用以不同数据库系统之间的数据迁移。装置包括源数据信息模块,目标数据信息模块,转换模块,SQLEngine,数据包封装、传输及解析模块,以及SQL语句执行模块。通过源数据信息模块和目标数据信息模块对源数据平台的信息和目标数据平台的信息进行描述,从源数据库获取表生成Table对象,根据描述数据库之间字段的映射关系的XML文件,转换模块将Table对象进行格式转换,SQLEngine将转换后的信息构建SQL语句,并将SQL语句封装,传输给目标数据库位于的平台,在目标平台上执行SQL语句,完成数据迁移。本发明实现了数据在异构平台不同数据库之间的平滑、无损迁移。

Figure 201310338272

The invention relates to a data cross-platform migration method and device, which are used for data migration between different database systems. The device includes a source data information module, a target data information module, a conversion module, SQLEngine, a data packet encapsulation, transmission and analysis module, and an SQL statement execution module. Describe the information of the source data platform and the information of the target data platform through the source data information module and the target data information module, obtain the table from the source database to generate a Table object, and according to the XML file describing the mapping relationship between the fields between the databases, the conversion module will The Table object performs format conversion, and SQLEngine constructs SQL statements with the converted information, encapsulates the SQL statements, and transmits them to the platform where the target database is located, and executes the SQL statements on the target platform to complete the data migration. The invention realizes the smooth and non-destructive migration of data between different databases of the heterogeneous platform.

Figure 201310338272

Description

一种数据跨平台迁移方法及装置Method and device for data cross-platform migration

技术领域technical field

本发明属于应用软件跨平台迁移领域,尤其是一种数据跨平台迁移方法及装置。The invention belongs to the field of cross-platform migration of application software, in particular to a data cross-platform migration method and device.

背景技术Background technique

数据迁移指的是将数据库及其所有的表结构、表中的数据以及存储过程(主键、外键、索引等)等迁移到另一个数据库服务器上,并且能完全运行,另一个数据库服务器可以是运行在不同的机器上,可以是运行在不同的操作系统上,也可以是另一个数据库管理系统。发生数据迁移的原因有很多种,或是因为它所支撑的应用系统迁移到了另一个平台之上,或是因为已有的数据库系统需要升级到更高的版本,亦或是因为数据所在的平台需要进行硬件、操作系统等一系列基础软件的升级,等等诸如此类的原因。整个迁移过程会涉及许多的步骤和因素。数据迁移方法有抽取/转换/装载、复制和手动脚本等,然而这些方法面临着一些问题,当一方面数据量在增长,而另一方面允许的停机时间在减少时,这项工作将变得格外复杂。Data migration refers to migrating the database and all its table structures, data in tables, and stored procedures (primary key, foreign key, index, etc.) to another database server, and it can be fully run. Another database server can be Running on a different machine, either on a different operating system or another database management system. There are many reasons for data migration, either because the application system it supports is migrated to another platform, or because the existing database system needs to be upgraded to a higher version, or because the platform where the data resides It is necessary to upgrade a series of basic software such as hardware and operating system, and so on. The entire migration process involves many steps and factors. Data migration methods include extraction/transformation/loading, replication, and manual scripting, etc. However, these methods face some problems. When the amount of data is growing on the one hand, and the allowed downtime is decreasing on the other hand, this work will become Extraordinarily complex.

Bloor研究所于2007年9月发布的“2000年全球数据迁移”报告中列出以下统计数据:The following statistics are listed in the "Global Data Migration 2000" report released by the Bloor Institute in September 2007:

·16%的数据迁移部分项目取得了成功16% of data migration projects were partially successful

·37%的预算超支37% over budget

·64%没有按时完成64% did not meet deadlines

由此可见要进行数据迁移,并非易事。这是因为数据库系统生产厂商所采取的技术策略和选择的技术路线不同,出于市场竞争等等原因,不同数据库系统的开发与应用在资源利用、表结构设计、库结构等等各方面都是存在较大差异的。数据迁移过程中可能面临的难点有:It can be seen that data migration is not an easy task. This is because database system manufacturers adopt different technical strategies and technical routes. Due to market competition and other reasons, the development and application of different database systems are different in terms of resource utilization, table structure design, library structure, etc. There are big differences. Difficulties that may be faced during the data migration process include:

(1)不同数据库系统所支持的字符集不同,迁移出现的最常见的问题是乱码问题;(1) Different database systems support different character sets, and the most common problem in migration is garbled characters;

(2)数据库系统自身所特有的函数和技术,是不能被其它数据库系统所识别的;(2) The unique functions and technologies of the database system cannot be recognized by other database systems;

(3)不同的数据库系统中,对字段、事件、操作等的定义和处理方法各异,从而导致在部分内容的识别和解析上存在冲突;(3) Different database systems have different definitions and processing methods for fields, events, operations, etc., resulting in conflicts in the identification and analysis of some content;

如何完整、准确地实现数据迁移是摆在业内人士的一个需要解决的难题。How to completely and accurately implement data migration is a difficult problem for people in the industry to solve.

发明内容Contents of the invention

针对目前实现数据迁移面临的问题,本发明提出了一种数据跨平台迁移方法及装置,在不经过任何中间存储过程的前提下,实现几乎无损地数据迁移。Aiming at the problems currently faced in implementing data migration, the present invention proposes a data cross-platform migration method and device, which can realize almost lossless data migration without any intermediate storage process.

本发明提供的数据跨平台迁移方法,包括如下步骤:The data cross-platform migration method provided by the present invention comprises the following steps:

步骤一:将源数据平台的信息创建为一个SrcDatabase对象;Step 1: Create the information of the source data platform as a SrcDatabase object;

步骤二:将目标数据平台的信息创建为一个DesDatabase对象;Step 2: Create the information of the target data platform as a DesDatabase object;

步骤三:调用execute方法,完成整个迁移过程;Step 3: Call the execute method to complete the entire migration process;

所建立的SrcDatabase对象和DesDatabase对象,都包含如下信息:数据库类型、数据库所在主机的IP地址、数据库端口号、用户名、密码和数据库名称;The established SrcDatabase object and DesDatabase object both contain the following information: database type, IP address of the host where the database is located, database port number, user name, password and database name;

所述的execute方法,包括如下步骤:Described execute method comprises the steps:

步骤3.1:通过SrcDatabase对象从源数据库端获取一个数据表,从数据表中提取数据构建对应的Table对象;Table对象包含的信息有:表的模式名、表名、表所有字段的结构信息、表中所包含的主键信息、表中所包含的外键信息以及表中所有的索引信息;Step 3.1: Obtain a data table from the source database through the SrcDatabase object, extract data from the data table to construct a corresponding Table object; the information contained in the Table object includes: the schema name of the table, the name of the table, the structural information of all fields of the table, and the table The primary key information contained in the table, the foreign key information contained in the table, and all the index information in the table;

步骤3.2:根据源数据库与目标数据库之间字段的映射关系,将Table对象转换为目标数据库的表;Step 3.2: Convert the Table object into a table of the target database according to the field mapping relationship between the source database and the target database;

步骤3.3:将转换后的信息传递给SQL语句构建引擎SQLEngine,根据封装了目标数据库信息的DesDatabase对象,来构建相应的SQL语句;Step 3.3: Pass the converted information to the SQL statement construction engine SQLEngine, and construct the corresponding SQL statement according to the DesDatabase object that encapsulates the target database information;

步骤3.4:将SQL语句封装成数据包,传递给目标数据库位于的平台;Step 3.4: Encapsulate the SQL statement into a data packet and pass it to the platform where the target database is located;

步骤3.5:在目标平台上执行SQL语句,将源数据库的数据插入目标数据库中,完成数据迁移。Step 3.5: Execute the SQL statement on the target platform, insert the data of the source database into the target database, and complete the data migration.

本发明提供的数据跨平台迁移装置,包括如下组成部分:源数据信息模块,目标数据信息模块,转换模块,SQLEngine,数据包封装、传输及解析模块,以及SQL语句执行模块。The data cross-platform migration device provided by the present invention includes the following components: source data information module, target data information module, conversion module, SQLEngine, data packet encapsulation, transmission and analysis module, and SQL statement execution module.

源数据信息模块用于将源数据平台的信息创建为一个SrcDatabase对象;所述目标数据信息模块用于将目标数据平台的信息创建为一个DesDatabase对象。所述的SrcDatabase对象和DesDatabase对象,都包含如下信息:数据库类型、数据库所在主机的IP地址、数据库端口号、用户名、密码和数据库名称。The source data information module is used to create the information of the source data platform as a SrcDatabase object; the target data information module is used to create the information of the target data platform as a DesDatabase object. The SrcDatabase object and the DesDatabase object both include the following information: database type, IP address of the host where the database is located, database port number, user name, password and database name.

转换模块用于根据SrcDatabase对象从源数据库获取一个数据表,从数据表中提取数据构建对应的Table对象,再根据DesDatabase对象,利用源数据库与目标数据库之间字段的映射关系,将Table对象转换为符合目标数据库格式的表。The conversion module is used to obtain a data table from the source database according to the SrcDatabase object, extract data from the data table to construct a corresponding Table object, and then convert the Table object into A table that conforms to the format of the target database.

SQLEngine用于根据DesDatabase对象,构建相应的SQL语句。SQLEngine is used to construct the corresponding SQL statement according to the DesDatabase object.

数据包封装、传输及解析模块用于将构建的SQL语句封装成数据包,并传输至目标数据库所在的平台,并在目标数据库所在的平台上对数据包解析,将解析得到的SQL语句交给SQL语句执行模块。The data packet encapsulation, transmission and analysis module is used to encapsulate the constructed SQL statement into a data packet, and transmit it to the platform where the target database is located, and analyze the data packet on the platform where the target database is located, and deliver the parsed SQL statement to the SQL statement execution module.

SQL语句执行模块用于执行SQL语句,将源数据库的数据插入目标数据库中。The SQL statement execution module is used to execute the SQL statement, and insert the data of the source database into the target database.

本发明的数据跨平台迁移方法及装置,其优点与积极效果在于:The advantages and positive effects of the data cross-platform migration method and device of the present invention are:

(1)XML存储数据库系统字段之间的映射关系,充分利用XML文件的跨平台特性,使得数据跨平台迁移装置不用受操作系统和软件平台的限制;(1) XML stores the mapping relationship between database system fields, fully utilizes the cross-platform characteristics of XML files, so that the data cross-platform migration device is not limited by the operating system and software platform;

(2)XML的存储采用hashmap,易于扩展;(2) The storage of XML adopts hashmap, which is easy to expand;

(3)无需任何中间存储过程,节约系统的存储资源,降低了数据迁移的难度;(3) There is no need for any intermediate storage process, which saves system storage resources and reduces the difficulty of data migration;

(4)向上屏蔽了源数据库系统与目标数据库系统之间的差异性,实现了一键式迁移;(4) The difference between the source database system and the target database system is shielded upward, and one-click migration is realized;

(5)采用专门设计的传输数据包,简单易于解析,无冗余信息,进一步提高迁移的效率。(5) Adopt specially designed transmission data packets, which are simple and easy to parse, without redundant information, and further improve the efficiency of migration.

附图说明Description of drawings

图1是本发明的数据跨平台迁移方法的流程示意图;Fig. 1 is a schematic flow chart of the data cross-platform migration method of the present invention;

图2是本发明的数据跨平台迁移方法中所使用的execute方法的流程图;Fig. 2 is the flowchart of the execute method used in the data cross-platform migration method of the present invention;

图3是采用HashMap来存储描述数据库字段之间映射关系的XML文件的示例图;Fig. 3 is an example diagram of using HashMap to store XML files describing the mapping relationship between database fields;

图4是将SQL语句封装成的数据包的示意图;Fig. 4 is a schematic diagram of a data packet encapsulated into an SQL statement;

图5是本发明的数据跨平台迁移装置的结构示意图;Fig. 5 is a schematic structural diagram of a data cross-platform migration device of the present invention;

图6是本发明实施例中源数据库和目标数据库的信息描述图;6 is an information description diagram of a source database and a target database in an embodiment of the present invention;

图7是本发明实施例中源数据库的表的示意图;Fig. 7 is the schematic diagram of the table of source database in the embodiment of the present invention;

图8是本发明实施例中目标数据库中表equipment的示意图;Fig. 8 is a schematic diagram of table equipment in the target database in an embodiment of the present invention;

图9是本发明实施例中源数据库中表asset的结构示意图;9 is a schematic structural diagram of the table asset in the source database in the embodiment of the present invention;

图10是图9所示表的索引信息的示意图;Fig. 10 is a schematic diagram of index information of the table shown in Fig. 9;

图11是迁移至目标数据库MySQL中表asset的结构示意图;Figure 11 is a schematic diagram of the structure of the table asset migrated to the target database MySQL;

图12是本发明实施例中源数据库中表users的结构示意图;Fig. 12 is a schematic structural diagram of the table users in the source database in the embodiment of the present invention;

图13是迁移至目标数据库MySQL后表users的结构示意图;Figure 13 is a schematic diagram of the structure of the table users after migrating to the target database MySQL;

图14是本发明实施例中源数据库中表asset的数据示意图;Fig. 14 is a data schematic diagram of the table asset in the source database in the embodiment of the present invention;

图15是迁移至目标数据库MySQL后表asset的数据示意图;Figure 15 is a schematic diagram of the data in the table asset after migrating to the target database MySQL;

图16是本发明实施例中源数据库中表users的数据示意图;Fig. 16 is a schematic diagram of the data of table users in the source database in the embodiment of the present invention;

图17是迁移至目标数据库MySQL后表users的数据示意图。Figure 17 is a schematic diagram of data in table users after migrating to the target database MySQL.

具体实施方式Detailed ways

下面将结合附图和实施例对本发明作进一步的详细说明。The present invention will be further described in detail with reference to the accompanying drawings and embodiments.

本发明提供的一种数据跨平台迁移方法及装置,用以将位于某一平台上数据库系统中的数据迁移至另一个异构平台上的数据库系统中。本发明所采用的技术主要是:将源数据平台的信息创建为一个SrcDatabase对象,将目标数据平台的信息创建为一个DesDatabase对象,然后调用execute方法完成整个迁移过程。execute方法的具体执行流程是,先通过获得的SrcDatabase对象从源数据库端获取一个Table对象,将其传递给转换(Transfer)模块进行相应的格式转换,再将转换后的信息传递给SQL(Structured Query Language,结构化查询语言)语句构建引擎SQLEngine,根据封装了目标数据库的信息的DesDatabase对象,来构建相应的SQL语句,并将SQL语句封装成数据包,传递给目标数据库位于的平台,之后在目标平台上执行SQL语句,完成数据迁移。整个数据迁移的过程,是按照基本表结构(包含是否为空、缺省值)、索引、主键、自动增长、数据信息的顺序进行迁移的。待所有的数据表迁移完成后,再进行外键的迁移。本发明用于解决应用软件跨平台迁移中数据迁移的完整性以及准确性的技术问题,实现了数据在异构平台不同数据库之间的平滑、无损迁移The invention provides a data cross-platform migration method and device, which are used to migrate data located in a database system on a certain platform to a database system on another heterogeneous platform. The technology adopted in the present invention is mainly: creating the information of the source data platform as a SrcDatabase object, creating the information of the target data platform as a DesDatabase object, and then calling the execute method to complete the entire migration process. The specific execution process of the execute method is to first obtain a Table object from the source database through the obtained SrcDatabase object, pass it to the conversion (Transfer) module for corresponding format conversion, and then pass the converted information to SQL (Structured Query Language, Structured Query Language) statement construction engine SQLEngine, according to the DesDatabase object that encapsulates the information of the target database, to construct the corresponding SQL statement, and encapsulate the SQL statement into a data package, and pass it to the platform where the target database is located, and then in the target database Execute SQL statements on the platform to complete data migration. The entire process of data migration is performed in the order of basic table structure (including whether it is empty, default value), index, primary key, automatic growth, and data information. After the migration of all data tables is completed, the migration of foreign keys is performed. The invention is used to solve the technical problem of the integrity and accuracy of data migration in the cross-platform migration of application software, and realizes the smooth and lossless migration of data between different databases of heterogeneous platforms

如图1所示,为本发明提供的数据跨平台迁移方法,包括如下三个步骤:As shown in Figure 1, the data cross-platform migration method provided by the present invention includes the following three steps:

步骤一:将源数据平台的信息创建为一个SrcDatabase对象;Step 1: Create the information of the source data platform as a SrcDatabase object;

步骤二:将目标数据平台的信息创建为一个DesDatabase对象;Step 2: Create the information of the target data platform as a DesDatabase object;

步骤三:调用execute方法,完成整个迁移过程。Step 3: Call the execute method to complete the entire migration process.

所建立的SrcDatabase对象和DesDatabase对象包含的信息有:数据库类型、数据库所在主机的IP地址、数据库端口号、用户名、密码、数据库名称等信息。The information contained in the established SrcDatabase object and DesDatabase object includes: database type, IP address of the host where the database is located, database port number, user name, password, database name and other information.

如图2所示,为execute方法的执行过程,包括如下步骤:As shown in Figure 2, it is the execution process of the execute method, including the following steps:

步骤3.1:通过SrcDatabase对象从源数据库端获取一个数据表,从数据表中提取数据构建对应的Table对象。Step 3.1: Obtain a data table from the source database through the SrcDatabase object, and extract data from the data table to construct the corresponding Table object.

Table对象包含的信息有:表的模式名、表名、表所有字段的结构信息、表中所包含的主键信息、表中所包含的外键信息、以及表中所有的索引信息。The information contained in the Table object includes: the schema name of the table, the name of the table, the structure information of all fields in the table, the primary key information contained in the table, the foreign key information contained in the table, and all the index information in the table.

表的模式名schemaName,为private(私有)变量,数据类型为String(字符类型)。The schema name of the table, schemaName, is a private (private) variable, and the data type is String (character type).

表名tableName,为private变量,String数据类型。The table name tableName is a private variable of String data type.

表所有字段的结构信息columnList,为private变量,用数组ArrayList<Column>记录各字段。字段的结构信息如表1所示:The structural information columnList of all fields in the table is a private variable, and the array ArrayList<Column> is used to record each field. The structural information of the field is shown in Table 1:

表1字段的结构信息Structural information of the fields in Table 1

名称name 访问权限access permission 数据类型type of data 描述describe colNamecolName privateprivate StringString 字段的名称the name of the field dataTypedataType privateprivate intint 字段的数据类型对应的JDBC中Types的值The value of Types in JDBC corresponding to the data type of the field typeNametypeName privateprivate StringString 字段数据库中数据类型的名称The name of the data type in the field database colSizecolSize privateprivate intint 字段尺寸,小数时对应精度,字符时对应长度Field size, the precision corresponds to decimals, and the length corresponds to characters decimalDigitsdecimalDigits privateprivate intint 字段为小数时表示小数位数,否则为0When the field is a decimal, it indicates the number of decimal places, otherwise it is 0 nullablenullable privateprivate booleanboolean 字段是否允许为空Whether the field is allowed to be empty colDefcolDef privateprivate StringString 字段的缺省值default value of the field autoincrementauto increment privateprivate booleanboolean 字段是否自动增长Whether the field is auto-incremented

int为整型,boolean为布尔类型。JDBC(Java Data Base Connectivity,java数据库连接)是一种用于执行SQL语句的Java API。int is an integer type, and boolean is a Boolean type. JDBC (Java Data Base Connectivity, java database connection) is a Java API for executing SQL statements.

表中所包含的主键信息pk,为private变量,是主关键字PrimaryKey。主键属性描述如表2所示,ArrayList<String>表示一个参数为字符类型的别表结构。The primary key information pk contained in the table is a private variable, which is the primary key PrimaryKey. The primary key attribute description is shown in Table 2, and ArrayList<String> represents an additional table structure whose parameter is character type.

表2主键属性信息Table 2 primary key attribute information

Figure BDA00003624896300051
Figure BDA00003624896300051

表中所包含的外键信息fk,为private变量,是其它表的主关键字PrimaryKey。外键的属性描述如表3所示:The foreign key information fk contained in the table is a private variable, which is the PrimaryKey of other tables. The attribute description of the foreign key is shown in Table 3:

表3外键属性信息Table 3 foreign key attribute information

名称name 访问权限access permission 数据类型type of data 描述describe pkTableSchemapkTableSchema privateprivate StringString 外键参照的主键所在表的模式名The schema name of the table where the primary key referenced by the foreign key resides pkTableNamepkTableName privateprivate StringString 外键参照的主键所在表的表名称The table name of the table where the primary key referenced by the foreign key resides pkColNamespkColNames privateprivate ArrayList<String>ArrayList<String> 外键参照的主键组成列的名称The names of the primary key constituent columns referenced by the foreign key pkNamepkName privateprivate StringString 外键参照的主键名称The primary key name of the foreign key reference fkTableSchemafkTableSchema privateprivate StringString 外键所在表的模式名The schema name of the table where the foreign key resides fkTableNamefkTableName privateprivate StringString 外键所在表的表名The table name of the table where the foreign key resides fkColNamesfkColNames privateprivate StringString 外键组成列的名称The names of the columns that make up the foreign key fkNamefkName privateprivate StringString 外键的名称the name of the foreign key updataRuleupdataRule privateprivate shortshort 主键更新时的操作Actions when the primary key is updated deleteRuledeleteRule privateprivate shortshort 主键删除时的操作Operation when the primary key is deleted

short表示短整型的数据类型。short represents the data type of short integer.

表中所有的索引信息indexList,为private变量,用数组ArrayList<Index>来记录索引信息。索引属性的描述如表4所示。All the index information indexList in the table is a private variable, and the array ArrayList<Index> is used to record the index information. The description of index attributes is shown in Table 4.

表4索引属性描述Table 4 Index attribute description

Figure BDA00003624896300052
Figure BDA00003624896300052

步骤3.2:将获得的Table对象进行相应的格式转换;具体格式转换方法是:根据源数据库与目标数据库之间字段的映射关系,将Table对象转换为目标数据库的表。Step 3.2: Perform corresponding format conversion on the obtained Table object; the specific format conversion method is: convert the Table object into a table of the target database according to the field mapping relationship between the source database and the target database.

源数据库与目标数据库之间字段的映射关系用XML文件描述,XML文件存储在数据结构Hashmap中。The mapping relationship between the fields between the source database and the target database is described by XML files, and the XML files are stored in the data structure Hashmap.

如图3所示,采用HashMap来存储描述映射关系的XML文件,每个XML文件仅用于描述两个特定数据库之间字段的映射关系。HashMap具有属性值KEY和VALUE,KEY值中存储的是字符串,用于标识进行字段映射的两个数据库,例如KEY的值为DB2TOOracle,表示进行字段映射的两数据库为DB2与Oracle。VALUE值存储的是XML文件的保存位置。As shown in Figure 3, HashMap is used to store XML files describing the mapping relationship, and each XML file is only used to describe the mapping relationship between fields between two specific databases. HashMap has attribute values KEY and VALUE, and the KEY value stores a string, which is used to identify two databases for field mapping. For example, the value of KEY is DB2TOOracle, indicating that the two databases for field mapping are DB2 and Oracle. The VALUE value stores the save location of the XML file.

其中常用数据库系统IBM DB2、Oracle、Sybase、SQL Server、Informix以及IBM ContentManager的常用字段映射表如下所示:Among them, the common field mapping tables of common database systems IBM DB2, Oracle, Sybase, SQL Server, Informix and IBM ContentManager are as follows:

Figure BDA00003624896300061
Figure BDA00003624896300061

Figure BDA00003624896300071
Figure BDA00003624896300071

每两种数据库的字段的映射关系用一个XML文件所描述,在对Table对象进行转换时,首先,从HashMap中,根据标识数据库的字符串找到对应的XML文件,然后,根据XML文件,将Table中的字段转换为目标数据库所对应的字段,最后得到目标数据库的表。当需要加入新的数据库的字段对应关系时,用XML文件描述字段的对应关系,并在HashMap中添加相应的KEY和VALUE值。The mapping relationship between the fields of each two databases is described by an XML file. When converting the Table object, first, from the HashMap, find the corresponding XML file according to the string identifying the database, and then, according to the XML file, convert the Table The fields in are converted to the fields corresponding to the target database, and finally the table of the target database is obtained. When it is necessary to add the field correspondence of the new database, use the XML file to describe the field correspondence, and add the corresponding KEY and VALUE values in the HashMap.

步骤3.3:将转换后的信息传递给SQLEngine,根据封装了目标数据库的信息的DesDatabase对象,来构建相应的SQL语句;SQLEngine可以针对特定的数据库生成相应的SQL语句。所生成的SQL语句用于实现将源数据库的数据插入目标数据库中,包括insert语句、create语句、update语句等等。Step 3.3: Pass the converted information to SQLEngine, and construct corresponding SQL statements according to the DesDatabase object that encapsulates the information of the target database; SQLEngine can generate corresponding SQL statements for a specific database. The generated SQL statement is used to insert the data of the source database into the target database, including insert statement, create statement, update statement and so on.

步骤3.4:将SQL语句封装成数据包,传递给目标数据库位于的平台。Step 3.4: Encapsulate the SQL statement into a data packet and deliver it to the platform where the target database is located.

如图4所示,为封装的数据包的结构,使用的数据包由数据包头和数据体组成,省略了数据包尾,如此简化不仅让整个数据包的结构显得更加简单,同时,传输需要的流量更小,封装/解析的工作要更为简易化,编码实现也要更加简单。As shown in Figure 4, it is the structure of the encapsulated data packet. The data packet used is composed of a data packet header and a data body, and the data packet tail is omitted. This simplification not only makes the structure of the entire data packet simpler, but also requires transmission. The traffic is smaller, the work of encapsulation/parsing is simpler, and the coding implementation is also simpler.

数据包头是整个数据包的描述,包括4个字节的包起始标志,4个字节的协议版本号,2个字节的包大小,4个字节的CRC(Cyclic Redundancy Check,循环冗余校验)验证码。数据体部分则为需要传输到目标数据库所在平台的SQL语句。The data packet header is a description of the entire data packet, including a 4-byte packet start flag, a 4-byte protocol version number, a 2-byte packet size, and a 4-byte CRC (Cyclic Redundancy Check, cyclic redundancy check). I check) verification code. The data body part is an SQL statement that needs to be transmitted to the platform where the target database is located.

步骤3.5:在目标平台上执行SQL语句,将源数据库的数据插入目标数据库中,完成数据迁移。Step 3.5: Execute the SQL statement on the target platform, insert the data of the source database into the target database, and complete the data migration.

整个数据迁移的过程,是按照基本表结构(包含是否为空、缺省值)、索引、主键、自动增长、数据信息的顺序进行迁移的。待所有的数据表迁移完成后,再进行外键的迁移。The entire process of data migration is performed in the order of basic table structure (including whether it is empty, default value), index, primary key, automatic growth, and data information. After the migration of all data tables is completed, the migration of foreign keys is performed.

如图5所示,为本发明提供的数据跨平台迁移装置的结构示意图。数据跨平台迁移装置包括如下模块:源数据信息模块1、目标数据信息模块2、转换模块3、SQLEngine4、数据包封装、传输及解析模块5、以及SQL语句执行模块6。As shown in FIG. 5 , it is a schematic structural diagram of a data cross-platform migration device provided by the present invention. The data cross-platform migration device includes the following modules: source data information module 1, target data information module 2, conversion module 3, SQLEngine4, data packet encapsulation, transmission and analysis module 5, and SQL statement execution module 6.

源数据信息模块1,也称为SrcDatabase模块,用于将源数据平台的相关信息创建为SrcDatabase对象。The source data information module 1, also called the SrcDatabase module, is used to create the relevant information of the source data platform as a SrcDatabase object.

目标数据信息模块2,也成为DesDatabase模块,用于将目标数据平台的相关信息创建为DesDatabase对象。The target data information module 2, also called the DesDatabase module, is used to create the relevant information of the target data platform as a DesDatabase object.

SrcDatabase对象和DesDatabase对象包含的信息有:数据库类型、数据库所在主机的IP地址、数据库端口号、用户名、密码和数据库名称等信息。The information contained in the SrcDatabase object and DesDatabase object includes: database type, IP address of the host where the database is located, database port number, user name, password and database name and other information.

转换模块3,也成为Transfer模块,用于根据SrcDatabase对象从源数据库获取一个数据表,从数据表中提取数据构建对应的Table对象,再根据DesDatabase对象,利用源数据库与目标数据库之间字段的映射关系,将Table对象转换为符合目标数据库格式的表。Conversion module 3, also known as Transfer module, is used to obtain a data table from the source database according to the SrcDatabase object, extract data from the data table to construct the corresponding Table object, and then use the field mapping between the source database and the target database according to the DesDatabase object Relationship, convert the Table object into a table that conforms to the format of the target database.

SQLEngine4是一个引擎,用于根据DesDatabase对象,生成相应的SQL语句。SQLEngine4 is an engine used to generate corresponding SQL statements according to the DesDatabase object.

数据包封装、传输及解析模块5用于将构建的SQL语句封装成数据包,并传输至目标数据库系统所在的平台,并在目标数据库所在的平台上对数据包进行解析,最后将解析得到的SQL语句交给SQL语句执行模块6。The data packet encapsulation, transmission and analysis module 5 is used to encapsulate the constructed SQL statement into a data packet, and transmit it to the platform where the target database system is located, and analyze the data packet on the platform where the target database is located, and finally analyze the obtained The SQL statement is handed over to the SQL statement execution module 6 .

SQL语句执行模块6用于SQL语句的执行,将源数据库的数据插入目标数据库中。The SQL statement execution module 6 is used for executing the SQL statement, and inserting the data of the source database into the target database.

下面通过运行实例说明本发明的数据跨平台迁移方法及装置的效果。The effect of the data cross-platform migration method and device of the present invention will be described below through running examples.

如图6所示,为数据迁移设置界面示意图。运行实例以数据从位于Windows操作系统之上的SQL server2008(源数据库)迁移至位于Linux操作系统之上的MySQL(目标数据库)为例,设置的迁移设置界面,用于设置源数据库和目的数据库的信息,如下图所示。点击“开始迁移”按钮后,开始对源数据库进行数据、索引、表和表结构的迁移。As shown in Figure 6, it is a schematic diagram of the interface for data migration settings. The running example takes the migration of data from SQL server2008 (source database) on the Windows operating system to MySQL (the target database) on the Linux operating system as an example. The migration setting interface is used to set the source database and destination database information, as shown in the figure below. After clicking the "Start Migration" button, the migration of data, indexes, tables and table structures to the source database will start.

接下来,来验证一下数据迁移的正确性和完整性。Next, let's verify the correctness and completeness of the data migration.

原始SQL server2008数据库equipment数据库中若干个表,每个表均有主键、字段自动增长等属性,表格中数据,索引信息。There are several tables in the equipment database of the original SQL server2008 database. Each table has attributes such as primary key and field automatic growth, data in the table, and index information.

(1)表:如图7所示为源数据库的表。将数据迁移至MySQL中,数据库equipment的表如图8所示。(1) Table: as shown in Figure 7, it is the table of the source database. Migrate the data to MySQL, and the table of the database equipment is shown in Figure 8.

(2)表结构:(2) Table structure:

源数据库中asset的表结构,如图9所示。asset表中的索引信息所图10所示,索引为assetname。The table structure of the asset in the source database is shown in Figure 9. The index information in the asset table is shown in Figure 10, and the index is assetname.

迁移至MySQL中asset表的表结构,如图11所示。图11中assetname的key属性中MUL即为该表的索引信息。Migrate to the table structure of the asset table in MySQL, as shown in Figure 11. The MUL in the key attribute of assetname in Figure 11 is the index information of the table.

源数据库中users的表结构,如图12所示。The table structure of users in the source database is shown in Figure 12.

迁移至MySQL后,users表的表结构如图13所示。After migrating to MySQL, the table structure of the users table is shown in Figure 13.

(3)表中数据:(3) Data in the table:

源数据库中asset表格中,数据如图14所示。In the asset table in the source database, the data is shown in Figure 14.

迁移至MySQL中asset表中数据如图15所示。The data in the asset table migrated to MySQL is shown in Figure 15.

源数据库中Users表格的数据如图16所示。Figure 16 shows the data in the Users table in the source database.

迁移至MySQL后Users表中数据如图17所示。Figure 17 shows the data in the Users table after migrating to MySQL.

结果表明:The results show:

(1)采用本发明的技术方案,可以根据数据库表字段,自动进行相应的字段转换,从而避免了因数据库字段不同而可能引起的冲突;(1) By adopting the technical solution of the present invention, the corresponding field conversion can be automatically performed according to the database table fields, thereby avoiding possible conflicts caused by different database fields;

(2)通过对比源数据库和目标数据库中同一表中的内容,很好地验证了本发明的数据跨平台迁移方法及装置在数据迁移过程中具备完整性和准确性;(2) By comparing the contents of the same table in the source database and the target database, it is well verified that the data cross-platform migration method and device of the present invention have integrity and accuracy during the data migration process;

(3)本发明的数据跨平台迁移方法及装置可以自动、有效地识别数据库中的表的数量,并分别进行相应的迁移;(3) The data cross-platform migration method and device of the present invention can automatically and effectively identify the number of tables in the database, and perform corresponding migration respectively;

(4)本发明的数据跨平台迁移方法及装置可以在网络环境下,无需中间存储过程,实现数据在异构平台不同数据库之间的平滑无损迁移。(4) The cross-platform data migration method and device of the present invention can realize smooth and lossless migration of data between different databases on heterogeneous platforms in a network environment without an intermediate storage process.

Claims (7)

1. the cross-platform moving method of data, is characterized in that, comprises the steps:
Step 1: be a SrcDatabase object by the information creating of source data platform;
Step 2: be a DesDatabase object by the information creating of target data platform;
Step 3: call the execute method, complete whole transition process;
The SrcDatabase object of setting up and DesDatabase object all comprise following information: IP address, database side slogan, user name, password and the database-name of type of database, database place main frame;
Described execute method, comprise the steps:
Step 3.1: obtain a tables of data by the SrcDatabase object from the source database end, extract Table object corresponding to data construct from tables of data; The information that the Table object comprises has: all index informations in the foreign key information comprised in the major key information comprised in the structural information of the schema name of table, table name, all fields of table, table, table and table;
Step 3.2: according to the mapping relations of field between source database and target database, the Table object is converted to the table of target database;
Step 3.3: the information after conversion is passed to SQL statement and build engine SQLEngine, the DesDatabase object according to having encapsulated the target data library information, build corresponding SQL statement;
Step 3.4: SQL statement is packaged into to packet, passes to the platform that target database is positioned at;
Step 3.5: carry out SQL statement on target platform, the data of source database are inserted in target database, complete Data Migration.
2. the cross-platform moving method of data according to claim 1, is characterized in that, the Table object described in step 3.1, and the structural information of wherein showing all fields comprises following information:
Title Access rights Data type Describe colName private String The title of field dataType private int The value of Types in JDBC corresponding to the data type of field typeName private String The title of data type in the field data storehouse colSize private int Field size, corresponding precision during decimal, corresponding length during character decimalDigits private int Field means decimal digits while being decimal, otherwise is 0 nullable private boolean Whether field allows for sky colDef private String The default value of field autoincrement private boolean Whether automatic increase of field
Private means private variable, and String is character types, and int is integer, and boolean is Boolean type; JDBC means that the Java database connects;
The major key information comprised in table is the private variable, is primary key PrimaryKey; The major key attribute comprises following information:
Figure FDA00003624896200021
ArrayList<String > mean the other list structure that a parameter is character types;
The foreign key information comprised in table is the private variable, and the attribute of external key comprises following information:
Title Access rights Data type Describe pkTableSchema private String The schema name of the major key place table of foreign key reference pkTableName private String The table name of the major key place table of foreign key reference claims pkColNames private ArrayList<String> The major key of foreign key reference forms the title of row pkName private String The major key title of foreign key reference fkTableSchema private String The schema name of external key place table fkTableName private String The table name of external key place table fkColNames private String External key forms the title of row fkName private String The title of external key updataRule private short Operation when major key upgrades deleteRule private short Operation when major key is deleted
Short means the data type of short;
In table, all index informations are the private variable, with array ArrayList<Index > carry out recording indexes information, index attributes comprises following information:
Figure FDA00003624896200022
ASC is that ascending order is arranged, and DESC is descending sort.
3. the cross-platform moving method of data according to claim 1, it is characterized in that, the mapping relations of field between source database described in step 3.2 and target database, adopt the XML file to describe, the XML file is stored in data structure Hashmap, and HashMap has two property value: KEY and VALUE; The character string of KEY storage, for two databases of identification field mapping; What VALUE stored is the preservation position of XML file.
4. according to the cross-platform moving method of the described data of claim 1 or 3, it is characterized in that the packet that SQL statement is packaged into described in step 3.4 is comprised of data packet head and data volume; Data packet head comprises the bag beginning flag of 4 bytes, the protocol version of 4 bytes, the bag size of 2 bytes, and the cyclic redundancy identifying code of 4 bytes; Data volume is for being transferred to the SQL statement of target database place platform.
5. the cross-platform moving apparatus of data, is characterized in that, comprises as lower module: SDI module, target data information module, modular converter, SQLEngine, packet encapsulation, transmission and parsing module, and SQL statement execution module;
It is a SrcDatabase object by the information creating of source data platform that described SDI module is used for; It is a DesDatabase object by the information creating of target data platform that described target data information module is used for; Described SrcDatabase object and DesDatabase object all comprise following information: IP address, database side slogan, user name, password and the database-name of type of database, database place main frame;
Described modular converter is for obtaining a tables of data according to the SrcDatabase object from source database, extract Table object corresponding to data construct from tables of data, again according to the DesDatabase object, utilize the mapping relations of field between source database and target database, the Table object is converted to the table that meets the target data library format;
Described SQLEngine, for according to the DesDatabase object, builds corresponding SQL statement;
Described packet encapsulation, transmission and parsing module are for being packaged into packet by the SQL statement of structure, and transfer to the platform at target database place, and on the platform at target database place, packet is resolved, the SQL statement that parsing is obtained is given the SQL statement execution module;
Described SQL statement execution module, for carrying out SQL statement, inserts the data of source database in target database.
6. the cross-platform moving apparatus of data according to claim 5, it is characterized in that, the mapping relations of field between the source database that described modular converter utilizes and target database, adopt the XML file to describe, the XML file is stored in data structure Hashmap, and HashMap has two property value: KEY and VALUE; The character string of KEY storage, for two databases of identification field mapping; What VALUE stored is the preservation position of XML file.
7. according to the cross-platform moving apparatus of the described data of claim 5 or 6, it is characterized in that the packet that described packet encapsulation, transmission and parsing module are packaged into SQL statement is comprised of data packet head and data volume; Data packet head comprises the bag beginning flag of 4 bytes, the protocol version of 4 bytes, the bag size of 2 bytes, and the cyclic redundancy identifying code of 4 bytes; Data volume is for being transferred to the SQL statement of target database place platform.
CN201310338272.8A 2013-08-06 2013-08-06 A kind of data cross-platform migration method and device Expired - Fee Related CN103440273B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310338272.8A CN103440273B (en) 2013-08-06 2013-08-06 A kind of data cross-platform migration method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310338272.8A CN103440273B (en) 2013-08-06 2013-08-06 A kind of data cross-platform migration method and device

Publications (2)

Publication Number Publication Date
CN103440273A true CN103440273A (en) 2013-12-11
CN103440273B CN103440273B (en) 2016-08-24

Family

ID=49693965

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310338272.8A Expired - Fee Related CN103440273B (en) 2013-08-06 2013-08-06 A kind of data cross-platform migration method and device

Country Status (1)

Country Link
CN (1) CN103440273B (en)

Cited By (79)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104573122A (en) * 2015-02-09 2015-04-29 浪潮电子信息产业股份有限公司 Oracle database migration tool for migrating from AIX platform to K-UX platform
CN104699799A (en) * 2015-03-19 2015-06-10 神华集团有限责任公司 Data transmission method based on cross system
CN104834635A (en) * 2014-02-07 2015-08-12 中国移动通信集团广东有限公司 Data processing method and device
CN104915341A (en) * 2014-03-10 2015-09-16 中国科学院沈阳自动化研究所 Visual multi-database ETL integration method and system
CN105373599A (en) * 2015-10-28 2016-03-02 北京汇商融通信息技术有限公司 Data migration system based on various data storage platforms
CN105446809A (en) * 2015-11-30 2016-03-30 中国建设银行股份有限公司 Platform migration method and apparatus
CN105677738A (en) * 2015-12-28 2016-06-15 国云科技股份有限公司 A General Data Migration Method for Heterogeneous Relational Database
CN105740462A (en) * 2016-03-02 2016-07-06 上海新炬网络信息技术有限公司 Method for supporting data migration between different environments
CN105786932A (en) * 2014-12-26 2016-07-20 北大医疗信息技术有限公司 Query method and query apparatus for clinical business in medical system
CN105808675A (en) * 2016-03-01 2016-07-27 万达信息股份有限公司 Method for migrating from Informix database to KingbaseES
CN105956191A (en) * 2016-06-13 2016-09-21 浪潮(北京)电子信息产业有限公司 Data migration method and system
CN106156656A (en) * 2015-04-02 2016-11-23 腾讯科技(深圳)有限公司 The cross-system implementation method of data platform and data platform
CN106326466A (en) * 2016-08-31 2017-01-11 天津南大通用数据技术股份有限公司 Method and device for data exchange between heterogeneous tables
CN106599322A (en) * 2017-01-03 2017-04-26 北京网智天元科技股份有限公司 Data desensitization method and device
CN106649378A (en) * 2015-11-02 2017-05-10 北大方正集团有限公司 Data synchronizing method and device
CN106970921A (en) * 2016-01-14 2017-07-21 阿里巴巴集团控股有限公司 A kind of data migration method and device
CN106980679A (en) * 2017-03-30 2017-07-25 广东电网有限责任公司信息中心 A kind of information system Domestic Database migration remodeling method and device
CN107704568A (en) * 2017-09-29 2018-02-16 马上消费金融股份有限公司 Method and device for adding test data
CN107729570A (en) * 2017-11-20 2018-02-23 北京百度网讯科技有限公司 Data migration method and device for server
CN107958057A (en) * 2017-11-29 2018-04-24 苏宁云商集团股份有限公司 A kind of code generating method and device for being used for Data Migration in heterogeneous database
CN107992559A (en) * 2017-11-28 2018-05-04 江苏中威科技软件系统有限公司 The data migration method of multi-data source
CN108133007A (en) * 2017-12-22 2018-06-08 北京明朝万达科技股份有限公司 A kind of method of data synchronization and system
CN108241618A (en) * 2016-12-23 2018-07-03 航天信息股份有限公司 The method and device of database migration, the method and device of service routine migration
CN108491364A (en) * 2018-01-25 2018-09-04 苏州麦迪斯顿医疗科技股份有限公司 Medical treatment and nursing paperwork management system
CN108614869A (en) * 2018-04-17 2018-10-02 国家电网公司 A kind of method of historical data in different automation system platform synchronous migrations
CN108629035A (en) * 2018-05-10 2018-10-09 福建星瑞格软件有限公司 A kind of heterogeneous database application moving method based on JDBC agencies
CN108829867A (en) * 2018-06-22 2018-11-16 深圳云之家网络有限公司 A kind of intelligent acquisition method and system of big data
CN109002474A (en) * 2018-06-15 2018-12-14 北京信安世纪科技股份有限公司 A kind of data migration method and device
CN109284281A (en) * 2018-09-10 2019-01-29 北京百度网讯科技有限公司 Method and apparatus for migrating data
CN109299068A (en) * 2018-08-31 2019-02-01 安徽四创电子股份有限公司 From relevant database to the data flow migration method of HBase database
WO2019100638A1 (en) * 2017-11-22 2019-05-31 平安科技(深圳)有限公司 Data synchronization method, device and equipment, and storage medium
CN110069489A (en) * 2017-10-17 2019-07-30 株式会社日立制作所 A kind of information processing method, device, equipment and computer readable storage medium
CN110275914A (en) * 2019-04-26 2019-09-24 武汉众邦银行股份有限公司 Data migration method, device and the storage medium of integration across database
CN110297825A (en) * 2019-05-23 2019-10-01 中国平安人寿保险股份有限公司 Data processing method, device, computer equipment and storage medium
CN110489469A (en) * 2019-07-12 2019-11-22 中国平安人寿保险股份有限公司 Data transmission method, device, computer equipment and storage medium
CN110609826A (en) * 2019-09-20 2019-12-24 四川长虹电器股份有限公司 Data extraction method
CN110659255A (en) * 2018-06-28 2020-01-07 武汉斗鱼网络科技有限公司 Data migration method, device and system and storage medium
CN110674113A (en) * 2019-09-24 2020-01-10 咪咕音乐有限公司 One-key migration method and device for data, electronic equipment and storage medium
CN110688378A (en) * 2019-09-06 2020-01-14 中国平安财产保险股份有限公司 Migration method and system for database storage process
CN110740291A (en) * 2018-07-20 2020-01-31 视联动力信息技术股份有限公司 synchronization method and device based on video networking monitoring data
CN110825800A (en) * 2019-11-02 2020-02-21 国网甘肃省电力公司信息通信公司 Automatic transmission and verification method for service data in multipoint heterogeneous environment
CN110990482A (en) * 2019-11-11 2020-04-10 中国建设银行股份有限公司 Data synchronization method and device between asynchronous databases
CN111090638A (en) * 2019-12-25 2020-05-01 中国工商银行股份有限公司 Method and device for comparing transaction functions in database migration
CN111367894A (en) * 2020-03-31 2020-07-03 中国工商银行股份有限公司 Data comparison method and device based on database migration
CN111382140A (en) * 2018-12-29 2020-07-07 方正国际软件(北京)有限公司 Database sequence migration method and electronic equipment
CN111680024A (en) * 2020-06-11 2020-09-18 北京计算机技术及应用研究所 A Universal Heterogeneous Database Data Migration Method
CN111797070A (en) * 2019-04-08 2020-10-20 杭州晨熹多媒体科技有限公司 Ticket data processing method and device
CN112035461A (en) * 2020-06-17 2020-12-04 深圳市法本信息技术股份有限公司 Migration method and system for table data file of database
CN112328680A (en) * 2020-11-03 2021-02-05 大唐智联科技(杭州)有限公司 Electronic component data processing method, data interface and management system
CN112527815A (en) * 2020-12-02 2021-03-19 平安医疗健康管理股份有限公司 Script migration method and device for database, computer equipment and storage medium
CN112632050A (en) * 2020-12-24 2021-04-09 安徽航天信息科技有限公司 Data quality inspection method and device for cross-platform synchronous data and storage medium
CN112632177A (en) * 2020-12-31 2021-04-09 中国农业银行股份有限公司 Data loading operation generation method
CN112749151A (en) * 2021-01-13 2021-05-04 叮当快药科技集团有限公司 Data migration method and device among different types of databases and storage medium
CN112799859A (en) * 2021-01-26 2021-05-14 奇秦科技(北京)股份有限公司 Data interaction method of hybrid cloud
CN113032471A (en) * 2021-03-23 2021-06-25 广东电网有限责任公司 Database processing method and device, electronic equipment and medium
CN113127259A (en) * 2019-12-30 2021-07-16 北京懿医云科技有限公司 Data deployment method, device, equipment and storage medium
CN113254446A (en) * 2021-05-26 2021-08-13 深圳壹账通智能科技有限公司 Data fusion method and device, electronic equipment and medium
CN113656377A (en) * 2021-08-23 2021-11-16 深圳市万睿智能科技有限公司 Automatic matching method and device for data migration, computer equipment and storage medium
CN114036124A (en) * 2020-08-19 2022-02-11 北京市天元网络技术股份有限公司 Method and system for SQL cross-database migration and conversion
CN114138747A (en) * 2021-12-01 2022-03-04 浪潮云信息技术股份公司 A Database Migration System Based on Domestic CPU Environment
CN114168662A (en) * 2021-11-04 2022-03-11 国网河南省电力公司 A method and system for sorting out and analyzing distribution network problems based on multiple data sources
CN114281800A (en) * 2021-12-20 2022-04-05 广州广电运通金融电子股份有限公司 Heterogeneous data source data migration method, system, device and medium
CN114357052A (en) * 2022-01-12 2022-04-15 中国农业银行股份有限公司 Heterogeneous database object conversion method and device, electronic equipment and storage medium
CN114401278A (en) * 2021-12-27 2022-04-26 深圳软牛科技有限公司 Cross-platform transmission method, system, equipment and storage medium of Line App data
CN114398366A (en) * 2021-12-28 2022-04-26 重庆允成互联网科技有限公司 Heterogeneous data input method and data factory configuration system
CN114691643A (en) * 2022-03-03 2022-07-01 浪潮软件集团有限公司 A data migration method and system applied to localization substitution
CN114840496A (en) * 2022-05-30 2022-08-02 中国船舶重工集团海装风电股份有限公司 Cross-database data migration method and system for wind power plant
CN115563088A (en) * 2022-12-08 2023-01-03 广东睿江云计算股份有限公司 Data migration method and migration system for different types of databases
CN116340411A (en) * 2023-05-31 2023-06-27 物产中大数字科技有限公司 Data processing method and device
CN116383285A (en) * 2022-12-30 2023-07-04 西安天和防务技术股份有限公司 Data conversion method, device, computer equipment and medium
CN116680247A (en) * 2023-05-31 2023-09-01 山东浪潮科学研究院有限公司 A Method of Data Migration to Heterogeneous Database under Java
CN116719795A (en) * 2023-06-20 2023-09-08 中国建设银行股份有限公司 Data migration method, device, equipment, medium and product of heterogeneous database
CN116756116A (en) * 2023-05-30 2023-09-15 西安电子科技大学 Distributed database schema changing method based on delayed migration
CN116795815A (en) * 2022-12-30 2023-09-22 兴业银行股份有限公司 ETL processing demand migration and data verification method and system for cross-cluster version
CN117312272A (en) * 2023-09-27 2023-12-29 上海通联金融服务有限公司 Data migration solution method and system based on multi-source heterogeneous data scene
CN117349267A (en) * 2023-12-04 2024-01-05 和元达信息科技有限公司 Database migration processing method and system
CN117421303A (en) * 2023-11-01 2024-01-19 腾云悦智科技(深圳)有限责任公司 SQL migration adaptation automatic verification method based on large model
CN118260311A (en) * 2024-05-29 2024-06-28 天津南大通用数据技术股份有限公司 Distribution key selection method, system, equipment and product in database migration
CN118467505A (en) * 2024-05-27 2024-08-09 和创(北京)科技股份有限公司 Data migration method and device and electronic equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6996589B1 (en) * 2002-01-16 2006-02-07 Convergys Cmg Utah, Inc. System and method for database conversion
CN103019845A (en) * 2012-12-10 2013-04-03 中国人民解放军理工大学 Method for zero-modification migration of application program under heterogeneous database platforms

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6996589B1 (en) * 2002-01-16 2006-02-07 Convergys Cmg Utah, Inc. System and method for database conversion
CN103019845A (en) * 2012-12-10 2013-04-03 中国人民解放军理工大学 Method for zero-modification migration of application program under heterogeneous database platforms

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
陈健: "卓越亚马逊新旧系统的数据迁移研究", 《中国优秀硕士学位论文全文数据库 信息科技辑》, no. 3, 15 March 2012 (2012-03-15) *

Cited By (110)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104834635A (en) * 2014-02-07 2015-08-12 中国移动通信集团广东有限公司 Data processing method and device
CN104915341B (en) * 2014-03-10 2018-06-26 中国科学院沈阳自动化研究所 Visualize multiple database ETL integrated approaches and system
CN104915341A (en) * 2014-03-10 2015-09-16 中国科学院沈阳自动化研究所 Visual multi-database ETL integration method and system
CN105786932A (en) * 2014-12-26 2016-07-20 北大医疗信息技术有限公司 Query method and query apparatus for clinical business in medical system
CN105786932B (en) * 2014-12-26 2020-03-27 北大医疗信息技术有限公司 Query method and query device for clinical business in medical system
CN104573122A (en) * 2015-02-09 2015-04-29 浪潮电子信息产业股份有限公司 Oracle database migration tool for migrating from AIX platform to K-UX platform
CN104573122B (en) * 2015-02-09 2017-10-13 浪潮电子信息产业股份有限公司 Oracle database migration tool for migrating from AIX platform to K-UX platform
CN104699799A (en) * 2015-03-19 2015-06-10 神华集团有限责任公司 Data transmission method based on cross system
CN106156656A (en) * 2015-04-02 2016-11-23 腾讯科技(深圳)有限公司 The cross-system implementation method of data platform and data platform
CN105373599A (en) * 2015-10-28 2016-03-02 北京汇商融通信息技术有限公司 Data migration system based on various data storage platforms
WO2017071135A1 (en) * 2015-10-28 2017-05-04 北京汇商融通信息技术有限公司 Data migration system based on various data storage platforms
CN106649378B (en) * 2015-11-02 2020-07-14 北大方正集团有限公司 A data synchronization method and device
CN106649378A (en) * 2015-11-02 2017-05-10 北大方正集团有限公司 Data synchronizing method and device
CN105446809A (en) * 2015-11-30 2016-03-30 中国建设银行股份有限公司 Platform migration method and apparatus
CN105446809B (en) * 2015-11-30 2019-01-25 中国建设银行股份有限公司 Platform migration method and device
CN105677738A (en) * 2015-12-28 2016-06-15 国云科技股份有限公司 A General Data Migration Method for Heterogeneous Relational Database
CN106970921A (en) * 2016-01-14 2017-07-21 阿里巴巴集团控股有限公司 A kind of data migration method and device
CN105808675B (en) * 2016-03-01 2020-04-28 万达信息股份有限公司 Method for migrating from Informix database to Renminburgh database
CN105808675A (en) * 2016-03-01 2016-07-27 万达信息股份有限公司 Method for migrating from Informix database to KingbaseES
CN105740462A (en) * 2016-03-02 2016-07-06 上海新炬网络信息技术有限公司 Method for supporting data migration between different environments
CN105956191A (en) * 2016-06-13 2016-09-21 浪潮(北京)电子信息产业有限公司 Data migration method and system
CN106326466A (en) * 2016-08-31 2017-01-11 天津南大通用数据技术股份有限公司 Method and device for data exchange between heterogeneous tables
CN108241618B (en) * 2016-12-23 2022-05-17 航天信息股份有限公司 Database migration method and device and service program migration method and device
CN108241618A (en) * 2016-12-23 2018-07-03 航天信息股份有限公司 The method and device of database migration, the method and device of service routine migration
CN106599322A (en) * 2017-01-03 2017-04-26 北京网智天元科技股份有限公司 Data desensitization method and device
CN106980679A (en) * 2017-03-30 2017-07-25 广东电网有限责任公司信息中心 A kind of information system Domestic Database migration remodeling method and device
CN107704568B (en) * 2017-09-29 2019-03-26 马上消费金融股份有限公司 Method and device for adding test data
CN107704568A (en) * 2017-09-29 2018-02-16 马上消费金融股份有限公司 Method and device for adding test data
CN110069489A (en) * 2017-10-17 2019-07-30 株式会社日立制作所 A kind of information processing method, device, equipment and computer readable storage medium
CN110069489B (en) * 2017-10-17 2023-01-31 株式会社日立制作所 Information processing method, device and equipment and computer readable storage medium
CN107729570A (en) * 2017-11-20 2018-02-23 北京百度网讯科技有限公司 Data migration method and device for server
CN107729570B (en) * 2017-11-20 2021-06-08 北京百度网讯科技有限公司 Data migration method and apparatus for server
WO2019100638A1 (en) * 2017-11-22 2019-05-31 平安科技(深圳)有限公司 Data synchronization method, device and equipment, and storage medium
CN107992559A (en) * 2017-11-28 2018-05-04 江苏中威科技软件系统有限公司 The data migration method of multi-data source
CN107992559B (en) * 2017-11-28 2019-03-26 江苏中威科技软件系统有限公司 The data migration method of multi-data source
CN107958057A (en) * 2017-11-29 2018-04-24 苏宁云商集团股份有限公司 A kind of code generating method and device for being used for Data Migration in heterogeneous database
CN107958057B (en) * 2017-11-29 2022-04-05 苏宁易购集团股份有限公司 Code generation method and device for data migration in heterogeneous database
CN108133007A (en) * 2017-12-22 2018-06-08 北京明朝万达科技股份有限公司 A kind of method of data synchronization and system
CN108491364A (en) * 2018-01-25 2018-09-04 苏州麦迪斯顿医疗科技股份有限公司 Medical treatment and nursing paperwork management system
CN108614869A (en) * 2018-04-17 2018-10-02 国家电网公司 A kind of method of historical data in different automation system platform synchronous migrations
CN108629035A (en) * 2018-05-10 2018-10-09 福建星瑞格软件有限公司 A kind of heterogeneous database application moving method based on JDBC agencies
CN109002474A (en) * 2018-06-15 2018-12-14 北京信安世纪科技股份有限公司 A kind of data migration method and device
CN108829867A (en) * 2018-06-22 2018-11-16 深圳云之家网络有限公司 A kind of intelligent acquisition method and system of big data
CN110659255A (en) * 2018-06-28 2020-01-07 武汉斗鱼网络科技有限公司 Data migration method, device and system and storage medium
CN110740291A (en) * 2018-07-20 2020-01-31 视联动力信息技术股份有限公司 synchronization method and device based on video networking monitoring data
CN109299068A (en) * 2018-08-31 2019-02-01 安徽四创电子股份有限公司 From relevant database to the data flow migration method of HBase database
CN109284281A (en) * 2018-09-10 2019-01-29 北京百度网讯科技有限公司 Method and apparatus for migrating data
CN111382140B (en) * 2018-12-29 2023-06-16 方正国际软件(北京)有限公司 Database sequence migration method and electronic equipment
CN111382140A (en) * 2018-12-29 2020-07-07 方正国际软件(北京)有限公司 Database sequence migration method and electronic equipment
CN111797070A (en) * 2019-04-08 2020-10-20 杭州晨熹多媒体科技有限公司 Ticket data processing method and device
CN110275914A (en) * 2019-04-26 2019-09-24 武汉众邦银行股份有限公司 Data migration method, device and the storage medium of integration across database
CN110297825A (en) * 2019-05-23 2019-10-01 中国平安人寿保险股份有限公司 Data processing method, device, computer equipment and storage medium
CN110297825B (en) * 2019-05-23 2024-06-11 中国平安人寿保险股份有限公司 Data processing method, device, computer equipment and storage medium
CN110489469A (en) * 2019-07-12 2019-11-22 中国平安人寿保险股份有限公司 Data transmission method, device, computer equipment and storage medium
CN110489469B (en) * 2019-07-12 2023-12-08 中国平安人寿保险股份有限公司 Data transmission method, device, computer equipment and storage medium
CN110688378A (en) * 2019-09-06 2020-01-14 中国平安财产保险股份有限公司 Migration method and system for database storage process
CN110688378B (en) * 2019-09-06 2024-05-24 中国平安财产保险股份有限公司 Migration method and system for database storage process
CN110609826A (en) * 2019-09-20 2019-12-24 四川长虹电器股份有限公司 Data extraction method
CN110674113A (en) * 2019-09-24 2020-01-10 咪咕音乐有限公司 One-key migration method and device for data, electronic equipment and storage medium
CN110825800A (en) * 2019-11-02 2020-02-21 国网甘肃省电力公司信息通信公司 Automatic transmission and verification method for service data in multipoint heterogeneous environment
CN110990482A (en) * 2019-11-11 2020-04-10 中国建设银行股份有限公司 Data synchronization method and device between asynchronous databases
CN111090638B (en) * 2019-12-25 2023-07-04 中国工商银行股份有限公司 Comparison method and device for transaction functions in database migration
CN111090638A (en) * 2019-12-25 2020-05-01 中国工商银行股份有限公司 Method and device for comparing transaction functions in database migration
CN113127259A (en) * 2019-12-30 2021-07-16 北京懿医云科技有限公司 Data deployment method, device, equipment and storage medium
CN113127259B (en) * 2019-12-30 2024-03-12 北京懿医云科技有限公司 Data deployment method, device, equipment and storage medium
CN111367894B (en) * 2020-03-31 2023-08-18 中国工商银行股份有限公司 Data comparison method and device based on database migration
CN111367894A (en) * 2020-03-31 2020-07-03 中国工商银行股份有限公司 Data comparison method and device based on database migration
CN111680024A (en) * 2020-06-11 2020-09-18 北京计算机技术及应用研究所 A Universal Heterogeneous Database Data Migration Method
CN112035461B (en) * 2020-06-17 2024-05-10 深圳市法本信息技术股份有限公司 Method and system for migrating table data files of database
CN112035461A (en) * 2020-06-17 2020-12-04 深圳市法本信息技术股份有限公司 Migration method and system for table data file of database
CN114036124A (en) * 2020-08-19 2022-02-11 北京市天元网络技术股份有限公司 Method and system for SQL cross-database migration and conversion
CN112328680A (en) * 2020-11-03 2021-02-05 大唐智联科技(杭州)有限公司 Electronic component data processing method, data interface and management system
CN112527815A (en) * 2020-12-02 2021-03-19 平安医疗健康管理股份有限公司 Script migration method and device for database, computer equipment and storage medium
CN112632050A (en) * 2020-12-24 2021-04-09 安徽航天信息科技有限公司 Data quality inspection method and device for cross-platform synchronous data and storage medium
CN112632050B (en) * 2020-12-24 2023-09-05 安徽航天信息科技有限公司 Data quality inspection method, device and storage medium for cross-platform synchronous data
CN112632177A (en) * 2020-12-31 2021-04-09 中国农业银行股份有限公司 Data loading operation generation method
CN112749151A (en) * 2021-01-13 2021-05-04 叮当快药科技集团有限公司 Data migration method and device among different types of databases and storage medium
CN112799859A (en) * 2021-01-26 2021-05-14 奇秦科技(北京)股份有限公司 Data interaction method of hybrid cloud
CN112799859B (en) * 2021-01-26 2021-09-07 奇秦科技(北京)股份有限公司 Data interaction method of hybrid cloud
CN113032471A (en) * 2021-03-23 2021-06-25 广东电网有限责任公司 Database processing method and device, electronic equipment and medium
CN113032471B (en) * 2021-03-23 2024-08-23 广东电网有限责任公司 Database processing method and device, electronic equipment and medium
CN113254446B (en) * 2021-05-26 2023-05-12 深圳壹账通智能科技有限公司 Data fusion method, device, electronic equipment and medium
CN113254446A (en) * 2021-05-26 2021-08-13 深圳壹账通智能科技有限公司 Data fusion method and device, electronic equipment and medium
CN113656377B (en) * 2021-08-23 2025-04-18 深圳市万睿智能科技有限公司 Automatic matching method, device, computer equipment and storage medium for data migration
CN113656377A (en) * 2021-08-23 2021-11-16 深圳市万睿智能科技有限公司 Automatic matching method and device for data migration, computer equipment and storage medium
CN114168662A (en) * 2021-11-04 2022-03-11 国网河南省电力公司 A method and system for sorting out and analyzing distribution network problems based on multiple data sources
CN114138747A (en) * 2021-12-01 2022-03-04 浪潮云信息技术股份公司 A Database Migration System Based on Domestic CPU Environment
CN114281800A (en) * 2021-12-20 2022-04-05 广州广电运通金融电子股份有限公司 Heterogeneous data source data migration method, system, device and medium
CN114401278B (en) * 2021-12-27 2023-11-17 深圳软牛科技有限公司 Cross-platform transmission method, system, equipment and storage medium for Line App data
CN114401278A (en) * 2021-12-27 2022-04-26 深圳软牛科技有限公司 Cross-platform transmission method, system, equipment and storage medium of Line App data
CN114398366B (en) * 2021-12-28 2022-12-27 重庆允成互联网科技有限公司 Heterogeneous data input method and data factory configuration system
CN114398366A (en) * 2021-12-28 2022-04-26 重庆允成互联网科技有限公司 Heterogeneous data input method and data factory configuration system
CN114357052A (en) * 2022-01-12 2022-04-15 中国农业银行股份有限公司 Heterogeneous database object conversion method and device, electronic equipment and storage medium
CN114691643A (en) * 2022-03-03 2022-07-01 浪潮软件集团有限公司 A data migration method and system applied to localization substitution
CN114840496A (en) * 2022-05-30 2022-08-02 中国船舶重工集团海装风电股份有限公司 Cross-database data migration method and system for wind power plant
CN115563088A (en) * 2022-12-08 2023-01-03 广东睿江云计算股份有限公司 Data migration method and migration system for different types of databases
CN116383285A (en) * 2022-12-30 2023-07-04 西安天和防务技术股份有限公司 Data conversion method, device, computer equipment and medium
CN116795815A (en) * 2022-12-30 2023-09-22 兴业银行股份有限公司 ETL processing demand migration and data verification method and system for cross-cluster version
CN116756116B (en) * 2023-05-30 2025-07-29 西安电子科技大学 Distributed database mode changing method based on delay migration
CN116756116A (en) * 2023-05-30 2023-09-15 西安电子科技大学 Distributed database schema changing method based on delayed migration
CN116340411A (en) * 2023-05-31 2023-06-27 物产中大数字科技有限公司 Data processing method and device
CN116340411B (en) * 2023-05-31 2024-02-27 物产中大数字科技有限公司 Data processing method and device
CN116680247A (en) * 2023-05-31 2023-09-01 山东浪潮科学研究院有限公司 A Method of Data Migration to Heterogeneous Database under Java
CN116719795A (en) * 2023-06-20 2023-09-08 中国建设银行股份有限公司 Data migration method, device, equipment, medium and product of heterogeneous database
CN117312272A (en) * 2023-09-27 2023-12-29 上海通联金融服务有限公司 Data migration solution method and system based on multi-source heterogeneous data scene
CN117421303A (en) * 2023-11-01 2024-01-19 腾云悦智科技(深圳)有限责任公司 SQL migration adaptation automatic verification method based on large model
CN117349267B (en) * 2023-12-04 2024-03-22 和元达信息科技有限公司 Database migration processing method and system
CN117349267A (en) * 2023-12-04 2024-01-05 和元达信息科技有限公司 Database migration processing method and system
CN118467505A (en) * 2024-05-27 2024-08-09 和创(北京)科技股份有限公司 Data migration method and device and electronic equipment
CN118260311A (en) * 2024-05-29 2024-06-28 天津南大通用数据技术股份有限公司 Distribution key selection method, system, equipment and product in database migration

Also Published As

Publication number Publication date
CN103440273B (en) 2016-08-24

Similar Documents

Publication Publication Date Title
CN103440273B (en) A kind of data cross-platform migration method and device
US11385889B2 (en) Inferring intra package and module dependencies
CN113051268B (en) Data query method, data query device, electronic device and storage medium
US10657112B2 (en) External system integration into automated attribute discovery
CN106897322B (en) A kind of access method and device of database and file system
EP3066585B1 (en) Generic indexing for efficiently supporting ad-hoc query over hierarchically marked-up data
CN106407302B (en) Support the method of invoking the specific functions of the middleware database through simple SQL
US20210256079A1 (en) Adapting database queries for data virtualization over combined database stores
CN111966692A (en) Data processing method, medium, device and computing equipment for data warehouse
US20120124081A1 (en) Method and system for providing data migration
US10614126B2 (en) Textual query editor for graph databases that performs semantic analysis using extracted information
CN106547766A (en) A kind of data access method and device
CN106777101A (en) Data processing engine
KR20160130256A (en) Managing data profiling operations related to data type
US11409741B2 (en) Enabling data format specific database functionalities over existing data types by marking operand values
CN103559189A (en) Power simulation training resource management system and method based on metadata integration model
CN110688378A (en) Migration method and system for database storage process
CN115033816A (en) Rule engine-based business processing method, apparatus, computer equipment and medium
CN114925142A (en) Multi-type database compatibility method, device, equipment and medium of ORM framework
CN114691643A (en) A data migration method and system applied to localization substitution
CN108536736B (en) Real-time database building method and system for small satellite comprehensive test system
CN114860689A (en) A method and system for migrating data objects between heterogeneous databases
CN114675812A (en) A data table processing method, apparatus, computer equipment and storage medium
CN111159203A (en) Data association analysis method, platform, electronic device and storage medium
CN111723104A (en) Method, device and system for syntax analysis in a data processing system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB03 Change of inventor or designer information

Inventor after: Li Rui

Inventor after: Lv Jianghua

Inventor after: Ma Shilong

Inventor before: Li Rui

Inventor before: Ma Shilong

COR Change of bibliographic data
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160824

Termination date: 20200806