[go: up one dir, main page]

CN114816470A - Metabase management method, apparatus, electronic device and medium - Google Patents

Metabase management method, apparatus, electronic device and medium Download PDF

Info

Publication number
CN114816470A
CN114816470A CN202210326771.4A CN202210326771A CN114816470A CN 114816470 A CN114816470 A CN 114816470A CN 202210326771 A CN202210326771 A CN 202210326771A CN 114816470 A CN114816470 A CN 114816470A
Authority
CN
China
Prior art keywords
version
metabase
target
node
script
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202210326771.4A
Other languages
Chinese (zh)
Other versions
CN114816470B (en
Inventor
澹台新芳
赵海亮
亓娜
王艳辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hainan Qiantang Shilian Information Technology Co ltd
Original Assignee
Hainan Qiantang Shilian Information Technology Co ltd
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 Hainan Qiantang Shilian Information Technology Co ltd filed Critical Hainan Qiantang Shilian Information Technology Co ltd
Priority to CN202210326771.4A priority Critical patent/CN114816470B/en
Publication of CN114816470A publication Critical patent/CN114816470A/en
Application granted granted Critical
Publication of CN114816470B publication Critical patent/CN114816470B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The application provides a metadata database management method, a metadata database management device, electronic equipment and media, and belongs to the technical field of computers. The method comprises the following steps: in response to a version change operation for at least one of the plurality of metadatabase nodes, determining a target metadatabase version corresponding to the version change operation; determining a target dependency metadata database version and target script information corresponding to the target metadata database version according to the corresponding relation between different metadata database versions and the dependency metadata database version and the script information; when a deployment record of a target dependency metadata database version exists in a target metadata database node, extracting script applicable configuration and a script storage address from target script information; when the applicable configuration of the script is matched with the configuration information of the target metadatabase node, acquiring a script program from a script storage address; and executing the script program, and deploying the target metadata base version at the target metadata base node. And the normal operation of the metadata database version after deployment is ensured.

Description

元数据库的管理方法、装置、电子设备和介质Metabase management method, apparatus, electronic device and medium

技术领域technical field

本申请属于计算机技术领域,特别涉及一种元数据库的管理方法、装置、电子设备和介质。The present application belongs to the field of computer technology, and in particular relates to a metadata database management method, apparatus, electronic device and medium.

背景技术Background technique

随着软件产品迭代迅速,各产品之间、各产品模块之间的数据存在共享和交互,数据库表结构和元数据修改需求多,甚至处于迭代中的各产品对同一数据库表都同时存在修改需求,造成各产品之间互相牵制,经常引起冲突,难以上线。例如同一产品在不同系统架构、个别项目环境的数据表结构和元数据还存在差异,难以处理。因此急需一种版本管理方法来做规范化管理,解决研发中存在的这些冲突,提高发版和上线速度。With the rapid iteration of software products, there is data sharing and interaction between products and product modules, and there are many requirements for modification of database table structure and metadata, and even each product under iteration has modification requirements for the same database table at the same time. , resulting in mutual restraint between various products, often causing conflicts, and it is difficult to go online. For example, there are still differences in the data table structure and metadata of the same product in different system architectures and individual project environments, which are difficult to handle. Therefore, there is an urgent need for a version management method to do standardized management, resolve these conflicts in R&D, and improve the speed of release and launch.

发明内容SUMMARY OF THE INVENTION

本申请一些实施例提供一种元数据库的管理方法、装置、电子设备和介质,以尽可能解决上述技术问题。Some embodiments of the present application provide a metadata database management method, apparatus, electronic device, and medium, so as to solve the above technical problems as much as possible.

本申请一些实施例提供一种元数据库的管理方法,应用于元数据库管理端,所述元数据库管理端与多个元数据库节点连接,所述方法包括:Some embodiments of the present application provide a method for managing a metadata database, which is applied to a metadata database management terminal, where the metadata database management terminal is connected to a plurality of metadata database nodes, and the method includes:

响应于对于所述多个元数据库节点中至少一元数据库节点的版本变更操作,确定所述版本变更操作相对应的目标元数据库版本;In response to a version change operation for at least one metabase node in the plurality of metabase nodes, determining a target metabase version corresponding to the version change operation;

根据不同元数据库版本与依赖元数据库版本、脚本信息之间的对应关系,确定所述目标元数据库版本相对应的目标依赖元数据库版本和目标脚本信息;Determine the target dependent metabase version and target script information corresponding to the target metabase version according to the correspondence between different metabase versions, dependent metabase versions, and script information;

在所述目标元数据库节点中存在所述目标依赖元数据库版本的部署记录时,从所述目标脚本信息中提取脚本适用配置和脚本存储地址;When there is a deployment record of the target-dependent metabase version in the target metabase node, extracting a script applicable configuration and a script storage address from the target script information;

在所述脚本适用配置与所述目标元数据库节点的配置信息相匹配时,从所述脚本存储地址获取脚本程序;Obtaining a script program from the script storage address when the script applicable configuration matches the configuration information of the target metabase node;

执行所述脚本程序,在所述目标元数据库节点部署所述目标元数据库版本。The script program is executed to deploy the target metabase version on the target metabase node.

可选地,所述元数据版本与所述脚本信息之间的对应关系是通过以下步骤构建:Optionally, the corresponding relationship between the metadata version and the script information is constructed by the following steps:

响应于所述对应关系的构建指令,显示包含有元数据库版本之间层级关系的版本树;In response to the construction instruction of the corresponding relationship, displaying a version tree containing the hierarchical relationship between the metadata database versions;

响应于对所述版本树中任一版本父节点的新增操作,创建所述版本父节点下属的版本子节点,获取并存储元数据库版本信息;In response to the newly added operation to any version parent node in the version tree, create a version child node subordinate to the version parent node, and obtain and store the metadata database version information;

响应于对所述元数据库版本信息的脚本录入操作,获取并存储脚本信息;Acquire and store script information in response to a script entry operation for the metabase version information;

将所述元数据库版本信息和所述脚本信息进行关联存储。The metadata database version information and the script information are associated and stored.

可选地,在显示包含有元数据库版本之间关联关系的版本树之后,所述方法还包括:Optionally, after displaying the version tree including the association relationship between the metadata database versions, the method further includes:

响应于对所述版本树中任一目标版本节点的编辑操作,显示所述目标版本节点相对应的版本信息和脚本信息;In response to an editing operation on any target version node in the version tree, displaying version information and script information corresponding to the target version node;

响应于对所述版本信息和/或所述脚本信息的编辑操作,对所述编辑操作所指示的版本信息和/或所述脚本信息进行更新。In response to an editing operation on the version information and/or the script information, the version information and/or the script information indicated by the editing operation is updated.

可选地,所述确定所述版本变更操作相对应的目标元数据库版本,包括:Optionally, the determining the target metadata database version corresponding to the version change operation includes:

在所述版本变更操作所指示的元数据库版本与所述目标元数据库节点的当前元数据库版本之间存在至少一个中间元数据库版本时,将所述中间元数据库版本和所述版本变更操作所指示的元数据库版本作为目标元数据库版本。When there is at least one intermediate metabase version between the metabase version indicated by the version change operation and the current metabase version of the target metabase node, change the intermediate metabase version and the version indicated by the version change operation The metabase version of the target metabase version.

可选地,所述将所述中间元数据库版本和所述版本变更操作所指示的元数据库版本作为目标元数据库版本,包括:Optionally, using the intermediate metabase version and the metabase version indicated by the version change operation as the target metabase version includes:

在所述版本变更操作所指示的元数据库版本与所述目标元数据库节点的当前元数据库版本之间存在至少一个中间元数据库版本时,将所述中间元数据库版本和所述版本变更操作所指示的元数据库版本作为待更新元数据库版本;When there is at least one intermediate metabase version between the metabase version indicated by the version change operation and the current metabase version of the target metabase node, change the intermediate metabase version and the version indicated by the version change operation The metabase version of the to-be-updated metabase version;

将数据库版本层级最低的待更新元数据库版本作为目标元数据库版本;Use the metabase version to be updated with the lowest database version level as the target metabase version;

在所述执行所述脚本程序,在所述目标元数据库节点部署所述目标元数据库版本之后,所述方法还包括:After the executing the script program, after the target metabase node deploys the target metabase version, the method further includes:

从所述待更新元数据库版本中剔除所述目标元数据库版本,并重新进入所述将层级最低的待更新元数据库版本作为目标元数据库版本的步骤,直至不存在所述待更新元数据库版本时,结束执行对于所述目标元数据库节点的版本更新过程。Remove the target metabase version from the to-be-updated metabase version, and re-enter the step of using the lowest-level metabase version to be updated as the target metabase version, until the to-be-updated metabase version does not exist , and finish executing the version update process for the target metabase node.

可选地,在所述将数据库版本层级最低的待更新元数据库版本作为目标元数据库版本之后,所述方法还包括:Optionally, after taking the metabase version to be updated with the lowest database version level as the target metabase version, the method further includes:

在所述目标元数据库版本更新失败时,回退对于所述目标元数据库版本的已更新内容,结束执行对于所述目标元数据库节点的版本更新过程。When the update of the target metabase version fails, the updated content for the target metabase version is rolled back, and the execution of the version update process for the target metabase node is ended.

可选地,所述元数据库节点的节点信息通过以下步骤进行编辑:Optionally, the node information of the metabase node is edited through the following steps:

响应于元数据节点信息的编辑指令,显示包含有元数据库节点之间层级关系的元数据库节点树;In response to the editing instruction of the metadata node information, displaying the metadata database node tree including the hierarchical relationship between the metadata database nodes;

响应于对于所述元数据库节点树中任一目标元数据库节点标识的编辑操作,显示所述目标元数据库节点标识相对应的元数据库节点信息;In response to an editing operation for any target metabase node identifier in the metabase node tree, displaying the metabase node information corresponding to the target metabase node identifier;

响应于对于所述元数据库节点信息的编辑操作,对所述元数据库节点信息进行更新。The metabase node information is updated in response to an edit operation on the metabase node information.

本申请一些实施例提供一种元数据库的管理装置,应用于元数据库管理端,所述元数据库管理端与多个元数据库节点连接,所述装置包括:Some embodiments of the present application provide a metadata database management device, which is applied to a metadata database management terminal, and the metadata database management terminal is connected to a plurality of metadata database nodes, and the device includes:

输入模块,用于响应于对于所述多个元数据库节点中至少一元数据库节点的版本变更操作,确定所述版本变更操作相对应的目标元数据库版本;an input module, configured to, in response to a version change operation for at least one metabase node in the plurality of metabase nodes, determine a target metabase version corresponding to the version change operation;

验证模块,用于根据不同元数据库版本与依赖元数据库版本、脚本信息之间的对应关系,确定所述目标元数据库版本相对应的目标依赖元数据库版本和目标脚本信息;a verification module, configured to determine the target-dependent metabase version and target script information corresponding to the target metabase version according to the correspondence between different metabase versions and the dependent metabase version and script information;

在所述目标元数据库节点中存在所述目标依赖元数据库版本的部署记录时,从所述目标脚本信息中提取脚本适用配置和脚本存储地址;When there is a deployment record of the target-dependent metabase version in the target metabase node, extracting a script applicable configuration and a script storage address from the target script information;

在所述脚本适用配置与所述目标元数据库节点的配置信息相匹配时,从所述脚本存储地址获取脚本程序;Obtaining a script program from the script storage address when the script applicable configuration matches the configuration information of the target metabase node;

部署模块,用于执行所述脚本程序,在所述目标元数据库节点部署所述目标元数据库版本。A deployment module, configured to execute the script program, and deploy the target metabase version on the target metabase node.

可选地,所述装置还包括:编辑模块,用于:Optionally, the device further includes: an editing module for:

响应于所述对应关系的构建指令,显示包含有元数据库版本之间层级关系的版本树;In response to the construction instruction of the corresponding relationship, displaying a version tree containing the hierarchical relationship between the metadata database versions;

响应于对所述版本树中任一版本父节点的新增操作,创建所述版本父节点下属的版本子节点,获取并存储元数据库版本信息;In response to the newly added operation to any version parent node in the version tree, create a version child node subordinate to the version parent node, and obtain and store the metadata database version information;

响应于对所述元数据库版本信息的脚本录入操作,获取并存储脚本信息;Acquire and store script information in response to a script entry operation for the metabase version information;

将所述元数据库版本信息和所述脚本信息进行关联存储。The metadata database version information and the script information are associated and stored.

可选地,所述编辑模块,还用于:Optionally, the editing module is also used for:

响应于对所述版本树中任一目标版本节点的编辑操作,显示所述目标版本节点相对应的版本信息和脚本信息;In response to an editing operation on any target version node in the version tree, displaying version information and script information corresponding to the target version node;

响应于对所述版本信息和/或所述脚本信息的编辑操作,对所述编辑操作所指示的版本信息和/或所述脚本信息进行更新。In response to an editing operation on the version information and/or the script information, the version information and/or the script information indicated by the editing operation is updated.

可选地,所述验证模块,还用于在所述版本变更操作所指示的元数据库版本与所述目标元数据库节点的当前元数据库版本之间存在至少一个中间元数据库版本时,将所述中间元数据库版本和所述版本变更操作所指示的元数据库版本作为目标元数据库版本。Optionally, the verification module is further configured to, when there is at least one intermediate metabase version between the metabase version indicated by the version change operation and the current metabase version of the target metabase node, verify the The intermediate metabase version and the metabase version indicated by the version change operation are used as the target metabase version.

可选地,所述验证模块,还用于:Optionally, the verification module is also used for:

在所述版本变更操作所指示的元数据库版本与所述目标元数据库节点的当前元数据库版本之间存在至少一个中间元数据库版本时,将所述中间元数据库版本和所述版本变更操作所指示的元数据库版本作为待更新元数据库版本;When there is at least one intermediate metabase version between the metabase version indicated by the version change operation and the current metabase version of the target metabase node, change the intermediate metabase version and the version indicated by the version change operation The metabase version of the to-be-updated metabase version;

将数据库版本层级最低的待更新元数据库版本作为目标元数据库版本;Use the metabase version to be updated with the lowest database version level as the target metabase version;

从所述待更新元数据库版本中剔除所述目标元数据库版本,并重新进入所述将层级最低的待更新元数据库版本作为目标元数据库版本的步骤,直至不存在所述待更新元数据库版本时,结束执行对于所述目标元数据库节点的版本更新过程。Remove the target metabase version from the to-be-updated metabase version, and re-enter the step of using the lowest-level metabase version to be updated as the target metabase version, until the to-be-updated metabase version does not exist , and finish executing the version update process for the target metabase node.

可选地,所述部署模块,还用于:Optionally, the deployment module is also used for:

在所述目标元数据库版本更新失败时,回退对于所述目标元数据库版本的已更新内容,结束执行对于所述目标元数据库节点的版本更新过程。When the update of the target metabase version fails, the updated content for the target metabase version is rolled back, and the execution of the version update process for the target metabase node is ended.

可选地,所述编辑模块,还用于:Optionally, the editing module is also used for:

响应于元数据节点信息的编辑指令,显示包含有元数据库节点之间层级关系的元数据库节点树;In response to the editing instruction of the metadata node information, displaying the metadata database node tree including the hierarchical relationship between the metadata database nodes;

响应于对于所述元数据库节点树中任一目标元数据库节点标识的编辑操作,显示所述目标元数据库节点标识相对应的元数据库节点信息;In response to an editing operation for any target metabase node identifier in the metabase node tree, displaying the metabase node information corresponding to the target metabase node identifier;

响应于对于所述元数据库节点信息的编辑操作,对所述元数据库节点信息进行更新。The metabase node information is updated in response to an edit operation on the metabase node information.

本申请一些实施例提供一种计算处理设备,包括:Some embodiments of the present application provide a computing processing device, including:

存储器,其中存储有计算机可读代码;a memory in which computer readable code is stored;

一个或多个处理器,当所述计算机可读代码被所述一个或多个处理器执行时,所述计算处理设备执行如上述的元数据库的管理方法。One or more processors, when the computer readable code is executed by the one or more processors, the computing processing device performs the metadata database management method as described above.

本申请一些实施例提供一种计算机程序,包括计算机可读代码,当所述计算机可读代码在计算处理设备上运行时,导致所述计算处理设备执行如上述的元数据库的管理方法。Some embodiments of the present application provide a computer program, including computer-readable code, which, when the computer-readable code is executed on a computing processing device, causes the computing processing device to execute the above-described metadata database management method.

本申请一些实施例提供一种计算机可读介质,其中存储了如上述的元数据库的管理方法。Some embodiments of the present application provide a computer-readable medium, in which the above-mentioned metadata database management method is stored.

本申请提供的一种元数据库的管理方法、装置、电子设备和介质,通过将元数据版本更新过程集中到元数据库管理端进行统一管理,从而在元数据库管理端所连接的元数据库节点进行数据更新时,首先确认元数据库节点存在待更新的目标元数据库版本相对应的依赖元数据库版本,确保所部署的版本可以得到依赖元数据库版本的支持,再确认元数据库节点的配置信息与目标元数据库节点的脚本适用配置相匹配之后,再执行脚本程序来部署目标元数据库版本,保证了元数据库版本在部署后可以正常运行,而出现问题后能在元数据管理端快速通过版本部署记录进行排查。A metadata database management method, device, electronic device and medium provided by the present application, by centralizing the metadata version update process to the metadata database management terminal for unified management, so that data is processed at the metadata database node connected to the metadata database management terminal. When updating, first confirm that the metabase node has a dependent metabase version corresponding to the target metabase version to be updated, ensure that the deployed version can be supported by the dependent metabase version, and then confirm the configuration information of the metabase node and the target metabase. After the scripts of the nodes match the applicable configuration, the script program is executed to deploy the target metabase version, which ensures that the metabase version can run normally after deployment, and that if a problem occurs, the version deployment record can be quickly checked on the metadata management end.

上述说明仅是本申请技术方案的概述,为了能够更清楚了解本申请的技术手段,而可依照说明书的内容予以实施,并且为了让本申请的上述和其它目的、特征和优点能够更明显易懂,以下特举本申请的具体实施方式。The above description is only an overview of the technical solution of the present application. In order to be able to understand the technical means of the present application more clearly, it can be implemented according to the content of the description, and in order to make the above-mentioned and other purposes, features and advantages of the present application more obvious and easy to understand , and the specific embodiments of the present application are listed below.

附图说明Description of drawings

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following will briefly introduce the accompanying drawings used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description These are some embodiments of the present application. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.

图1示意性地示出了本申请一些实施例提供的一种元数据库的管理方法的流程示意图;FIG. 1 schematically shows a schematic flowchart of a method for managing a metadata database provided by some embodiments of the present application;

图2示意性地示出了本申请一些实施例提供的一种元数据库的管理方法的原理示意图;FIG. 2 schematically shows a schematic diagram of the principle of a metadata database management method provided by some embodiments of the present application;

图3示意性地示出了本申请一些实施例提供的另一种元数据库的管理方法的流程示意图之一;FIG. 3 schematically shows one of the schematic flowcharts of another metadata database management method provided by some embodiments of the present application;

图4示意性地示出了本申请一些实施例提供的另一种元数据库的管理方法的流程示意图之二;FIG. 4 schematically shows the second schematic flowchart of another metadata database management method provided by some embodiments of the present application;

图5示意性地示出了本申请一些实施例提供的另一种元数据库的管理方法的流程示意图之三;FIG. 5 schematically shows the third schematic flowchart of another metadata database management method provided by some embodiments of the present application;

图6示意性地示出了本申请一些实施例提供的另一种元数据库的管理方法的原理示意图;FIG. 6 schematically shows a schematic diagram of the principle of another metadata database management method provided by some embodiments of the present application;

图7示意性地示出了本申请一些实施例提供的另一种元数据库的管理方法的流程示意图之四;FIG. 7 schematically shows the fourth schematic flow chart of another metadata database management method provided by some embodiments of the present application;

图8示意性地示出了本申请一些实施例提供的一种元数据库的管理装置的结构示意图;FIG. 8 schematically shows a schematic structural diagram of a metadata database management apparatus provided by some embodiments of the present application;

图9示意性地示出了用于执行根据本申请一些实施例的方法的计算处理设备的框图;Figure 9 schematically shows a block diagram of a computing processing device for performing methods according to some embodiments of the present application;

图10示意性地示出了用于保持或者携带实现根据本申请一些实施例的方法的程序代码的存储单元。Figure 10 schematically shows a storage unit for holding or carrying program code implementing methods according to some embodiments of the present application.

具体实施方式Detailed ways

为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present application.

图1示意性地示出了本申请提供的一种元数据库的管理方法,应用于元数据库管理端,所述元数据库管理端与多个元数据库节点连接,所述方法包括:FIG. 1 schematically shows a metadata database management method provided by the present application, which is applied to a metadata database management terminal, and the metadata database management terminal is connected to a plurality of metadata database nodes. The method includes:

需要说明的是,其中元数据是指从信息资源中抽取出来的用于说明其特征、内容的结构化的数据(如题名,版本、出版数据、相关说明,包括检索点等),用于组织、描述、检索、保存、管理信息和知识资源。比如我们公司的各种服务器、终端、行业、项目、合作医院、平台、平台的用户、权限、角色、日志类型、行政区划、业务告警类型等信息,则元数据库节点是用于存储元数据的数据库节点,元数据库节点可以是分布式数据库,因此可存在多个元数据库节点。元数据库管理端是用于对所连接的元数据库节点的数据和数据库版本的更新进行管理的服务器或者个人电脑、平板电脑、便携式移动等具有数据处理、数据传输、数据存储等功能的终端设备等等,元数据库服务端可以通过视联网或互联网与多个元数据库节点进行通讯连接。不同元数据库节点在接入元数据库管理端时,需要对自身信息进行注册和录入,至少需要录入依赖元数据库版本,脚本信息和版本部署记录,其中依赖元数据库版本是元数据库节点运行所需引用或依靠的元数据版本,脚本信息则是不同元数据版本进行部署所需的脚本程序,版本部署记录是指元数据库脚本部署过的元数据库版本的历史记录。It should be noted that metadata refers to the structured data (such as title, edition, publication data, relevant descriptions, including access points, etc.) extracted from information resources to describe its characteristics and content, and is used to organize , describe, retrieve, store, and manage information and knowledge resources. For example, our company's various servers, terminals, industries, projects, cooperative hospitals, platforms, platform users, permissions, roles, log types, administrative divisions, business alarm types and other information, the metadata database node is used to store metadata. Database node, metabase node can be a distributed database, so there can be multiple metabase nodes. The metadata database management terminal is a server or terminal equipment with functions such as data processing, data transmission, and data storage, such as personal computers, tablet computers, portable mobile devices, etc., which are used to manage the data of the connected metadata database nodes and the update of database versions. etc., the metadata database server can communicate with multiple metadata database nodes through the Internet of Things or the Internet. When different metabase nodes access the metabase management terminal, they need to register and enter their own information, and at least need to enter the dependent metabase version, script information and version deployment records, where the dependent metabase version is the reference required for the operation of the metabase node. Or depend on the metadata version, the script information is the script program required for the deployment of different metadata versions, and the version deployment record refers to the historical record of the metabase version deployed by the metabase script.

步骤101,响应于对于所述多个元数据库节点中至少一元数据库节点的版本变更操作,确定所述版本变更操作相对应的目标元数据库版本。Step 101, in response to a version change operation for at least one metabase node among the plurality of metabase nodes, determine a target metabase version corresponding to the version change operation.

在本申请实施例中,用户在需要对某个目标元数据库节点的版本进行变更时可对元数据库管理端进行版本变更操作,元数据库管理端基于版本变更操作,从所连接的多个元数据库节点中确定该版本变更操作所指示的目标元数据库节点,以及从多个元数据库版本中确定该版本变更操作所指示的目标元数据库版本。可以理解,本申请实施例将以前对于不同元数据库版本的更新过程集中在元数据库管理端进行统一管理,从便于对不同元数据库节点的版本更新进行管理。In the embodiment of the present application, when a user needs to change the version of a certain target metabase node, a version change operation can be performed on the metabase management terminal. The target metabase node indicated by the version change operation is determined in the nodes, and the target metabase version indicated by the version change operation is determined from a plurality of metabase versions. It can be understood that, in this embodiment of the present application, the previous update processes for different metadata database versions are centralized at the metadata database management end for unified management, so as to facilitate the management of version updates of different metadata database nodes.

步骤102,根据不同元数据库版本与依赖元数据库版本、脚本信息之间的对应关系,确定所述目标元数据库版本相对应的目标依赖元数据库版本和目标脚本信息。Step 102: Determine the target dependent metabase version and target script information corresponding to the target metabase version according to the correspondence between the different metabase versions, the dependent metabase version, and the script information.

在本申请实施例中,由于不同元数据库版本的依赖元数据库版本不同,因此若需要在目标元数据库节点上部署某个目标元数据库版本,则需要获知该目标元数据库版本的依赖元数据库版本是否在目标元数据库节点上部署过,因此可在版本部署记录中查询该目标元数据库版本的依赖数据库版本的部署记录,元数据库节点在每次成功部署某个元数据库版本后均会在其相对应的版本部署记录中更新该元数据库版本的部署记录。In the embodiment of the present application, since the dependent metabase versions of different metabase versions are different, if a target metabase version needs to be deployed on a target metabase node, it is necessary to know whether the dependent metabase version of the target metabase version is It has been deployed on the target metabase node, so the version deployment record can be queried for the database version-dependent deployment record of the target metabase version. After each successful deployment of a metabase version, the metabase node will display the corresponding database version in the version deployment record. Update the deployment record for this metabase version in the version deployment record.

步骤103,在所述目标元数据库节点中存在所述目标依赖元数据库版本的部署记录时,从所述目标脚本信息中提取脚本适用配置和脚本存储地址。Step 103: When there is a deployment record of the target-dependent metabase version in the target metabase node, extract a script applicable configuration and a script storage address from the target script information.

在本申请实施例中,若目标元数据库节点上未部署过该目标元数据库版本的依赖元数据库版本,则停止执行对于目标元数据库版本在目标元数据库节点上的部署过程,若目标元数据库节点上已部署过该目标元数据库版本的依赖元数据库版本,则继续执行目标元数据库版本的部署过程,即从目标元数据库版本的脚本信息中提取脚本适用配置和脚本存储地址。其中该脚本适用配置是指运行该脚本所需的例如设备型号、内容大小、带宽大小等硬件条件以及脚本运行所需的驱动程序、系统架构等软件条件以及元数据库节点上所登录的用户、密码等权限条件,具体可以根据实际需求设置,此处不做限定。该脚本存储地址则是指脚本程序代码所存储的物理地址。In the embodiment of the present application, if the target metabase version has not been deployed on the target metabase version dependent metabase version, the deployment process of the target metabase version on the target metabase node is stopped, if the target metabase node If the dependent metabase version of the target metabase version has been deployed on the server, continue to perform the deployment process of the target metabase version, that is, extract the script applicable configuration and script storage address from the script information of the target metabase version. The applicable configuration of the script refers to hardware conditions such as device model, content size, bandwidth size and other hardware conditions required to run the script, as well as software conditions such as drivers and system architecture required for the script to run, as well as the user and password logged in on the metabase node. and other permission conditions, which can be set according to actual needs, which are not limited here. The script storage address refers to the physical address where the script program code is stored.

步骤104,在所述脚本适用配置与所述目标元数据库节点的配置信息相匹配时,从所述脚本存储地址获取脚本程序。Step 104: Obtain a script program from the script storage address when the script applicable configuration matches the configuration information of the target metadata database node.

在本申请实施例中,元数据库管理端从目标元数据库节点获取其配置信息或者从本申请数据库中读取预先存储的配置信息,将该配置信息与脚本适用配置进行比对,若该目标元数据库节点的配置信息与脚本适用配置完全吻合,则可进一步从脚本存储地址中读取脚本程序,以供后续目标元数据库版本部署使用。In the embodiment of the present application, the metabase management terminal obtains its configuration information from the target metabase node or reads the pre-stored configuration information from the database of the present application, and compares the configuration information with the script applicable configuration. If the configuration information of the database node is completely consistent with the applicable configuration of the script, the script program can be further read from the script storage address for subsequent deployment of the target metabase version.

具体的,参照图2,其中升级时,选择要升级的版本号,然后检测该版本的依赖版本是否已部署过,如果依赖版本不存在,则不执行升级;如果存在,挨个执行该版本中的所有SQL(StructuredQueryLanguage,结构化查询语言)脚本,执行每个SQL脚本前,检测该脚本的适用架构跟该节点的架构是否匹配,以及对比该脚本的适用环境跟节点的环境信息是否匹配,如果都匹配,则解析SQL脚本,执行脚本中的每条SQL语句。如若有一个条件不匹配,则忽略该脚本不执行。一个版本的所有SQL作为一个事务进行提交,如果执行该版本中的某条SQL语句过程出错,则回滚所有SQL;如果该版本中所有SQL语句都执行成功,则在数据库中的版本表中插入版本记录,表明该节点已经升级过该版本。Specifically, referring to FIG. 2, when upgrading, select the version number to be upgraded, and then detect whether the dependent version of this version has been deployed. If the dependent version does not exist, the upgrade will not be performed; if it exists, execute the version in the version one by one. For all SQL (StructuredQueryLanguage, Structured Query Language) scripts, before executing each SQL script, check whether the script's applicable architecture matches the node's architecture, and compare the script's applicable environment with the node's environment information. If it matches, the SQL script is parsed and each SQL statement in the script is executed. If one of the conditions does not match, the script is ignored and not executed. All SQL of a version is submitted as a transaction. If there is an error in executing a SQL statement in this version, all SQL will be rolled back; if all SQL statements in this version are successfully executed, insert into the version table in the database Version record, indicating that the node has been upgraded to this version.

步骤105,执行所述脚本程序,在所述目标元数据库节点部署所述目标元数据库版本。Step 105: Execute the script program to deploy the target metabase version on the target metabase node.

在本申请实施例中,元数据库管理端挨个执行该目标元数据版本的所有脚本程序,执行每个脚本程序前,检测该脚本的适用架构和该目标元数据库节点的架构是否匹配,以及对比该脚本的适用配置信息与目标元数据库节点的配置信息是否配置,若匹配则继续解析脚本程序并继续执行脚本程序,如果在脚本程序运行的过程中有一个条件不配置,则可以停止运行脚本程序或者忽略该脚本程序直接执行下一个脚本程序。一个目标元数据库版本的所有脚本程序作为一个事务进行提交,如果执行该目标元数据库版本中的某条脚本程序过程出错,则回滚所有脚本程序,如果该目标元数据库版本中的所有脚本程序都执行成功,则在该目标元数据库节点的版本部署记录中插入该目标元数据库版本的版本部署记录,表明该目标元数据库节点已经部署过该目标元数据版本,即在需要部署目标元数据库中,专门有个版本表用来保存版本部署记录,每部署一个版本,就该版本表插入一条该版本部署记录。In the embodiment of the present application, the metadata database management terminal executes all script programs of the target metadata version one by one, and before executing each script program, detects whether the applicable schema of the script matches the schema of the target metadata database node, and compares the Whether the applicable configuration information of the script and the configuration information of the target metabase node are configured, if they match, continue to parse the script program and continue to execute the script program. This script is ignored and the next script is executed directly. All script programs of a target metabase version are submitted as a transaction. If there is an error in executing a script program in the target metabase version, all script programs will be rolled back. If all script programs in the target metabase version are If the execution is successful, insert the version deployment record of the target metabase version into the version deployment record of the target metabase node, indicating that the target metabase node has deployed the target metabase version, that is, in the target metabase that needs to be deployed, There is a version table specially used to save version deployment records. Every time a version is deployed, a version deployment record is inserted into the version table.

本申请实施例通过将元数据版本更新过程集中到元数据库管理端进行统一管理,从而在元数据库管理端所连接的元数据库节点进行数据更新时,首先确认元数据库节点存在待更新的目标元数据库版本相对应的依赖元数据库版本,确保所部署的版本可以得到依赖元数据库版本的支持,再确认元数据库节点的配置信息与目标元数据库节点的脚本适用配置相匹配之后,再执行脚本程序来部署目标元数据库版本,保证了元数据库版本在部署后可以正常运行,而出现问题后能在元数据管理端快速通过版本部署记录进行排查。In this embodiment of the present application, the metadata version update process is centralized to the metadata database management terminal for unified management, so that when the metadata database node connected to the metadata database management terminal performs data update, it is first confirmed that the metadata database node has the target metadata database to be updated. The version corresponding to the dependent metabase version, to ensure that the deployed version can be supported by the dependent metabase version, and then confirm that the configuration information of the metabase node matches the script applicable configuration of the target metabase node, and then execute the script program to deploy The target metabase version ensures that the metabase version can run normally after deployment, and if a problem occurs, it can be quickly checked through the version deployment record on the metadata management side.

可选地,参照图3,所述元数据版本与所述脚本信息之间的对应关系是通过以下步骤201至步骤204构建:Optionally, referring to FIG. 3 , the corresponding relationship between the metadata version and the script information is constructed through the following steps 201 to 204:

步骤201,响应于所述对应关系的构建指令,显示包含有元数据库版本之间层级关系的版本树。Step 201, in response to the corresponding relationship construction instruction, display a version tree including the hierarchical relationship between the metadata database versions.

在本申请实施例中,元数据版本可以是大版本或者小版本,差别是大版本中不用添加脚本信息,大版本的元数据版本可以通过小版本的元数据库版本的脚本信息进行部署。从而可通过版本树的方式来表示元数据库版本之间的上下级关联关系。In this embodiment of the present application, the metadata version may be a large version or a small version, the difference is that no script information is added to the large version, and the large version of the metadata version can be deployed through the script information of the small version of the metadata database version. Therefore, the relationship between the upper and lower levels of the metadata database versions can be represented by means of a version tree.

在实际应用中,用户可通过在元数据管理端的显示节点查看版本数据,从而在版本数据上选择所需进行更新的元数据版本所在的节点来创建元数据库版本,如果所选择的节点是根节点,则表明创建的是大版本,如果选择的节点是大版本,则创建的是小版本的元数据版本。In practical applications, the user can view the version data on the display node of the metadata management terminal, so as to select the node where the metadata version to be updated is located on the version data to create the metadata database version. If the selected node is the root node , it indicates that a major version is created. If the selected node is a major version, the metadata version of the minor version is created.

步骤202,响应于对所述版本树中任一版本父节点的新增操作,创建所述版本父节点下属的版本子节点,获取并存储元数据库版本信息。Step 202 , in response to a new operation on any version parent node in the version tree, create a version child node subordinate to the version parent node, and acquire and store metadata database version information.

在本申请实施例中,创建元数据库版本时,用户需要在元数据库管理端输入所需创建元数据库版本的属性信息,该属性信息包括版本号、关联产品名称加版本号,版本描述信息,对接的开发人员信息、创建时间、和依赖元数据库版本的版本号等等,具体可以根据实际需求设置,此处不做限制。In the embodiment of the present application, when creating a metabase version, the user needs to input the attribute information of the metabase version to be created in the metabase management terminal, the attribute information includes the version number, the associated product name plus the version number, version description information, docking The developer information, creation time, and version number depending on the metadata database version, etc., can be set according to actual needs, and there are no restrictions here.

步骤203,响应于对所述元数据库版本信息的脚本录入操作,获取并存储脚本信息。Step 203: Acquire and store script information in response to the script entry operation for the metadata database version information.

在本申请实施例中,元数据库管理端会将用户输入的属性信息录入到版本库中。如果创建的元数据版本是大版本,则创建完成,无需继续输入脚本信息。如果创建的元数据库版本是小版本,创建完成版本后,还要为该元数据库版本添加脚本信息。添加脚本信息时需要设置脚本的属性信息,包括脚本适用配置、脚本所执行的元数据库标识、映射数据库标识、脚本存储地址等等,该脚本适用配置包括脚本适用架构、脚本适用环境,具体可以根据实际需求设置,此处不做限定。In the embodiment of the present application, the metadata database management terminal will enter the attribute information input by the user into the version library. If the created metadata version is a major version, the creation is complete, and there is no need to continue entering script information. If the created metabase version is a minor version, after the version is created, add script information for the metabase version. When adding script information, you need to set the attribute information of the script, including the applicable configuration of the script, the metadata database identifier executed by the script, the mapping database identifier, the script storage address, etc. The applicable configuration of the script includes the applicable script structure and the script applicable environment. The actual demand settings are not limited here.

步骤204,将所述元数据库版本信息和所述脚本信息进行关联存储。Step 204: Associate and store the metadata database version information and the script information.

在本申请实施例中,新增脚本信息完成后,元数据库管理端会将脚本信息与该新创建的元数据库版本关联存储到版本库中,然后把脚本程序的脚本存储地址拷贝到按照版本号统一规划的目录下进行加密存储,按照该方式可以根据实际需求添加多个脚本。In the embodiment of the present application, after the addition of script information is completed, the metabase management terminal will store the script information in the version library in association with the newly created metabase version, and then copy the script storage address of the script program to the version number according to the version number. Encrypted storage is carried out in the unified planning directory. In this way, multiple scripts can be added according to actual needs.

可选地,参照图4,在所述步骤201之后,所述方法还包括:Optionally, referring to FIG. 4, after the step 201, the method further includes:

步骤301,响应于对所述版本树中任一目标版本节点的编辑操作,显示所述目标版本节点相对应的版本信息和脚本信息。Step 301, in response to an editing operation on any target version node in the version tree, display version information and script information corresponding to the target version node.

在本申请实施例中,用户可对元数据库管理端的显示界面中的脚本数据中的任一目标版本节点进行编辑操作,以在属性展示区域显示该版本号对应的版本信息和脚本信息。In the embodiment of the present application, the user can edit any target version node in the script data in the display interface of the metadata database management terminal, so as to display the version information and script information corresponding to the version number in the attribute display area.

步骤302,响应于对所述版本信息和/或所述脚本信息的编辑操作,对所述编辑操作所指示的版本信息和/或所述脚本信息进行更新。Step 302, in response to an editing operation on the version information and/or the script information, update the version information and/or the script information indicated by the editing operation.

在本申请实施例中,用户可在显示界面中修改版本信息和/或脚本信息完成后点击保存功能选项即可把最新的版本信息重新写入版本库中。In the embodiment of the present application, the user can rewrite the latest version information into the repository by clicking the save function option after modifying the version information and/or script information in the display interface.

用户可在显示界面的脚本列表界面中选取要修改的脚本,然后可以修改脚本信息和脚本内容,在各个属性框中输入最新的属性值,修改完成后通过点击保存选项即可把最新的脚本信息更新到版本库中。The user can select the script to be modified in the script list interface of the display interface, and then modify the script information and script content, and enter the latest attribute value in each attribute box. After the modification is completed, click the save option to save the latest script information. Update to the repository.

当然,用户还可以在显示界面中选取某个脚本后点击删除选项,从而在版本库中删除该脚本信息,并在脚本目录下删除相对应的脚本文件。Of course, the user can also select a script in the display interface and then click the delete option to delete the script information in the repository and delete the corresponding script file in the script directory.

步骤303,响应于对所述脚本信息的查看操作,从所述脚本存储地址获取脚本程序,并显示所述脚本程序的代码信息。Step 303, in response to the viewing operation for the script information, obtain a script program from the script storage address, and display the code information of the script program.

在本申请实施例中,用户在显示界面的脚本树中选择某个脚本,会从基本库中读取数据,在显示界面显示该版本的脚本信息,例如:适用环境、适用系统架构、脚本适用的数据库等属性信息,在脚本列表点击某个脚本信息,还是从脚本库中读取数据,在显示界面显示该脚本信息,用户可通过点击脚本信息,会从脚本目录中读取脚本信息并进行解密,然后在显示界面显示解密后的脚本信息。In the embodiment of the present application, when the user selects a script in the script tree of the display interface, data is read from the basic library, and the script information of the version is displayed on the display interface, such as: applicable environment, applicable system architecture, script application database and other attribute information, click a script information in the script list, or read data from the script library, and display the script information on the display interface, the user can click the script information to read the script information from the script directory and perform Decrypt, and then display the decrypted script information on the display interface.

可选地,所述方法还包括:响应于元数据库节点创建操作,获取并存储元数据库节点信息,所述元数据库节点信息包括:主机名、端口号、维护人员信息、密码、系统架构、项目环境、集群节点关系中至少之一种。Optionally, the method further includes: in response to a metadata database node creation operation, acquiring and storing metadata database node information, where the metadata database node information includes: host name, port number, maintenance personnel information, password, system architecture, project At least one of the environment and cluster node relationship.

在本申请实施例中,用户可在元数据管理端的显示界面所显示的节点树中点击创建选项,然后设置所要创建节点的属性,其中主机名、端口号、维护人员信息、密码、系统架构、项目环境、集群节点关系等等,具体可以根据实际需求设置,此处不做限定。元数据库管理端会对该属性信息进行存储后写入节点库中。In the embodiment of the present application, the user can click the create option in the node tree displayed on the display interface of the metadata management terminal, and then set the properties of the node to be created, including the host name, port number, maintenance personnel information, password, system architecture, The project environment, cluster node relationship, etc., can be set according to actual needs, which is not limited here. The metabase management terminal will store the attribute information and write it into the node library.

可选地,参照图5,所述元数据库节点的节点信息通过以下步骤401至步骤403进行编辑:Optionally, referring to FIG. 5 , the node information of the metadata database node is edited through the following steps 401 to 403:

步骤401,响应于元数据节点信息的编辑指令,显示包含有元数据库节点之间层级关系的元数据库节点树。Step 401 , in response to the editing instruction of the metadata node information, display the metadata database node tree including the hierarchical relationship between the metadata database nodes.

步骤402,响应于对于所述元数据库节点树中任一目标元数据库节点标识的编辑操作,显示所述目标元数据库节点标识相对应的元数据库节点信息。Step 402: In response to an editing operation for any target metabase node identifier in the metabase node tree, display the metabase node information corresponding to the target metabase node identifier.

在本申请实施例中,元数据库管理端的显示界面显示节点树后,用户可通过节点树上的某个目标元数据库节点标识来使得显示界面显示该节点的属性信息。In the embodiment of the present application, after the node tree is displayed on the display interface of the metabase management terminal, the user can display the attribute information of the node on the display interface through the identifier of a target metabase node on the node tree.

步骤403,响应于对于所述元数据库节点信息的编辑操作,对所述元数据库节点信息进行更新。Step 403, in response to an editing operation on the metadata database node information, update the metadata database node information.

在本申请实施例中,用户可对显示界面中的元数据库节点数据中的某个节点的元数据库节点信息进行点击后,对所显示的某些属性信息进行修改后点击保存选项,即可把最新的属性信息更新到节点库中。当然也可以对某个元数据库节点进行删除操作,从而从节点树和节点库中删除该元数据库节点。In the embodiment of the present application, the user can click the metadata database node information of a node in the metadata database node data in the display interface, modify some of the displayed attribute information, and then click the save option to save the The latest attribute information is updated to the node library. Of course, a certain metabase node can also be deleted, so as to delete the metabase node from the node tree and the node library.

进一步的,参照图6,其中元数据库管理端除了上述描述中可以对元数据库版本和元数据节点进行增删改查操作外,还可在界面节点树点击某个节点,点击历史版本界面,会连接该节点数据库,从版本表读取版本记录,然后显示到界面。在界面节点树点击某个节点,右键选择备份库选项,会调用数据库的备份程序,把数据库备份到指定地址。在界面节点树点击某个节点,右键选择还原库选项,调用数据库的还原程序,读取选择的还原脚本,然后把数据库还原到历史状态。Further, referring to Fig. 6, in which the metadata database management terminal can perform addition, deletion, modification and query operations on the metadata database version and metadata nodes in the above description, and can also click a node in the interface node tree, click on the historical version interface, and the connection will be made. The node database reads version records from the version table and displays them on the interface. Click a node in the interface node tree, right-click to select the backup library option, the database backup program will be called, and the database will be backed up to the specified address. Click a node in the interface node tree, right-click to select the restore library option, call the restore program of the database, read the selected restore script, and then restore the database to the historical state.

可选地,所述步骤101,包括:在所述版本变更操作所指示的元数据库版本与所述目标元数据库节点的当前元数据库版本之间存在至少一个中间元数据库版本时,将所述中间元数据库版本和所述版本变更操作所指示的元数据库版本作为目标元数据库版本。Optionally, the step 101 includes: when there is at least one intermediate metabase version between the metabase version indicated by the version change operation and the current metabase version of the target metabase node, changing the intermediate The metabase version and the metabase version indicated by the version change operation are taken as the target metabase version.

在本申请实施例中,若版本变更操作所指示的元数据库版本与目标元数据库节点当前已部署的当前元数据库版本不是版本相邻,即两版本之间存在至少一个比当前元数据库版本的层级高,但比版本变更操作所指示的元数据库版本的层级低的元数据库版本,则无法直接从当前元数据库版本更新至操作所指示的元数据库版本。此时则可以认定该版本变更操作所指示的元数据库版本和中间元数据库版本均为目标元数据库版本,按照多个目标元数据库版本之间的版本层级先后顺序关系对目标元数据库节点依次进行更新,In this embodiment of the present application, if the metabase version indicated by the version change operation is not adjacent to the current metabase version currently deployed by the target metabase node, that is, there is at least one level between the two versions that is higher than the current metabase version. A metabase version that is higher than the level of the metabase version indicated by the version change operation cannot be updated directly from the current metabase version to the metabase version indicated by the operation. At this time, it can be determined that the metabase version and the intermediate metabase version indicated by the version change operation are both the target metabase version, and the target metabase nodes are updated in sequence according to the version level sequence relationship between multiple target metabase versions. ,

可选地,参照图7示出本申请实施例提供的另一种元数据库的管理方法的步骤流程图:Optionally, with reference to FIG. 7 , a flowchart of steps of another metadata database management method provided by an embodiment of the present application is shown:

步骤501,响应于对于所述多个元数据库节点中至少一元数据库节点的版本变更操作,在所述版本变更操作所指示的元数据库版本与所述目标元数据库节点的当前元数据库版本之间存在至少一个中间元数据库版本时,将所述中间元数据库版本和所述版本变更操作所指示的元数据库版本作为待更新元数据库版本。Step 501, in response to a version change operation for at least one metabase node among the plurality of metabase nodes, there is an existence between the metabase version indicated by the version change operation and the current metabase version of the target metabase node. When there is at least one intermediate metabase version, the intermediate metabase version and the metabase version indicated by the version change operation are used as the metabase version to be updated.

在本申请实施例中,通常不同层级的元数据库版本之间存在依赖关系,因此需要在目标元数据库节点上先部署低层级的元数据库版本之后,才能继续部署高层级的元数据库版本。In the embodiment of the present application, there is usually a dependency relationship between metabase versions at different levels, so the lower-level metabase version needs to be deployed on the target metabase node before continuing to deploy the higher-level metabase version.

具体在实际更新的过程中,首先将版本变更操作所指示的元数据库版本和中间元数据库版本均作为待更新元数据库版本以供后续逐一进行版本更新使用。Specifically, in the actual update process, first, both the metabase version and the intermediate metabase version indicated by the version change operation are used as the metabase version to be updated for subsequent version updates one by one.

步骤502,将数据库版本层级最低的待更新元数据库版本作为目标元数据库版本。In step 502, the metadata database version to be updated with the lowest database version level is used as the target metadata database version.

在本申请实施例中,由于低层级的元数据库版本可能为高层级的元数据库版本的依赖元数据库版本,因此本申请是将待更新元数据库版本中版本层级最低的作为本次版本更新的目标元数据库版本。需要说明的是,此处元数据库版本的层级高低并不是指元数据库版本的发布时间先后,而是元数据库版本之间的依赖关系,依赖关系越底层的元数据库版本的层级越低,反之依赖关系越高层的元数据库版本的层级越高,例如存在分布时间依次更迟的元数据库版本1、元数据库版本2、元数据库版本3,元数据库版本1是元数据库版本2的依赖元数据库版本,但是元数据库版本3是元数据库版本1的依赖元数据库版本的最新版本,因此元数据库版本3也是元数据库库版本1的依赖源数据库版本,则版本层级从低到高排序依次是:元数据库版本3、元数据库版本1、元数据库版本2。当然此处只是示例性说明,具体的层级关系可以根据实际需求设置,此处不做限定。In the embodiment of the present application, since the low-level metabase version may be a dependent metabase version of the high-level metabase version, the present application takes the version with the lowest version level among the to-be-updated metabase versions as the target of this version update Metabase version. It should be noted that the level of the metabase version here does not refer to the release time of the metabase version, but the dependency between the metabase versions. The lower the dependency, the lower the level of the metabase version, and vice versa. The higher the relationship level, the higher the level of the metabase version. For example, there are metabase version 1, metabase version 2, and metabase version 3 with later distribution times. Metabase version 1 is the dependent metabase version of metabase version 2. However, metabase version 3 is the latest version of the dependent metabase version of metabase version 1. Therefore, metabase version 3 is also the dependent source database version of metabase version 1. The order of the version levels from low to high is: metabase version 3. Metabase Version 1, Metabase Version 2. Of course, this is only an exemplary description, and the specific hierarchical relationship can be set according to actual requirements, which is not limited here.

步骤503,根据不同元数据库版本与依赖元数据库版本、脚本信息之间的对应关系,确定所述目标元数据库版本相对应的目标依赖元数据库版本和目标脚本信息。Step 503: Determine the target-dependent metabase version and target script information corresponding to the target metabase version according to the correspondence between the different metabase versions, the dependent metabase version, and the script information.

该步骤可参照步骤102的详细描述,此处不再赘述。For this step, reference may be made to the detailed description of step 102, which will not be repeated here.

步骤504,在所述目标元数据库节点中存在所述目标依赖元数据库版本的部署记录时,从所述目标脚本信息中提取脚本适用配置和脚本存储地址。Step 504 , when there is a deployment record of the target-dependent metabase version in the target metabase node, extract the script applicable configuration and the script storage address from the target script information.

该步骤可参照步骤103的详细描述,此处不再赘述。For this step, reference may be made to the detailed description of step 103, which will not be repeated here.

步骤505,在所述脚本适用配置与所述目标元数据库节点的配置信息相匹配时,从所述脚本存储地址获取脚本程序。Step 505: Obtain a script program from the script storage address when the script applicable configuration matches the configuration information of the target metadata database node.

该步骤可参照步骤104的详细描述,此处不再赘述。For this step, reference may be made to the detailed description of step 104, which will not be repeated here.

步骤506,执行所述脚本程序,在所述目标元数据库节点部署所述目标元数据库版本。Step 506: Execute the script program to deploy the target metabase version on the target metabase node.

该步骤可参照步骤105的详细描述,此处不再赘述。For this step, reference may be made to the detailed description of step 105, which will not be repeated here.

步骤507,从所述待更新元数据库版本中剔除所述目标元数据库版本,并重新进入所述将层级最低的待更新元数据库版本作为目标元数据库版本的步骤,直至不存在所述待更新元数据库版本时,结束执行对于所述目标元数据库节点的版本更新过程。Step 507: Remove the target metabase version from the metabase version to be updated, and re-enter the step of using the lowest level metabase version to be updated as the target metabase version, until the metabase version to be updated does not exist. When the database version is reached, the version update process for the target metadata database node is ended.

在本申请实施例中,在目标数据库版本更新成功后,则继续从剩余未更新的待更新元数据库版本中选取层级最低的作为下一个进行元数据库更新改的目标元数据库版本,从而按照版本层级关系从低到高依次进行元数据库版本,直至更新至版本更新操作所指示的元数据库版本。In the embodiment of the present application, after the target database version is successfully updated, the version with the lowest level is continued to be selected from the remaining unupdated to-be-updated metadata database versions as the next target metadata database version to be updated and modified, so that according to the version level The relationship proceeds from low to high metabase version until the metabase version indicated by the version update operation is updated.

步骤508,在所述目标元数据库版本更新失败时,回退对于所述目标元数据库版本的已更新内容,结束执行对于所述目标元数据库节点的版本更新过程。Step 508 , when the update of the target metabase version fails, roll back the updated content for the target metabase version, and end the execution of the version update process for the target metabase node.

在申请实施例中,若在更新的过程中出现目标元数据库节点中不存在目标依赖元数据库版本的部署记录的情况,或者是在脚本适用配置与目标元数据库节点的配置信息不匹配的情况,则认定目标元数据库版本更新失败,此时则回退之前对于目标元数据库版本的所有更新内容,还原至版本更新之前目标元数据库的初始元数据库版本,即上述描述中的当前元数据库版本。In the application embodiment, if there is no deployment record of the target-dependent metabase version in the target metabase node during the update process, or if the script applicable configuration does not match the configuration information of the target metabase node, It is determined that the update of the target metabase version fails. At this time, all previous updates to the target metabase version are rolled back and restored to the initial metabase version of the target metabase before the version update, that is, the current metabase version in the above description.

本申请实施例在元数据库跨版本更新的过程中按照待更新元数据库版本之间的版本层级关系从低到高依次进行更新,保证了元数据跨版本更新过程中无依赖元数据库版本的情况出现,提高了元数据版本的稳定性。In this embodiment of the present application, in the process of metabase cross-version update, the update is performed in order from low to high according to the version hierarchy relationship between the to-be-updated metabase versions, which ensures that there is no dependency on the metabase version during the process of metadata cross-version update. , which improves the stability of metadata versions.

图8示意性地示出了本申请提供的一种元数据库的管理装置60的结构示意图,应用于元数据库管理端,所述元数据库管理端与多个元数据库节点连接,所述装置包括:8 schematically shows a schematic structural diagram of a metadata database management device 60 provided by the present application, which is applied to a metadata database management terminal. The metadata database management terminal is connected to a plurality of metadata database nodes, and the device includes:

输入模块601,用于响应于对于所述多个元数据库节点中至少一元数据库节点的版本变更操作,确定所述版本变更操作相对应的目标元数据库版本;An input module 601, configured to, in response to a version change operation for at least one metabase node in the plurality of metadata database nodes, determine a target metadata database version corresponding to the version change operation;

验证模块602,用于根据不同元数据库版本与依赖元数据库版本、脚本信息之间的对应关系,确定所述目标元数据库版本相对应的目标依赖元数据库版本和目标脚本信息;A verification module 602, configured to determine the target-dependent metabase version and target script information corresponding to the target metabase version according to the correspondence between different metabase versions and the dependent metabase version and script information;

在所述目标元数据库节点中存在所述目标依赖元数据库版本的部署记录时,从所述目标脚本信息中提取脚本适用配置和脚本存储地址;When there is a deployment record of the target-dependent metabase version in the target metabase node, extracting a script applicable configuration and a script storage address from the target script information;

在所述脚本适用配置与所述目标元数据库节点的配置信息相匹配时,从所述脚本存储地址获取脚本程序;Obtaining a script program from the script storage address when the script applicable configuration matches the configuration information of the target metabase node;

部署模块603,用于执行所述脚本程序,在所述目标元数据库节点部署所述目标元数据库版本。The deployment module 603 is configured to execute the script program, and deploy the target metabase version on the target metabase node.

可选地,所述装置还包括:编辑模块,用于:Optionally, the device further includes: an editing module for:

响应于所述对应关系的构建指令,显示包含有元数据库版本之间层级关系的版本树;In response to the construction instruction of the corresponding relationship, displaying a version tree containing the hierarchical relationship between the metadata database versions;

响应于对所述版本树中任一版本父节点的新增操作,创建所述版本父节点下属的版本子节点,获取并存储元数据库版本信息;In response to the newly added operation to any version parent node in the version tree, create a version child node subordinate to the version parent node, and obtain and store the metadata database version information;

响应于对所述元数据库版本信息的脚本录入操作,获取并存储脚本信息;Acquire and store script information in response to a script entry operation for the metabase version information;

将所述元数据库版本信息和所述脚本信息进行关联存储。The metadata database version information and the script information are associated and stored.

可选地,所述编辑模块,还用于:Optionally, the editing module is also used for:

响应于对所述版本树中任一目标版本节点的编辑操作,显示所述目标版本节点相对应的版本信息和脚本信息;In response to an editing operation on any target version node in the version tree, displaying version information and script information corresponding to the target version node;

响应于对所述版本信息和/或所述脚本信息的编辑操作,对所述编辑操作所指示的版本信息和/或所述脚本信息进行更新。In response to an editing operation on the version information and/or the script information, the version information and/or the script information indicated by the editing operation is updated.

可选地,所述验证模块602,还用于在所述版本变更操作所指示的元数据库版本与所述目标元数据库节点的当前元数据库版本之间存在至少一个中间元数据库版本时,将所述中间元数据库版本和所述版本变更操作所指示的元数据库版本作为目标元数据库版本。Optionally, the verification module 602 is further configured to, when there is at least one intermediate metabase version between the metabase version indicated by the version change operation and the current metabase version of the target metabase node, verify the The intermediate metabase version and the metabase version indicated by the version change operation are used as the target metabase version.

可选地,所述验证模块602,还用于:Optionally, the verification module 602 is also used for:

在所述版本变更操作所指示的元数据库版本与所述目标元数据库节点的当前元数据库版本之间存在至少一个中间元数据库版本时,将所述中间元数据库版本和所述版本变更操作所指示的元数据库版本作为待更新元数据库版本;When there is at least one intermediate metabase version between the metabase version indicated by the version change operation and the current metabase version of the target metabase node, change the intermediate metabase version and the version indicated by the version change operation The metabase version of the to-be-updated metabase version;

将数据库版本层级最低的待更新元数据库版本作为目标元数据库版本;Use the metabase version to be updated with the lowest database version level as the target metabase version;

从所述待更新元数据库版本中剔除所述目标元数据库版本,并重新进入所述将层级最低的待更新元数据库版本作为目标元数据库版本的步骤,直至不存在所述待更新元数据库版本时,结束执行对于所述目标元数据库节点的版本更新过程。Remove the target metabase version from the to-be-updated metabase version, and re-enter the step of using the lowest-level metabase version to be updated as the target metabase version, until the to-be-updated metabase version does not exist , and finish executing the version update process for the target metabase node.

可选地,所述部署模块603,还用于:Optionally, the deployment module 603 is further configured to:

在所述目标元数据库版本更新失败时,回退对于所述目标元数据库版本的已更新内容,结束执行对于所述目标元数据库节点的版本更新过程。When the update of the target metabase version fails, the updated content for the target metabase version is rolled back, and the execution of the version update process for the target metabase node is ended.

可选地,所述编辑模块,还用于:Optionally, the editing module is also used for:

响应于元数据节点信息的编辑指令,显示包含有元数据库节点之间层级关系的元数据库节点树;In response to the editing instruction of the metadata node information, displaying the metadata database node tree including the hierarchical relationship between the metadata database nodes;

响应于对于所述元数据库节点树中任一目标元数据库节点标识的编辑操作,显示所述目标元数据库节点标识相对应的元数据库节点信息;In response to an editing operation for any target metabase node identifier in the metabase node tree, displaying the metabase node information corresponding to the target metabase node identifier;

响应于对于所述元数据库节点信息的编辑操作,对所述元数据库节点信息进行更新。The metabase node information is updated in response to an edit operation on the metabase node information.

本申请实施例通过将元数据版本更新过程集中到元数据库管理端进行统一管理,从而在元数据库管理端所连接的元数据库节点进行数据更新时,首先确认元数据库节点存在待更新的目标元数据库版本相对应的依赖元数据库版本,确保所部署的版本可以得到依赖元数据库版本的支持,再确认元数据库节点的配置信息与目标元数据库节点的脚本适用配置相匹配之后,再执行脚本程序来部署目标元数据库版本,保证了元数据库版本在部署后可以正常运行,而出现问题后能在元数据管理端快速通过版本部署记录进行排查。In this embodiment of the present application, the metadata version update process is centralized to the metadata database management terminal for unified management, so that when the metadata database node connected to the metadata database management terminal performs data update, it is first confirmed that the metadata database node has the target metadata database to be updated. The version corresponding to the dependent metabase version, to ensure that the deployed version can be supported by the dependent metabase version, and then confirm that the configuration information of the metabase node matches the script applicable configuration of the target metabase node, and then execute the script program to deploy The target metabase version ensures that the metabase version can run normally after deployment, and if a problem occurs, it can be quickly checked through the version deployment record on the metadata management side.

以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。本领域普通技术人员在不付出创造性的劳动的情况下,即可以理解并实施。The device embodiments described above are only illustrative, wherein the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in One place, or it can be distributed over multiple network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution in this embodiment. Those of ordinary skill in the art can understand and implement it without creative effort.

本申请的各个部件实施例可以以硬件实现,或者以在一个或者多个处理器上运行的软件模块实现,或者以它们的组合实现。本领域的技术人员应当理解,可以在实践中使用微处理器或者数字信号处理器(DSP)来实现根据本申请实施例的计算处理设备中的一些或者全部部件的一些或者全部功能。本申请还可以实现为用于执行这里所描述的方法的一部分或者全部的设备或者装置程序(例如,计算机程序和计算机程序产品)。这样的实现本申请的程序可以存储在计算机可读介质上,或者可以具有一个或者多个信号的形式。这样的信号可以从因特网网站上下载得到,或者在载体信号上提供,或者以任何其他形式提供。Various component embodiments of the present application may be implemented in hardware, or in software modules running on one or more processors, or in a combination thereof. Those skilled in the art should understand that a microprocessor or a digital signal processor (DSP) may be used in practice to implement some or all of the functions of some or all of the components in the computing processing device according to the embodiments of the present application. The present application can also be implemented as an apparatus or apparatus program (eg, computer programs and computer program products) for performing part or all of the methods described herein. Such a program implementing the present application may be stored on a computer-readable medium, or may be in the form of one or more signals. Such signals may be downloaded from Internet sites, or provided on carrier signals, or in any other form.

例如,图9示出了可以实现根据本申请的方法的计算处理设备。该计算处理设备传统上包括处理器710和以存储器720形式的计算机程序产品或者计算机可读介质。存储器720可以是诸如闪存、EEPROM(电可擦除可编程只读存储器)、EPROM、硬盘或者ROM之类的电子存储器。存储器720具有用于执行上述方法中的任何方法步骤的程序代码731的存储空间730。例如,用于程序代码的存储空间730可以包括分别用于实现上面的方法中的各种步骤的各个程序代码731。这些程序代码可以从一个或者多个计算机程序产品中读出或者写入到这一个或者多个计算机程序产品中。这些计算机程序产品包括诸如硬盘,紧致盘(CD)、存储卡或者软盘之类的程序代码载体。这样的计算机程序产品通常为如参考图10所述的便携式或者固定存储单元。该存储单元可以具有与图9的计算处理设备中的存储器720类似布置的存储段、存储空间等。程序代码可以例如以适当形式进行压缩。通常,存储单元包括计算机可读代码731’,即可以由例如诸如710之类的处理器读取的代码,这些代码当由计算处理设备运行时,导致该计算处理设备执行上面所描述的方法中的各个步骤。For example, Figure 9 shows a computing processing device that can implement methods according to the present application. The computing processing device traditionally includes a processor 710 and a computer program product or computer readable medium in the form of a memory 720 . The memory 720 may be electronic memory such as flash memory, EEPROM (electrically erasable programmable read only memory), EPROM, hard disk, or ROM. The memory 720 has storage space 730 for program code 731 for performing any of the method steps in the above-described methods. For example, storage space 730 for program code may include individual program codes 731 for implementing various steps in the above methods, respectively. The program codes can be read from or written to one or more computer program products. These computer program products include program code carriers such as hard disks, compact disks (CDs), memory cards or floppy disks. Such computer program products are typically portable or fixed storage units as described with reference to FIG. 10 . The storage unit may have storage segments, storage spaces, etc. arranged similarly to the memory 720 in the computing processing device of FIG. 9 . The program code may, for example, be compressed in a suitable form. Typically, the storage unit includes computer readable code 731', ie code readable by a processor such as 710 for example, which when executed by a computing processing device, causes the computing processing device to perform any of the methods described above. of the various steps.

应该理解的是,虽然附图的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,其可以以其他的顺序执行。而且,附图的流程图中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,其执行顺序也不必然是依次进行,而是可以与其他步骤或者其他步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the various steps in the flowchart of the accompanying drawings are sequentially shown in the order indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless explicitly stated herein, the execution of these steps is not strictly limited to the order and may be performed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but may be executed at different times, and the execution sequence is also It does not have to be performed sequentially, but may be performed alternately or alternately with other steps or at least a portion of sub-steps or stages of other steps.

本文中所称的“一个实施例”、“实施例”或者“一个或者多个实施例”意味着,结合实施例描述的特定特征、结构或者特性包括在本申请的至少一个实施例中。此外,请注意,这里“在一个实施例中”的词语例子不一定全指同一个实施例。Reference herein to "one embodiment," "an embodiment," or "one or more embodiments" means that a particular feature, structure, or characteristic described in connection with an embodiment is included in at least one embodiment of the present application. Also, please note that instances of the phrase "in one embodiment" herein are not necessarily all referring to the same embodiment.

在此处所提供的说明书中,说明了大量具体细节。然而,能够理解,本申请的实施例可以在没有这些具体细节的情况下被实践。在一些实例中,并未详细示出公知的方法、结构和技术,以便不模糊对本说明书的理解。In the description provided herein, numerous specific details are set forth. It will be understood, however, that the embodiments of the present application may be practiced without these specific details. In some instances, well-known methods, structures and techniques have not been shown in detail in order not to obscure an understanding of this description.

在权利要求中,不应将位于括号之间的任何参考符号构造成对权利要求的限制。单词“包含”不排除存在未列在权利要求中的元件或步骤。位于元件之前的单词“一”或“一个”不排除存在多个这样的元件。本申请可以借助于包括有若干不同元件的硬件以及借助于适当编程的计算机来实现。在列举了若干装置的单元权利要求中,这些装置中的若干个可以是通过同一个硬件项来具体体现。单词第一、第二、以及第三等的使用不表示任何顺序。可将这些单词解释为名称。In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of hardware comprising several different elements and by means of a suitably programmed computer. In a unit claim enumerating several means, several of these means may be embodied by one and the same item of hardware. The use of the words first, second, and third, etc. do not denote any order. These words can be interpreted as names.

最后应说明的是:以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: it can still be The technical solutions described in the foregoing embodiments are modified, or some technical features thereof are equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions in the embodiments of the present application.

Claims (10)

1.一种元数据库的管理方法,其特征在于,应用于元数据库管理端,所述元数据库管理端与多个元数据库节点连接,所述方法包括:1. A method for managing a metabase, characterized in that it is applied to a metabase management terminal, which is connected to a plurality of metabase nodes, the method comprising: 响应于对于所述多个元数据库节点中至少一元数据库节点的版本变更操作,确定所述版本变更操作相对应的目标元数据库版本;In response to a version change operation for at least one metabase node in the plurality of metabase nodes, determining a target metabase version corresponding to the version change operation; 根据不同元数据库版本与依赖元数据库版本、脚本信息之间的对应关系,确定所述目标元数据库版本相对应的目标依赖元数据库版本和目标脚本信息;Determine the target dependent metabase version and target script information corresponding to the target metabase version according to the correspondence between different metabase versions, dependent metabase versions, and script information; 在所述目标元数据库节点中存在所述目标依赖元数据库版本的部署记录时,从所述目标脚本信息中提取脚本适用配置和脚本存储地址;When there is a deployment record of the target-dependent metabase version in the target metabase node, extracting a script applicable configuration and a script storage address from the target script information; 在所述脚本适用配置与所述目标元数据库节点的配置信息相匹配时,从所述脚本存储地址获取脚本程序;Obtaining a script program from the script storage address when the script applicable configuration matches the configuration information of the target metabase node; 执行所述脚本程序,在所述目标元数据库节点部署所述目标元数据库版本。The script program is executed to deploy the target metabase version on the target metabase node. 2.根据权利要求1所述的方法,其特征在于,所述元数据版本与所述脚本信息之间的对应关系是通过以下步骤构建:2. The method according to claim 1, wherein the correspondence between the metadata version and the script information is constructed by the following steps: 响应于所述对应关系的构建指令,显示包含有元数据库版本之间层级关系的版本树;In response to the construction instruction of the corresponding relationship, displaying a version tree containing the hierarchical relationship between the metadata database versions; 响应于对所述版本树中任一版本父节点的新增操作,创建所述版本父节点下属的版本子节点,获取并存储元数据库版本信息;In response to the newly added operation to any version parent node in the version tree, create a version child node subordinate to the version parent node, and obtain and store the metadata database version information; 响应于对所述元数据库版本信息的脚本录入操作,获取并存储脚本信息;Acquire and store script information in response to a script entry operation for the metabase version information; 将所述元数据库版本信息和所述脚本信息进行关联存储。The metadata database version information and the script information are associated and stored. 3.根据权利要求2所述的方法,其特征在于,在显示包含有元数据库版本之间关联关系的版本树之后,所述方法还包括:3. The method according to claim 2, characterized in that, after displaying the version tree containing the association relationship between the metadata database versions, the method further comprises: 响应于对所述版本树中任一目标版本节点的编辑操作,显示所述目标版本节点相对应的版本信息和脚本信息;In response to an editing operation on any target version node in the version tree, displaying version information and script information corresponding to the target version node; 响应于对所述版本信息和/或所述脚本信息的编辑操作,对所述编辑操作所指示的版本信息和/或所述脚本信息进行更新。In response to an editing operation on the version information and/or the script information, the version information and/or the script information indicated by the editing operation is updated. 4.根据权利要求1所述的方法,其特征在于,所述确定所述版本变更操作相对应的目标元数据库版本,包括:4. The method according to claim 1, wherein the determining the target metadata database version corresponding to the version change operation comprises: 在所述版本变更操作所指示的元数据库版本与所述目标元数据库节点的当前元数据库版本之间存在至少一个中间元数据库版本时,将所述中间元数据库版本和所述版本变更操作所指示的元数据库版本作为目标元数据库版本。When there is at least one intermediate metabase version between the metabase version indicated by the version change operation and the current metabase version of the target metabase node, change the intermediate metabase version and the version indicated by the version change operation The metabase version of the target metabase version. 5.根据权利要求4所述的方法,其特征在于,所述将所述中间元数据库版本和所述版本变更操作所指示的元数据库版本作为目标元数据库版本,包括:5. The method according to claim 4, wherein the taking the intermediate metabase version and the metabase version indicated by the version change operation as the target metabase version comprises: 在所述版本变更操作所指示的元数据库版本与所述目标元数据库节点的当前元数据库版本之间存在至少一个中间元数据库版本时,将所述中间元数据库版本和所述版本变更操作所指示的元数据库版本作为待更新元数据库版本;When there is at least one intermediate metabase version between the metabase version indicated by the version change operation and the current metabase version of the target metabase node, change the intermediate metabase version and the version indicated by the version change operation The metabase version of the to-be-updated metabase version; 将数据库版本层级最低的待更新元数据库版本作为目标元数据库版本;Use the metabase version to be updated with the lowest database version level as the target metabase version; 在所述执行所述脚本程序,在所述目标元数据库节点部署所述目标元数据库版本之后,所述方法还包括:After the executing the script program, after the target metabase node deploys the target metabase version, the method further includes: 从所述待更新元数据库版本中剔除所述目标元数据库版本,并重新进入所述将层级最低的待更新元数据库版本作为目标元数据库版本的步骤,直至不存在所述待更新元数据库版本时,结束执行对于所述目标元数据库节点的版本更新过程。Remove the target metabase version from the to-be-updated metabase version, and re-enter the step of using the lowest-level metabase version to be updated as the target metabase version, until the to-be-updated metabase version does not exist , and finish executing the version update process for the target metabase node. 6.根据权利要求5所述的方法,其特征在于,在所述将数据库版本层级最低的待更新元数据库版本作为目标元数据库版本之后,所述方法还包括:6. The method according to claim 5, wherein after the metabase version to be updated with the lowest database version level is taken as the target metabase version, the method further comprises: 在所述目标元数据库版本更新失败时,回退对于所述目标元数据库版本的已更新内容,结束执行对于所述目标元数据库节点的版本更新过程。When the update of the target metabase version fails, the updated content for the target metabase version is rolled back, and the execution of the version update process for the target metabase node is ended. 7.根据权利要求1所述的方法,其特征在于,所述元数据库节点的节点信息通过以下步骤进行编辑:7. The method according to claim 1, wherein the node information of the metadata database node is edited by the following steps: 响应于元数据节点信息的编辑指令,显示包含有元数据库节点之间层级关系的元数据库节点树;In response to the editing instruction of the metadata node information, displaying the metadata database node tree including the hierarchical relationship between the metadata database nodes; 响应于对于所述元数据库节点树中任一目标元数据库节点标识的编辑操作,显示所述目标元数据库节点标识相对应的元数据库节点信息;In response to an editing operation for any target metabase node identifier in the metabase node tree, displaying the metabase node information corresponding to the target metabase node identifier; 响应于对于所述元数据库节点信息的编辑操作,对所述元数据库节点信息进行更新。The metabase node information is updated in response to an edit operation on the metabase node information. 8.一种元数据库的管理装置,其特征在于,应用于元数据库管理端,所述元数据库管理端与多个元数据库节点连接,所述装置包括:8. A metadata database management device, characterized in that it is applied to a metadata database management terminal, the metadata database management terminal is connected to a plurality of metadata database nodes, and the device comprises: 输入模块,用于响应于对于所述多个元数据库节点中至少一元数据库节点的版本变更操作,确定所述版本变更操作相对应的目标元数据库版本;an input module, configured to, in response to a version change operation for at least one metabase node in the plurality of metabase nodes, determine a target metabase version corresponding to the version change operation; 验证模块,用于根据不同元数据库版本与依赖元数据库版本、脚本信息之间的对应关系,确定所述目标元数据库版本相对应的目标依赖元数据库版本和目标脚本信息;a verification module, configured to determine the target-dependent metabase version and target script information corresponding to the target metabase version according to the correspondence between different metabase versions and the dependent metabase version and script information; 在所述目标元数据库节点中存在所述目标依赖元数据库版本的部署记录时,从所述目标脚本信息中提取脚本适用配置和脚本存储地址;When there is a deployment record of the target-dependent metabase version in the target metabase node, extracting a script applicable configuration and a script storage address from the target script information; 在所述脚本适用配置与所述目标元数据库节点的配置信息相匹配时,从所述脚本存储地址获取脚本程序;Obtaining a script program from the script storage address when the script applicable configuration matches the configuration information of the target metabase node; 部署模块,用于执行所述脚本程序,在所述目标元数据库节点部署所述目标元数据库版本。A deployment module, configured to execute the script program, and deploy the target metabase version on the target metabase node. 9.一种计算处理设备,其特征在于,包括:9. A computing and processing device, comprising: 存储器,其中存储有计算机可读代码;a memory in which computer readable code is stored; 一个或多个处理器,当所述计算机可读代码被所述一个或多个处理器执行时,所述计算处理设备执行如权利要求1至7中任一项所述的元数据库的管理方法。One or more processors, when the computer readable code is executed by the one or more processors, the computing processing device executes the metadata database management method according to any one of claims 1 to 7 . 10.一种计算机可读介质,其特征在于,其中存储了如权利要求1至7中任一项所述的元数据库的管理方法。10. A computer-readable medium, wherein the metadata database management method according to any one of claims 1 to 7 is stored therein.
CN202210326771.4A 2022-03-30 2022-03-30 Metadatabase management method, device, electronic device and medium Active CN114816470B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210326771.4A CN114816470B (en) 2022-03-30 2022-03-30 Metadatabase management method, device, electronic device and medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210326771.4A CN114816470B (en) 2022-03-30 2022-03-30 Metadatabase management method, device, electronic device and medium

Publications (2)

Publication Number Publication Date
CN114816470A true CN114816470A (en) 2022-07-29
CN114816470B CN114816470B (en) 2025-02-07

Family

ID=82532460

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210326771.4A Active CN114816470B (en) 2022-03-30 2022-03-30 Metadatabase management method, device, electronic device and medium

Country Status (1)

Country Link
CN (1) CN114816470B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115687375A (en) * 2022-08-26 2023-02-03 中国工商银行股份有限公司 Database updating method and device, computer equipment and storage medium
CN115993981A (en) * 2023-01-09 2023-04-21 中国建设银行股份有限公司 A data processing method, device, electronic device, and computer-readable medium
CN116149712A (en) * 2023-04-04 2023-05-23 湖南中青能科技有限公司 Database version updating compatible matching method
CN116244319A (en) * 2023-01-13 2023-06-09 重庆奥普泰通信技术有限公司 Database version updating method and system of communication equipment and readable storage medium
CN116975033A (en) * 2023-07-31 2023-10-31 中国工商银行股份有限公司 Data processing methods, devices, equipment and storage media
CN120950511A (en) * 2025-10-15 2025-11-14 北京涛思数据科技有限公司 An industrial metadata storage method and a multi-system transaction consistency guarantee method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365945A (en) * 2012-03-29 2013-10-23 乐金信世股份有限公司 Method of managing script, server performing the same and storage media storing the same
CN105808776A (en) * 2016-03-29 2016-07-27 中国建设银行股份有限公司 Data management system and method of distributed database
WO2017177769A1 (en) * 2016-04-11 2017-10-19 平安科技(深圳)有限公司 Ogg version deployment method and system, server, and storage medium
CN111708764A (en) * 2020-06-22 2020-09-25 深圳前海微众银行股份有限公司 A kind of control method and device for database change version
CN112100194A (en) * 2020-10-10 2020-12-18 苏州浪潮智能科技有限公司 Database version management method and system

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103365945A (en) * 2012-03-29 2013-10-23 乐金信世股份有限公司 Method of managing script, server performing the same and storage media storing the same
US20130290929A1 (en) * 2012-03-29 2013-10-31 Lg Cns Co., Ltd. Method of managing script, server performing the same and storage media storing the same
CN105808776A (en) * 2016-03-29 2016-07-27 中国建设银行股份有限公司 Data management system and method of distributed database
WO2017177769A1 (en) * 2016-04-11 2017-10-19 平安科技(深圳)有限公司 Ogg version deployment method and system, server, and storage medium
CN111708764A (en) * 2020-06-22 2020-09-25 深圳前海微众银行股份有限公司 A kind of control method and device for database change version
CN112100194A (en) * 2020-10-10 2020-12-18 苏州浪潮智能科技有限公司 Database version management method and system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115687375A (en) * 2022-08-26 2023-02-03 中国工商银行股份有限公司 Database updating method and device, computer equipment and storage medium
CN115993981A (en) * 2023-01-09 2023-04-21 中国建设银行股份有限公司 A data processing method, device, electronic device, and computer-readable medium
CN116244319A (en) * 2023-01-13 2023-06-09 重庆奥普泰通信技术有限公司 Database version updating method and system of communication equipment and readable storage medium
CN116149712A (en) * 2023-04-04 2023-05-23 湖南中青能科技有限公司 Database version updating compatible matching method
CN116149712B (en) * 2023-04-04 2023-06-27 湖南中青能科技有限公司 Database version updating compatible matching method
CN116975033A (en) * 2023-07-31 2023-10-31 中国工商银行股份有限公司 Data processing methods, devices, equipment and storage media
CN120950511A (en) * 2025-10-15 2025-11-14 北京涛思数据科技有限公司 An industrial metadata storage method and a multi-system transaction consistency guarantee method

Also Published As

Publication number Publication date
CN114816470B (en) 2025-02-07

Similar Documents

Publication Publication Date Title
CN114816470A (en) Metabase management method, apparatus, electronic device and medium
US8484638B2 (en) Infrastructure for the automation of the assembly of schema maintenance scripts
US8832028B2 (en) Database cloning
CN110162525B (en) B+ tree-based read-write conflict resolution method, device and storage medium
US7774772B2 (en) Method and apparatus to perform an application software migration
JP4906292B2 (en) Method, system, and computer-readable medium for merging data from multiple data sources for use in an electronic document
US20060106889A1 (en) Method, system, and program for managing revisions to a file
CN110196725A (en) Configuration file management method, apparatus, computer equipment and storage medium
US10339113B2 (en) Method and system for effecting incremental changes to a repository
US20100023562A1 (en) Extended system for accessing electronic documents with revision history in non-compatible repositories
JP2009187136A (en) Electronic file management apparatus and electronic file management method
EP4315093A1 (en) Database schema branching workflow, with support for data, keyspaces and vschemas
US20060136471A1 (en) Differential management of database schema changes
US20210405978A1 (en) Method and system for configuring processes of software applications using activity fragments
CN114489720B (en) A method, device, storage medium and equipment based on cluster deployment service
CN114185591A (en) Code checking method, apparatus, storage medium and computer program product
CN114968725A (en) Task dependency relationship correction method and device, computer equipment and storage medium
CN114924914A (en) Disk partition table information backup and recovery method and system
CN117215602A (en) Method, device, computer equipment and storage medium for updating drive program
JP2018109898A (en) Data migration system
CN115718631A (en) Data mounting method, device, equipment, storage medium and program product
US12450128B2 (en) Backup and recovery for software-as-a-service data
CN111708792A (en) Cloud platform database upgrade method, device, computer equipment and storage medium
CN115080802B (en) Serial number processing methods, devices and computer equipment
CN119149522B (en) Data processing method and device based on distributed database and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant