Data migration method and device

The invention provides a data migration method and device.The method comprises the steps that in response to a data migration request, a table building statement is obtained, and the table building statement is specifically a generation statement of a first data table stored in a source cluster; exe...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: XU JILAI, LUO XIAOFENG, LIN FAQUAN, JIANG FAN, ZHANG YANTANG
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The invention provides a data migration method and device.The method comprises the steps that in response to a data migration request, a table building statement is obtained, and the table building statement is specifically a generation statement of a first data table stored in a source cluster; executing the table building statement, and generating a second data table according to the data table format of the first data table; receiving a data migration instruction, wherein the data migration instruction is generated according to the configuration parameters in the migration scheduling table; and running the data migration instruction, and migrating the data in the first data table to the second data table. According to the technical scheme, the data migration efficiency is improved. 本公开提供了一种数据迁移方法及装置,该方法包括:响应于数据迁移请求,获取建表语句,所述建表语句具体为所述源集群中存储的第一数据表的生成语句;执行所述建表语句,按照所述第一数据表的数据表格式生成第二数据表;接收数据迁移指令,所述数据迁移指令按照迁移调度表中的配置参数生成;运行所述数据迁移指令,将所述第一数据表中的数据迁移至所述第二数据表。本公开的技术方案提高了数据迁移效率。