Database management method, system, computer equipment and computer storage medium

By determining the target database and multiple target indicator data, collecting and calculating evaluation values, and generating inspection reports, the problem of poor database control effect in the existing technology is solved, comprehensive quality control of all stages of the database life cycle is achieved, and efficiency is improved. and accuracy.

CN114637739BActive Publication Date: 2024-10-22PING AN INT FINANCIAL LEASING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210288651.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-03-22
Publication Date
2024-10-22
Estimated Expiration
2042-03-22

AI Technical Summary

Technical Problem

Existing database management and control methods only target a certain stage, and it is difficult to combine the operating status and possible vulnerabilities of multiple stages such as the database usage stage, development stage, operation and maintenance stage, etc., resulting in poor database quality control effects, affecting development, design, use and Operation and maintenance efficiency.

Method used

By determining the target database and multiple target indicator data, collecting indicator execution results, obtaining evaluation expressions, calculating the target database evaluation value, and generating inspection reports, the overall quality control of the database at each stage of its entire life cycle is achieved.

Benefits of technology

It improves the efficiency and effectiveness of database quality control, ensures the standardization and accuracy of the database at all stages, and promptly checks and corrects performance and security risks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114637739B_ABST
    Figure CN114637739B_ABST
Patent Text Reader

Abstract

An embodiment of the present invention provides a database management and control method, comprising: determining a target database and multiple target indicator data corresponding to the target database according to project requirements; collecting indicator execution results corresponding to each target indicator data according to the project requirements; obtaining an evaluation expression corresponding to each target indicator data; calculating the indicator execution results corresponding to each target indicator data based on multiple evaluation expressions and the multiple target indicator data to obtain multiple target database evaluation values ​​corresponding to the target database; and generating a target database inspection report corresponding to the target database according to the multiple target database evaluation values; the embodiment of the present invention calculates the indicator execution results through evaluation expressions to achieve database management and control, and the flexible setting of the evaluation expressions can effectively improve the efficiency and management effect of database quality management and control.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present invention relate to the field of data processing technology, and in particular to a database management method, system, computer equipment, and computer storage medium. Background Art

[0002] Existing database management and control methods mainly include the following: (1) Formulate and implement database development and design specifications; (2) Add relevant specifications for SQL release pre-review on the premise of database development and design specifications in (1); (3) Use middleware to filter out risky SQL based on pre-set interception rules; (4) Set monitoring rules to monitor and issue alarms on indicators that affect database performance, security, and resource usage.

[0003] However, the above database management and control method has at least the following defects: database quality control is only performed on the database at a certain stage, which is prone to poor overall database quality control due to failure to consider the operating status, usage status, possible vulnerabilities, and other issues of the database in multiple stages such as the database usage stage, development stage, and operation and maintenance stage, thereby affecting the efficiency of database development, design, use, and operation and maintenance. Summary of the invention

[0004] In view of this, an object of the present invention is to provide a database management method, system, computer device and computer-readable storage medium, which are used to solve the problem of poor database quality control effect of existing database management methods.

[0005] An aspect of an embodiment of the present invention provides a database management method, including:

[0006] According to project requirements, determine a target database and a plurality of target indicator data corresponding to the target database;

[0007] According to the project requirements, collect the indicator execution results corresponding to each target indicator data;

[0008] Obtaining an evaluation expression corresponding to each target indicator data to obtain multiple evaluation expressions;

[0009] Based on the multiple evaluation expressions and the multiple target indicator data, the indicator execution result corresponding to each target indicator data is calculated to obtain multiple target database evaluation values ​​corresponding to the target database, wherein the multiple target database evaluation values ​​are used to indicate the degree of influence of the indicator execution result of the corresponding target indicator data on the quality of the target database; and

[0010] A target database inspection report corresponding to the target database is generated according to the multiple target database evaluation values.

[0011] Optionally, determining a target database and a plurality of target indicator data corresponding to the target database according to project requirements includes:

[0012] Analyze the project requirements and extract environment keywords and requirement keywords;

[0013] Determining a target environment according to the environment keyword, and determining the target database according to the target environment; and

[0014] According to the demand keywords, the target evaluation category corresponding to the target database is determined, and the multiple target indicator data are obtained from the target evaluation category.

[0015] Optionally, the step of calculating the indicator execution result corresponding to each target indicator data based on the multiple evaluation expressions and the multiple target indicator data to obtain multiple target database evaluation values ​​corresponding to the target database includes:

[0016] Parsing the plurality of target indicator data to obtain the correlation relationship between each of the target indicator data;

[0017] According to the association relationship between each target indicator data, each target indicator data, the indicator execution result corresponding to each target indicator data, and the evaluation expression corresponding to each target indicator data are distributed to each node in the target processing chain; and

[0018] Each target indicator data and the corresponding indicator execution result are calculated in turn through each node in the target processing chain according to the evaluation expression corresponding to each node, so as to obtain the multiple target database evaluation values ​​corresponding to the target database.

[0019] Optionally, the method further comprises the step of pre-building a plurality of indicator data:

[0020] Construct multiple evaluation categories and multiple indicator data according to preset database specifications and enterprise needs;

[0021] According to each indicator data, configure the corresponding execution script and the scheduling time of each execution script; and

[0022] According to the indicator attributes of the plurality of indicator data, the plurality of indicator data, each execution script and the scheduling time of each execution script are classified and sorted into corresponding evaluation categories.

[0023] Optionally, the method further comprises the step of pre-building a plurality of evaluation expressions:

[0024] Configuring a score weight for each evaluation category, wherein the score weight is used to indicate the importance of the corresponding evaluation category in performing database evaluation;

[0025] configuring a scoring rule for each indicator data in each evaluation category; and

[0026] The scoring rule corresponding to each indicator data and the score weight corresponding to each evaluation category are combined to obtain an evaluation expression corresponding to each indicator data.

[0027] Optionally, after generating a target database inspection report corresponding to the target database according to the multiple target database evaluation values, the method further includes:

[0028] According to the target database, determining a target enterprise department from a preset metadata database;

[0029] Obtaining a check report on the associated database corresponding to the target enterprise department;

[0030] Extracting a plurality of target database evaluation values ​​from the target database inspection report and extracting an associated database evaluation value from the associated database inspection report; and

[0031] The evaluation values ​​of the multiple target databases and the evaluation values ​​of the associated databases are calculated, and a database control score of the target enterprise department for the target database is obtained.

[0032] Optionally, the method further comprises the step of constructing a metadata database:

[0033] Establishing a metadata database related to a plurality of databases, wherein the metadata database includes: a database host, a database, a business system and an enterprise department;

[0034] Establishing the ownership relationship between the database host and each database, the ownership relationship between the database and each business system, and the ownership relationship between the business system and each enterprise department; and

[0035] The ownership relationship between the database host and each database, the ownership relationship between the database and each business system, and the ownership relationship between the business system and each enterprise department are stored in the metadata database.

[0036] An aspect of an embodiment of the present invention further provides a database management and control system, including:

[0037] A determination module, used to determine a target database and a plurality of target indicator data corresponding to the target database according to project requirements;

[0038] A collection module, used to collect the indicator execution results corresponding to each target indicator data according to the project requirements;

[0039] An acquisition module, used to acquire the evaluation expression corresponding to each target indicator data to obtain multiple evaluation expressions;

[0040] a calculation module, configured to calculate the indicator execution result corresponding to each target indicator data based on the multiple evaluation expressions and the multiple target indicator data, and obtain multiple target database evaluation values ​​corresponding to the target database, wherein the multiple target database evaluation values ​​are used to indicate the degree of influence of the indicator execution result of the corresponding target indicator data on the quality of the target database; and

[0041] A generating module is used to generate a target database inspection report corresponding to the target database according to the multiple target database evaluation values.

[0042] An aspect of an embodiment of the present invention further provides a computer device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor implements the steps of the above-mentioned database management method when executing the computer program.

[0043] One aspect of an embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored. The computer program can be executed by at least one processor so that the at least one processor performs the steps of the database management method as described above.

[0044] The database management and control method, system, computer device and computer-readable storage medium provided in the embodiments of the present invention determine the target database and multiple target indicator data corresponding to the target database through project requirements; collect the indicator execution results corresponding to each target indicator data according to the project requirements; obtain the evaluation expression corresponding to each target indicator data; calculate the indicator execution results corresponding to each target indicator data based on multiple evaluation expressions and the multiple target indicator data to obtain multiple target database evaluation values ​​corresponding to the target database; and generate a target database inspection report corresponding to the target database according to the multiple target database evaluation values; the embodiments of the present invention calculate the indicator execution results through preset evaluation expressions to achieve the overall quality control of the database in various stages of its entire life cycle, such as design, development, operation and maintenance stages, and the flexible setting of the evaluation expression can effectively improve the efficiency and control effect of database quality control.

[0045] The present invention is described in detail below with reference to the accompanying drawings and specific embodiments, but is not intended to limit the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 An example flow chart of a method for implementing database management and control according to the present invention is schematically shown;

[0047] Figure 2 A flowchart schematically shows a step flow of implementing a database management and control method according to the present invention;

[0048] Figure 3 A flowchart schematically shows a step flow of implementing a database management and control method according to the present invention;

[0049] Figure 4 A flowchart schematically shows a step flow of implementing a database management and control method according to the present invention;

[0050] Figure 5 A flowchart schematically shows a step flow of implementing a database management and control method according to the present invention;

[0051] Figure 6 A flowchart schematically shows a step flow of implementing a database management and control method according to the present invention;

[0052] Figure 7 A flowchart schematically shows a step flow of implementing a database management and control method according to the present invention;

[0053] Figure 8 A block diagram of a database management and control system according to a second embodiment of the present invention is schematically shown;

[0054] Fig. 9 The hardware structure diagram of a computer device suitable for implementing a database management and control method according to the third embodiment of the present invention is schematically shown. DETAILED DESCRIPTION

[0055] In order to make the purpose, technical scheme and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

[0056] It should be noted that the descriptions involving "first", "second", etc. in the embodiments of the present invention are only for descriptive purposes and cannot be understood as indicating or suggesting their relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such a combination of technical solutions does not exist and is not within the scope of protection required by the present invention.

[0057] In the description of the present invention, it should be understood that the numerical labels before the steps do not identify the order of executing the steps, but are only used to facilitate the description of the present invention and distinguish each step, and therefore cannot be understood as a limitation of the present invention.

[0058] Embodiment 1

[0059] See also Figure 1 , showing a flowchart of the steps of the database management method of an embodiment of the present invention. It can be understood that the flowchart in the embodiment of the method is not used to limit the order of executing the steps. The database management method described in this embodiment is applied to the design, development, and operation and maintenance stages of various databases of an enterprise. The following is an exemplary description using a computer device as the execution subject, as follows:

[0060] like Figure 1 As shown, the database management method may include steps S100 to S108, wherein:

[0061] Step S100: determining a target database and a plurality of target indicator data corresponding to the target database according to project requirements.

[0062] Among them, project requirements include but are not limited to: database design, standardization detection of development stage code (such as SQL code), core performance issues of concern to the enterprise, security issues or other issues of security or performance inspection. Among them, the database includes database objects, which include but are not limited to: tables, indexes, views, charts, default values, rules, triggers, etc. Project requirements are set according to the actual project and are not exhaustive here.

[0063] The target indicator data includes, but is not limited to, the completeness of table description information, the completeness of field description information, etc. The target indicator data varies according to project requirements and target databases related to the project requirements, and are not exhaustively listed here.

[0064] To improve the efficiency of obtaining target indicator data, please refer to Figure 2, the step of determining the target database and multiple target indicator data corresponding to the target database according to the project requirements also includes the following steps S200 to S204, wherein: step S200, parsing the project requirements, extracting environmental keywords and demand keywords; step S202, parsing the project requirements, extracting environmental keywords and demand keywords; and step S204, determining the target evaluation category corresponding to the target database according to the demand keywords, and obtaining the multiple target indicator data from the target evaluation category. In this embodiment, environmental keywords include but are not limited to: development environment, production environment, test environment, release environment, etc. Based on environmental keywords and demand keywords, multiple target indicator data and target evaluation categories associated with the target database are quickly located, effectively improving the efficiency of obtaining target indicator data, and helping to improve the efficiency of database quality control.

[0065] In order to improve the standardization and accuracy of database quality control, the method also includes the pre-construction of multiple indicator data. According to the actual situation of the enterprise and the actual needs of various projects, the relevant indicator data are set, which can effectively improve the efficiency of database quality control. Figure 4 The method also includes the step of pre-building a plurality of indicator data, wherein: step S400, constructing a plurality of evaluation categories and a plurality of indicator data according to preset database specifications and enterprise requirements; step S402, configuring a corresponding execution script and a scheduling time of each execution script according to each indicator data; and step S404, classifying and arranging the plurality of indicator data, each execution script and the scheduling time of each execution script into corresponding evaluation categories according to the indicator attributes of the plurality of indicator data.

[0066] Among them, the database-related specifications are disassembled and the specific evaluation indicators that enterprises are concerned about are collected to form a series of implementable database indicator data, and the indicator data is classified and sorted according to the attributes of the indicator data and other information to form evaluation categories. For example, the database-related specifications require that each table and each field must have annotations. The "data dictionary" evaluation category can be established, under which two evaluation items are set: table annotations and field annotations; the corresponding indicator data can be: completeness of table annotations and completeness of field annotations.

[0067] In an exemplary embodiment, the evaluation categories may also include connection, authority, design, development, operation and maintenance, etc., each of which contains a number of specific indicator data. For example, the evaluation category of "database development" may involve issues such as TOP SQL, risky SQL, complex SQL, deadlock / blocking, uncommitted transactions, parallel DML (OLTP), tablespaces, triggers, cross-database access, and bound variables. Therefore, they are all used as evaluation items corresponding to the evaluation category of "database development", and specific indicator data are set corresponding to the evaluation items. For example: the evaluation item of risky SQL, the corresponding indicator data may be whether risky SQL is included.

[0068] The above-mentioned evaluation categories and corresponding indicator data are flexibly set up and can be based on database-related specifications and / or can be based on specific assessment indicators that the enterprise is concerned about. Evaluation categories, evaluation items and indicator data can also be added or deleted according to actual conditions. They are not listed here exhaustively.

[0069] Step S102: collecting the indicator execution results corresponding to each target indicator data according to the project requirements.

[0070] In this embodiment, the execution of each indicator data is monitored in real time through log embedding, and the indicator execution result of each indicator data is stored in the log of the corresponding database. When performing database quality control, according to project requirements, the indicator execution result corresponding to each target indicator data is extracted from the log of the corresponding target database. The monitoring of indicator execution and the storage of indicator execution results can be used for subsequent enterprise department evaluation, feedback and other operations.

[0071] Step S104, obtaining the evaluation expression corresponding to each target indicator data to obtain multiple evaluation expressions.

[0072] In order to ensure the evaluation standards of the database and ensure the effective implementation of database quality control, please refer to Figure 5 The method also includes the step of pre-building multiple evaluation expressions, wherein: step S500, configuring a score weight for each evaluation category, wherein the score weight is used to indicate the importance of the corresponding evaluation category in performing database evaluation; step S502, configuring a scoring rule for each indicator data in each evaluation category; and step S504, combining the scoring rule corresponding to each indicator data and the score weight corresponding to each evaluation category to obtain an evaluation expression corresponding to each indicator data.

[0073] The setting of the above-mentioned scoring rules can be flexibly set according to the focus of the enterprise's investigation. For example, during a certain period of time, if the enterprise wants to focus on the completeness of the table and field annotations in the database, the score weight of the "data dictionary" evaluation category can be increased (for example, the total score of the "data dictionary" evaluation category is set to 20, and the score weight is 20%); and set deduction rules for the indicator data of the table annotation and field annotation; for example, a missing field annotation deducts 2 points until the total score of the "data dictionary" evaluation category is deducted. Based on this, after the evaluation category and indicator data are determined, the score weight of each evaluation category involved in the target database can be flexibly set according to the project requirements, as well as the specific scoring rules or deduction rules for each indicator data in each evaluation category, thereby forming a complete scoring system. In order to make the quality control of the database better in practical application, the method also includes the setting of additional rules based on preset scenarios, wherein the additional rules are a supplement to the scoring rules. For example, in certain preset scenarios, additional rules can be set to exempt specific indicator data (no deduction). For example, additional rules can be set for indicator data that are difficult to design execution scripts for and do not occur often; reward and punishment rules can also be set for a certain indicator data, database, business system or enterprise department with poor or excellent performance. For example, during a certain period of time, an operation and maintenance colleague of a certain department accidentally deleted a business table, resulting in the need to restore data from a backup, which extended the database downtime. In response to the above situation, additional penalty rules can be set for the faulty database or the enterprise department to which it belongs. The setting of additional rules can better deal with emergencies that occur during database development, use, and operation and maintenance, and can more comprehensively control the quality of the database.

[0074] Step S106, based on the multiple evaluation expressions and the multiple target indicator data, calculate the indicator execution results corresponding to each target indicator data to obtain multiple target database evaluation values ​​corresponding to the target database, and the multiple target database evaluation values ​​are used to indicate the degree of influence of the indicator execution results of the corresponding target indicator data on the quality of the target database.

[0075] In order to quickly calculate the target database evaluation value and thus improve the efficiency of database quality control, please refer to Figure 3, the said based on multiple evaluation expressions and the said multiple target indicator data, the indicator execution result corresponding to each target indicator data is calculated, and the multiple target database evaluation values ​​corresponding to the said target database can also be realized by the following operations, wherein: step S300, parsing the said multiple target indicator data, obtaining the association relationship between the said each target indicator data; step S302, according to the association relationship between the said each target indicator data, assigning the said each target indicator data, the indicator execution result corresponding to the said each target indicator data, and the evaluation expression corresponding to the said each target indicator data to each node in the target processing chain; and step S304, sequentially through each node in the said target processing chain, according to the evaluation expression corresponding to each node, calculating the said each target indicator data and the corresponding indicator execution result, and obtaining the said multiple target database evaluation values ​​corresponding to the said target database. In this embodiment, in order to improve the rationality of database quality control, the control operations of different databases are processed by different processing chains, and the control operations of multiple databases can be realized in parallel, and the reasonable allocation of computing power for executing database control is helpful to improve the efficiency and accuracy of executing database control, and reduce the loss of system resources.

[0076] Step S108: generating a target database inspection report corresponding to the target database according to the multiple target database evaluation values.

[0077] In an exemplary embodiment, a corresponding target database inspection report is generated for each target database; wherein the database inspection report includes detailed inspection results of the above-mentioned evaluation categories and their indicator data, scoring (score / deduction) and the total score of each target database.

[0078] In order to form a closed-loop process for database quality control and effectively apply the database control results, please refer to Figure 6, after the step of generating a target database inspection report corresponding to the target database according to the multiple target database evaluation values, the method further includes the following steps, wherein: step S600, determining the target enterprise department from the preset metadata database according to the target database; step S602, obtaining the associated database inspection report corresponding to the target enterprise department; step S604, extracting multiple target database evaluation values ​​from the target database inspection report and extracting the associated database evaluation value from the associated database inspection report; and step S606, calculating the multiple target database evaluation values ​​and the associated database evaluation values, and obtaining the database quality control score of the target enterprise department for the target database. In this embodiment, according to the relationship between the database and the business system and the relationship between the business system and the enterprise department, the scores of all databases under the business department are averaged to obtain the enterprise department score, which can be used for the comparison of the database quality control effects between enterprise departments, so as to facilitate the effective rectification of the subsequent database.

[0079] In an exemplary embodiment, each enterprise department pre-publishes a database inspection report and a comparison. After receiving the information, the enterprise department can confirm the inspection results and scoring in the report. It should be noted that the enterprise department can locate the specific problems, loopholes, security risks, etc. in the current database from the report, and make corresponding improvements accordingly. After the enterprise department makes rectifications on the database-related inspection items according to the contents of the database inspection report, it continues with the next round of database quality control inspection, evaluation, and feedback, forming a complete closed-loop chain of database quality control, a virtuous cycle of database inspection, evaluation, feedback, adjustment, re-inspection, re-evaluation, re-feedback, and re-rectification; gradually making each controlled database comply with a series of database-related specifications and not prone to performance, security, and other hidden dangers; effectively realizing accurate quality control of the database.

[0080] In order to clarify the object of database quality control, the method also includes constructing a metadata database, see Figure 7 , the steps of constructing a metadata base are as follows: step S700, establishing a metadata base related to multiple databases, wherein the metadata base includes: a database host, a database, a business system and an enterprise department; step S702, constructing the belonging relationship between the database host and each database, the belonging relationship between the database and each business system, and the belonging relationship between the business system and each enterprise department; and step S704, storing the belonging relationship between the database host and each database, the belonging relationship between the database and each business system, and the belonging relationship between the business system and each enterprise department in the metadata base.

[0081] The embodiments of the present invention have at least the following beneficial effects:

[0082] (1) The database management and control method has flexibility and comprehensiveness in the setting of indicator data, and the configuration of the execution script of the indicator data and the setting of the scheduling time can better reflect the flexibility of the indicator data;

[0083] (2) The database management and control method can timely check the implementation of database-related specifications to ensure the correct and effective implementation of database-related specifications.

[0084] (3) By evaluating expressions, the corresponding database can be quickly and accurately controlled, ensuring the efficiency and accuracy of database quality control.

[0085] Embodiment 2

[0086] Please continue reading Figure 8 , schematically shows a block diagram of the database management system 80 of the present invention. In this embodiment, the database management system 80 may include or be divided into one or more program modules, one or more program modules are stored in a storage medium, and are executed by one or more processors to complete the present invention and implement the above-mentioned database management method. The program module referred to in the embodiment of the present invention refers to a series of computer program instruction segments that can complete specific functions, which is more suitable for describing the execution process of the database management system 80 in the storage medium than the program itself. The following description will specifically introduce the functions of each program module of this embodiment.

[0087] like Figure 8 As shown, the database management and control system 80 may include: a determination module 800, a collection module 802, an acquisition module 804, a calculation module 806 and a generation module 808; wherein:

[0088] A determination module 800 is used to determine a target database and a plurality of target indicator data corresponding to the target database according to project requirements;

[0089] The collection module 802 is used to collect the indicator execution results corresponding to each target indicator data according to the project requirements;

[0090] The acquisition module 804 is used to acquire the evaluation expression corresponding to each target indicator data to obtain multiple evaluation expressions;

[0091] A calculation module 806 is used to calculate the indicator execution result corresponding to each target indicator data based on the multiple evaluation expressions and the multiple target indicator data to obtain multiple target database evaluation values ​​corresponding to the target database, wherein the multiple target database evaluation values ​​are used to indicate the degree of influence of the indicator execution result of the corresponding target indicator data on the quality of the target database; and

[0092] The generating module 808 is used to generate a target database inspection report corresponding to the target database according to the multiple target database evaluation values, wherein:

[0093] In an exemplary embodiment, the determination module 800 is also used to: parse the project requirements and extract environmental keywords and requirement keywords; determine the target environment based on the environmental keywords, and determine the target database based on the target environment; and determine the target evaluation category corresponding to the target database based on the requirement keywords, and obtain the multiple target indicator data from the target evaluation category.

[0094] In an exemplary embodiment, the calculation module 806 is also used to: parse the multiple target indicator data to obtain the association relationship between each target indicator data; according to the association relationship between each target indicator data, assign each target indicator data, the indicator execution result corresponding to each target indicator data, and the evaluation expression corresponding to each target indicator data to each node in the target processing chain; and calculate each target indicator data and the corresponding indicator execution result according to the evaluation expression corresponding to each node through each node in the target processing chain in turn, to obtain the multiple target database evaluation values ​​corresponding to the target database.

[0095] In an exemplary embodiment, the system further includes a first construction module (not identified), wherein the first construction module is used to: pre-construct a plurality of indicator data. The first construction module is also used to: construct a plurality of evaluation categories and a plurality of indicator data according to preset database specifications and enterprise requirements; configure a corresponding execution script and a scheduling time of each execution script according to each indicator data; and classify and organize the plurality of indicator data, each execution script, and the scheduling time of each execution script into corresponding evaluation categories according to the indicator attributes of the plurality of indicator data.

[0096] In an exemplary embodiment, the system further includes a second construction module (not identified), wherein the second construction module is used to: pre-construct a plurality of evaluation expressions. The second construction module is also used to: configure a score weight for each evaluation category, wherein the score weight is used to indicate the importance of the corresponding evaluation category in performing database evaluation; configure a scoring rule for each indicator data in each evaluation category; and combine the scoring rule corresponding to each indicator data and the score weight corresponding to each evaluation category to obtain an evaluation expression corresponding to each indicator data.

[0097] In an exemplary embodiment, the system also includes an evaluation module (unidentified), wherein the evaluation module is used to: determine the target enterprise department from a preset metadata database based on the target database; obtain an associated database inspection report corresponding to the target enterprise department; extract multiple target database evaluation values ​​from the target database inspection report and extract associated database evaluation values ​​from the associated database inspection report; and calculate the multiple target database evaluation values ​​and the associated database evaluation values, and obtain the database control score of the target enterprise department for the target database.

[0098] In an exemplary embodiment, the system further includes a third construction module (not labeled), wherein the third construction module is used to pre-construct a metadata library. The third construction module is also used to: establish a metadata library associated with multiple databases, wherein the metadata library includes: a database host, a database, a business system, and an enterprise department; construct the ownership relationship between the database host and each database, the ownership relationship between the database and each business system, and the ownership relationship between the business system and each enterprise department; and store the ownership relationship between the database host and each database, the ownership relationship between the database and each business system, and the ownership relationship between the business system and each enterprise department in the metadata library.

[0099] Embodiment 3

[0100] See also Fig. 9 , is a schematic diagram of the hardware architecture of a computer device 10000 suitable for implementing a database management and control method according to Embodiment 3 of the present invention. In this embodiment, the computer device 10000 is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions. The computer device 10000 can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a rack server, a blade server, a tower server or a cabinet server (including an independent server, or a server cluster composed of multiple servers), a gateway, etc. Fig. 9 As shown, the computer device 10000 at least includes, but is not limited to, a memory 10010, a processor 10020, and a network interface 10030 that can communicate with each other via a system bus. Among them:

[0101] In this embodiment, the memory 10010 includes at least one type of computer-readable storage medium, and the readable storage medium includes a flash memory, a hard disk, a multimedia card, a card-type memory (e.g., an SD or DX memory, etc.), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 10010 may be an internal storage unit of the computer device 10000, such as a hard disk or a memory of the computer device 10000. In other embodiments, the memory 10010 may also be an external storage device of the computer device 10000, such as a plug-in hard disk equipped on the computer device 10000, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 10010 may also include both the internal storage unit of the computer device 10000 and its external storage device. In this embodiment, the memory 10010 is generally used to store the operating system and various application software installed in the computer device 10000, such as the program code of the database management system 80 in the above embodiment. In addition, the memory 10010 can also be used to temporarily store various data that have been output or will be output.

[0102] In some embodiments, the processor 10020 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips. The processor 10020 is generally used to control the overall operation of the computer device 10000, such as performing control and processing related to data interaction or communication with the computer device 10000. In this embodiment, the processor 10020 is used to run the program code stored in the memory 10010 or process data, such as running the database management and control system 80 to implement the database management and control method of the above embodiment.

[0103] The network interface 10030 may include a wireless network interface or a wired network interface, and the network interface 10030 is generally used to establish a communication connection between the computer device 10000 and other electronic devices. For example, the network interface 10030 is used to connect the computer device 10000 to an external terminal through a network, and to establish a data transmission channel and a communication connection between the computer device 10000 and the external terminal. The network may be a wireless or wired network such as an intranet, the Internet, the Global System of Mobilecommunication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, etc.

[0104] It should be pointed out that Fig. 9 Only computer device 10000 having components 10010 - 10030 is shown, but it should be understood that implementation of all of the components shown is not a requirement, and more or fewer components may be implemented instead.

[0105] In this embodiment, the database management system 80 stored in the memory 10010 can also be divided into one or more program modules, and the one or more program modules are stored in the memory 10010 and executed by one or more processors (processor 10020 in this embodiment) to complete the present invention.

[0106] For example, Figure 8 The program module schematic diagram of the second embodiment of the database management and control system 80 is shown. In this embodiment, the database management and control system 80 can be divided into a determination module 800, a collection module 802, an acquisition module 804, a calculation module 806 and a generation module 808. Among them, the program module referred to in the present invention refers to a series of computer program instruction segments that can complete specific functions, which is more suitable for describing the execution process of the database management and control system in the computer device 10000 than a program. The specific functions of the program modules 800-808 have been described in detail in the second embodiment and will not be repeated here.

[0107] Embodiment 4

[0108] This embodiment also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by at least one processor, the steps of the database management and control method in the embodiment are implemented.

[0109] In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, disk, CD, server, App application store, etc. In some embodiments, the computer-readable storage medium can be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the computer-readable storage medium can also be an external storage device of a computer device, such as a plug-in hard disk equipped on the computer device, a smart memory card (Smart Media Card, referred to as SMC), a secure digital (Secure Digital, referred to as SD) card, a flash card (Flash Card), etc. Of course, the computer-readable storage medium can also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the computer-readable storage medium is generally used to store the operating system and various application software installed on the computer device, such as the program code of the jam detection method in the embodiment. In addition, the computer-readable storage medium can also be used to temporarily store various types of data that have been output or are to be output.

[0110] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, and optionally, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order from that here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present invention are not limited to any specific combination of hardware and software.

[0111] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0112] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A database management and control method, It is characterized in that include: According to project requirements, determine a target database and a plurality of target indicator data corresponding to the target database; According to the project requirements, collect the indicator execution results corresponding to each target indicator data; Obtaining an evaluation expression corresponding to each target indicator data to obtain multiple evaluation expressions; Based on the multiple evaluation expressions and the multiple target indicator data, the indicator execution result corresponding to each target indicator data is calculated to obtain multiple target database evaluation values ​​corresponding to the target database, and the multiple target database evaluation values ​​are used to indicate the degree of influence of the indicator execution result of the corresponding target indicator data on the quality of the target database; and Generate a target database inspection report corresponding to the target database according to the multiple target database evaluation values; The step of determining a target database and a plurality of target indicator data corresponding to the target database according to project requirements includes: Analyze the project requirements and extract environment keywords and requirement keywords, where the environment keywords include development environment, production environment, test environment, and release environment; Determining a target environment according to the environment keyword, and determining the target database according to the target environment; and Determine the target evaluation category corresponding to the target database according to the demand keyword, and obtain the multiple target indicator data from the target evaluation category; The method further comprises the step of pre-building a plurality of indicator data: Construct multiple evaluation categories and multiple indicator data according to preset database specifications and enterprise needs; According to each indicator data, configure the corresponding execution script and the scheduling time of each execution script; and According to the indicator attributes of the plurality of indicator data, the plurality of indicator data, each execution script and the scheduling time of each execution script are classified and sorted into corresponding evaluation categories.

2. The database management method according to claim 1, It is characterized in that The step of calculating the indicator execution result corresponding to each target indicator data based on the multiple evaluation expressions and the multiple target indicator data to obtain multiple target database evaluation values ​​corresponding to the target database includes: Parsing the plurality of target indicator data to obtain the correlation relationship between each of the target indicator data; According to the association relationship between each target indicator data, each target indicator data, the indicator execution result corresponding to each target indicator data, and the evaluation expression corresponding to each target indicator data are distributed to each node in the target processing chain; and Each target indicator data and the corresponding indicator execution result are calculated in turn through each node in the target processing chain according to the evaluation expression corresponding to each node, so as to obtain the multiple target database evaluation values ​​corresponding to the target database.

3. The database management method according to claim 2, It is characterized in that The method further comprises the step of pre-building a plurality of evaluation expressions: Configuring a score weight for each evaluation category, wherein the score weight is used to indicate the importance of the corresponding evaluation category in performing database evaluation; configuring a scoring rule for each indicator data in each evaluation category; and The scoring rule corresponding to each indicator data and the score weight corresponding to each evaluation category are combined to obtain an evaluation expression corresponding to each indicator data.

4. The database management method according to claim 1, It is characterized in that After generating a target database inspection report corresponding to the target database according to the multiple target database evaluation values, the method further includes: According to the target database, determining a target enterprise department from a preset metadata database; Obtaining a check report on the associated database corresponding to the target enterprise department; Extracting a plurality of target database evaluation values ​​from the target database inspection report and extracting an associated database evaluation value from the associated database inspection report; and The evaluation values ​​of the multiple target databases and the evaluation values ​​of the associated databases are calculated, and a database control score of the target enterprise department for the target database is obtained.

5. The database management method according to claim 4, It is characterized in that The method further comprises the step of constructing a metadata database: Establishing a metadata database related to a plurality of databases, wherein the metadata database includes: a database host, a database, a business system and an enterprise department; Establishing the ownership relationship between the database host and each database, the ownership relationship between the database and each business system, and the ownership relationship between the business system and each enterprise department; and The ownership relationship between the database host and each database, the ownership relationship between the database and each business system, and the ownership relationship between the business system and each enterprise department are stored in the metadata database.

6. A database management and control system, used to implement the database management and control method according to any one of claims 1 to 5, It is characterized in that include: A determination module, used to determine a target database and a plurality of target indicator data corresponding to the target database according to project requirements; A collection module, used to collect the indicator execution results corresponding to each target indicator data according to the project requirements; An acquisition module, used to acquire the evaluation expression corresponding to each target indicator data to obtain multiple evaluation expressions; A calculation module, configured to calculate the indicator execution result corresponding to each target indicator data based on the multiple evaluation expressions and the multiple target indicator data, and obtain multiple target database evaluation values ​​corresponding to the target database, wherein the multiple target database evaluation values ​​are used to indicate the degree of influence of the indicator execution result of the corresponding target indicator data on the quality of the target database; and A generating module is used to generate a target database inspection report corresponding to the target database according to the multiple target database evaluation values.

7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, It is characterized in that When the processor executes the computer program, the steps of the database management and control method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and the computer program can be executed by at least one processor so that the at least one processor executes the steps of the database management and control method according to any one of claims 1 to 5.