WO2020232884A1 - Data table migration method, apparatus, computer device and storage medium - Google Patents

Data table migration method, apparatus, computer device and storage medium Download PDF

Info

Publication number
WO2020232884A1
WO2020232884A1 PCT/CN2019/103170 CN2019103170W WO2020232884A1 WO 2020232884 A1 WO2020232884 A1 WO 2020232884A1 CN 2019103170 W CN2019103170 W CN 2019103170W WO 2020232884 A1 WO2020232884 A1 WO 2020232884A1
Authority
WO
WIPO (PCT)
Prior art keywords
migration
data table
database
data
template
Prior art date
Application number
PCT/CN2019/103170
Other languages
French (fr)
Chinese (zh)
Inventor
刘志涛
Original Assignee
平安科技(深圳)有限公司
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 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2020232884A1 publication Critical patent/WO2020232884A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/21Design, administration or maintenance of databases
    • G06F16/214Database migration support
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Definitions

  • This application relates to a data table migration method, device, computer equipment and storage medium.
  • Big data technology includes data storage, data analysis, and data mining. The basis of these technologies requires data collection.
  • the inventor realizes that when collecting data, it is necessary to perform batch data migration processing on the data in the database.
  • the traditional data migration process it is necessary to edit the code script for data migration, and perform data from the database according to the code script.
  • Migration to gather data to form a large database, so as to process the data in the large database. It takes time to edit the corresponding code scripts in the traditional data migration process, resulting in low migration efficiency of the data migration process in the database.
  • a data table migration method for example, a data table migration method, device, computer equipment, and storage medium are provided.
  • a data table migration method executed by a server, includes:
  • a data table migration device includes:
  • Request acquisition module used to acquire migration template configuration request
  • a template determining module configured to determine a preset script template corresponding to the migration task type in the migration template configuration request
  • a script generation module configured to add the configuration parameters in the migration template configuration request to the preset script template to generate a data migration script
  • the script execution module is used to execute the data migration script, and read the table filter conditions, the migration-out database address and the migration-in database address in the data migration script;
  • the data table screening module is used to screen data tables from the database corresponding to the move-out database address according to the table screening conditions;
  • the data table migration module is used to import the filtered data table into the database corresponding to the migration database address.
  • a computer device including a memory and one or more processors, the memory stores computer readable instructions, when the computer readable instructions are executed by the processor, the one or more processors execute The following steps: a computer device including a memory and a processor, the memory stores a computer-readable storage medium, and the processor implements the following steps when executing the computer-readable storage medium:
  • One or more non-volatile computer-readable storage media storing computer-readable instructions.
  • the one or more processors perform the following steps: Obtain the migration template configuration request;
  • Fig. 1 is an application scenario diagram of a data table migration method according to one or more embodiments
  • FIG. 2 is a schematic flowchart of a data table migration method according to one or more embodiments
  • FIG. 3 is a schematic flowchart of the steps of configuring a preset script module according to one or more embodiments
  • FIG. 4 is a schematic flowchart of the steps of constructing an externally accessed data table according to one or more embodiments
  • FIG. 5 is a schematic flowchart of the steps of importing a data table according to one or more embodiments
  • FIG. 6 is a schematic flowchart of the steps of converting the data table format according to one or more embodiments
  • FIG. 7 is a schematic flowchart of steps of configuring access permissions according to one or more embodiments.
  • Fig. 8 is a structural block diagram of a data table migration device according to one or more embodiments.
  • Fig. 9 is an internal structure diagram of a computer device according to one or more embodiments.
  • the data table migration method provided in this application can be applied to the application environment as shown in FIG. 1.
  • the terminal 102 communicates with the server 104 through the network through the network.
  • the terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices.
  • the server 104 may be implemented as an independent server or a server cluster composed of multiple servers.
  • a data table migration method is provided. Taking the method applied to the server in FIG. 1 as an example, the method includes the following steps:
  • the table migration page is displayed in the terminal.
  • the table migration page is provided with a table migration button and a configuration parameter input box.
  • the configuration input in the configuration parameter input box is obtained Parameters, generate a migration template configuration request according to the acquired configuration parameters, and send the migration template configuration request to the server.
  • the server receives the migration template configuration request sent by the terminal.
  • the migration template configuration request is a request for configuring a preset script template.
  • S204 Determine a preset script template corresponding to the migration task type in the migration template configuration request.
  • the server parses the received migration template configuration request, extracts the migration task type in the migration template configuration request by parsing, and queries the script template library for the preset script template corresponding to the migration task type.
  • the preset script template is a script template for parameters to be configured for migrating the data table.
  • the script template library includes multiple preset script templates, and each preset script template corresponds to a different migration task type.
  • the server after querying the preset script template, the server obtains the configuration parameters in the migration template configuration request, determines where the configuration parameters are to be added in the preset script template, adds the configuration parameters to the preset script template, and generates data migration script.
  • S208 Execute the data migration script, and read the table filtering conditions, the migration-out database address and the migration-in database address in the data migration script.
  • the server executes the data migration script to generate a data migration instruction, and runs the data migration script according to the data migration instruction.
  • Table filter conditions are the conditions that need to be met by the data tables that need to be migrated. Move out of the database address The address of the database to which the data table is moved, and the address of the database to which the data table is moved into.
  • the server accesses the data table in the database corresponding to the outgoing database address, detects whether the accessed data table meets the table filter condition, filters out the data table that meets the table filter condition from the database, and obtains the filtered data table.
  • the server accesses the database corresponding to the moved-in database address, obtains the remaining capacity in the database, and determines whether the capacity of storing the filtered data table is less than or equal to the remaining capacity in the database. When the capacity of storing the filtered data table is less than or equal to When there is remaining capacity in the database, import the filtered data table into the database corresponding to the migration database address, so as to store the filtered data table in the database corresponding to the migration database address.
  • the server creates a migration task queue according to the filtered data table, reads the migration task from the migration task queue, obtains the corresponding data table according to the migration task, and imports the obtained data table into the corresponding database address. Database.
  • the server creates migration tasks corresponding to each data table according to the filtered data tables, and constructs a preset number of migration task queues according to the migration tasks.
  • the server receives the migration task read request sent by the terminal, reads the migration task from the migration task queue according to the migration task read request, and returns the read migration task to the terminal.
  • S206 specifically includes a step of configuring a preset script module, and this step specifically includes the following content:
  • the server obtains data migration configuration data by analyzing the migration template configuration request, identifies configuration parameters in the data migration configuration data, and extracts the identified configuration parameters from the data migration configuration data.
  • the configuration parameters may specifically include the number of migration tasks to be created, the number of task queues, table filtering conditions, the address of the migration database, and the address of the migration database.
  • the configuration parameter has a corresponding parameter identifier.
  • the parameter identifier is an identifier used to identify the type or name of the configuration parameter.
  • the server determines the parameter identifier corresponding to the identified configuration parameter in the preset script template.
  • S306 Determine a parameter configuration location corresponding to the parameter identifier in the preset script template.
  • the parameter configuration position is the position where the configuration parameter is added in the preset script template.
  • the server queries the parameter identifier in the preset script template, determines the position of the queried parameter identifier in the preset script, and records the determined position as the parameter configuration position.
  • the server determines the configuration parameter corresponding to the parameter configuration position, and adds the configuration parameter to the corresponding parameter configuration position in the preset script module, so as to generate the data migration script according to the preset script module to which the configuration parameter is added.
  • the parameter identifier corresponding to the configuration parameter is obtained, the parameter configuration position corresponding to the parameter identifier in the preset script template, and the configuration parameter is added to the preset script template according to the parameter configuration position, ensuring that the preset script template The configuration accuracy of the configuration.
  • a step of constructing an external access data table is specifically included, and this step specifically includes the following content:
  • S402 Construct an external access data table according to the filtered data table.
  • the server copies the filtered data table to obtain the data replication table, and uses the data replication table as the externally accessed data table corresponding to the filtered data table.
  • the external access data table is a data table created to meet the requirement of normal access to the filtered data table sent from outside.
  • the server monitors the access request of the database corresponding to the out-of-database address, extracts the data access address from the monitored access request, and when it determines that the data table corresponding to the data access address is the filtered data table, obtains the filtered data table location.
  • the server Corresponding to the external data table address of the external access data table, modify the data access address in the access request to the obtained external data table address, so as to point the data access address in the access request to the external access data table.
  • the server monitors the migration process of the filtered data table, and when it detects that the filtered data table is migrated, it determines the external access data table corresponding to the filtered data table, and deletes the determined external access data table. .
  • an external access data table corresponding to the filtered data table is created, and when an access request corresponding to the filtered data table is monitored, the data access address in the access request is pointed to External access to the data table to ensure normal access to the filtered data table during the data migration process.
  • S212 specifically includes a step of importing a data table, and this step specifically includes the following content:
  • the server extracts the data table identifier corresponding to the filtered data table, queries the table dependency relationship corresponding to the data table identifier from the table dependency relationship stored in the database corresponding to the outgoing database address, and extracts the queried table dependency relationship.
  • the table dependency relationship between data table 1, data table 2 and data table 3 is that data table 3 depends on data table 2, and data table 2 depends on data table 1, and the data migration order is determined according to the table dependency.
  • the data migration sequence is data table 1 ⁇ data table 2 ⁇ data table 3
  • first import data table 1 from the database corresponding to the migration database address to the database corresponding to the migration database address
  • import data table 2 Import the database corresponding to the migration database address from the database corresponding to the migration database address
  • import the data table 3 from the database corresponding to the migration database address into the database corresponding to the migration database address to complete the data table 1, data table 2 and 3 data table migration.
  • the table dependency relationship between the filtered data tables is determined, the data table migration order is determined according to the table dependency relationship, and the filtered data tables are imported into the database corresponding to the migration database address according to the data table migration order to ensure the data After the table migration is completed, the migrated data table can be accessed normally based on the table dependency, thereby improving the accuracy of the data table migration.
  • S212 specifically includes a step of converting the data table format, and this step specifically includes the following content:
  • S602 Determine the data format in the database corresponding to the address of the migrated database.
  • the server generates data format detection information according to the migration-in database address, and sends the data format detection information to the database corresponding to the migration-in database address to determine the data format in the database.
  • the data format is the format of the data table stored in the database.
  • S604 Perform format conversion on the filtered data table according to the determined data format to obtain a data table in the converted format.
  • the server obtains the data format of the filtered data table, and compares the data format of the filtered data table with the data format in the database corresponding to the moved-in database address. If the data format is inconsistent, the filtered data table is compared The data format is converted, and the filtered data table is converted into the data format in the database corresponding to the moved into the database address, and the data table in the converted format is obtained.
  • S606 Store the converted data table in the database corresponding to the migration-in database address.
  • the server establishes a communication channel with the database corresponding to the migrated database address, and sends the converted data table to the database corresponding to the migrated database address for storage through the communication channel.
  • the server determines the data format in the database corresponding to the database address after determining the data table migration sequence according to the table dependency, and performs format conversion on the filtered data table according to the determined data format to obtain the conversion According to the data table migration sequence, the converted data table is stored in the database corresponding to the migration database address.
  • the data format of the filtered data table is converted to the data format in the database corresponding to the migrated database address, which further ensures the compatibility of the database with the migrated data table.
  • the data table that is moved in can be processed and accessed normally.
  • a step of configuring access permissions is further included, and this step specifically includes the following content:
  • S702 Obtain access authority information corresponding to the filtered data table from the database corresponding to the move-out database address.
  • the server statically generates an access permission acquisition request corresponding to the data table address, sends the access permission acquisition request to the database corresponding to the outgoing database address, and obtains the access permission corresponding to the filtered data table queried by the database according to the access permission acquisition request information.
  • the server imports the filtered data table into the database corresponding to the migration database address, it obtains the migration data table address corresponding to the imported data table corresponding to the filtered data table, and transfers the filtered data table
  • the outgoing data table address is stored correspondingly to the incoming data table address.
  • the server configures the access rights for the moved-in data table address according to the moved-in data table address corresponding to the moved-out data table address of the filtered data table, and configures the access right information corresponding to the filtered data table among the obtained access right information information.
  • the filtered data table is imported into the database corresponding to the address of the migrated data table, according to the access authority information of the filtered data table, the data imported in the database corresponding to the imported data address
  • the table is configured with access authority information to ensure access control to the migrated data table and ensure the security of the migrated data table.
  • a data table migration device 800 which includes: a request acquisition module 802, a template determination module 804, a script generation module 806, a script execution module 808, and a data table screening module 810 And the data table is moved into module 812, where:
  • the request obtaining module 802 is used to obtain a migration template configuration request.
  • the template determination module 804 is configured to determine the preset script template corresponding to the migration task type in the migration template configuration request.
  • the script generation module 806 is used to add the configuration parameters in the migration template configuration request to the preset script template to generate a data migration script.
  • the script execution module 808 is used to execute the data migration script, and read the table filtering conditions, the migration-out database address and the migration-in database address in the data migration script.
  • the data table filtering module 810 is used to filter data tables from the database corresponding to the move-out database address according to the table filtering conditions.
  • the data table migration module 812 is used for importing the filtered data table into the database corresponding to the migration database address.
  • the script generation module 806 is also used to obtain the configuration parameters in the migration template configuration request; determine the parameter identifier corresponding to the configuration parameter; determine the parameter configuration location corresponding to the parameter identifier in the preset script template; configure according to the parameter The location adds the acquired configuration parameters to the preset script module.
  • the data table migration device 800 further includes a data table monitoring module.
  • the data table monitoring module is used to construct an external access data table according to the filtered data table; when the access request corresponding to the filtered data table is monitored, the data access address in the access request points to the external access data table; when monitoring When the filtered data table is migrated, delete the external access data table.
  • the data table migration module 812 is also used to determine the table dependency between the filtered data tables; determine the data table migration order according to the table dependency; and select the filtered data tables according to the data table migration order Import the database corresponding to the moved-in database address.
  • the data table migration module 812 is also used to determine the data format in the database corresponding to the database address to be migrated; format the filtered data table according to the determined data format to obtain the data table in the converted format ; Store the converted data table to the database corresponding to the migration database address.
  • the data table migration device 800 further includes a permission configuration module.
  • the authority configuration module is used to obtain the access authority information corresponding to the filtered data table from the database corresponding to the migration database address; according to the acquired access authority information, configure the access authority for the data in the database corresponding to the migration database address information.
  • Each module in the above-mentioned data table migration device can be implemented in whole or in part by software, hardware, and a combination thereof.
  • the foregoing modules may be embedded in the form of hardware or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the foregoing modules.
  • a computer device is provided.
  • the computer device may be a server, and its internal structure diagram may be as shown in FIG. 9.
  • the computer equipment includes a processor, a memory, a network interface and a database connected through a system bus.
  • the processor of the computer device is used to provide calculation and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system, a computer-readable storage medium, and a database.
  • the internal memory provides an environment for the operation of the operating system in the non-volatile storage medium and the computer-readable storage medium.
  • the database of the computer equipment is used to store data tables.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection.
  • the computer-readable storage medium implements a data table migration method when executed by the processor.
  • FIG. 9 is only a block diagram of part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied.
  • the specific computer device may Including more or less parts than shown in the figure, or combining some parts, or having a different part arrangement.
  • a computer device includes a memory and one or more processors.
  • the memory stores computer-readable instructions.
  • the one or more processors perform the following steps :
  • Obtain the migration template configuration request ; determine the preset script template corresponding to the migration task type in the migration template configuration request; add the configuration parameters in the migration template configuration request to the preset script template to generate the data migration script; execute the data migration script and read The table screening conditions, the move-out database address and the move-in database address in the data migration script; filter data tables from the database corresponding to the move-out database address according to the table filter conditions; and import the filtered data tables into the move-in database address The corresponding database.
  • the configuration parameters in the migration template configuration request are added to the preset script template
  • generating the data migration script includes: obtaining the configuration parameters in the migration template configuration request; determining the parameter identifier corresponding to the configuration parameter; The parameter configuration position corresponding to the parameter identifier is determined in the script template; and the obtained configuration parameter is added to the preset script module according to the parameter configuration position.
  • the processor after filtering the data tables from the database corresponding to the out-of-database address according to the table filtering conditions, the processor further implements the following steps when executing the computer-readable storage medium: constructing an external access data table according to the filtered data tables ; When the access request corresponding to the filtered data table is monitored, the data access address in the access request is pointed to the external access data table; and when the migration of the filtered data table is monitored, the external access data table is deleted.
  • importing the filtered data tables into the database corresponding to the migration database address includes: determining the table dependency relationship between the filtered data tables; determining the data table migration sequence according to the table dependency; and according to the data table The migration sequence imports the filtered data table into the database corresponding to the migration database address.
  • importing the filtered data table into the database corresponding to the moved-in database address includes: determining the data format in the database corresponding to the moved-in database address; and performing format conversion on the filtered data table according to the determined data format , Obtain the data table in the converted format; and store the data table in the converted format in the database corresponding to the migration-in database address.
  • the processor after importing the filtered data table into the database corresponding to the migrated database address, the processor also implements the following steps when executing the computer-readable storage medium: obtain the filtered data from the database corresponding to the migrated database address The access authority information corresponding to the data table of the data table; and according to the obtained access authority information, the access authority information is configured for the data in the database corresponding to the moved-in database address.
  • One or more non-volatile computer-readable storage media storing computer-readable instructions.
  • the one or more processors execute the following steps:
  • Obtain the migration template configuration request ; determine the preset script template corresponding to the migration task type in the migration template configuration request; add the configuration parameters in the migration template configuration request to the preset script template to generate the data migration script; execute the data migration script and read The table screening conditions, the move-out database address and the move-in database address in the data migration script; filter data tables from the database corresponding to the move-out database address according to the table filter conditions; and import the filtered data tables into the move-in database address The corresponding database.
  • the configuration parameters in the migration template configuration request are added to the preset script template
  • generating the data migration script includes: obtaining the configuration parameters in the migration template configuration request; determining the parameter identifier corresponding to the configuration parameter; and It is assumed that the parameter configuration position corresponding to the parameter identifier is determined in the script template; the obtained configuration parameters are added to the preset script module according to the parameter configuration position.
  • the computer-readable storage medium after filtering the data tables from the database corresponding to the outgoing database address according to the table filtering conditions, the computer-readable storage medium further implements the following steps when being executed by the processor: constructing external access data according to the filtered data tables Table; when the access request corresponding to the filtered data table is monitored, the data access address in the access request is pointed to the external access data table; and when the migration of the filtered data table is monitored, the external access data table is deleted.
  • importing the filtered data tables into the database corresponding to the migration database address includes: determining the table dependency relationship between the filtered data tables; determining the data table migration sequence according to the table dependency; and according to the data table The migration sequence imports the filtered data table into the database corresponding to the migration database address.
  • importing the filtered data table into the database corresponding to the inbound database address includes: determining the data format in the database corresponding to the inbound database address; performing format conversion on the filtered data table according to the determined data format, Obtain the converted format data table; and store the converted format data table in the database corresponding to the migration-in database address.
  • the computer-readable storage medium further implements the following steps when being executed by the processor: obtain the filtered data from the database corresponding to the migrated database address Access authority information corresponding to the obtained data table; and according to the obtained access authority information, configure the access authority information for the data in the database corresponding to the moved-in database address.
  • Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM) or external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

Abstract

A data table migration method, comprising: acquiring a migration template configuration request; determining a preset script template corresponding to the migration task type in the migration template configuration request; adding configuration parameters in the migration template configuration request to the preset script template, and generating a data migration script; executing the data migration script, and reading a table screening condition, an outward migration database address, and an inward migration database address in the data migration script; according to the table screening condition, screening out a data table from a database corresponding to the outward migration database address; and importing the screened data table into a database corresponding to the inward migration database address.

Description

数据表迁移方法、装置、计算机设备和存储介质Data table migration method, device, computer equipment and storage medium
相关申请的交叉引用Cross references to related applications
本申请要求于2019年5月20日提交中国专利局,申请号为2019104195035,申请名称为“数据表迁移方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on May 20, 2019, the application number is 2019104195035, and the application name is "Data sheet migration method, device, computer equipment and storage medium", the entire content of which is by reference Incorporated in this application.
技术领域Technical field
本申请涉及一种数据表迁移方法、装置、计算机设备和存储介质。This application relates to a data table migration method, device, computer equipment and storage medium.
背景技术Background technique
随着计算机技术和互联网技术的发展,出现了大数据技术,大数据技术包括数据存储、数据分析和数据挖掘等多种技术,这些技术的基础都需要通过将数据进行汇集。With the development of computer technology and Internet technology, big data technology has emerged. Big data technology includes data storage, data analysis, and data mining. The basis of these technologies requires data collection.
然而,发明人意识到,在汇集数据时,需要对数据库中的数据进行批量数据的迁移处理,在传统的数据迁移过程中,需要编辑用于数据迁移的代码脚本,根据代码脚本从数据库进行数据迁移,以对数据汇集形成大数据库,从而对大数据库中的数据进行处理。传统的数据迁移过程编辑相应的代码脚本比较耗费时间,导致数据库中数据迁移的过程迁移效率较低。However, the inventor realizes that when collecting data, it is necessary to perform batch data migration processing on the data in the database. In the traditional data migration process, it is necessary to edit the code script for data migration, and perform data from the database according to the code script. Migration to gather data to form a large database, so as to process the data in the large database. It takes time to edit the corresponding code scripts in the traditional data migration process, resulting in low migration efficiency of the data migration process in the database.
发明内容Summary of the invention
根据本申请公开的各种实施例,提供一种数据表迁移方法、装置、计算机设备和存储介质。According to various embodiments disclosed in the present application, a data table migration method, device, computer equipment, and storage medium are provided.
一种数据表迁移方法,由服务器执行,包括:A data table migration method, executed by a server, includes:
获取迁移模板配置请求;Obtain the migration template configuration request;
确定所述迁移模板配置请求中迁移任务类型对应的预设脚本模板;Determining the preset script template corresponding to the migration task type in the migration template configuration request;
将所述迁移模板配置请求中的配置参数添加到所述预设脚本模板,生成数据迁移脚本;Adding the configuration parameters in the migration template configuration request to the preset script template to generate a data migration script;
执行所述数据迁移脚本,读取所述数据迁移脚本中的表筛选条件、迁出数据库地址和迁入数据库地址;Execute the data migration script, and read the table filter conditions, the migration-out database address and the migration-in database address in the data migration script;
根据所述表筛选条件从所述迁出数据库地址对应的数据库中筛选数据表;及Filter data tables from the database corresponding to the move-out database address according to the table filtering conditions; and
将筛选到的数据表导入所述迁入数据库地址对应的数据库。Import the filtered data table into the database corresponding to the migration-in database address.
一种数据表迁移装置,包括:A data table migration device includes:
请求获取模块,用于获取迁移模板配置请求;Request acquisition module, used to acquire migration template configuration request;
模板确定模块,用于确定所述迁移模板配置请求中迁移任务类型对应的预设脚本模板;A template determining module, configured to determine a preset script template corresponding to the migration task type in the migration template configuration request;
脚本生成模块,用于将所述迁移模板配置请求中的配置参数添加到所述预设脚本模板,生成数据迁移脚本;A script generation module, configured to add the configuration parameters in the migration template configuration request to the preset script template to generate a data migration script;
脚本执行模块,用于执行所述数据迁移脚本,读取所述数据迁移脚本中的表筛选条件、迁出数据库地址和迁入数据库地址;The script execution module is used to execute the data migration script, and read the table filter conditions, the migration-out database address and the migration-in database address in the data migration script;
数据表筛选模块,用于根据所述表筛选条件从所述迁出数据库地址对应的数据库中筛选数据表;及The data table screening module is used to screen data tables from the database corresponding to the move-out database address according to the table screening conditions; and
数据表迁入模块,用于将筛选到的数据表导入所述迁入数据库地址对应的数据库。The data table migration module is used to import the filtered data table into the database corresponding to the migration database address.
一种计算机设备,包括存储器和一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述一个或多个处理器执行以下步骤:一种计算机设备,包括存储器和处理器,所述存储器存储有计算机可读存储介质,所述处理器执行所述计算机可读存储介质时实现以下步骤:A computer device, including a memory and one or more processors, the memory stores computer readable instructions, when the computer readable instructions are executed by the processor, the one or more processors execute The following steps: a computer device including a memory and a processor, the memory stores a computer-readable storage medium, and the processor implements the following steps when executing the computer-readable storage medium:
获取迁移模板配置请求;Obtain the migration template configuration request;
确定所述迁移模板配置请求中迁移任务类型对应的预设脚本模板;Determining the preset script template corresponding to the migration task type in the migration template configuration request;
将所述迁移模板配置请求中的配置参数添加到所述预设脚本模板,生成数据迁移脚本;Adding the configuration parameters in the migration template configuration request to the preset script template to generate a data migration script;
执行所述数据迁移脚本,读取所述数据迁移脚本中的表筛选条件、迁出数据库地址和迁入数据库地址;Execute the data migration script, and read the table filter conditions, the migration-out database address and the migration-in database address in the data migration script;
根据所述表筛选条件从所述迁出数据库地址对应的数据库中筛选数据表;及Filter data tables from the database corresponding to the move-out database address according to the table filtering conditions; and
将筛选到的数据表导入所述迁入数据库地址对应的数据库。Import the filtered data table into the database corresponding to the migration-in database address.
一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:获取迁移模板配置请求;One or more non-volatile computer-readable storage media storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors perform the following steps: Obtain the migration template configuration request;
确定所述迁移模板配置请求中迁移任务类型对应的预设脚本模板;Determining the preset script template corresponding to the migration task type in the migration template configuration request;
将所述迁移模板配置请求中的配置参数添加到所述预设脚本模板,生成数据迁移脚本;Adding the configuration parameters in the migration template configuration request to the preset script template to generate a data migration script;
执行所述数据迁移脚本,读取所述数据迁移脚本中的表筛选条件、迁出数据库地址和迁入数据库地址;Execute the data migration script, and read the table filter conditions, the migration-out database address and the migration-in database address in the data migration script;
根据所述表筛选条件从所述迁出数据库地址对应的数据库中筛选数据表;及Filter data tables from the database corresponding to the move-out database address according to the table filtering conditions; and
将筛选到的数据表导入所述迁入数据库地址对应的数据库。Import the filtered data table into the database corresponding to the migration-in database address.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征和优点将从说明书、附图以及权利要求书变得明显。The details of one or more embodiments of the application are set forth in the following drawings and description. Other features and advantages of this application will become apparent from the description, drawings and claims.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will briefly introduce the drawings needed in the embodiments. Obviously, the drawings in the following description are only some embodiments of the present application. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative work.
图1为根据一个或多个实施例中数据表迁移方法的应用场景图;Fig. 1 is an application scenario diagram of a data table migration method according to one or more embodiments;
图2为根据一个或多个实施例中数据表迁移方法的流程示意图;2 is a schematic flowchart of a data table migration method according to one or more embodiments;
图3为根据一个或多个实施例中配置预设脚本模块的步骤的流程示意图;FIG. 3 is a schematic flowchart of the steps of configuring a preset script module according to one or more embodiments;
图4为根据一个或多个实施例中构建外部访问数据表的步骤的流程示意图;FIG. 4 is a schematic flowchart of the steps of constructing an externally accessed data table according to one or more embodiments;
图5为根据一个或多个实施例中导入数据表的步骤的流程示意图;FIG. 5 is a schematic flowchart of the steps of importing a data table according to one or more embodiments;
图6为根据一个或多个实施例中转换数据表格式的步骤的流程示意图;FIG. 6 is a schematic flowchart of the steps of converting the data table format according to one or more embodiments;
图7为根据一个或多个实施例中配置访问权限的步骤的流程示意图;FIG. 7 is a schematic flowchart of steps of configuring access permissions according to one or more embodiments;
图8为根据一个或多个实施例中数据表迁移装置的结构框图;Fig. 8 is a structural block diagram of a data table migration device according to one or more embodiments;
图9为根据一个或多个实施例中计算机设备的内部结构图。Fig. 9 is an internal structure diagram of a computer device according to one or more embodiments.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions, and advantages of this application clearer, the following further describes this application in detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the application, and not used to limit the application.
本申请提供的数据表迁移方法,可以应用于如图1所示的应用环境中。其中,终端102通过网络与服务器104通过网络进行通信。其中,终端102可以但不限于是各种个人计算机、笔记本电脑、智能手机、平板电脑和便携式可穿戴设备,服务器104可以用独立的服务器或者是多个服务器组成的服务器集群来实现。The data table migration method provided in this application can be applied to the application environment as shown in FIG. 1. Wherein, the terminal 102 communicates with the server 104 through the network through the network. The terminal 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. The server 104 may be implemented as an independent server or a server cluster composed of multiple servers.
在其中一个实施例中,如图2所示,提供了一种数据表迁移方法,以该方法应用于图1中的服务器为例进行说明,包括以下步骤:In one of the embodiments, as shown in FIG. 2, a data table migration method is provided. Taking the method applied to the server in FIG. 1 as an example, the method includes the following steps:
S202,获取迁移模板配置请求。S202: Obtain a migration template configuration request.
具体地,终端中展示表迁移页面,表迁移页面中设置有表迁移按钮和配置参数输入框,在检测到表迁移页面中的表迁移按钮的点击操作时,获取配置参数输入框中输入的配置参数,根据获取到的配置参数生成迁移模板配置请求,将迁移模板配置请求发送至服务器。服务器接收终端发送的迁移模板配置请求。迁移模板配置请求为用于对预设脚本模板进行配置的请求。Specifically, the table migration page is displayed in the terminal. The table migration page is provided with a table migration button and a configuration parameter input box. When a click operation of the table migration button on the table migration page is detected, the configuration input in the configuration parameter input box is obtained Parameters, generate a migration template configuration request according to the acquired configuration parameters, and send the migration template configuration request to the server. The server receives the migration template configuration request sent by the terminal. The migration template configuration request is a request for configuring a preset script template.
S204,确定迁移模板配置请求中迁移任务类型对应的预设脚本模板。S204: Determine a preset script template corresponding to the migration task type in the migration template configuration request.
具体地,服务器对接收到的迁移模板配置请求进行解析,通过解析提取迁移模板配置请求中的迁移任务类型,在脚本模板库中查询与迁移任务类型对应的预设脚本模板。预设脚本模板为用于对数据表进行迁移的待配置参数的脚本模板。脚本模板库中包括多个预设脚本模板,各预设脚本模板分别对应不同的迁移任务类型。Specifically, the server parses the received migration template configuration request, extracts the migration task type in the migration template configuration request by parsing, and queries the script template library for the preset script template corresponding to the migration task type. The preset script template is a script template for parameters to be configured for migrating the data table. The script template library includes multiple preset script templates, and each preset script template corresponds to a different migration task type.
S206,将迁移模板配置请求中的配置参数添加到预设脚本模板,生成数据迁移脚本。S206: Add the configuration parameters in the migration template configuration request to the preset script template, and generate a data migration script.
具体地,服务器在查询到预设脚本模板后,获取迁移模板配置请求中的配置参数,确定配置参数在预设脚本模板中的待添加位置,将配置参数添加到预设脚本模板,生成数据迁移脚本。Specifically, after querying the preset script template, the server obtains the configuration parameters in the migration template configuration request, determines where the configuration parameters are to be added in the preset script template, adds the configuration parameters to the preset script template, and generates data migration script.
S208,执行数据迁移脚本,读取所述数据迁移脚本中的表筛选条件、迁出数据库地址和迁入数据库地址。S208: Execute the data migration script, and read the table filtering conditions, the migration-out database address and the migration-in database address in the data migration script.
具体地,服务器生成数据迁移脚本后,执行数据迁移脚本生成数据迁移指令,根据数据迁移指令运行数据迁移脚本,在运行数据迁移脚本时,执行数据迁移脚本中的脚本语句,通 过执行脚本语句读取到数据迁移脚本中的表筛选条件、迁出数据库地址和迁入数据库地址。表筛选条件为需要进行数据表迁移的数据表所需满足的条件。迁出数据库地址数据表迁出的数据库的地址,迁入数据库地址数据表迁入的数据库的地址。Specifically, after the server generates the data migration script, it executes the data migration script to generate a data migration instruction, and runs the data migration script according to the data migration instruction. When running the data migration script, executes the script statements in the data migration script and reads by executing the script statements Go to the table filter conditions, check-out database address and check-in database address in the data migration script. Table filter conditions are the conditions that need to be met by the data tables that need to be migrated. Move out of the database address The address of the database to which the data table is moved, and the address of the database to which the data table is moved into.
S210,根据表筛选条件从迁出数据库地址对应的数据库中筛选数据表。S210: Filter data tables from the database corresponding to the move-out database address according to the table filtering conditions.
具体地,服务器对迁出数据库地址对应的数据库中的数据表进行访问,检测访问的数据表是否满足表筛选条件,从数据库中筛选出满足表筛选条件的数据表,得到筛选到的数据表。Specifically, the server accesses the data table in the database corresponding to the outgoing database address, detects whether the accessed data table meets the table filter condition, filters out the data table that meets the table filter condition from the database, and obtains the filtered data table.
S212,将筛选到的数据表导入迁入数据库地址对应的数据库。S212: Import the filtered data table into the database corresponding to the migrated database address.
具体地,服务器对迁入数据库地址对应的数据库进行访问,获取数据库中剩余容量,判断存储筛选到的数据表的容量是否小于等于数据库中的剩余容量,当存储筛选到的数据表的容量小于等于数据库中的剩余容量时,将筛选到的数据表导入迁入数据库地址对应的数据库,以将筛选到的数据表存储至迁入数据库地址对应的数据库。Specifically, the server accesses the database corresponding to the moved-in database address, obtains the remaining capacity in the database, and determines whether the capacity of storing the filtered data table is less than or equal to the remaining capacity in the database. When the capacity of storing the filtered data table is less than or equal to When there is remaining capacity in the database, import the filtered data table into the database corresponding to the migration database address, so as to store the filtered data table in the database corresponding to the migration database address.
在其中一个实施例中,服务器根据筛选到的数据表创建迁移任务队列,从迁移任务队列中读取迁移任务,根据迁移任务获取相应的数据表,将获取到的数据表导入迁入数据库地址对应的数据库。In one of the embodiments, the server creates a migration task queue according to the filtered data table, reads the migration task from the migration task queue, obtains the corresponding data table according to the migration task, and imports the obtained data table into the corresponding database address. Database.
在其中一个实施例中,服务器根据筛选到的数据表创建各数据表对应的迁移任务,根据迁移任务构建预设数量的迁移任务队列。服务器接收终端发送迁移任务读取请求,根据迁移任务读取请求从迁移任务队列中读取迁移任务,将读取到的迁移任务返回至终端。In one of the embodiments, the server creates migration tasks corresponding to each data table according to the filtered data tables, and constructs a preset number of migration task queues according to the migration tasks. The server receives the migration task read request sent by the terminal, reads the migration task from the migration task queue according to the migration task read request, and returns the read migration task to the terminal.
本实施例中,在进行数据表迁移的过程中,无需重新编写用于迁移数据表的数据迁移脚本,只需要根据迁移模板配置请求中的配置参数对预设脚本模板进行配置,生成数据迁移脚本,提高了数据迁移脚本的效率。直接根据生成的数据迁移脚本中表筛选条件、迁出数据库地址和迁入数据库地址进行数据表迁移,从而提高了数据表迁移的效率。In this embodiment, during the process of data table migration, there is no need to rewrite the data migration script for migrating the data table. It only needs to configure the preset script template according to the configuration parameters in the migration template configuration request to generate the data migration script. , Improve the efficiency of data migration scripts. The data table migration is performed directly according to the table filter conditions, the move-out database address and the move-in database address in the generated data migration script, thereby improving the efficiency of the data table migration.
如图3所示,在其中一个实施例中,S206具体包括配置预设脚本模块的步骤,该步骤具体包括以下内容:As shown in FIG. 3, in one of the embodiments, S206 specifically includes a step of configuring a preset script module, and this step specifically includes the following content:
S302,获取迁移模板配置请求中的配置参数。S302: Obtain configuration parameters in the migration template configuration request.
具体地,服务器通过对迁移模板配置请求进行解析,得到数据迁移配置数据,识别数据迁移配置数据中的配置参数,从数据迁移配置数据中提取识别到的配置参数。配置参数具体可以包括迁移任务创建数量、任务队列数量、表筛选条件、迁出数据库地址和迁入数据库地址。Specifically, the server obtains data migration configuration data by analyzing the migration template configuration request, identifies configuration parameters in the data migration configuration data, and extracts the identified configuration parameters from the data migration configuration data. The configuration parameters may specifically include the number of migration tasks to be created, the number of task queues, table filtering conditions, the address of the migration database, and the address of the migration database.
S304,确定配置参数对应的参数标识。S304: Determine a parameter identifier corresponding to the configuration parameter.
具体地,配置参数存在对应参数标识。参数标识为用于标识配置参数的类型或者名称的标识。服务器在预设脚本模板中确定与识别到的配置参数对应的参数标识。Specifically, the configuration parameter has a corresponding parameter identifier. The parameter identifier is an identifier used to identify the type or name of the configuration parameter. The server determines the parameter identifier corresponding to the identified configuration parameter in the preset script template.
S306,在预设脚本模板中确定参数标识对应的参数配置位置。S306: Determine a parameter configuration location corresponding to the parameter identifier in the preset script template.
具体地,参数配置位置为预设脚本模板中配置参数添加的位置。服务器在预设脚本模板中查询参数标识,确定查询到的参数标识在预设脚本中的位置,记录确定的位置作为参数配置位置。Specifically, the parameter configuration position is the position where the configuration parameter is added in the preset script template. The server queries the parameter identifier in the preset script template, determines the position of the queried parameter identifier in the preset script, and records the determined position as the parameter configuration position.
S308,按照参数配置位置将获取到的配置参数添加到预设脚本模块中。S308: Add the obtained configuration parameters to the preset script module according to the parameter configuration position.
具体地,服务器确定参数配置位置对应的配置参数,将配置参数添加到预设脚本模块中相应的参数配置位置,以便根据添加了配置参数的预设脚本模块生成数据迁移脚本。Specifically, the server determines the configuration parameter corresponding to the parameter configuration position, and adds the configuration parameter to the corresponding parameter configuration position in the preset script module, so as to generate the data migration script according to the preset script module to which the configuration parameter is added.
本实施例中,确定获取到配置参数对应的参数标识,在预设脚本模板中参数标识对应的参数配置位置,按照参数配置位置在预设脚本模板中添加配置参数,保证了对预设脚本模板进行配置的配置准确率。In this embodiment, it is determined that the parameter identifier corresponding to the configuration parameter is obtained, the parameter configuration position corresponding to the parameter identifier in the preset script template, and the configuration parameter is added to the preset script template according to the parameter configuration position, ensuring that the preset script template The configuration accuracy of the configuration.
如图4所示,在其中一个实施例中,S210之后具体还包括构建外部访问数据表的步骤,该步骤具体包括以下内容:As shown in FIG. 4, in one of the embodiments, after S210, a step of constructing an external access data table is specifically included, and this step specifically includes the following content:
S402,根据筛选到的数据表构建外部访问数据表。S402: Construct an external access data table according to the filtered data table.
具体地,服务器在筛选到数据表之后,对筛选到的数据表进行复制,得到数据复制表,以数据复制表作为与筛选到的数据表对应的外部访问数据表。外部访问数据表为满足外部发送的对筛选到的数据表进行正常访问所创建的数据表。Specifically, after filtering the data table, the server copies the filtered data table to obtain the data replication table, and uses the data replication table as the externally accessed data table corresponding to the filtered data table. The external access data table is a data table created to meet the requirement of normal access to the filtered data table sent from outside.
S404,当监听到对筛选到的数据表对应的访问请求时,将访问请求中的数据访问地址指向外部访问数据表。S404: When the access request corresponding to the filtered data table is monitored, point the data access address in the access request to the external access data table.
具体地,服务器对迁出数据库地址对应的数据库的访问请求进行监听,从监听到访问请求中提取数据访问地址,确定数据访问地址中对应的为筛选到的数据表时,获取筛选到数据表所对应的外部访问数据表的外部数据表地址,将访问请求中的数据访问地址修改为获取的外部数据表地址,以将访问请求中的数据访问地址指向外部访问数据表。Specifically, the server monitors the access request of the database corresponding to the out-of-database address, extracts the data access address from the monitored access request, and when it determines that the data table corresponding to the data access address is the filtered data table, obtains the filtered data table location. Corresponding to the external data table address of the external access data table, modify the data access address in the access request to the obtained external data table address, so as to point the data access address in the access request to the external access data table.
S406,当监听到筛选到的数据表迁移完毕时,删除外部访问数据表。S406: When it is monitored that the filtered data table is migrated, delete the externally accessed data table.
具体地,服务器对将筛选到的数据表的迁移过程进行监听,当监听到筛选到的数据表迁移完毕时,确定与筛选到的数据表对应的外部访问数据表,删除确定的外部访问数据表。Specifically, the server monitors the migration process of the filtered data table, and when it detects that the filtered data table is migrated, it determines the external access data table corresponding to the filtered data table, and deletes the determined external access data table. .
本实施例中,在数据表迁移过程中,创建与筛选到的数据表对应的外部访问数据表,当监听到对筛选到的数据表对应的访问请求时,将访问请求中的数据访问地址指向外部访问数据表,从而保证数据迁移过程中对筛选到的数据表的正常访问。In this embodiment, during the data table migration process, an external access data table corresponding to the filtered data table is created, and when an access request corresponding to the filtered data table is monitored, the data access address in the access request is pointed to External access to the data table to ensure normal access to the filtered data table during the data migration process.
如图5所示,在其中一个实施例中,S212具体包括导入数据表的步骤,该步骤具体包括以下内容:As shown in Figure 5, in one of the embodiments, S212 specifically includes a step of importing a data table, and this step specifically includes the following content:
S502,确定筛选到的数据表之间的表依赖关系。S502: Determine the table dependency between the filtered data tables.
具体地,服务器提取筛选到的数据表对应的数据表标识,从迁出数据库地址对应的数据库中存储的表依赖关系中查询与数据表标识对应的表依赖关系,提取查询到的表依赖关系。Specifically, the server extracts the data table identifier corresponding to the filtered data table, queries the table dependency relationship corresponding to the data table identifier from the table dependency relationship stored in the database corresponding to the outgoing database address, and extracts the queried table dependency relationship.
S504,根据表依赖关系确定数据表迁移顺序。S504: Determine the data table migration sequence according to the table dependency.
举例说明,数据表1、数据表2和数据表3之间的表依赖关系为数据表3依赖于数据表2,数据表2依赖于数据表1,根据表依赖关系确定数据迁移顺序为数据表1→数据表2→数据表3。For example, the table dependency relationship between data table 1, data table 2 and data table 3 is that data table 3 depends on data table 2, and data table 2 depends on data table 1, and the data migration order is determined according to the table dependency. 1→Data sheet 2→Data sheet 3.
S506,按照数据表迁移顺序将筛选到的数据表导入迁入数据库地址对应的数据库。S506: Import the filtered data tables into the database corresponding to the migrated database address according to the data table migration sequence.
举例说明,当数据迁移顺序为数据表1→数据表2→数据表3时,则先将数据表1从迁出数据库地址对应的数据库中导入迁移数据库地址对应的数据库中,再将数据表2从迁出数据库地址对应的数据库中导入迁移数据库地址对应的数据库中,最后再将数据表3从迁出数 据库地址对应的数据库中导入迁移数据库地址对应的数据库中,从而完成数据表1、数据表2和数据表3的数据表迁移。For example, when the data migration sequence is data table 1 → data table 2 → data table 3, first import data table 1 from the database corresponding to the migration database address to the database corresponding to the migration database address, and then import data table 2 Import the database corresponding to the migration database address from the database corresponding to the migration database address, and finally import the data table 3 from the database corresponding to the migration database address into the database corresponding to the migration database address to complete the data table 1, data table 2 and 3 data table migration.
本实施例中,确定筛选到的数据表之间的表依赖关系,根据表依赖关系确定数据表迁移顺序,按照数据表迁移顺序将筛选到的数据表导入迁入数据库地址对应的数据库,保证数据表迁移完成后,迁移的数据表可以基于表依赖关系被正常访问,从而提高数据表迁移的准确性。In this embodiment, the table dependency relationship between the filtered data tables is determined, the data table migration order is determined according to the table dependency relationship, and the filtered data tables are imported into the database corresponding to the migration database address according to the data table migration order to ensure the data After the table migration is completed, the migrated data table can be accessed normally based on the table dependency, thereby improving the accuracy of the data table migration.
如图6所示,在其中一个实施例中,S212具体包括转换数据表格式的步骤,该步骤具体包括以下内容:As shown in FIG. 6, in one of the embodiments, S212 specifically includes a step of converting the data table format, and this step specifically includes the following content:
S602,确定迁入数据库地址对应的数据库中的数据格式。S602: Determine the data format in the database corresponding to the address of the migrated database.
具体地,服务器根据迁入数据库地址生成数据格式检测信息,将数据格式检测信息发送至迁入数据库地址对应的数据库,确定数据库中的数据格式。数据格式为存储在数据库中数据表的格式。Specifically, the server generates data format detection information according to the migration-in database address, and sends the data format detection information to the database corresponding to the migration-in database address to determine the data format in the database. The data format is the format of the data table stored in the database.
S604,按照确定的数据格式对筛选到的数据表进行格式转换,得到转换格式的数据表。S604: Perform format conversion on the filtered data table according to the determined data format to obtain a data table in the converted format.
具体地,服务器获取筛选到的数据表的数据格式,将筛选到的数据表的数据格式与迁入数据库地址对应的数据库中的数据格式进行比较,若数据格式不一致,则对筛选到的数据表的数据格式进行转换,将筛选到的数据表转换为迁入数据库地址对应的数据库中的数据格式,得到转换格式的数据表。Specifically, the server obtains the data format of the filtered data table, and compares the data format of the filtered data table with the data format in the database corresponding to the moved-in database address. If the data format is inconsistent, the filtered data table is compared The data format is converted, and the filtered data table is converted into the data format in the database corresponding to the moved into the database address, and the data table in the converted format is obtained.
S606,将转换格式的数据表存储至迁入数据库地址对应的数据库。S606: Store the converted data table in the database corresponding to the migration-in database address.
具体地,服务器与迁入数据库地址对应的数据库建立通信通道,通过通信通道将转换格式的数据表,发送至迁入数据库地址对应的数据库进行存储。Specifically, the server establishes a communication channel with the database corresponding to the migrated database address, and sends the converted data table to the database corresponding to the migrated database address for storage through the communication channel.
在其中一个实施例中,服务器在根据表依赖关系确定数据表迁移顺序后,确定迁入数据库地址对应的数据库中的数据格式,按照确定的数据格式对筛选到的数据表进行格式转换,得到转换格式的数据表,按照数据表迁移顺序,将转换格式的数据表存储至所述迁入数据库地址对应的数据库。In one of the embodiments, the server determines the data format in the database corresponding to the database address after determining the data table migration sequence according to the table dependency, and performs format conversion on the filtered data table according to the determined data format to obtain the conversion According to the data table migration sequence, the converted data table is stored in the database corresponding to the migration database address.
本实施例中,在数据表迁移过程中,将筛选到的数据表的数据格式进行转换,转换为与迁入数据库地址对应的数据库中数据格式,进一步保证了数据库对迁入数据表的兼容,可以对迁入的数据表进行正常处理和访问。In this embodiment, in the process of data table migration, the data format of the filtered data table is converted to the data format in the database corresponding to the migrated database address, which further ensures the compatibility of the database with the migrated data table. The data table that is moved in can be processed and accessed normally.
如图7所示,在其中一个实施例中,S212之后还包括配置访问权限的步骤,该步骤具体包括以下内容:As shown in Figure 7, in one of the embodiments, after S212, a step of configuring access permissions is further included, and this step specifically includes the following content:
S702,从迁出数据库地址对应的数据库中,获取筛选到的数据表对应的访问权限信息。S702: Obtain access authority information corresponding to the filtered data table from the database corresponding to the move-out database address.
具体地,服务器静生成数据表地址对应的访问权限获取请求,将访问权限获取请求发送至迁出数据库地址对应的数据库,获取数据库根据访问权限获取请求查询到的与筛选到的数据表对应访问权限信息。Specifically, the server statically generates an access permission acquisition request corresponding to the data table address, sends the access permission acquisition request to the database corresponding to the outgoing database address, and obtains the access permission corresponding to the filtered data table queried by the database according to the access permission acquisition request information.
S704,按照获取到的访问权限信息,对迁入数据库地址对应的数据库中的数据配置访问权限信息。S704: According to the acquired access permission information, configure the access permission information for the data in the database corresponding to the moved-in database address.
具体地,服务器在将筛选到的数据表导入迁入数据库地址对应的数据库后,获取与筛选 到的数据表对应的导入的数据表对应的迁入数据表地址,将筛选到的数据表的迁出数据表地址与迁入数据表地址对应存储。服务器根据筛选到的数据表的迁出数据表地址对应的迁入数据表地址,将获取到的访问权限信息中与筛选到的数据表对应的访问权限信息,为迁入数据表地址配置访问权限信息。Specifically, after the server imports the filtered data table into the database corresponding to the migration database address, it obtains the migration data table address corresponding to the imported data table corresponding to the filtered data table, and transfers the filtered data table The outgoing data table address is stored correspondingly to the incoming data table address. The server configures the access rights for the moved-in data table address according to the moved-in data table address corresponding to the moved-out data table address of the filtered data table, and configures the access right information corresponding to the filtered data table among the obtained access right information information.
本实施例中,在将筛选到的数据表导入至迁入数据表地址对应的数据库中之后,按照筛选到的数据表的访问权限信息,对迁入数据地址对应的数据库中所迁入的数据表配置访问权限信息,从而保证对迁入的数据表进行访问控制,保证迁入的数据表的安全性。In this embodiment, after the filtered data table is imported into the database corresponding to the address of the migrated data table, according to the access authority information of the filtered data table, the data imported in the database corresponding to the imported data address The table is configured with access authority information to ensure access control to the migrated data table and ensure the security of the migrated data table.
应该理解的是,虽然图2-7的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-7中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowcharts of FIGS. 2-7 are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless specifically stated in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least part of the steps in Figures 2-7 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. These sub-steps or stages The execution order of is not necessarily performed sequentially, but may be performed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
在其中一个实施例中,如图8所示,提供了一种数据表迁移装置800,包括:请求获取模块802、模板确定模块804、脚本生成模块806、脚本执行模块808、数据表筛选模块810和数据表迁入模块812,其中:In one of the embodiments, as shown in FIG. 8, a data table migration device 800 is provided, which includes: a request acquisition module 802, a template determination module 804, a script generation module 806, a script execution module 808, and a data table screening module 810 And the data table is moved into module 812, where:
请求获取模块802,用于获取迁移模板配置请求。The request obtaining module 802 is used to obtain a migration template configuration request.
模板确定模块804,用于确定迁移模板配置请求中迁移任务类型对应的预设脚本模板。The template determination module 804 is configured to determine the preset script template corresponding to the migration task type in the migration template configuration request.
脚本生成模块806,用于将迁移模板配置请求中的配置参数添加到预设脚本模板,生成数据迁移脚本。The script generation module 806 is used to add the configuration parameters in the migration template configuration request to the preset script template to generate a data migration script.
脚本执行模块808,用于执行数据迁移脚本,读取所述数据迁移脚本中的表筛选条件、迁出数据库地址和迁入数据库地址。The script execution module 808 is used to execute the data migration script, and read the table filtering conditions, the migration-out database address and the migration-in database address in the data migration script.
数据表筛选模块810,用于根据表筛选条件从迁出数据库地址对应的数据库中筛选数据表。The data table filtering module 810 is used to filter data tables from the database corresponding to the move-out database address according to the table filtering conditions.
数据表迁入模块812,用于将筛选到的数据表导入迁入数据库地址对应的数据库。The data table migration module 812 is used for importing the filtered data table into the database corresponding to the migration database address.
在其中一个实施例中,脚本生成模块806还用于获取迁移模板配置请求中的配置参数;确定配置参数对应的参数标识;在预设脚本模板中确定参数标识对应的参数配置位置;按照参数配置位置将获取到的配置参数添加到预设脚本模块中。In one of the embodiments, the script generation module 806 is also used to obtain the configuration parameters in the migration template configuration request; determine the parameter identifier corresponding to the configuration parameter; determine the parameter configuration location corresponding to the parameter identifier in the preset script template; configure according to the parameter The location adds the acquired configuration parameters to the preset script module.
在其中一个实施例中,数据表迁移装置800还包括数据表监听模块。In one of the embodiments, the data table migration device 800 further includes a data table monitoring module.
数据表监听模块,用于根据筛选到的数据表构建外部访问数据表;当监听到对筛选到的数据表对应的访问请求时,将访问请求中的数据访问地址指向外部访问数据表;当监听到筛选到的数据表迁移完毕时,删除外部访问数据表。The data table monitoring module is used to construct an external access data table according to the filtered data table; when the access request corresponding to the filtered data table is monitored, the data access address in the access request points to the external access data table; when monitoring When the filtered data table is migrated, delete the external access data table.
在其中一个实施例中,数据表迁入模块812还用于确定筛选到的数据表之间的表依赖关系;根据表依赖关系确定数据表迁移顺序;按照数据表迁移顺序将筛选到的数据表导入迁入数据库地址对应的数据库。In one of the embodiments, the data table migration module 812 is also used to determine the table dependency between the filtered data tables; determine the data table migration order according to the table dependency; and select the filtered data tables according to the data table migration order Import the database corresponding to the moved-in database address.
在其中一个实施例中,数据表迁入模块812还用于确定迁入数据库地址对应的数据库中的数据格式;按照确定的数据格式对筛选到的数据表进行格式转换,得到转换格式的数据表;将转换格式的数据表存储至迁入数据库地址对应的数据库。In one of the embodiments, the data table migration module 812 is also used to determine the data format in the database corresponding to the database address to be migrated; format the filtered data table according to the determined data format to obtain the data table in the converted format ; Store the converted data table to the database corresponding to the migration database address.
在其中一个实施例中,数据表迁移装置800还包括权限配置模块。In one of the embodiments, the data table migration device 800 further includes a permission configuration module.
权限配置模块,用于从迁出数据库地址对应的数据库中,获取筛选到的数据表对应的访问权限信息;按照获取到的访问权限信息,对迁入数据库地址对应的数据库中的数据配置访问权限信息。The authority configuration module is used to obtain the access authority information corresponding to the filtered data table from the database corresponding to the migration database address; according to the acquired access authority information, configure the access authority for the data in the database corresponding to the migration database address information.
本实施例中,在进行数据表迁移的过程中,无需重新编写用于迁移数据表的数据迁移脚本,只需要根据迁移模板配置请求中的配置参数对预设脚本模板进行配置,生成数据迁移脚本,提高了数据迁移脚本的效率。直接根据生成的数据迁移脚本中表筛选条件、迁出数据库地址和迁入数据库地址进行数据表迁移,从而提高了数据表迁移的效率。In this embodiment, during the process of data table migration, there is no need to rewrite the data migration script for migrating the data table. It only needs to configure the preset script template according to the configuration parameters in the migration template configuration request to generate the data migration script. , Improve the efficiency of data migration scripts. The data table migration is performed directly according to the table filtering conditions, the move-out database address and the move-in database address in the generated data migration script, thereby improving the efficiency of the data table migration.
关于数据表迁移装置的具体限定可以参见上文中对于数据表迁移方法的限定,。上述数据表迁移装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific definition of the data table migration device, please refer to the above definition of the data table migration method. Each module in the above-mentioned data table migration device can be implemented in whole or in part by software, hardware, and a combination thereof. The foregoing modules may be embedded in the form of hardware or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the foregoing modules.
在其中一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图9所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。其中,该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机可读存储介质和数据库。该内存储器为非易失性存储介质中的操作系统和计算机可读存储介质的运行提供环境。该计算机设备的数据库用于存储数据表。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读存储介质被处理器执行时以实现一种数据表迁移方法。In one of the embodiments, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. 9. The computer equipment includes a processor, a memory, a network interface and a database connected through a system bus. Among them, the processor of the computer device is used to provide calculation and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer-readable storage medium, and a database. The internal memory provides an environment for the operation of the operating system in the non-volatile storage medium and the computer-readable storage medium. The database of the computer equipment is used to store data tables. The network interface of the computer device is used to communicate with an external terminal through a network connection. The computer-readable storage medium implements a data table migration method when executed by the processor.
本领域技术人员可以理解,图9中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 9 is only a block diagram of part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may Including more or less parts than shown in the figure, or combining some parts, or having a different part arrangement.
在一个实施例中,一种计算机设备,包括存储器和一个或多个处理器,存储器中储存有计算机可读指令,计算机可读指令被处理器执行时,使得一个或多个处理器执行以下步骤:提供了一种计算机设备,包括存储器和处理器,该存储器存储有计算机可读存储介质,该处理器执行计算机可读存储介质时实现以下步骤:In one embodiment, a computer device includes a memory and one or more processors. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the one or more processors perform the following steps : Provides a computer device, including a memory and a processor, the memory stores a computer-readable storage medium, and the processor implements the following steps when executing the computer-readable storage medium:
获取迁移模板配置请求;确定迁移模板配置请求中迁移任务类型对应的预设脚本模板;将迁移模板配置请求中的配置参数添加到预设脚本模板,生成数据迁移脚本;执行数据迁移脚本,读取所述数据迁移脚本中的表筛选条件、迁出数据库地址和迁入数据库地址;根据表筛选条件从迁出数据库地址对应的数据库中筛选数据表;及将筛选到的数据表导入迁入数据库地址对应的数据库。Obtain the migration template configuration request; determine the preset script template corresponding to the migration task type in the migration template configuration request; add the configuration parameters in the migration template configuration request to the preset script template to generate the data migration script; execute the data migration script and read The table screening conditions, the move-out database address and the move-in database address in the data migration script; filter data tables from the database corresponding to the move-out database address according to the table filter conditions; and import the filtered data tables into the move-in database address The corresponding database.
在其中一个实施例中,将迁移模板配置请求中的配置参数添加到预设脚本模板,生成数 据迁移脚本包括:获取迁移模板配置请求中的配置参数;确定配置参数对应的参数标识;在预设脚本模板中确定参数标识对应的参数配置位置;及按照参数配置位置将获取到的配置参数添加到预设脚本模块中。In one of the embodiments, the configuration parameters in the migration template configuration request are added to the preset script template, and generating the data migration script includes: obtaining the configuration parameters in the migration template configuration request; determining the parameter identifier corresponding to the configuration parameter; The parameter configuration position corresponding to the parameter identifier is determined in the script template; and the obtained configuration parameter is added to the preset script module according to the parameter configuration position.
在其中一个实施例中,根据表筛选条件从迁出数据库地址对应的数据库中筛选数据表之后,处理器执行计算机可读存储介质时还实现以下步骤:根据筛选到的数据表构建外部访问数据表;当监听到对筛选到的数据表对应的访问请求时,将访问请求中的数据访问地址指向外部访问数据表;及当监听到筛选到的数据表迁移完毕时,删除外部访问数据表。In one of the embodiments, after filtering the data tables from the database corresponding to the out-of-database address according to the table filtering conditions, the processor further implements the following steps when executing the computer-readable storage medium: constructing an external access data table according to the filtered data tables ; When the access request corresponding to the filtered data table is monitored, the data access address in the access request is pointed to the external access data table; and when the migration of the filtered data table is monitored, the external access data table is deleted.
在其中一个实施例中,将筛选到的数据表导入迁入数据库地址对应的数据库包括:确定筛选到的数据表之间的表依赖关系;根据表依赖关系确定数据表迁移顺序;及按照数据表迁移顺序将筛选到的数据表导入迁入数据库地址对应的数据库。In one of the embodiments, importing the filtered data tables into the database corresponding to the migration database address includes: determining the table dependency relationship between the filtered data tables; determining the data table migration sequence according to the table dependency; and according to the data table The migration sequence imports the filtered data table into the database corresponding to the migration database address.
在其中一个实施例中,将筛选到的数据表导入迁入数据库地址对应的数据库包括:确定迁入数据库地址对应的数据库中的数据格式;按照确定的数据格式对筛选到的数据表进行格式转换,得到转换格式的数据表;及将转换格式的数据表存储至迁入数据库地址对应的数据库。In one of the embodiments, importing the filtered data table into the database corresponding to the moved-in database address includes: determining the data format in the database corresponding to the moved-in database address; and performing format conversion on the filtered data table according to the determined data format , Obtain the data table in the converted format; and store the data table in the converted format in the database corresponding to the migration-in database address.
在其中一个实施例中,将筛选到的数据表导入迁入数据库地址对应的数据库之后,处理器执行计算机可读存储介质时还实现以下步骤:从迁出数据库地址对应的数据库中,获取筛选到的数据表对应的访问权限信息;及按照获取到的访问权限信息,对迁入数据库地址对应的数据库中的数据配置访问权限信息。In one of the embodiments, after importing the filtered data table into the database corresponding to the migrated database address, the processor also implements the following steps when executing the computer-readable storage medium: obtain the filtered data from the database corresponding to the migrated database address The access authority information corresponding to the data table of the data table; and according to the obtained access authority information, the access authority information is configured for the data in the database corresponding to the moved-in database address.
本实施例中,在进行数据表迁移的过程中,无需重新编写用于迁移数据表的数据迁移脚本,只需要根据迁移模板配置请求中的配置参数对预设脚本模板进行配置,生成数据迁移脚本,提高了数据迁移脚本的效率。直接根据生成的数据迁移脚本中表筛选条件、迁出数据库地址和迁入数据库地址进行数据表迁移,从而提高了数据表迁移的效率。In this embodiment, during the process of data table migration, there is no need to rewrite the data migration script for migrating the data table. It only needs to configure the preset script template according to the configuration parameters in the migration template configuration request to generate the data migration script. , Improve the efficiency of data migration scripts. The data table migration is performed directly according to the table filtering conditions, the move-out database address and the move-in database address in the generated data migration script, thereby improving the efficiency of the data table migration.
一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器执行以下步骤:One or more non-volatile computer-readable storage media storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors execute the following steps:
获取迁移模板配置请求;确定迁移模板配置请求中迁移任务类型对应的预设脚本模板;将迁移模板配置请求中的配置参数添加到预设脚本模板,生成数据迁移脚本;执行数据迁移脚本,读取所述数据迁移脚本中的表筛选条件、迁出数据库地址和迁入数据库地址;根据表筛选条件从迁出数据库地址对应的数据库中筛选数据表;及将筛选到的数据表导入迁入数据库地址对应的数据库。Obtain the migration template configuration request; determine the preset script template corresponding to the migration task type in the migration template configuration request; add the configuration parameters in the migration template configuration request to the preset script template to generate the data migration script; execute the data migration script and read The table screening conditions, the move-out database address and the move-in database address in the data migration script; filter data tables from the database corresponding to the move-out database address according to the table filter conditions; and import the filtered data tables into the move-in database address The corresponding database.
在其中一个实施例中,将迁移模板配置请求中的配置参数添加到预设脚本模板,生成数据迁移脚本包括:获取迁移模板配置请求中的配置参数;确定配置参数对应的参数标识;及在预设脚本模板中确定参数标识对应的参数配置位置;按照参数配置位置将获取到的配置参数添加到预设脚本模块中。In one of the embodiments, the configuration parameters in the migration template configuration request are added to the preset script template, and generating the data migration script includes: obtaining the configuration parameters in the migration template configuration request; determining the parameter identifier corresponding to the configuration parameter; and It is assumed that the parameter configuration position corresponding to the parameter identifier is determined in the script template; the obtained configuration parameters are added to the preset script module according to the parameter configuration position.
在其中一个实施例中,根据表筛选条件从迁出数据库地址对应的数据库中筛选数据表之后,计算机可读存储介质被处理器执行时还实现以下步骤:根据筛选到的数据表构建外部访 问数据表;当监听到对筛选到的数据表对应的访问请求时,将访问请求中的数据访问地址指向外部访问数据表;及当监听到筛选到的数据表迁移完毕时,删除外部访问数据表。In one of the embodiments, after filtering the data tables from the database corresponding to the outgoing database address according to the table filtering conditions, the computer-readable storage medium further implements the following steps when being executed by the processor: constructing external access data according to the filtered data tables Table; when the access request corresponding to the filtered data table is monitored, the data access address in the access request is pointed to the external access data table; and when the migration of the filtered data table is monitored, the external access data table is deleted.
在其中一个实施例中,将筛选到的数据表导入迁入数据库地址对应的数据库包括:确定筛选到的数据表之间的表依赖关系;根据表依赖关系确定数据表迁移顺序;及按照数据表迁移顺序将筛选到的数据表导入迁入数据库地址对应的数据库。In one of the embodiments, importing the filtered data tables into the database corresponding to the migration database address includes: determining the table dependency relationship between the filtered data tables; determining the data table migration sequence according to the table dependency; and according to the data table The migration sequence imports the filtered data table into the database corresponding to the migration database address.
在其中一个实施例中,将筛选到的数据表导入迁入数据库地址对应数据库包括:确定迁入数据库地址对应的数据库中的数据格式;按照确定的数据格式对筛选到的数据表进行格式转换,得到转换格式的数据表;及将转换格式的数据表存储至迁入数据库地址对应的数据库。In one of the embodiments, importing the filtered data table into the database corresponding to the inbound database address includes: determining the data format in the database corresponding to the inbound database address; performing format conversion on the filtered data table according to the determined data format, Obtain the converted format data table; and store the converted format data table in the database corresponding to the migration-in database address.
在其中一个实施例中,将筛选到的数据表导入迁入数据库地址对应的数据库之后,计算机可读存储介质被处理器执行时还实现以下步骤:从迁出数据库地址对应的数据库中,获取筛选到的数据表对应的访问权限信息;及按照获取到的访问权限信息,对迁入数据库地址对应的数据库中的数据配置访问权限信息。In one of the embodiments, after the filtered data table is imported into the database corresponding to the migrated database address, the computer-readable storage medium further implements the following steps when being executed by the processor: obtain the filtered data from the database corresponding to the migrated database address Access authority information corresponding to the obtained data table; and according to the obtained access authority information, configure the access authority information for the data in the database corresponding to the moved-in database address.
本实施例中,在进行数据表迁移的过程中,无需重新编写用于迁移数据表的数据迁移脚本,只需要根据迁移模板配置请求中的配置参数对预设脚本模板进行配置,生成数据迁移脚本,提高了数据迁移脚本的效率。直接根据生成的数据迁移脚本中表筛选条件、迁出数据库地址和迁入数据库地址进行数据表迁移,从而提高了数据表迁移的效率。In this embodiment, during the process of data table migration, there is no need to rewrite the data migration script for migrating the data table. It only needs to configure the preset script template according to the configuration parameters in the migration template configuration request to generate the data migration script. , Improve the efficiency of data migration scripts. The data table migration is performed directly according to the table filtering conditions, the move-out database address and the move-in database address in the generated data migration script, thereby improving the efficiency of the data table migration.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读存储介质来指令相关的硬件来完成,所述的计算机可读存储介质可存储于一非易失性计算机可读取存储介质中,该计算机可读存储介质在执行时,可包括如上述各方法的实施例的流程。其中,本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing relevant hardware through a computer-readable storage medium. The computer-readable storage medium may be stored in a non-volatile memory. In a computer-readable storage medium, when the computer-readable storage medium is executed, it may include the processes of the above-mentioned method embodiments. Wherein, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and/or volatile memory. Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not a limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain Channel (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, they should It is considered as the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation manners of the present application, and the description is relatively specific and detailed, but it should not be understood as a limitation on the scope of the invention patent. It should be pointed out that for those of ordinary skill in the art, without departing from the concept of this application, several modifications and improvements can be made, and these all fall within the protection scope of this application. Therefore, the scope of protection of the patent of this application shall be subject to the appended claims.

Claims (20)

  1. 一种数据表迁移方法,由服务器执行,包括:A data table migration method, executed by a server, includes:
    获取迁移模板配置请求;Obtain the migration template configuration request;
    确定所述迁移模板配置请求中迁移任务类型对应的预设脚本模板;Determining the preset script template corresponding to the migration task type in the migration template configuration request;
    将所述迁移模板配置请求中的配置参数添加到所述预设脚本模板,生成数据迁移脚本;Adding the configuration parameters in the migration template configuration request to the preset script template to generate a data migration script;
    执行所述数据迁移脚本,读取所述数据迁移脚本中的表筛选条件、迁出数据库地址和迁入数据库地址;Execute the data migration script, and read the table filter conditions, the migration-out database address and the migration-in database address in the data migration script;
    根据所述表筛选条件从所述迁出数据库地址对应的数据库中筛选数据表;及Filter data tables from the database corresponding to the move-out database address according to the table filtering conditions; and
    将筛选到的数据表导入所述迁入数据库地址对应的数据库。Import the filtered data table into the database corresponding to the migration-in database address.
  2. 根据权利要求1所述的方法,其特征在于,所述将所述迁移模板配置请求中的配置参数添加到所述预设脚本模板,生成数据迁移脚本包括:The method according to claim 1, wherein the adding the configuration parameters in the migration template configuration request to the preset script template, and generating the data migration script comprises:
    获取所述迁移模板配置请求中的配置参数;Acquiring the configuration parameters in the migration template configuration request;
    确定所述配置参数对应的参数标识;Determine the parameter identifier corresponding to the configuration parameter;
    在所述预设脚本模板中确定所述参数标识对应的参数配置位置;及Determining the parameter configuration location corresponding to the parameter identifier in the preset script template; and
    按照所述参数配置位置将获取到的配置参数添加到所述预设脚本模块中。Add the acquired configuration parameters to the preset script module according to the parameter configuration position.
  3. 根据权利要求1所述的方法,其特征在于,所述根据所述表筛选条件从所述迁出数据库地址对应的数据库中筛选数据表之后,还包括:The method according to claim 1, wherein after filtering data tables from the database corresponding to the outgoing database address according to the table filtering conditions, the method further comprises:
    根据筛选到的数据表构建外部访问数据表;Construct an external access data table based on the filtered data table;
    当监听到对所述筛选到的数据表对应的访问请求时,将所述访问请求中的数据访问地址指向所述外部访问数据表;及When an access request corresponding to the filtered data table is monitored, pointing the data access address in the access request to the external access data table; and
    当监听到所述筛选到的数据表迁移完毕时,删除所述外部访问数据表。When it is monitored that the filtered data table is migrated, the externally accessed data table is deleted.
  4. 根据权利要求1所述的方法,其特征在于,所述将筛选到的数据表导入所述迁入数据库地址对应的数据库包括:The method according to claim 1, wherein the importing the filtered data table into the database corresponding to the migration database address comprises:
    确定筛选到的数据表之间的表依赖关系;Determine the table dependency between the filtered data tables;
    根据所述表依赖关系确定数据表迁移顺序;及Determine the data table migration sequence according to the table dependency; and
    按照数据表迁移顺序将所述筛选到的数据表导入所述迁入数据库地址对应的数据库。Import the filtered data tables into the database corresponding to the moved-in database address according to the data table migration sequence.
  5. 根据权利要求1所述的方法,其特征在于,所述将筛选到的数据表导入所述迁入数据库地址对应的数据库包括:The method according to claim 1, wherein the importing the filtered data table into the database corresponding to the migration database address comprises:
    确定所述迁入数据库地址对应的数据库中的数据格式;Determine the data format in the database corresponding to the moved-in database address;
    按照确定的数据格式对筛选到的数据表进行格式转换,得到转换格式的数据表;及Perform format conversion on the filtered data table according to the determined data format to obtain a data table in the converted format; and
    将转换格式的数据表存储至所述迁入数据库地址对应的数据库。The data table in the converted format is stored in the database corresponding to the migration-in database address.
  6. 根据权利要求1-5中任意一项所述的方法,其特征在于,所述将筛选到的数据表导入所述迁入数据库地址对应的数据库之后,还包括:The method according to any one of claims 1-5, wherein after importing the filtered data table into the database corresponding to the migration database address, the method further comprises:
    从所述迁出数据库地址对应的数据库中,获取所述筛选到的数据表对应的访问权限信息;及Obtain the access authority information corresponding to the filtered data table from the database corresponding to the move-out database address; and
    按照获取到的访问权限信息,对所述迁入数据库地址对应的数据库中的数据配置访问权 限信息。According to the obtained access authority information, the access authority information is configured for the data in the database corresponding to the migration-in database address.
  7. 根据权利要求1所述的方法,其特征在于,所述确定所述迁移模板配置请求中迁移任务类型对应的预设脚本模板包括:The method according to claim 1, wherein the determining the preset script template corresponding to the migration task type in the migration template configuration request comprises:
    对所述迁移模板配置请求进行解析,得到所述迁移模板配置请求中的迁移任务类型;及Parse the migration template configuration request to obtain the migration task type in the migration template configuration request; and
    在脚本模板库中查询与所述迁移任务类型对应的预设脚本模板。Query the preset script template corresponding to the migration task type in the script template library.
  8. 根据权利要求1所述的方法,其特征在于,所述根据所述表筛选条件从所述迁出数据库地址对应的数据库中筛选数据表包括:The method according to claim 1, wherein the filtering data tables from the database corresponding to the move-out database address according to the table filtering conditions comprises:
    对所述迁出数据库地址对应的数据库中的数据表进行访问;Access the data table in the database corresponding to the address of the moved-out database;
    检测所访问的数据表是否满足表筛选条件;及Check whether the accessed data table meets the table filter conditions; and
    若满足筛选条件时,从所述数据库中筛选出满足所述表筛选条件的数据表。If the filter condition is met, the data table that meets the table filter condition is selected from the database.
  9. 根据权利要求1所述的方法,其特征在于,所述将筛选到的数据表导入所述迁入数据库地址对应的数据库包括:The method according to claim 1, wherein the importing the filtered data table into the database corresponding to the migration database address comprises:
    对所述迁入数据库地址对应的数据库进行访问,获取所述数据库的剩余容量;Access the database corresponding to the address of the migrated database to obtain the remaining capacity of the database;
    判断所筛选到的数据表的数据量是否小于或等于所述剩余容量;及Determine whether the data amount of the filtered data table is less than or equal to the remaining capacity; and
    若是,将所筛选到的数据表导入所述数据库。If yes, import the filtered data table into the database.
  10. 一种数据表迁移装置,其特征在于,所述装置包括:A data table migration device, characterized in that the device includes:
    请求获取模块,用于获取迁移模板配置请求;Request acquisition module, used to acquire migration template configuration request;
    模板确定模块,用于确定所述迁移模板配置请求中迁移任务类型对应的预设脚本模板;A template determining module, configured to determine a preset script template corresponding to the migration task type in the migration template configuration request;
    脚本生成模块,用于将所述迁移模板配置请求中的配置参数添加到所述预设脚本模板,生成数据迁移脚本;A script generation module, configured to add the configuration parameters in the migration template configuration request to the preset script template to generate a data migration script;
    脚本执行模块,用于执行所述数据迁移脚本,读取所述数据迁移脚本中的表筛选条件、迁出数据库地址和迁入数据库地址;The script execution module is used to execute the data migration script, and read the table filter conditions, the migration-out database address and the migration-in database address in the data migration script;
    数据表筛选模块,用于根据所述表筛选条件从所述迁出数据库地址对应的数据库中筛选数据表;及The data table screening module is used to screen data tables from the database corresponding to the move-out database address according to the table screening conditions; and
    数据表迁入模块,用于将筛选到的数据表导入所述迁入数据库地址对应的数据库。The data table migration module is used to import the filtered data table into the database corresponding to the migration database address.
  11. 根据权利要求10所述的装置,其特征在于,所述脚本生成模块还用于获取所述迁移模板配置请求中的配置参数;确定所述配置参数对应的参数标识;及在所述预设脚本模板中确定所述参数标识对应的参数配置位置;按照所述参数配置位置将获取到的配置参数添加到所述预设脚本模块中。The device according to claim 10, wherein the script generation module is further configured to obtain configuration parameters in the migration template configuration request; determine the parameter identifier corresponding to the configuration parameter; and set the parameter in the preset script The parameter configuration location corresponding to the parameter identifier is determined in the template; the obtained configuration parameter is added to the preset script module according to the parameter configuration location.
  12. 一种计算机设备,包括存储器及一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:A computer device includes a memory and one or more processors. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the one or more processors, the one or more Each processor performs the following steps:
    获取迁移模板配置请求;Obtain the migration template configuration request;
    确定所述迁移模板配置请求中迁移任务类型对应的预设脚本模板;Determining the preset script template corresponding to the migration task type in the migration template configuration request;
    将所述迁移模板配置请求中的配置参数添加到所述预设脚本模板,生成数据迁移脚本;Adding the configuration parameters in the migration template configuration request to the preset script template to generate a data migration script;
    执行所述数据迁移脚本,读取所述数据迁移脚本中的表筛选条件、迁出数据库地址和迁入数据库地址;Execute the data migration script, and read the table filter conditions, the migration-out database address and the migration-in database address in the data migration script;
    根据所述表筛选条件从所述迁出数据库地址对应的数据库中筛选数据表;及Filter data tables from the database corresponding to the move-out database address according to the table filtering conditions; and
    将筛选到的数据表导入所述迁入数据库地址对应的数据库。Import the filtered data table into the database corresponding to the migration-in database address.
  13. 根据权利要求12所述的计算机设备,其特征在于,所述将所述迁移模板配置请求中的配置参数添加到所述预设脚本模板,生成数据迁移脚本;所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device according to claim 12, wherein the configuration parameters in the migration template configuration request are added to the preset script template to generate a data migration script; the processor executes the computer The following steps are also performed when reading instructions:
    获取所述迁移模板配置请求中的配置参数;Acquiring the configuration parameters in the migration template configuration request;
    确定所述配置参数对应的参数标识;Determine the parameter identifier corresponding to the configuration parameter;
    在所述预设脚本模板中确定所述参数标识对应的参数配置位置;及Determining the parameter configuration location corresponding to the parameter identifier in the preset script template; and
    按照所述参数配置位置将获取到的配置参数添加到所述预设脚本模块中。Add the acquired configuration parameters to the preset script module according to the parameter configuration position.
  14. 根据权利要求12所述的计算机设备,其特征在于,所述根据所述表筛选条件从所述迁出数据库地址对应的数据库中筛选数据表之后,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device according to claim 12, wherein after the data table is selected from the database corresponding to the out-of-database address according to the table filter condition, when the processor executes the computer-readable instruction Also perform the following steps:
    根据筛选到的数据表构建外部访问数据表;Construct an external access data table based on the filtered data table;
    当监听到对所述筛选到的数据表对应的访问请求时,将所述访问请求中的数据访问地址指向所述外部访问数据表;及When an access request corresponding to the filtered data table is monitored, pointing the data access address in the access request to the external access data table; and
    当监听到所述筛选到的数据表迁移完毕时,删除所述外部访问数据表。When it is monitored that the filtered data table is migrated, the externally accessed data table is deleted.
  15. 根据权利要求12所述的计算机设备,其特征在于,所述将筛选到的数据表导入所述迁入数据库地址对应的数据库,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device according to claim 12, wherein the selected data table is imported into the database corresponding to the migration database address, and the processor further executes the following steps when executing the computer-readable instruction:
    确定筛选到的数据表之间的表依赖关系;Determine the table dependency between the filtered data tables;
    根据所述表依赖关系确定数据表迁移顺序;及Determine the data table migration sequence according to the table dependency; and
    按照数据表迁移顺序将所述筛选到的数据表导入所述迁入数据库地址对应的数据库。Import the filtered data tables into the database corresponding to the moved-in database address according to the data table migration sequence.
  16. 根据权利要求12所述的计算机设备,其特征在于,所述将筛选到的数据表导入所述迁入数据库地址对应的数据库,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device according to claim 12, wherein the selected data table is imported into the database corresponding to the migration database address, and the processor further executes the following steps when executing the computer-readable instruction:
    确定所述迁入数据库地址对应的数据库中的数据格式;Determine the data format in the database corresponding to the moved-in database address;
    按照确定的数据格式对筛选到的数据表进行格式转换,得到转换格式的数据表;及Perform format conversion on the filtered data table according to the determined data format to obtain a data table in the converted format; and
    将转换格式的数据表存储至所述迁入数据库地址对应的数据库。The data table in the converted format is stored in the database corresponding to the migration-in database address.
  17. 一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:One or more non-volatile computer-readable storage media storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to perform the following steps:
    获取迁移模板配置请求;Obtain the migration template configuration request;
    确定所述迁移模板配置请求中迁移任务类型对应的预设脚本模板;Determining the preset script template corresponding to the migration task type in the migration template configuration request;
    将所述迁移模板配置请求中的配置参数添加到所述预设脚本模板,生成数据迁移脚本;Adding the configuration parameters in the migration template configuration request to the preset script template to generate a data migration script;
    执行所述数据迁移脚本,读取所述数据迁移脚本中的表筛选条件、迁出数据库地址和迁入数据库地址;Execute the data migration script, and read the table filter conditions, the migration-out database address and the migration-in database address in the data migration script;
    根据所述表筛选条件从所述迁出数据库地址对应的数据库中筛选数据表;及Filter data tables from the database corresponding to the move-out database address according to the table filtering conditions; and
    将筛选到的数据表导入所述迁入数据库地址对应的数据库。Import the filtered data table into the database corresponding to the migration-in database address.
  18. 根据权利要求16所述的存储介质,其特征在于,所述将所述迁移模板配置请求中的配置参数添加到所述预设脚本模板,生成数据迁移脚本,所述计算机可读指令被所述处理器执行时还执行以下步骤:The storage medium according to claim 16, wherein the configuration parameters in the migration template configuration request are added to the preset script template to generate a data migration script, and the computer-readable instructions are The processor also performs the following steps when executing:
    获取所述迁移模板配置请求中的配置参数;Acquiring the configuration parameters in the migration template configuration request;
    确定所述配置参数对应的参数标识;Determine the parameter identifier corresponding to the configuration parameter;
    在所述预设脚本模板中确定所述参数标识对应的参数配置位置;及Determining the parameter configuration location corresponding to the parameter identifier in the preset script template; and
    按照所述参数配置位置将获取到的配置参数添加到所述预设脚本模块中。Add the acquired configuration parameters to the preset script module according to the parameter configuration position.
  19. 根据权利要求16所述的存储介质,其特征在于,所述根据所述表筛选条件从所述迁出数据库地址对应的数据库中筛选数据表之后,所述计算机可读指令被所述处理器执行时还执行以下步骤:The storage medium according to claim 16, wherein the computer-readable instructions are executed by the processor after the data table is filtered from the database corresponding to the out-of-database address according to the table filtering condition Also perform the following steps:
    根据筛选到的数据表构建外部访问数据表;Construct an external access data table based on the filtered data table;
    当监听到对所述筛选到的数据表对应的访问请求时,将所述访问请求中的数据访问地址指向所述外部访问数据表;及When an access request corresponding to the filtered data table is monitored, pointing the data access address in the access request to the external access data table; and
    当监听到所述筛选到的数据表迁移完毕时,删除所述外部访问数据表。When it is monitored that the filtered data table is migrated, the externally accessed data table is deleted.
  20. 根据权利要求16所述的存储介质,其特征在于,所述将筛选到的数据表导入所述迁入数据库地址对应的数据库,所述计算机可读指令被所述处理器执行时还执行以下步骤:The storage medium according to claim 16, wherein the selected data table is imported into the database corresponding to the migration database address, and the following steps are performed when the computer-readable instruction is executed by the processor :
    确定筛选到的数据表之间的表依赖关系;Determine the table dependency between the filtered data tables;
    根据所述表依赖关系确定数据表迁移顺序;及Determine the data table migration sequence according to the table dependency; and
    按照数据表迁移顺序将所述筛选到的数据表导入所述迁入数据库地址对应的数据库。Import the filtered data tables into the database corresponding to the moved-in database address according to the data table migration sequence.
PCT/CN2019/103170 2019-05-20 2019-08-29 Data table migration method, apparatus, computer device and storage medium WO2020232884A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910419503.5 2019-05-20
CN201910419503.5A CN110209652B (en) 2019-05-20 2019-05-20 Data table migration method, device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
WO2020232884A1 true WO2020232884A1 (en) 2020-11-26

Family

ID=67787861

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/103170 WO2020232884A1 (en) 2019-05-20 2019-08-29 Data table migration method, apparatus, computer device and storage medium

Country Status (2)

Country Link
CN (1) CN110209652B (en)
WO (1) WO2020232884A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112434013A (en) * 2020-11-30 2021-03-02 中国建设银行股份有限公司 Data table migration method and device, electronic equipment and storage medium
CN113672596A (en) * 2021-08-30 2021-11-19 中国平安人寿保险股份有限公司 Project configuration table processing method, device, equipment and storage medium

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110928860B (en) * 2019-11-27 2023-06-20 中国银行股份有限公司 Data migration method and device
CN111125213A (en) * 2019-11-29 2020-05-08 北京数起科技有限公司 Data acquisition method, device and system
CN111177113B (en) * 2019-12-06 2023-07-25 中国平安财产保险股份有限公司 Data migration method, device, computer equipment and storage medium
CN112988860B (en) * 2019-12-18 2023-09-26 菜鸟智能物流控股有限公司 Data acceleration processing method and device and electronic equipment
CN111367890A (en) * 2020-03-13 2020-07-03 深圳壹账通智能科技有限公司 Data migration method and device, computer equipment and readable storage medium
CN111694812A (en) * 2020-05-06 2020-09-22 五八有限公司 Data migration method and data migration device
CN112732423B (en) * 2020-12-30 2023-01-20 平安科技(深圳)有限公司 Process migration method, device, equipment and medium
CN112883073B (en) * 2021-03-22 2024-04-05 北京同邦卓益科技有限公司 Data screening method, device, equipment, readable storage medium and product
CN113312336A (en) * 2021-06-22 2021-08-27 中国农业银行股份有限公司 Data processing method, data processing apparatus, electronic device, storage medium, and program product
CN113761043A (en) * 2021-08-17 2021-12-07 紫金诚征信有限公司 Data extraction method and device, computer equipment and storage medium
CN114756556B (en) * 2022-06-15 2022-09-27 建信金融科技有限责任公司 Method, device, electronic equipment and computer readable medium for processing account data

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103257878A (en) * 2013-05-16 2013-08-21 浪潮通信信息系统有限公司 Cross-platform smooth transfer method of application program based on Cloud calculation
US20140095522A1 (en) * 2012-10-01 2014-04-03 Oracle International Corporation Reference data segmentation from single to multiple tables
US20150019478A1 (en) * 2013-07-09 2015-01-15 Oracle International Corporation Dynamic migration script management
CN105956191A (en) * 2016-06-13 2016-09-21 浪潮(北京)电子信息产业有限公司 Data migration method and system
CN107704597A (en) * 2017-10-13 2018-02-16 携程旅游网络技术(上海)有限公司 Relevant database to Hive ETL script creation methods
CN108595644A (en) * 2018-04-26 2018-09-28 宁波银行股份有限公司 A kind of big data platform operation management system

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6151608A (en) * 1998-04-07 2000-11-21 Crystallize, Inc. Method and system for migrating data
US20060235899A1 (en) * 2005-03-25 2006-10-19 Frontline Systems, Inc. Method of migrating legacy database systems
CN101499063A (en) * 2008-01-31 2009-08-05 国际商业机器公司 Tracing-based database schema evolution method and system
CN106708548A (en) * 2015-11-13 2017-05-24 阿里巴巴集团控股有限公司 Program upgrading method and terminal device
CN109313786A (en) * 2016-06-06 2019-02-05 株式会社日立系统 Data mover system and data migration method
US10649965B2 (en) * 2016-11-14 2020-05-12 International Business Machines Corporation Data migration in a networked computer environment
CN107766132B (en) * 2017-06-25 2019-03-15 平安科技(深圳)有限公司 Multi-task scheduling method, application server and computer readable storage medium
CN107357896A (en) * 2017-07-13 2017-11-17 北京小度信息科技有限公司 Expansion method, device, system and the data base cluster system of data-base cluster
CN107992512A (en) * 2017-10-20 2018-05-04 中国建设银行股份有限公司上海市分行 A kind of method of Data Migration, system and computer-readable recording medium
CN109684298B (en) * 2018-09-07 2024-02-20 平安科技(深圳)有限公司 Database migration method, device, equipment and storage medium
CN109766122A (en) * 2018-12-20 2019-05-17 平安信托有限责任公司 Document data transfer generation method, device, computer equipment and storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140095522A1 (en) * 2012-10-01 2014-04-03 Oracle International Corporation Reference data segmentation from single to multiple tables
CN103257878A (en) * 2013-05-16 2013-08-21 浪潮通信信息系统有限公司 Cross-platform smooth transfer method of application program based on Cloud calculation
US20150019478A1 (en) * 2013-07-09 2015-01-15 Oracle International Corporation Dynamic migration script management
CN105956191A (en) * 2016-06-13 2016-09-21 浪潮(北京)电子信息产业有限公司 Data migration method and system
CN107704597A (en) * 2017-10-13 2018-02-16 携程旅游网络技术(上海)有限公司 Relevant database to Hive ETL script creation methods
CN108595644A (en) * 2018-04-26 2018-09-28 宁波银行股份有限公司 A kind of big data platform operation management system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112434013A (en) * 2020-11-30 2021-03-02 中国建设银行股份有限公司 Data table migration method and device, electronic equipment and storage medium
CN113672596A (en) * 2021-08-30 2021-11-19 中国平安人寿保险股份有限公司 Project configuration table processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110209652B (en) 2024-02-02
CN110209652A (en) 2019-09-06

Similar Documents

Publication Publication Date Title
WO2020232884A1 (en) Data table migration method, apparatus, computer device and storage medium
CN108197200B (en) Log tracking method and device, computer equipment and storage medium
CN111563368B (en) Report generation method, report generation device, computer equipment and storage medium
WO2020181839A1 (en) Page data testing method, apparatus, computer device, and storage medium
WO2020151333A1 (en) Page loading method, apparatus, computer device and storage medium
WO2020192134A1 (en) Exception handling method and apparatus based on spring mvc, and computer device and storage medium
JP2018528559A (en) Method and system for realizing data tracking by software development kit
WO2021073510A1 (en) Statistical method and device for database
CN111310427A (en) Service data configuration processing method and device, computer equipment and storage medium
CN111818175B (en) Enterprise service bus configuration file generation method, device, equipment and storage medium
AU2017254506B2 (en) Method, apparatus, computing device and storage medium for data analyzing and processing
CN109389299B (en) Workflow process deployment method, workflow process deployment device, computer equipment and storage medium
CN105607986A (en) Acquisition method and device of user behavior log data
WO2021217846A1 (en) Interface data processing method and apparatus, and computer device and storage medium
WO2021120628A1 (en) Blockchain-based sensitive word detection method and apparatus, computer device and computer-readable storage medium
EP3497586A1 (en) Discovery of calling application for control of file hydration behavior
WO2020232883A1 (en) Script defect scanning method and apparatus, computer device and storage medium
CN111124872A (en) Branch detection method and device based on difference code analysis and storage medium
CN110275703B (en) Method and device for assigning key value to data, computer equipment and storage medium
CN115357590A (en) Recording method and device for data change, electronic device and storage medium
JP2024505236A (en) Data set multiplexer for data processing systems
WO2014078445A1 (en) Techniques to manage virtual files
CN116151631A (en) Service decision processing system, service decision processing method and device
CN115543428A (en) Simulated data generation method and device based on strategy template
CN115658794A (en) Data query method and device, computer equipment and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19930137

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19930137

Country of ref document: EP

Kind code of ref document: A1