WO2019242113A1 - Service data table filing correction method, device, computer equipment and storage medium - Google Patents

Service data table filing correction method, device, computer equipment and storage medium Download PDF

Info

Publication number
WO2019242113A1
WO2019242113A1 PCT/CN2018/104751 CN2018104751W WO2019242113A1 WO 2019242113 A1 WO2019242113 A1 WO 2019242113A1 CN 2018104751 W CN2018104751 W CN 2018104751W WO 2019242113 A1 WO2019242113 A1 WO 2019242113A1
Authority
WO
WIPO (PCT)
Prior art keywords
business data
archive
archiving
structure information
list
Prior art date
Application number
PCT/CN2018/104751
Other languages
French (fr)
Chinese (zh)
Inventor
刘四根
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019242113A1 publication Critical patent/WO2019242113A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F17/00Digital computing or data processing equipment or methods, specially adapted for specific functions

Definitions

  • the present application relates to a method, an apparatus, a computer device, and a storage medium for archiving and correcting a business data table.
  • the business data can be stored in the business data table and the business data archive table, the business data that needs to be frequently modified is stored in the business data table, and the data that needs to be stored for a long time Archive from the business data table to the business data archive table, so that you can achieve efficient management of the database and business data in the database.
  • the structure information of the business data archive table is configured, if it is not configured according to the specifications, it is easy to fail archiving.
  • This requires manual reconfiguration of the table structure information of the business data archive table, which causes the business data table to take more time to archive. Make business data table archiving inefficient.
  • a method, an apparatus, a computer device, and a storage medium for filing and modifying a business data table are provided.
  • a business data table archiving correction method includes:
  • the business data archive table is automatically corrected based on the archive problem list.
  • a business data table archive correction device includes:
  • Business data table archiving module for archiving business data tables to business data archive tables
  • a table structure information reading module configured to read the corresponding table structure information in the business data table and the business data archive table
  • the table structure information comparison module is used to compare the table structure information corresponding to the business data table and the business data archive table to obtain a comparison result;
  • An archiving problem determination module configured to determine an archiving problem in the business data archiving table according to the comparison result
  • Archive question list acquisition module for obtaining a list of archive questions generated from the identified archive questions
  • the business data archive table correction module is used to automatically correct the business data archive table according to the archive problem list.
  • a computer device includes a memory and one or more processors.
  • the memory stores computer-readable instructions.
  • the one or more Processors implement the steps of the business data table archiving correction method provided in any one of the embodiments of the present application.
  • One or more non-transitory computer-readable storage media storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to implement any of the present application.
  • FIG. 1 is an application scenario diagram of a business data table archiving correction method according to one or more embodiments.
  • FIG. 2 is a schematic flowchart of a business data table archiving correction method according to one or more embodiments.
  • FIG. 3 is a schematic flowchart of a business data table archiving correction method in another embodiment.
  • FIG. 4 is a block diagram of a service data table archiving correction apparatus according to one or more embodiments.
  • FIG. 5 is a block diagram of a computer device according to one or more embodiments.
  • the business data table filing correction method provided in this application can be applied to the application environment shown in FIG. 1.
  • the database 110 communicates with the server 120 through a network through a network or a cable.
  • the server 120 archives the business data table 112 in the database 110 to the business data archive table 114, reads the respective table structure information of the business data table 112 and the business data archive table 114, and compares the business data table 112 and the business data archive table 114 respectively. Table structure information to get comparison results.
  • the server 120 determines an archiving problem in the business data archiving table 114 according to the comparison result, obtains an archiving problem list generated according to the determined archiving problem, and then automatically corrects the business data archiving table 114 in the database 110 according to the archiving problem list.
  • the database 110 and the server 120 may be implemented by independent servers or a server cluster composed of multiple servers.
  • a method for archiving and correcting a business data table is provided.
  • the method is applied to the server in FIG. 1 as an example, and includes the following steps:
  • a business data table is a table for storing business data.
  • a table (TABLE) is an object used to store data in a database, and is a collection of structured data.
  • the business data archive table is a table for storing archived business data. Archiving is the process of storing organized data. Archiving can be a process of transferring the processed business data with preservation value to the business data archive table after the system is organized.
  • the server reads the new business data from the business data table, and imports the new business data into the business data archive table.
  • the server compares the business data table with the business data archive table, and imports business data in the business data table that is different from the business data archive table into the business data archive table.
  • the table structure information is the structure information of the data table.
  • the table structure information may specifically include at least one of a data table file name, a field included in the data table, a field name of each field, a field attribute of each field, a field type of each field, and a width of each field.
  • Field names can be less than 64 characters in length. Field names can include letters, Chinese characters, numbers, spaces, and other characters. Field names cannot include periods ".”, Exclamation points "!, Square brackets "[]", and accents ", ", Field names cannot begin with a leading space.
  • the field type may be at least one of text type, note type, number type, date and time type, currency type, automatic numbering type, yes / no type, OLE object type, hyperlink type, and lookup guide type.
  • the field attribute may be at least one of a field size, a format, a default value, a required field, a validity rule, a validity text, and an index.
  • the server reads the field name, field attribute, field type, and field length of each record in the business data table, and reads the fields of the record corresponding to the record of the business data table in the business data archive table Name, field attribute, field type, and field length.
  • the comparison result is the comparison result of the table structure information. Comparing the respective table structure information of the business data table and the business data archive table, specifically, the maximum field length of each record of the business data table and the business data archive table can be compared.
  • a record is the smallest unit of data stored in a data table.
  • a record can be a row of a data table.
  • the archiving problem is a problem that the business data table is archived to the business data archive table incorrectly.
  • the server determines an archive problem that occurs in the business data archive table according to the type of the comparison result.
  • the server identifies the comparison result according to the archiving problem judgment rule, and determines an archiving problem that occurs in the business data archiving table.
  • the archive question list is a consolidated list of archive questions. Specifically, the server arranges the determined archiving questions into the archiving question list in the order in which the archiving questions are determined.
  • the server obtains the archive problem list from the database, enters the determined archive problem into the archive problem list, marks the archive problem entered in the archive problem list as an archive problem to be corrected, and marks the archive problem that is corrected Archive issues for history.
  • the server sends the determined archiving questions to the verification e-mail address.
  • the archiving questions are filtered based on the determination results, and the archiving question list is generated based on the archiving questions obtained after the screening .
  • the server sends the archived problem list to the correction terminal, and upon receiving the correction instruction feedback from the correction terminal, corrects the table structure information of the business data archive table, and re-archives the business data of the business data table to the business Data archive table.
  • the comparison results are obtained by reading and comparing the respective table structure information of the business data table and the business data archive table.
  • the comparison result obtained by comparing the table structure information can determine the problems in the table structure of the business data archive table, and thus determine the archive problems in the business data archive table.
  • the identified archiving problems are then organized into an archiving problem list, and the business data archiving table can be automatically corrected according to the archiving problem list.
  • the speed of automatically correcting the business data archiving table is much faster than manually configuring the table structure information of the business data archiving table. This can avoid wasting time by manually configuring the table structure information of the business data archiving table, thereby improving the efficiency of amending the business data archiving table, and thereby improving the archiving efficiency of the business data table.
  • comparing the table structure information corresponding to the business data table and the business data archive table to obtain a comparison result includes: respectively converting the business data table and the business data archive table into their corresponding unified formats. Data table; from the uniformly formatted data table corresponding to the business data table and the business data archive table, select records with inconsistent content to obtain a difference table; the comparison result includes the difference table.
  • the uniformly formatted data table may specifically be a data table with the same table structure.
  • the difference table is a data table used to store records with different table structure information.
  • the server multiplies the maximum string length of each record in the business data table by a preset value to obtain a business data table with a modified table structure, and then compares the business data table with a modified structure and a business data archive table. Select the corresponding records in the business data table and business data archive table that modify the structure and have different table structure information to generate a difference table.
  • the archiving problem includes incorrect table structure information; each record in the discrepancy table has a one-to-one corresponding record in the discrepancy table; and the archiving that occurs in the business data archiving table is determined according to the comparison result Questions include: identifying the maximum string length of each record in the difference table; obtaining the respective maximum string lengths of two one-to-one corresponding records; when the maximum string length of a record selected from the business data archive table is different from When the ratio of the maximum string length of the records selected by the business data table is not a preset value, it is determined that the record with the ratio not being two has a table structure information error.
  • the table structure information error may specifically be that the maximum string lengths of the records corresponding to the business data table and the business data archive table do not match.
  • the maximum string length is the maximum length of a string that a record can store.
  • the preset value is a preset condition for archiving the business data table to the business data archive table.
  • the preset ratio may be specifically 1.5 or 2. It can also be 2.5.
  • the one-to-one corresponding record is specifically a record in the business data table for storing the business data to be archived and a record in the business data archive table for archiving the business data.
  • the records whose ratio is not the preset value have table structure information errors, which can quickly determine the archiving problem, so that the archiving problem can be corrected faster, and the business data table archiving efficiency can be improved.
  • the method further includes: obtaining an email address of a database maintenance person; and sending the archived question list to an electronic designated by the email address mailbox.
  • E-mail address is the network address required for receiving and sending e-mail.
  • the archived problem list is obtained, the archived problem list is emailed to the email address of the database maintenance staff, so that errors can be automatically corrected or manually corrected. To ensure that the data sheet archive is error-free.
  • the method further includes: counting the archived questions in the archived question list; analyzing the archived questions appearing within a preset time period; An archive issue that occurs more than a preset threshold is marked as a high frequency issue; the high frequency issue is topped in the archive issue table.
  • the preset time period is specifically a time period for statistical archiving issues.
  • the preset time period can be specifically set to one week.
  • the preset threshold is a trigger condition for archiving issues to be marked as high frequency issues.
  • High frequency issues are specifically archiving issues that need to be addressed first in the archiving issue list. Pin high-frequency issues on the archived question list. Specifically, you can arrange high-frequency questions in the archived question list according to the number of occurrences, or you can place high-frequency questions in the archived question list according to the time when they are marked as high-frequency issues. In order.
  • the server counts the occurrence time and the number of occurrences of historical archiving problems in the archiving problem list, and adjusts the position of the archiving problem to be corrected corresponding to the historical archiving problem in the archiving problem list according to the statistics of the occurrence time and the occurrence number.
  • the archiving problem list by archiving problems in the archiving problem list, marking archiving problems that occur more than a preset threshold as high-frequency problems, and placing high-frequency problems on the archiving problem list, the archiving problem list can be prioritized. Topped high-frequency problem corrections, so as to prioritize prone archiving problems, speed up the archiving of archiving business data tables, and improve the efficiency of archiving business data tables.
  • the method further includes: constructing an archive problem model according to the archive problem list; and before archiving the business data table to the business data archive table, detecting the business data table and the business data through the archive problem model Archive table; correct detected table structure information errors; archive the table after correcting the table structure information of the business data table and the business data archive table.
  • An archiving problem model is a data model that predicts archiving problems in business data archiving tables.
  • the business data table and the business data archive table are detected through the archive problem model.
  • the table structure information of the business data table and the business data archive table can be imported into the archive problem model.
  • Correcting the detected table structure error may specifically reconfigure the table structure information of the business data archive table according to the table structure information of the business data table.
  • the server obtains the corresponding location information and problem type of the record where the archive problem occurs in the archive problem list, enters the obtained location information and problem type into the archiving problem model to be trained, and continuously inputs the location information and problem type to After a preset duration of the training archived problem model, an archived problem model is obtained.
  • the preset duration can be fifteen days.
  • the server when the business data table is archived and the business data table fails to be archived, the server quickly determines the archiving problem according to the archiving problem model, and corrects the business data archiving table according to the determined archiving problem, and the business in the business data table The data is re-archived to the business data archive table.
  • the automatic correction of the business data archive table according to the archive problem list includes: identifying the maximum string length recorded in the business data table; and comparing the business data table with the business data table in the business data archive table The maximum string length of the corresponding record is adjusted to twice the maximum string length of the record in the business data table; the business data recorded in the business data table is re-archived to the adjusted corresponding record in the business data archive table in.
  • the business data recorded in the business data table is re-archived into the adjusted corresponding records in the business data archiving table. Specifically, the business data in the record where the archiving problem occurs is re-archived.
  • the server identifies the maximum string length of the corresponding record in the business data table according to the archive question list, and adjusts the maximum string length of the record corresponding to the business data table in the business data archive table to the A preset multiple of the maximum string length recorded in the business data table, and then re-archive the business data of the records corresponding to the archiving question list in the business data table to the adjusted corresponding records in the business data archive table.
  • the business data table can be successfully
  • the business data is archived to the business data archive table, so that the problem of archiving of the business data table can be corrected.
  • a business data table archiving correction method is also provided, which specifically includes the following steps:
  • the comparison result includes the difference table; each record in the difference table has a one-to-one corresponding record.
  • step S314 is performed.
  • the comparison results are obtained by reading and comparing the respective table structure information of the business data table and the business data archive table.
  • the comparison result obtained by comparing the table structure information can determine the problems in the table structure of the business data archive table, and thus determine the archive problems in the business data archive table.
  • the identified archiving problems are organized into an archiving problem list, and the business data archiving table can be automatically corrected according to the archiving problem list.
  • the speed of automatically correcting the business data archiving table is much faster than the speed of manually configuring the table structure information of the business data archiving table. This can avoid wasting time by manually configuring the table structure information of the business data archiving table, thereby improving the efficiency of amending the business data archiving table, and thereby improving the archiving efficiency of the business data table.
  • steps in the flowchart of FIG. 3 are sequentially displayed in accordance with the directions of the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless explicitly stated in this document, the execution of these steps is not strictly limited, and these steps can be performed in other orders. Moreover, at least a part of the steps in FIG. 3 may include multiple sub-steps or stages. These sub-steps or stages are not necessarily performed at the same time, but may be performed at different times. The execution of these sub-steps or stages The order is not necessarily performed sequentially, but may be performed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
  • a business data table archive correction device 400 which includes: a business data table archive module 402, a table structure information reading module 404, a table structure information comparison module 406, and an archive.
  • the business data table archiving correction device 400 after archiving the business data table in the database to the business data archive table, reads and compares the respective table structure information of the business data table and the business data archive table to obtain a comparison result.
  • the comparison result obtained by comparing the table structure information can determine the problems in the table structure of the business data archive table, and thus determine the archive problems in the business data archive table.
  • the identified archiving problems are organized into an archiving problem list, and the business data archiving table can be automatically corrected according to the archiving problem list.
  • the speed of automatically correcting the business data archiving table is much faster than the speed of manually configuring the table structure information of the business data archiving table. This can avoid wasting time by manually configuring the table structure information of the business data archiving table, thereby improving the efficiency of amending the business data archiving table, and thereby improving the archiving efficiency of the business data table.
  • the apparatus further includes: a data table conversion module for converting the business data table and the business data archive table into data tables of corresponding uniform formats; a difference table generation module for From the business data table and the business data archive table corresponding to the uniformly formatted data table, records with inconsistent content are selected to obtain a difference table; the comparison result includes the difference table.
  • the archiving problem includes incorrect table structure information; each record in the difference table has a one-to-one corresponding record in the difference table; the device further includes: a string length identification module, configured to: Identify the maximum string length of each record in the difference table; a string length acquisition module is used to obtain the maximum string lengths of two one-to-one corresponding records; an error judgment module is used to retrieve the data from the business data archive table When the ratio between the maximum string length of the selected record and the maximum string length of the record selected from the business data table is not a preset value, it is determined that the record with the ratio other than the preset value has a table structure information error.
  • the method further includes:
  • the device further includes: an archive problem statistics module for counting archive problems in the archive problem list; an archive problem analysis module for analyzing archive problems occurring within a preset time period; high The high-frequency problem flagging module is used to mark an archiving problem that occurs more than a preset threshold as a high-frequency problem; the high-frequency problem pinning module is used to pin the high-frequency problem in the archiving problem table.
  • the apparatus further includes: a model building module configured to build an archive problem model according to the archive problem list; a data table detection module configured to archive the business data table to the business data archive table, The business data table and business data archive table are detected through the archiving problem model; the business data archive table correction module 412 is used to correct errors in the detected table structure information; the business data table archive module 402 is also used to After correcting the table structure information of the business data table and the business data archiving table, the data is archived.
  • a model building module configured to build an archive problem model according to the archive problem list
  • a data table detection module configured to archive the business data table to the business data archive table, The business data table and business data archive table are detected through the archiving problem model
  • the business data archive table correction module 412 is used to correct errors in the detected table structure information
  • the business data table archive module 402 is also used to After correcting the table structure information of the business data table and the business data archiving table, the data is archived.
  • the string length identification module is further configured to identify a maximum string length recorded in the service data table; the device further includes: a string length adjustment module configured to archive the business data in the table The maximum string length of the record corresponding to the business data table is adjusted to twice the maximum string length of the record in the business data table; the business data table archiving module 402 is also used for the business data table The recorded business data is re-archived to the corresponding adjusted records in the business data archiving table.
  • Each module in the above-mentioned business data table archive correction device may be implemented in whole or in part by software, hardware, and a combination thereof.
  • the above-mentioned modules may be embedded in the hardware in or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
  • a computer device is provided.
  • the computer device may be a server, and its internal structure diagram may be as shown in FIG. 5.
  • the computer device includes a processor, a memory, a network interface, and a database connected through a system bus.
  • the processor of the computer device is used to provide computing and control capabilities.
  • the memory of the computer device includes a non-volatile storage medium and an internal memory.
  • the non-volatile storage medium stores an operating system, computer-readable instructions, and a database.
  • the internal memory provides an environment for the operation of the operating system and computer-readable instructions in a non-volatile storage medium.
  • the database of the computer equipment is used to store at least one of a business data table, a business data archive table, and the like.
  • the network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer-readable instructions are executed by the processor, a business data table archiving correction method is implemented.
  • FIG. 5 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied.
  • the specific computer equipment may be Include more or fewer parts than shown in the figure, or combine certain parts, or have a different arrangement of parts.
  • a computer device which includes a memory and a processor.
  • the memory stores computer-readable instructions.
  • the processor executes the computer-readable instructions, the following steps are implemented: archiving a business data table to business data Archive table; read the corresponding table structure information in the business data table and the business data archive table; compare the table structure information corresponding to the business data table and the business data archive table to get the comparison result; determine the business based on the comparison result Archive problems that occur in the data archive table; obtain an archive problem list generated based on the identified archive problems; automatically correct the business data archive table according to the archive problem list.
  • a computer device includes a memory and one or more processors.
  • Computer-readable instructions are stored in the memory, and when the computer-readable instructions are executed by one or more processors, the one or more processors implement any one of the present application.
  • One or more non-transitory computer-readable storage media storing computer-readable instructions.
  • the one or more processors implement one of the embodiments of the present application. Provide the steps of the business data sheet archive correction method.
  • Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM) or external cache memory.
  • RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Mathematical Physics (AREA)
  • Software Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

A service data table filing correction method, comprising: filing a service data table to a service data filing table; reading table structure information corresponding to the service data table and the service data filling table from within the service data table and the service data filing table respectively; comparing the table structure information corresponding to the service data table and the service data filing table to obtain a comparison result; determining filing problems which occur in the service data filing table according to the comparison result; acquiring a filing problem list generated according to the determined filing problems; and according to the filing problem list, automatically correcting the service data filing table.

Description

业务数据表归档修正方法、装置、计算机设备和存储介质Business data table archiving correction method, device, computer equipment and storage medium
本申请要求于2018年06月22日提交中国专利局,申请号为2018106514401,申请名称为“业务数据表归档修正方法、装置、计算机设备和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed on June 22, 2018 with the Chinese Patent Office under the application number of 2018106514401, and the application name is "Business Data Sheet Archive Correction Method, Device, Computer Equipment and Storage Medium" Incorporated by reference in this application.
技术领域Technical field
本申请涉及一种业务数据表归档修正方法、装置、计算机设备和存储介质。The present application relates to a method, an apparatus, a computer device, and a storage medium for archiving and correcting a business data table.
背景技术Background technique
随着互联网技术的发展,数据库被广泛地应用,将数据存储在数据库中可以保证数据的安全,而且整理数据也很方便。With the development of Internet technology, databases are widely used. Storing data in the database can ensure the security of the data, and it is also very convenient to organize the data.
为了更加方便地整理存储在数据库中的业务数据,可以将业务数据分别存储在业务数据表和业务数据归档表中,将需要频繁修改的业务数据存储至业务数据表中,将需要长期保存的数据从业务数据表中归档至业务数据归档表,这样就可以实现高效率地管理数据库和数据库中的业务数据。In order to more conveniently organize the business data stored in the database, the business data can be stored in the business data table and the business data archive table, the business data that needs to be frequently modified is stored in the business data table, and the data that needs to be stored for a long time Archive from the business data table to the business data archive table, so that you can achieve efficient management of the database and business data in the database.
然而,发明人意识到,目前的数据归档方法,需要对业务数据归档表的表结构信息进行配置。在配置业务数据归档表表结构信息时,未按照规范进行配置,就容易归档失败,这就需要人工重新配置业务数据归档表的表结构信息,导致了业务数据表归档所花费的时间更多,使得业务数据表归档的效率很低。However, the inventors realized that the current data archiving method requires configuration of the table structure information of the business data archiving table. When the structure information of the business data archive table is configured, if it is not configured according to the specifications, it is easy to fail archiving. This requires manual reconfiguration of the table structure information of the business data archive table, which causes the business data table to take more time to archive. Make business data table archiving inefficient.
发明内容Summary of the Invention
根据本申请公开的各种实施例,提供一种业务数据表归档修正方法、装置、计算机设备和存储介质。According to various embodiments disclosed in the present application, a method, an apparatus, a computer device, and a storage medium for filing and modifying a business data table are provided.
一种业务数据表归档修正方法包括:A business data table archiving correction method includes:
将业务数据表归档至业务数据归档表;Archive business data tables to business data archive tables;
读取该业务数据表和该业务数据归档表中各自对应的表结构信息;Read the corresponding table structure information in the business data table and the business data archive table;
对比该业务数据表和业务数据归档表对应的表结构信息,得到对比结果;Compare the table structure information corresponding to the business data table with the business data archive table to get the comparison result;
根据该对比结果确定该业务数据归档表出现的归档问题;According to the comparison result, an archiving problem in the business data archiving table is determined;
获取根据确定的归档问题生成的归档问题列表;及Obtain a list of archive issues generated from identified archive issues; and
根据该归档问题列表自动修正该业务数据归档表。The business data archive table is automatically corrected based on the archive problem list.
一种业务数据表归档修正装置包括:A business data table archive correction device includes:
业务数据表归档模块,用于将业务数据表归档至业务数据归档表;Business data table archiving module, for archiving business data tables to business data archive tables;
表结构信息读取模块,用于读取该业务数据表和该业务数据归档表中各自对应的表结构信息;A table structure information reading module, configured to read the corresponding table structure information in the business data table and the business data archive table;
表结构信息对比模块,用于对比该业务数据表和业务数据归档表对应的表结构信息,得到对比结果;The table structure information comparison module is used to compare the table structure information corresponding to the business data table and the business data archive table to obtain a comparison result;
归档问题确定模块,用于根据该对比结果确定该业务数据归档表出现的归档问题;An archiving problem determination module, configured to determine an archiving problem in the business data archiving table according to the comparison result;
归档问题列表获取模块,用于获取根据确定的归档问题生成的归档问题列表;及Archive question list acquisition module for obtaining a list of archive questions generated from the identified archive questions; and
业务数据归档表修正模块,用于根据该归档问题列表自动修正该业务数据归档表。The business data archive table correction module is used to automatically correct the business data archive table according to the archive problem list.
一种计算机设备,包括存储器和一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器实现本申请任意一个实施例中提供的业务数据表归档修正方法的步骤。A computer device includes a memory and one or more processors. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the one or more processors, the one or more Processors implement the steps of the business data table archiving correction method provided in any one of the embodiments of the present application.
一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器实现本申请任意一个实施例中提供的业务数据表归档修正方法的步骤。One or more non-transitory computer-readable storage media storing computer-readable instructions that, when executed by one or more processors, cause the one or more processors to implement any of the present application The steps of the business data table archiving correction method provided in one embodiment.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请 的其它特征和优点将从说明书、附图以及权利要求书变得明显。Details of one or more embodiments of the present application are set forth in the accompanying drawings and description below. Other features and advantages of the application will become apparent from the description, the drawings, and the claims.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其它的附图。In order to explain the technical solutions in the embodiments of the present application more clearly, the drawings used in the embodiments are briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present application. Those of ordinary skill in the art can also obtain other drawings according to these drawings without paying creative labor.
图1为根据一个或多个实施例中业务数据表归档修正方法的应用场景图。FIG. 1 is an application scenario diagram of a business data table archiving correction method according to one or more embodiments.
图2为根据一个或多个实施例中业务数据表归档修正方法的流程示意图。FIG. 2 is a schematic flowchart of a business data table archiving correction method according to one or more embodiments.
图3为另一个实施例中业务数据表归档修正方法的流程示意图。FIG. 3 is a schematic flowchart of a business data table archiving correction method in another embodiment.
图4为根据一个或多个实施例中业务数据表归档修正装置的框图。FIG. 4 is a block diagram of a service data table archiving correction apparatus according to one or more embodiments.
图5为根据一个或多个实施例中计算机设备的框图。FIG. 5 is a block diagram of a computer device according to one or more embodiments.
具体实施方式detailed description
为了使本申请的技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the technical solution and advantages of the present application more clear and clear, the present application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the application, and are not used to limit the application.
本申请提供的业务数据表归档修正方法,可以应用于如图1所示的应用环境中。数据库110通过网络或线缆与服务器120通过网络进行通信。服务器120将数据库110中的业务数据表112归档至业务数据归档表114,读取业务数据表112和业务数据归档表114各自的表结构信息,再对比业务数据表112和业务数据归档表114各自的表结构信息,得到对比结果。服务器120根据对比结果确定业务数据归档表114出现的归档问题,获取根据确定的归档问题生成的归档问题列表,再根据归档问题列表自动修正数据库110中的业务数据归档表114。数据库110和服务器120可以用独立的服务器或者是 多个服务器组成的服务器集群来实现。The business data table filing correction method provided in this application can be applied to the application environment shown in FIG. 1. The database 110 communicates with the server 120 through a network through a network or a cable. The server 120 archives the business data table 112 in the database 110 to the business data archive table 114, reads the respective table structure information of the business data table 112 and the business data archive table 114, and compares the business data table 112 and the business data archive table 114 respectively. Table structure information to get comparison results. The server 120 determines an archiving problem in the business data archiving table 114 according to the comparison result, obtains an archiving problem list generated according to the determined archiving problem, and then automatically corrects the business data archiving table 114 in the database 110 according to the archiving problem list. The database 110 and the server 120 may be implemented by independent servers or a server cluster composed of multiple servers.
在其中一个实施例中,如图2所示,提供了一种业务数据表归档修正方法,以该方法应用于图1中的服务器为例进行说明,包括以下步骤:In one embodiment, as shown in FIG. 2, a method for archiving and correcting a business data table is provided. The method is applied to the server in FIG. 1 as an example, and includes the following steps:
S202,将业务数据表归档至业务数据归档表。S202: Archive the business data table to a business data archive table.
业务数据表是用于存储业务数据的表。表(TABLE)是数据库中用来存储数据的对象,是有结构的数据的集合。业务数据归档表是用于存储归档的业务数据的表。归档是存储有组织的数据的过程。归档具体可以是将处理完毕且具有保存价值的业务数据,经系统整理后交给业务数据归档表存储的过程。A business data table is a table for storing business data. A table (TABLE) is an object used to store data in a database, and is a collection of structured data. The business data archive table is a table for storing archived business data. Archiving is the process of storing organized data. Archiving can be a process of transferring the processed business data with preservation value to the business data archive table after the system is organized.
在其中一个实施例中,服务器从业务数据表中读取新增的业务数据,并将新增的业务数据导入业务数据归档表。In one embodiment, the server reads the new business data from the business data table, and imports the new business data into the business data archive table.
在其中一个实施例中,服务器对比业务数据表和业务数据归档表,将业务数据表中与业务数据归档表不同的业务数据导入业务数据归档表。In one embodiment, the server compares the business data table with the business data archive table, and imports business data in the business data table that is different from the business data archive table into the business data archive table.
S204,读取该业务数据表和该业务数据归档表中各自对应的表结构信息。S204. Read the corresponding table structure information in the service data table and the service data archive table.
表结构信息是数据表的结构信息。表结构信息具体可以包括数据表文件名、数据表包含的字段、各字段的字段名、各字段的字段属性、各字段的字段类型和各字段的宽度等中的至少一种。The table structure information is the structure information of the data table. The table structure information may specifically include at least one of a data table file name, a field included in the data table, a field name of each field, a field attribute of each field, a field type of each field, and a width of each field.
字段名长度可以小于64个字符,字段名可以包括字母、汉字、数字、空格和其他字符,字段名不可以包括句号“。”、感叹号“!”、方括号“[]”和重音符号“、”,字段名不可以以先导空格开头。字段类型具体可以是文本型、备注型、数字型、日期时间型、货币型、自动编号型、是\否型、OLE对象型、超链接型和查阅向导型等中的至少一种。字段属性具体可以是字段大小、格式、默认值、必填字段、有效性规则、有效性文本和索引等中的至少一种。Field names can be less than 64 characters in length. Field names can include letters, Chinese characters, numbers, spaces, and other characters. Field names cannot include periods ".", Exclamation points "!", Square brackets "[]", and accents ", ", Field names cannot begin with a leading space. The field type may be at least one of text type, note type, number type, date and time type, currency type, automatic numbering type, yes / no type, OLE object type, hyperlink type, and lookup guide type. The field attribute may be at least one of a field size, a format, a default value, a required field, a validity rule, a validity text, and an index.
在其中一个实施例中,服务器读取业务数据表中每个记录的字段名、字段属性、字段类型和字段长度,并读取业务数据归档表中与业务数据表的记录相对应的记录的字段名、字段属性、字段类型和字段长度。In one embodiment, the server reads the field name, field attribute, field type, and field length of each record in the business data table, and reads the fields of the record corresponding to the record of the business data table in the business data archive table Name, field attribute, field type, and field length.
S206,对比该业务数据表和业务数据归档表各自的表结构信息,得到对比结果。S206: Compare the respective table structure information of the business data table and the business data archive table to obtain a comparison result.
对比结果是表结构信息的对比结果。对比业务数据表和业务数据归档表各自的表结构信息,具体可以是对比业务数据表和业务数据归档表各自的记录的最大字段长度大小。记录是数据表中存储数据的最小单位,记录具体可以是数据表的行。The comparison result is the comparison result of the table structure information. Comparing the respective table structure information of the business data table and the business data archive table, specifically, the maximum field length of each record of the business data table and the business data archive table can be compared. A record is the smallest unit of data stored in a data table. A record can be a row of a data table.
S208,根据该对比结果确定该业务数据归档表出现的归档问题。S208. Determine an archiving problem that occurs in the business data archiving table according to the comparison result.
归档问题是业务数据表归档至业务数据归档表错误的问题。具体的,服务器根据对比结果的类型,确定业务数据归档表出现的归档问题。The archiving problem is a problem that the business data table is archived to the business data archive table incorrectly. Specifically, the server determines an archive problem that occurs in the business data archive table according to the type of the comparison result.
在其中一个实施例中,服务器根据归档问题判断规则识别对比结果,确定出业务数据归档表出现的归档问题。In one embodiment, the server identifies the comparison result according to the archiving problem judgment rule, and determines an archiving problem that occurs in the business data archiving table.
S210,获取根据确定的归档问题生成的归档问题列表。S210. Acquire a list of archive questions generated according to the determined archive question.
归档问题列表是归档问题的整合列表。具体的,服务器将确定的归档问题按照归档问题被确定的顺序排列至归档问题列表中。The archive question list is a consolidated list of archive questions. Specifically, the server arranges the determined archiving questions into the archiving question list in the order in which the archiving questions are determined.
在其中一个实施例中,服务器从数据库中获取归档问题列表,将确定的归档问题录入归档问题列表中,对录入归档问题列表的归档问题标记为待修正归档问题,并将被修正的归档问题标记为历史归档问题。In one of the embodiments, the server obtains the archive problem list from the database, enters the determined archive problem into the archive problem list, marks the archive problem entered in the archive problem list as an archive problem to be corrected, and marks the archive problem that is corrected Archive issues for history.
在其中一个实施例中,服务器将确定的归档问题发送至验证电子邮箱,在接收到验证电子邮箱反馈的确定结果后,根据确定结果筛选归档问题,并根据筛选后得到的归档问题生成归档问题列表。In one embodiment, the server sends the determined archiving questions to the verification e-mail address. After receiving the determination results fed back from the verification e-mail address, the archiving questions are filtered based on the determination results, and the archiving question list is generated based on the archiving questions obtained after the screening .
S212,根据该归档问题列表自动修正该业务数据归档表。S212: Automatically correct the business data archive table according to the archive problem list.
在其中一个实施例中,服务器将归档问题列表发送至修正终端,在接收到修正终端反馈的修正指令时,修正业务数据归档表的表结构信息,并将业务数据表的业务数据重新归档至业务数据归档表。In one embodiment, the server sends the archived problem list to the correction terminal, and upon receiving the correction instruction feedback from the correction terminal, corrects the table structure information of the business data archive table, and re-archives the business data of the business data table to the business Data archive table.
上述业务数据表归档修正方法中,在将数据库中的业务数据表归档至业务数据归档表之后,通过读取并对比业务数据表和业务数据归档表各自的表结构信息,得到对比结果。而通过对比表结构信息得到的对比结果,可以确定业务数据归档表的表结构出现的问题,从而确定业务数据归档表出现的归档问题。再将确定的归档问题整理为归档问题列表,就可以按照归档问题列 表自动修正业务数据归档表,而自动修正业务数据归档表的速度远大于人工配置业务数据归档表的表结构信息的速度,因此可以避免人工配置业务数据归档表的表结构信息浪费时间,从而提高修正业务数据归档表的效率,进而提高业务数据表归档的效率。In the above business data table archiving correction method, after the business data table in the database is archived to the business data archive table, the comparison results are obtained by reading and comparing the respective table structure information of the business data table and the business data archive table. The comparison result obtained by comparing the table structure information can determine the problems in the table structure of the business data archive table, and thus determine the archive problems in the business data archive table. The identified archiving problems are then organized into an archiving problem list, and the business data archiving table can be automatically corrected according to the archiving problem list. The speed of automatically correcting the business data archiving table is much faster than manually configuring the table structure information of the business data archiving table. This can avoid wasting time by manually configuring the table structure information of the business data archiving table, thereby improving the efficiency of amending the business data archiving table, and thereby improving the archiving efficiency of the business data table.
在其中一个实施例中,该对比该业务数据表和该业务数据归档表对应的表结构信息,得到对比结果,包括:分别将该业务数据表和该业务数据归档表转换为各自对应的统一格式的数据表;从该业务数据表和该业务数据归档表各自对应的统一格式的数据表中,选取内容不一致的记录,得到差异表;该对比结果包括该差异表。In one embodiment, comparing the table structure information corresponding to the business data table and the business data archive table to obtain a comparison result includes: respectively converting the business data table and the business data archive table into their corresponding unified formats. Data table; from the uniformly formatted data table corresponding to the business data table and the business data archive table, select records with inconsistent content to obtain a difference table; the comparison result includes the difference table.
统一格式的数据表具体可以是表结构相同的数据表。差异表是用于存储表结构信息不同的记录的数据表。The uniformly formatted data table may specifically be a data table with the same table structure. The difference table is a data table used to store records with different table structure information.
在其中一个实施例中,服务器将业务数据表中每个记录的最大字符串长度乘以预设值,得到修改表结构的业务数据表,再对比修改结构的业务数据表和业务数据归档表,将修改结构的业务数据表和业务数据归档表中相对应且表结构信息不同的记录选取出来,生成差异表。In one embodiment, the server multiplies the maximum string length of each record in the business data table by a preset value to obtain a business data table with a modified table structure, and then compares the business data table with a modified structure and a business data archive table. Select the corresponding records in the business data table and business data archive table that modify the structure and have different table structure information to generate a difference table.
本实施例中,通过将业务数据表和业务数据归档表转换为统一格式的数据表,可以更加快速地查找到业务数据表和业务数据归档表各自表结构的差异,从业务数据表和业务数据归档表各自相应的统一格式的数据表中,选取不一致的记录,选取的记录中记录有相应的表结构信息,得到的差异表中就存储有业务数据表和业务数据归档表对比的结果。In this embodiment, by converting the business data table and the business data archive table into data tables of a uniform format, it is possible to more quickly find the differences in the respective table structures of the business data table and the business data archive table, from the business data table and the business data. Inconsistent records are selected from the corresponding uniformly formatted data tables of the archive tables. The selected records record corresponding table structure information. The obtained difference table stores the comparison results between the business data table and the business data archive table.
在其中一个实施例中,该归档问题包括表结构信息错误;该差异表中每个记录在该差异表中都有一一对应的记录;该根据该对比结果确定该业务数据归档表出现的归档问题,包括:识别该差异表中每个记录的最大字符串长度;获取两个一一对应的记录各自的最大字符串长度;当从该业务数据归档表选取的记录的最大字符串长度与从该业务数据表选取的记录的最大字符串长度的比值不为预设值时,则确定该比值不为二的记录出现表结构信息错误。In one of the embodiments, the archiving problem includes incorrect table structure information; each record in the discrepancy table has a one-to-one corresponding record in the discrepancy table; and the archiving that occurs in the business data archiving table is determined according to the comparison result Questions include: identifying the maximum string length of each record in the difference table; obtaining the respective maximum string lengths of two one-to-one corresponding records; when the maximum string length of a record selected from the business data archive table is different from When the ratio of the maximum string length of the records selected by the business data table is not a preset value, it is determined that the record with the ratio not being two has a table structure information error.
表结构信息错误具体可以是业务数据表和业务数据归档表相对应的记录 的最大字符串长度不匹配。最大字符串长度是记录能够存储的字符串的最大长度。预设值是业务数据表归档至业务数据归档表的预设条件。预设比值具体可以是1.5,也可以是2。还可以是2.5。一一对应的记录具体是业务数据表中用于存储待归档的业务数据的记录和业务数据归档表中用于归档该业务数据的记录。The table structure information error may specifically be that the maximum string lengths of the records corresponding to the business data table and the business data archive table do not match. The maximum string length is the maximum length of a string that a record can store. The preset value is a preset condition for archiving the business data table to the business data archive table. The preset ratio may be specifically 1.5 or 2. It can also be 2.5. The one-to-one corresponding record is specifically a record in the business data table for storing the business data to be archived and a record in the business data archive table for archiving the business data.
本实施例中,通过识别差异表中每个记录的最大字符串长度,并在业务数据归档表选取的记录的最大字符串长度与从业务数据表选取的记录的最大字符串长度的比值不为预设值时,确定比值不为预设值的记录出现表结构信息错误,可以快速地确定归档问题,从而更快地修正归档问题,进而提高业务数据表归档的效率。In this embodiment, by identifying the maximum string length of each record in the difference table, and the ratio of the maximum string length of the record selected in the business data archive table to the maximum string length of the record selected from the business data table is not When the value is preset, the records whose ratio is not the preset value have table structure information errors, which can quickly determine the archiving problem, so that the archiving problem can be corrected faster, and the business data table archiving efficiency can be improved.
在其中一个实施例中,该获取根据确定的归档问题生成的归档问题列表之后,该方法还包括:获取数据库维护人员的电子邮件地址;将该归档问题列表发送至该电子邮件地址所指定的电子邮箱。In one embodiment, after obtaining the archived question list generated according to the determined archive question, the method further includes: obtaining an email address of a database maintenance person; and sending the archived question list to an electronic designated by the email address mailbox.
数据库维护人员是可以手动操作数据库的工作人员。电子邮件地址是电子邮箱接收和发送电子邮件所需要的网络地址。Database maintainers are staff who can operate the database manually. E-mail address is the network address required for receiving and sending e-mail.
本实施例中,通过在获取了归档问题列表后,将归档问题列表通过电子邮件的方式发送给数据库维护人员的电子邮箱,从而可以在自动进行修正时出错,也可以通过手工修正的方式进行修正,以保证数据表归档不出错。In this embodiment, after the archived problem list is obtained, the archived problem list is emailed to the email address of the database maintenance staff, so that errors can be automatically corrected or manually corrected. To ensure that the data sheet archive is error-free.
在其中一个实施例中,该获取根据确定的归档问题生成的归档问题列表之后,该方法还包括:统计该归档问题列表中的归档问题;对预设时间段内出现的归档问题进行分析;将出现的次数超过预设阈值的归档问题标记为高频问题;将该高频问题在该归档问题表中置顶。In one embodiment, after obtaining the archived question list generated according to the determined archived question, the method further includes: counting the archived questions in the archived question list; analyzing the archived questions appearing within a preset time period; An archive issue that occurs more than a preset threshold is marked as a high frequency issue; the high frequency issue is topped in the archive issue table.
预设时间段具体是统计归档问题的时间段。预设时间段具体可以设置为一周。预设阈值是归档问题被标记为高频问题的触发条件。高频问题具体是在归档问题列表中需要优先解决的归档问题。将高频问题在归档问题列表中置顶,具体可以是将高频问题按照相应的出现次数在归档问题列表中排列,也可以是将高频问题按照被标记为高频问题的时间在归档问题列表中依次排 列。The preset time period is specifically a time period for statistical archiving issues. The preset time period can be specifically set to one week. The preset threshold is a trigger condition for archiving issues to be marked as high frequency issues. High frequency issues are specifically archiving issues that need to be addressed first in the archiving issue list. Pin high-frequency issues on the archived question list. Specifically, you can arrange high-frequency questions in the archived question list according to the number of occurrences, or you can place high-frequency questions in the archived question list according to the time when they are marked as high-frequency issues. In order.
在其中一个实施例中,服务器统计归档问题列表中历史归档问题的出现时间和出现次数,根据统计出的出现时间和出现次数,调整历史归档问题相应的待修正归档问题在归档问题列表中的位置。In one of the embodiments, the server counts the occurrence time and the number of occurrences of historical archiving problems in the archiving problem list, and adjusts the position of the archiving problem to be corrected corresponding to the historical archiving problem in the archiving problem list according to the statistics of the occurrence time and the occurrence number. .
本实施例中,通过统计归档问题列表中的归档问题,将出现次数超过预设阈值的归档问题标记为高频问题,并将高频问题在归档问题列表中置顶,可以优先将归档问题列表中被置顶的高频问题修正,从而优先解决容易发生的归档问题,加快修正业务数据表归档的归档问题的速度,进而提高业务数据表归档的效率。In this embodiment, by archiving problems in the archiving problem list, marking archiving problems that occur more than a preset threshold as high-frequency problems, and placing high-frequency problems on the archiving problem list, the archiving problem list can be prioritized. Topped high-frequency problem corrections, so as to prioritize prone archiving problems, speed up the archiving of archiving business data tables, and improve the efficiency of archiving business data tables.
在其中一个实施例中,该方法还包括:根据该归档问题列表构建归档问题模型;在将该业务数据表归档至该业务数据归档表之前,通过该归档问题模型检测该业务数据表和业务数据归档表;修正已检测出的表结构信息的错误;在修正该业务数据表和业务数据归档表的表结构信息错误后,再进行归档。In one embodiment, the method further includes: constructing an archive problem model according to the archive problem list; and before archiving the business data table to the business data archive table, detecting the business data table and the business data through the archive problem model Archive table; correct detected table structure information errors; archive the table after correcting the table structure information of the business data table and the business data archive table.
归档问题模型是预测业务数据归档表中出现归档问题的数据模型。通过归档问题模型检测业务数据表和业务数据归档表,具体可以是将业务数据表和业务数据归档表的表结构信息导入归档问题模型中。将检测出的表结构错误进行修正,具体可以是根据业务数据表的表结构信息重新配置业务数据归档表的表结构信息。An archiving problem model is a data model that predicts archiving problems in business data archiving tables. The business data table and the business data archive table are detected through the archive problem model. Specifically, the table structure information of the business data table and the business data archive table can be imported into the archive problem model. Correcting the detected table structure error may specifically reconfigure the table structure information of the business data archive table according to the table structure information of the business data table.
在其中一个实施例中,服务器获取归档问题列表中出现归档问题的记录相应的位置信息和问题类型,将获取的位置信息和问题类型输入待训练归档问题模型,在持续输入位置信息和问题类型至待训练归档问题模型预设时长之后,得到归档问题模型。预设时长可以是十五天。In one embodiment, the server obtains the corresponding location information and problem type of the record where the archive problem occurs in the archive problem list, enters the obtained location information and problem type into the archiving problem model to be trained, and continuously inputs the location information and problem type to After a preset duration of the training archived problem model, an archived problem model is obtained. The preset duration can be fifteen days.
在其中一个实施例中,服务器在业务数据表归档,且业务数据表归档失败时,根据归档问题模型快速确定归档问题,并根据确定的归档问题修正业务数据归档表,将业务数据表中的业务数据重新归档至业务数据归档表。In one embodiment, when the business data table is archived and the business data table fails to be archived, the server quickly determines the archiving problem according to the archiving problem model, and corrects the business data archiving table according to the determined archiving problem, and the business in the business data table The data is re-archived to the business data archive table.
本实施例中,通过根据归档问题列表构建归档问题模型,可以在将业务 数据表归档至业务数据归档表之前,就检测出业务数据归档表的表结构信息的错误,在修正了表结构信息的错误之后,再进行归档,可以避免在归档业务数据表时出现错误,以导致归档花费的时间增加,从而可以提高业务数据表归档的效率。In this embodiment, by constructing an archiving problem model according to the archiving problem list, before the business data table is archived to the business data archiving table, errors in the table structure information of the business data archiving table can be detected. After archiving, you can avoid errors when archiving business data tables, which leads to an increase in the time it takes to archive, thereby improving the efficiency of archiving business data tables.
在其中一个实施例中,该根据该归档问题列表自动修正该业务数据归档表,包括:识别该业务数据表中记录的最大字符串长度;将在该业务数据归档表中与该业务数据表相对应的记录的最大字符串长度,调整为该业务数据表中记录的最大字符串长度的两倍;将该业务数据表中记录的业务数据重新归档至该业务数据归档表中经过调整的相应记录中。In one of the embodiments, the automatic correction of the business data archive table according to the archive problem list includes: identifying the maximum string length recorded in the business data table; and comparing the business data table with the business data table in the business data archive table The maximum string length of the corresponding record is adjusted to twice the maximum string length of the record in the business data table; the business data recorded in the business data table is re-archived to the adjusted corresponding record in the business data archive table in.
将该业务数据表中记录的业务数据重新归档至该业务数据归档表中经过调整的相应记录中,具体是将出现归档问题的记录中的业务数据进行重新归档。The business data recorded in the business data table is re-archived into the adjusted corresponding records in the business data archiving table. Specifically, the business data in the record where the archiving problem occurs is re-archived.
在其中一个实施例中,服务器根据归档问题列表识别业务数据表中相应记录的最大字符串长度,并将业务数据归档表中与该业务数据表相对应的记录的最大字符串长度,调整为该业务数据表中记录的最大字符串长度的预设倍数,再将业务数据表中与归档问题列表相对应的记录的业务数据重新归档至业务数据归档表中经过调整的相应记录中。In one embodiment, the server identifies the maximum string length of the corresponding record in the business data table according to the archive question list, and adjusts the maximum string length of the record corresponding to the business data table in the business data archive table to the A preset multiple of the maximum string length recorded in the business data table, and then re-archive the business data of the records corresponding to the archiving question list in the business data table to the adjusted corresponding records in the business data archive table.
本实施例中,通过将业务数据归档表中与业务数据表相对应的记录的最大字符串长度调整为业务数据表中记录的最大字符串长度的两倍,就可以成功地将业务数据表中的业务数据归档至业务数据归档表,从而可以修正业务数据表归档失败的问题。In this embodiment, by adjusting the maximum string length of the record corresponding to the business data table in the business data archive table to twice the maximum string length of the record in the business data table, the business data table can be successfully The business data is archived to the business data archive table, so that the problem of archiving of the business data table can be corrected.
如图3所示,在其中一个实施例中,还提供了一种业务数据表归档修正方法,具体包括以下的步骤:As shown in FIG. 3, in one of the embodiments, a business data table archiving correction method is also provided, which specifically includes the following steps:
S302,将业务数据表归档至业务数据归档表。S302. Archive the business data table to a business data archive table.
S304,读取该业务数据表和该业务数据归档表各自的表结构信息。S304. Read the respective table structure information of the service data table and the service data archive table.
S306,将该业务数据表和该业务数据归档表转换为统一格式的数据表。S306. Convert the business data table and the business data archive table into a data table in a unified format.
S308,从该业务数据表和该业务数据归档表各自相应的统一格式的数据 表中,选取不一致的记录,得到差异表。S308. Select inconsistent records from the corresponding unified format data tables of the business data table and the business data archive table to obtain a difference table.
该对比结果包括该差异表;该差异表中每个记录都有一一对应的记录。The comparison result includes the difference table; each record in the difference table has a one-to-one corresponding record.
S310,识别该差异表中每个记录的最大字符串长度。S310. Identify the maximum string length of each record in the difference table.
S312,获取两个一一对应的记录各自的最大字符串长度。S312. Obtain the maximum string length of each of the two one-to-one records.
当从该业务数据归档表选取的记录的最大字符串长度与从该业务数据表选取的记录的最大字符串长度的比值不为二时,则执行步骤S314。When the ratio of the maximum string length of the record selected from the business data archive table to the maximum string length of the record selected from the business data table is not two, step S314 is performed.
S314,判断该比值不为二的记录出现表结构信息错误。S314. It is determined that the record whose ratio is not two has a table structure information error.
S316,识别该业务数据表中出现表结构信息错误的记录的最大字符串长度。S316. Identify the maximum string length of a record in which the table structure information error occurs in the service data table.
S318,将在该业务数据归档表中与该业务数据表相对应的记录的最大字符串长度,调整为该业务数据表中记录的最大字符串长度的两倍。S318. Adjust the maximum string length of the record corresponding to the business data table in the business data archive table to twice the maximum string length of the record in the business data table.
S320,将该业务数据表中记录的业务数据重新归档至该业务数据归档表中经过调整的相应记录中。S320: Re-archive the business data recorded in the business data table into the adjusted corresponding records in the business data archiving table.
上述业务数据表归档修正方法中,在将数据库中的业务数据表归档至业务数据归档表之后,通过读取并对比业务数据表和业务数据归档表各自的表结构信息,得到对比结果。而通过对比表结构信息得到的对比结果,可以确定业务数据归档表的表结构出现的问题,从而确定业务数据归档表出现的归档问题。再将确定的归档问题整理为归档问题列表,就可以按照归档问题列表自动修正业务数据归档表,而自动修正业务数据归档表的速度远大于人工配置业务数据归档表的表结构信息的速度,因此可以避免人工配置业务数据归档表的表结构信息浪费时间,从而提高修正业务数据归档表的效率,进而提高业务数据表归档的效率。In the above business data table archiving correction method, after the business data table in the database is archived to the business data archive table, the comparison results are obtained by reading and comparing the respective table structure information of the business data table and the business data archive table. The comparison result obtained by comparing the table structure information can determine the problems in the table structure of the business data archive table, and thus determine the archive problems in the business data archive table. The identified archiving problems are organized into an archiving problem list, and the business data archiving table can be automatically corrected according to the archiving problem list. The speed of automatically correcting the business data archiving table is much faster than the speed of manually configuring the table structure information of the business data archiving table. This can avoid wasting time by manually configuring the table structure information of the business data archiving table, thereby improving the efficiency of amending the business data archiving table, and thereby improving the archiving efficiency of the business data table.
应该理解的是,虽然图3的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图3中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不 同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that although the steps in the flowchart of FIG. 3 are sequentially displayed in accordance with the directions of the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless explicitly stated in this document, the execution of these steps is not strictly limited, and these steps can be performed in other orders. Moreover, at least a part of the steps in FIG. 3 may include multiple sub-steps or stages. These sub-steps or stages are not necessarily performed at the same time, but may be performed at different times. The execution of these sub-steps or stages The order is not necessarily performed sequentially, but may be performed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
在其中一个实施例中,如图4所示,提供了一种业务数据表归档修正装置400,包括:业务数据表归档模块402、表结构信息读取模块404、表结构信息对比模块406、归档问题确定模块408、归档问题列表获取模块410和业务数据归档表修正模块412,其中:业务数据表归档模块402,用于将业务数据表归档至业务数据归档表;表结构信息读取模块404,用于读取该业务数据表和该业务数据归档表中各自对应的表结构信息;表结构信息对比模块406,用于对比该业务数据表和业务数据归档表对应的表结构信息,得到对比结果;归档问题确定模块408,用于根据该对比结果确定该业务数据归档表出现的归档问题;归档问题列表获取模块410,用于获取根据确定的归档问题生成的归档问题列表;业务数据归档表修正模块412,用于根据该归档问题列表自动修正该业务数据归档表。In one embodiment, as shown in FIG. 4, a business data table archive correction device 400 is provided, which includes: a business data table archive module 402, a table structure information reading module 404, a table structure information comparison module 406, and an archive. A problem determination module 408, an archive problem list acquisition module 410, and a business data archive table correction module 412, of which: a business data table archive module 402 is used to archive a business data table to a business data archive table; a table structure information reading module 404, Used to read the corresponding table structure information in the business data table and the business data archive table; the table structure information comparison module 406 is used to compare the table structure information corresponding to the business data table and the business data archive table to obtain a comparison result ; Archiving problem determination module 408, which is used to determine the archiving problems that occur in the business data archiving table according to the comparison result; archiving problem list acquisition module 410, which is used to obtain the archiving problem list generated according to the determined archiving problems; business data archiving table correction Module 412 is configured to automatically correct the business data archive table according to the archive problem list.
上述业务数据表归档修正装置400,在将数据库中的业务数据表归档至业务数据归档表之后,通过读取并对比业务数据表和业务数据归档表各自的表结构信息,得到对比结果。而通过对比表结构信息得到的对比结果,可以确定业务数据归档表的表结构出现的问题,从而确定业务数据归档表出现的归档问题。再将确定的归档问题整理为归档问题列表,就可以按照归档问题列表自动修正业务数据归档表,而自动修正业务数据归档表的速度远大于人工配置业务数据归档表的表结构信息的速度,因此可以避免人工配置业务数据归档表的表结构信息浪费时间,从而提高修正业务数据归档表的效率,进而提高业务数据表归档的效率。The business data table archiving correction device 400, after archiving the business data table in the database to the business data archive table, reads and compares the respective table structure information of the business data table and the business data archive table to obtain a comparison result. The comparison result obtained by comparing the table structure information can determine the problems in the table structure of the business data archive table, and thus determine the archive problems in the business data archive table. The identified archiving problems are organized into an archiving problem list, and the business data archiving table can be automatically corrected according to the archiving problem list. The speed of automatically correcting the business data archiving table is much faster than the speed of manually configuring the table structure information of the business data archiving table. This can avoid wasting time by manually configuring the table structure information of the business data archiving table, thereby improving the efficiency of amending the business data archiving table, and thereby improving the archiving efficiency of the business data table.
在其中一个实施例中,该装置还包括:数据表转换模块,用于分别将该业务数据表和该业务数据归档表转换为各自对应的统一格式的数据表;差异表生成模块,用于从该业务数据表和该业务数据归档表各自对应的统一格式的数据表中,选取内容不一致的记录,得到差异表;该对比结果包括该差异 表。In one embodiment, the apparatus further includes: a data table conversion module for converting the business data table and the business data archive table into data tables of corresponding uniform formats; a difference table generation module for From the business data table and the business data archive table corresponding to the uniformly formatted data table, records with inconsistent content are selected to obtain a difference table; the comparison result includes the difference table.
在其中一个实施例中,该归档问题包括表结构信息错误;该差异表中每个记录在所述差异表中都有一一对应的记录;该装置还包括:字符串长度识别模块,用于识别该差异表中每个记录的最大字符串长度;字符串长度获取模块,用于获取两个一一对应的记录各自的最大字符串长度;错误判断模块,用于当从该业务数据归档表选取的记录的最大字符串长度与从该业务数据表选取的记录的最大字符串长度的比值不为预设值时,则确定该比值不为预设值的记录出现表结构信息错误。In one embodiment, the archiving problem includes incorrect table structure information; each record in the difference table has a one-to-one corresponding record in the difference table; the device further includes: a string length identification module, configured to: Identify the maximum string length of each record in the difference table; a string length acquisition module is used to obtain the maximum string lengths of two one-to-one corresponding records; an error judgment module is used to retrieve the data from the business data archive table When the ratio between the maximum string length of the selected record and the maximum string length of the record selected from the business data table is not a preset value, it is determined that the record with the ratio other than the preset value has a table structure information error.
在其中一个实施例中,该获取根据确定的归档问题生成的归档问题列表之后,该方法还包括:In one of the embodiments, after obtaining the archive question list generated according to the determined archive question, the method further includes:
获取数据库维护人员的电子邮件地址;Obtain the email address of the database maintainer;
将该归档问题列表发送至该电子邮件地址所指定的电子邮箱。Send the list of archived questions to the email address specified by this email address.
在其中一个实施例中,该装置还包括:归档问题统计模块,用于统计该归档问题列表中的归档问题;归档问题分析模块,用于对预设时间段内出现的归档问题进行分析;高频问题标记模块,用于将出现的次数超过预设阈值的归档问题标记为高频问题;高频问题置顶模块,用于将该高频问题在该归档问题表中置顶。In one embodiment, the device further includes: an archive problem statistics module for counting archive problems in the archive problem list; an archive problem analysis module for analyzing archive problems occurring within a preset time period; high The high-frequency problem flagging module is used to mark an archiving problem that occurs more than a preset threshold as a high-frequency problem; the high-frequency problem pinning module is used to pin the high-frequency problem in the archiving problem table.
在其中一个实施例中,该装置还包括:模型构建模块,用于根据该归档问题列表构建归档问题模型;数据表检测模块,用于在将该业务数据表归档至该业务数据归档表之前,通过该归档问题模型检测该业务数据表和业务数据归档表;该业务数据归档表修正模块412,用于修正已检测出的表结构信息的错误;该业务数据表归档模块402,还用于在修正该业务数据表和业务数据归档表的表结构信息错误后,再进行归档。In one embodiment, the apparatus further includes: a model building module configured to build an archive problem model according to the archive problem list; a data table detection module configured to archive the business data table to the business data archive table, The business data table and business data archive table are detected through the archiving problem model; the business data archive table correction module 412 is used to correct errors in the detected table structure information; the business data table archive module 402 is also used to After correcting the table structure information of the business data table and the business data archiving table, the data is archived.
在其中一个实施例中,该字符串长度识别模块,还用于识别该业务数据表中记录的最大字符串长度;该装置还包括:字符串长度调整模块,用于将在该业务数据归档表中与该业务数据表相对应的记录的最大字符串长度,调整为该业务数据表中记录的最大字符串长度的两倍;该业务数据表归档模块 402,还用于将该业务数据表中记录的业务数据重新归档至该业务数据归档表中经过调整的相应记录中。In one embodiment, the string length identification module is further configured to identify a maximum string length recorded in the service data table; the device further includes: a string length adjustment module configured to archive the business data in the table The maximum string length of the record corresponding to the business data table is adjusted to twice the maximum string length of the record in the business data table; the business data table archiving module 402 is also used for the business data table The recorded business data is re-archived to the corresponding adjusted records in the business data archiving table.
关于业务数据表归档修正装置的具体限定可以参见上文中对于业务数据表归档修正方法的限定,在此不再赘述。上述业务数据表归档修正装置中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。Regarding the specific limitation of the service data table archiving and correction device, please refer to the limitation on the business data table archiving and correction method described above, which is not repeated here. Each module in the above-mentioned business data table archive correction device may be implemented in whole or in part by software, hardware, and a combination thereof. The above-mentioned modules may be embedded in the hardware in or independent of the processor in the computer device, or may be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.
在其中一个实施例中,提供了一种计算机设备,该计算机设备可以是服务器,其内部结构图可以如图5所示。该计算机设备包括通过系统总线连接的处理器、存储器、网络接口和数据库。该计算机设备的处理器用于提供计算和控制能力。该计算机设备的存储器包括非易失性存储介质、内存储器。该非易失性存储介质存储有操作系统、计算机可读指令和数据库。该内存储器为非易失性存储介质中的操作系统和计算机可读指令的运行提供环境。该计算机设备的数据库用于存储业务数据表和业务数据归档表等中的至少一种。该计算机设备的网络接口用于与外部的终端通过网络连接通信。该计算机可读指令被处理器执行时以实现一种业务数据表归档修正方法。In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. 5. The computer device includes a processor, a memory, a network interface, and a database connected through a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer-readable instructions, and a database. The internal memory provides an environment for the operation of the operating system and computer-readable instructions in a non-volatile storage medium. The database of the computer equipment is used to store at least one of a business data table, a business data archive table, and the like. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer-readable instructions are executed by the processor, a business data table archiving correction method is implemented.
本领域技术人员可以理解,图5中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的计算机设备的限定,具体的计算机设备可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。Those skilled in the art can understand that the structure shown in FIG. 5 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer equipment to which the solution of the present application is applied. The specific computer equipment may be Include more or fewer parts than shown in the figure, or combine certain parts, or have a different arrangement of parts.
在其中一个实施例中,提供了一种计算机设备,包括存储器和处理器,该存储器存储有计算机可读指令,该处理器执行计算机可读指令时实现以下步骤:将业务数据表归档至业务数据归档表;读取该业务数据表和该业务数据归档表中各自对应的表结构信息;对比该业务数据表和业务数据归档表对应的表结构信息,得到对比结果;根据该对比结果确定该业务数据归档表出现的归档问题;获取根据确定的归档问题生成的归档问题列表;根据该归档问题列表自动修正该业务数据归档表。In one embodiment, a computer device is provided, which includes a memory and a processor. The memory stores computer-readable instructions. When the processor executes the computer-readable instructions, the following steps are implemented: archiving a business data table to business data Archive table; read the corresponding table structure information in the business data table and the business data archive table; compare the table structure information corresponding to the business data table and the business data archive table to get the comparison result; determine the business based on the comparison result Archive problems that occur in the data archive table; obtain an archive problem list generated based on the identified archive problems; automatically correct the business data archive table according to the archive problem list.
一种计算机设备,包括存储器和一个或多个处理器,存储器中储存有计算机可读指令,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器实现本申请任意一个实施例中提供的业务数据表归档修正方法的步骤。A computer device includes a memory and one or more processors. Computer-readable instructions are stored in the memory, and when the computer-readable instructions are executed by one or more processors, the one or more processors implement any one of the present application. The steps of the business data table archiving correction method provided in the embodiment.
一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,计算机可读指令被一个或多个处理器执行时,使得一个或多个处理器实现本申请任意一个实施例中提供的业务数据表归档修正方法的步骤。One or more non-transitory computer-readable storage media storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, the one or more processors implement one of the embodiments of the present application. Provide the steps of the business data sheet archive correction method.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机可读指令来指令相关的硬件来完成,所述的计算机可读指令可存储于一非易失性计算机可读取存储介质中,该计算机可读指令在执行时,可包括如上述各方法的实施例的流程。本申请所提供的各实施例中所使用的对存储器、存储、数据库或其它介质的任何引用,均可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM)或者外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDRSDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)等。A person of ordinary skill in the art can understand that all or part of the processes in the methods of the foregoing embodiments can be implemented by using computer-readable instructions to instruct related hardware. The computer-readable instructions can be stored in a non-volatile computer. In the readable storage medium, the computer-readable instructions, when executed, may include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous chain (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
以上实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above embodiments can be arbitrarily combined. In order to make the description concise, all possible combinations of the technical features in the above embodiments have not been described. However, as long as there is no contradiction in the combination of these technical features, it should be It is considered to be the range described in this specification.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation manners of the present application, and the description thereof is more specific and detailed, but cannot be understood as a limitation on the scope of the invention patent. It should be noted that, for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can be made, and these all belong to the protection scope of the present application. Therefore, the protection scope of this application patent shall be subject to the appended claims.

Claims (20)

  1. 一种业务数据表归档修正方法,包括:A business data table archiving correction method includes:
    将业务数据表归档至业务数据归档表;Archive business data tables to business data archive tables;
    读取所述业务数据表和所述业务数据归档表中各自对应的表结构信息;Reading the corresponding table structure information in the business data table and the business data archive table;
    对比所述业务数据表和业务数据归档表对应的表结构信息,得到对比结果;Comparing the table structure information corresponding to the business data table and the business data archive table to obtain a comparison result;
    根据所述对比结果确定所述业务数据归档表出现的归档问题;Determining an archiving problem that occurs in the business data archiving table according to the comparison result;
    获取根据确定的归档问题生成的归档问题列表;及Obtain a list of archive issues generated from identified archive issues; and
    根据所述归档问题列表自动修正所述业务数据归档表。The business data archive table is automatically corrected according to the archive problem list.
  2. 根据权利要求1所述的方法,其特征在于,所述对比所述业务数据表和所述业务数据归档表对应的表结构信息,得到对比结果,包括:The method according to claim 1, wherein comparing the table structure information corresponding to the business data table and the business data archive table to obtain a comparison result comprises:
    分别将所述业务数据表和所述业务数据归档表转换为各自对应的统一格式的数据表;及Respectively converting the business data table and the business data archive table into respective corresponding unified format data tables; and
    从所述业务数据表和所述业务数据归档表各自对应的统一格式的数据表中,选取内容不一致的记录,得到差异表;所述对比结果包括所述差异表。Selecting records with inconsistent content from the business data table and the business data archive table corresponding to a uniform format data to obtain a difference table; the comparison result includes the difference table.
  3. 根据权利要求2所述的方法,其特征在于,所述归档问题包括表结构信息错误;所述差异表中每个记录在所述差异表中都有一一对应的记录;所述根据所述对比结果确定所述业务数据归档表出现的归档问题,包括:The method according to claim 2, wherein the archiving problem includes incorrect table structure information; each record in the difference table has a one-to-one corresponding record in the difference table; and according to the The comparison results determine archiving problems in the business data archiving table, including:
    识别所述差异表中每个记录的最大字符串长度;Identify the maximum string length of each record in the difference table;
    获取两个一一对应的记录各自的最大字符串长度;及Obtain the respective maximum string lengths of two one-to-one corresponding records; and
    当从所述业务数据归档表选取的记录的最大字符串长度与从所述业务数据表选取的记录的最大字符串长度的比值不为预设值时,则When the ratio of the maximum string length of a record selected from the business data archive table to the maximum string length of a record selected from the business data table is not a preset value, then
    确定所述比值不为预设值的记录出现表结构信息错误。Records that determine that the ratio is not a preset value have table structure information errors.
  4. 根据权利要求1所述的方法,其特征在于,所述获取根据确定的归档问题生成的归档问题列表之后,所述方法还包括:The method according to claim 1, wherein after obtaining the archive question list generated according to the determined archive question, the method further comprises:
    获取数据库维护人员的电子邮件地址;及Obtain the email address of the database maintainer; and
    将所述归档问题列表发送至所述电子邮件地址所指定的电子邮箱。Send the archive question list to the email address specified by the email address.
  5. 根据权利要求1所述的方法,其特征在于,所述获取根据确定的归档问题生成的归档问题列表之后,所述方法还包括:The method according to claim 1, wherein after obtaining the archive question list generated according to the determined archive question, the method further comprises:
    统计所述归档问题列表中的归档问题;Counting archive issues in the archive issue list;
    对预设时间段内出现的归档问题进行分析;Analyze archiving issues that occur within a preset time period;
    将出现的次数超过预设阈值的归档问题标记为高频问题;及Mark archiving issues that occur more than a preset threshold as high frequency issues; and
    将所述高频问题在所述归档问题表中置顶。Pin the high frequency question in the archive question table.
  6. 根据权利要求5所述的方法,其特征在于,还包括:The method according to claim 5, further comprising:
    根据所述归档问题列表构建归档问题模型;Construct an archive problem model according to the archive problem list;
    在将所述业务数据表归档至所述业务数据归档表之前,通过所述归档问题模型检测所述业务数据表和业务数据归档表;Before archiving the business data table to the business data archive table, detecting the business data table and the business data archive table through the archiving problem model;
    修正已检测出的表结构信息的错误;及Fix errors in detected table structure information; and
    在修正所述业务数据表和业务数据归档表的表结构信息错误后,再进行归档。After correcting the table structure information of the business data table and the business data archive table, the file is archived.
  7. 根据权利要求1至6所述的方法,其特征在于,所述根据所述归档问题列表自动修正所述业务数据归档表,包括:The method according to claim 1 to 6, wherein the automatically modifying the business data archive table according to the archive problem list comprises:
    识别所述业务数据表中记录的最大字符串长度;Identifying the maximum string length recorded in the business data table;
    将在所述业务数据归档表中与所述业务数据表相对应的记录的最大字符串长度,调整为所述业务数据表中记录的最大字符串长度的两倍;及Adjusting the maximum string length of a record corresponding to the business data table in the business data archive table to twice the maximum string length of a record in the business data table; and
    将所述业务数据表中记录的业务数据重新归档至所述业务数据归档表中经过调整的相应记录中。The business data recorded in the business data table is re-archived into the adjusted corresponding records in the business data archiving table.
  8. 一种业务数据表归档修正装置,包括:A business data table archive correction device includes:
    业务数据表归档模块,用于将业务数据表归档至业务数据归档表;Business data table archiving module, for archiving business data tables to business data archive tables;
    表结构信息读取模块,用于读取所述业务数据表和所述业务数据归档表中各自对应的表结构信息;A table structure information reading module, configured to read the corresponding table structure information in the business data table and the business data archive table;
    表结构信息对比模块,用于对比所述业务数据表和业务数据归档表对应的表结构信息,得到对比结果;The table structure information comparison module is configured to compare table structure information corresponding to the business data table and the business data archive table to obtain a comparison result;
    归档问题确定模块,用于根据所述对比结果确定所述业务数据归档表出 现的归档问题;An archiving problem determination module, configured to determine an archiving problem occurring in the business data archiving table according to the comparison result;
    归档问题列表获取模块,用于获取根据确定的归档问题生成的归档问题列表;及Archive question list acquisition module for obtaining a list of archive questions generated from the identified archive questions; and
    业务数据归档表修正模块,用于根据所述归档问题列表自动修正所述业务数据归档表。The business data archive table correction module is configured to automatically correct the business data archive table according to the archive problem list.
  9. 一种计算机设备,包括存储器和一个或多个处理器,所述存储器中储存有计算机可读指令,所述计算机可读指令被所述一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:A computer device includes a memory and one or more processors. The memory stores computer-readable instructions. When the computer-readable instructions are executed by the one or more processors, the one or more Each processor performs the following steps:
    将业务数据表归档至业务数据归档表;Archive business data tables to business data archive tables;
    读取所述业务数据表和所述业务数据归档表中各自对应的表结构信息;Reading the corresponding table structure information in the business data table and the business data archive table;
    对比所述业务数据表和业务数据归档表对应的表结构信息,得到对比结果;Comparing the table structure information corresponding to the business data table and the business data archive table to obtain a comparison result;
    根据所述对比结果确定所述业务数据归档表出现的归档问题;Determining an archiving problem that occurs in the business data archiving table according to the comparison result;
    获取根据确定的归档问题生成的归档问题列表;及Obtain a list of archive issues generated from identified archive issues; and
    根据所述归档问题列表自动修正所述业务数据归档表。The business data archive table is automatically corrected according to the archive problem list.
  10. 根据权利要求9所述的计算机设备,其特征在于,所述对比所述业务数据表和所述业务数据归档表对应的表结构信息,得到对比结果,包括:The computer device according to claim 9, wherein comparing the table structure information corresponding to the business data table and the business data archive table to obtain a comparison result comprises:
    分别将所述业务数据表和所述业务数据归档表转换为各自对应的统一格式的数据表;及Respectively converting the business data table and the business data archive table into respective corresponding unified format data tables; and
    从所述业务数据表和所述业务数据归档表各自对应的统一格式的数据表中,选取内容不一致的记录,得到差异表;所述对比结果包括所述差异表。Selecting records with inconsistent content from the business data table and the business data archive table corresponding to a uniform format data to obtain a difference table; the comparison result includes the difference table.
  11. 根据权利要求10所述的计算机设备,其特征在于,所述归档问题包括表结构信息错误;所述差异表中每个记录在所述差异表中都有一一对应的记录;所述根据所述对比结果确定所述业务数据归档表出现的归档问题,包括:The computer device according to claim 10, wherein the archiving problem includes a table structure information error; each record in the difference table has a one-to-one corresponding record in the difference table; The comparison results determine the archiving problems in the business data archiving table, including:
    识别所述差异表中每个记录的最大字符串长度;Identify the maximum string length of each record in the difference table;
    获取两个一一对应的记录各自的最大字符串长度;及Obtain the respective maximum string lengths of two one-to-one corresponding records; and
    当从所述业务数据归档表选取的记录的最大字符串长度与从所述业务数据表选取的记录的最大字符串长度的比值不为预设值时,则When the ratio of the maximum string length of a record selected from the business data archive table to the maximum string length of a record selected from the business data table is not a preset value, then
    确定所述比值不为预设值的记录出现表结构信息错误。Records that determine that the ratio is not a preset value have table structure information errors.
  12. 根据权利要求9所述的计算机设备,其特征在于,所述计算机可读指令被所述处理器执行时,使得所述处理器在执行所述获取根据确定的归档问题生成的归档问题列表之后,还执行以下步骤:The computer device according to claim 9, wherein when the computer-readable instructions are executed by the processor, the processor causes the processor to execute the obtaining of an archive question list generated according to the determined archive question, The following steps are also performed:
    获取数据库维护人员的电子邮件地址;及Obtain the email address of the database maintainer; and
    将所述归档问题列表发送至所述电子邮件地址所指定的电子邮箱。Send the archive question list to the email address specified by the email address.
  13. 根据权利要求9所述的计算机设备,其特征在于,所述计算机可读指令被所述处理器执行时,使得所述处理器在执行所述获取根据确定的归档问题生成的归档问题列表之后,还执行以下步骤:The computer device according to claim 9, wherein when the computer-readable instructions are executed by the processor, the processor causes the processor to execute the obtaining of an archive question list generated according to the determined archive question, The following steps are also performed:
    统计所述归档问题列表中的归档问题;Counting archive issues in the archive issue list;
    对预设时间段内出现的归档问题进行分析;Analyze archiving issues that occur within a preset time period;
    将出现的次数超过预设阈值的归档问题标记为高频问题;及Mark archiving issues that occur more than a preset threshold as high frequency issues; and
    将所述高频问题在所述归档问题表中置顶。Pin the high frequency question in the archive question table.
  14. 根据权利要求13所述的计算机设备,其特征在于,所述处理器执行所述计算机可读指令时还执行以下步骤:The computer device of claim 13, wherein the processor further executes the following steps when executing the computer-readable instructions:
    根据所述归档问题列表构建归档问题模型;Construct an archive problem model according to the archive problem list;
    在将所述业务数据表归档至所述业务数据归档表之前,通过所述归档问题模型检测所述业务数据表和业务数据归档表;Before archiving the business data table to the business data archive table, detecting the business data table and the business data archive table through the archiving problem model;
    修正已检测出的表结构信息的错误;及Fix errors in detected table structure information; and
    在修正所述业务数据表和业务数据归档表的表结构信息错误后,再进行归档。After correcting the table structure information of the business data table and the business data archive table, the file is archived.
  15. 根据权利要求9至14所述的计算机设备,其特征在于,所述根据所述归档问题列表自动修正所述业务数据归档表,包括:The computer device according to claim 9 to 14, wherein the automatically modifying the business data archive table according to the archive problem list comprises:
    识别所述业务数据表中记录的最大字符串长度;Identifying the maximum string length recorded in the business data table;
    将在所述业务数据归档表中与所述业务数据表相对应的记录的最大字符 串长度,调整为所述业务数据表中记录的最大字符串长度的两倍;及Adjusting the maximum string length of a record corresponding to the business data table in the business data archive table to twice the maximum string length of a record in the business data table; and
    将所述业务数据表中记录的业务数据重新归档至所述业务数据归档表中经过调整的相应记录中。The business data recorded in the business data table is re-archived into the adjusted corresponding records in the business data archiving table.
  16. 一个或多个存储有计算机可读指令的非易失性计算机可读存储介质,所述计算机可读指令被一个或多个处理器执行时,使得所述一个或多个处理器执行以下步骤:One or more non-volatile computer-readable storage media storing computer-readable instructions, which when executed by one or more processors, cause the one or more processors to perform the following steps:
    将业务数据表归档至业务数据归档表;Archive business data tables to business data archive tables;
    读取所述业务数据表和所述业务数据归档表中各自对应的表结构信息;Reading the corresponding table structure information in the business data table and the business data archive table;
    对比所述业务数据表和业务数据归档表对应的表结构信息,得到对比结果;Comparing the table structure information corresponding to the business data table and the business data archive table to obtain a comparison result;
    根据所述对比结果确定所述业务数据归档表出现的归档问题;Determining an archiving problem that occurs in the business data archiving table according to the comparison result;
    获取根据确定的归档问题生成的归档问题列表;及Obtain a list of archive issues generated from identified archive issues; and
    根据所述归档问题列表自动修正所述业务数据归档表。The business data archive table is automatically corrected according to the archive problem list.
  17. 根据权利要求16所述的存储介质,其特征在于,所述对比所述业务数据表和所述业务数据归档表对应的表结构信息,得到对比结果,包括:The storage medium according to claim 16, wherein comparing the table structure information corresponding to the business data table and the business data archive table to obtain a comparison result comprises:
    分别将所述业务数据表和所述业务数据归档表转换为各自对应的统一格式的数据表;及Respectively converting the business data table and the business data archive table into respective corresponding unified format data tables; and
    从所述业务数据表和所述业务数据归档表各自对应的统一格式的数据表中,选取内容不一致的记录,得到差异表;所述对比结果包括所述差异表。Selecting records with inconsistent content from the business data table and the business data archive table corresponding to a uniform format data to obtain a difference table; the comparison result includes the difference table.
  18. 根据权利要求17所述的存储介质,其特征在于,所述归档问题包括表结构信息错误;所述差异表中每个记录在所述差异表中都有一一对应的记录;所述根据所述对比结果确定所述业务数据归档表出现的归档问题,包括:The storage medium according to claim 17, wherein the archiving problem includes incorrect table structure information; each record in the difference table has a one-to-one corresponding record in the difference table; and The comparison results determine the archiving problems in the business data archiving table, including:
    识别所述差异表中每个记录的最大字符串长度;Identify the maximum string length of each record in the difference table;
    获取两个一一对应的记录各自的最大字符串长度;及Obtain the respective maximum string lengths of two one-to-one corresponding records; and
    当从所述业务数据归档表选取的记录的最大字符串长度与从所述业务数据表选取的记录的最大字符串长度的比值不为预设值时,则When the ratio of the maximum string length of a record selected from the business data archive table to the maximum string length of a record selected from the business data table is not a preset value, then
    确定所述比值不为预设值的记录出现表结构信息错误。Records that determine that the ratio is not a preset value have table structure information errors.
  19. 根据权利要求16所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时,使得所述处理器在执行所述获取根据确定的归档问题生成的归档问题列表之后,还执行以下步骤:The storage medium according to claim 16, wherein when the computer-readable instructions are executed by the processor, the processor causes the processor to execute the obtaining of an archive question list generated according to the determined archive question, The following steps are also performed:
    获取数据库维护人员的电子邮件地址;及Obtain the email address of the database maintainer; and
    将所述归档问题列表发送至所述电子邮件地址所指定的电子邮箱。Send the archive question list to the email address specified by the email address.
  20. 根据权利要求16所述的存储介质,其特征在于,所述计算机可读指令被所述处理器执行时,使得所述处理器在执行所述获取根据确定的归档问题生成的归档问题列表之后,还执行以下步骤:The storage medium according to claim 16, wherein when the computer-readable instructions are executed by the processor, the processor causes the processor to execute the obtaining of an archive question list generated according to the determined archive question, The following steps are also performed:
    统计所述归档问题列表中的归档问题;Counting archive issues in the archive issue list;
    对预设时间段内出现的归档问题进行分析;Analyze archiving issues that occur within a preset time period;
    将出现的次数超过预设阈值的归档问题标记为高频问题;及Mark archiving issues that occur more than a preset threshold as high frequency issues; and
    将所述高频问题在所述归档问题表中置顶。Pin the high frequency question in the archive question table.
PCT/CN2018/104751 2018-06-22 2018-09-10 Service data table filing correction method, device, computer equipment and storage medium WO2019242113A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810651440.1A CN108804708B (en) 2018-06-22 2018-06-22 Method and device for archiving and correcting business data table, computer equipment and storage medium
CN201810651440.1 2018-06-22

Publications (1)

Publication Number Publication Date
WO2019242113A1 true WO2019242113A1 (en) 2019-12-26

Family

ID=64084491

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/104751 WO2019242113A1 (en) 2018-06-22 2018-09-10 Service data table filing correction method, device, computer equipment and storage medium

Country Status (2)

Country Link
CN (1) CN108804708B (en)
WO (1) WO2019242113A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112148612A (en) * 2020-09-28 2020-12-29 百行征信有限公司 Credit investigation service detection method, apparatus, computer device and storage medium

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110287182B (en) * 2019-05-05 2021-09-14 浙江吉利控股集团有限公司 Big data comparison method, device, equipment and terminal
CN110286883B (en) * 2019-06-03 2024-01-30 中国建设银行股份有限公司 Intelligent database coding monitoring method and device and electronic equipment
CN112308571A (en) * 2019-07-15 2021-02-02 北京京东尚科信息技术有限公司 Intelligent customer service response method and device, storage medium and electronic equipment
CN111400304A (en) * 2020-02-19 2020-07-10 中国建设银行股份有限公司 Method and device for acquiring total data of section dates, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101814110A (en) * 2009-02-25 2010-08-25 中国联合网络通信集团有限公司 Data archiving method, system and front end processor thereof
CN103294724A (en) * 2012-03-05 2013-09-11 百度在线网络技术(北京)有限公司 Method for managing database structures and system for method
CN105653560A (en) * 2014-11-28 2016-06-08 华为软件技术有限公司 Method and device for data filing
US20180095987A1 (en) * 2014-06-30 2018-04-05 Emc Corporation Datacenter maintenance

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
PE20010308A1 (en) * 1999-05-10 2001-03-14 Transenda Internat Llc APPARATUS AND PROCESS FOR THE ELECTRONIC FILING OF FORMS
US9002801B2 (en) * 2010-03-29 2015-04-07 Software Ag Systems and/or methods for distributed data archiving amongst a plurality of networked computing devices
US8938430B2 (en) * 2012-02-22 2015-01-20 International Business Machines Corporation Intelligent data archiving
CN106774861B (en) * 2016-12-01 2020-07-28 北京奇宝科技有限公司 Intelligent device and behavior data correction method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101814110A (en) * 2009-02-25 2010-08-25 中国联合网络通信集团有限公司 Data archiving method, system and front end processor thereof
CN103294724A (en) * 2012-03-05 2013-09-11 百度在线网络技术(北京)有限公司 Method for managing database structures and system for method
US20180095987A1 (en) * 2014-06-30 2018-04-05 Emc Corporation Datacenter maintenance
CN105653560A (en) * 2014-11-28 2016-06-08 华为软件技术有限公司 Method and device for data filing

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112148612A (en) * 2020-09-28 2020-12-29 百行征信有限公司 Credit investigation service detection method, apparatus, computer device and storage medium

Also Published As

Publication number Publication date
CN108804708A (en) 2018-11-13
CN108804708B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
WO2019242113A1 (en) Service data table filing correction method, device, computer equipment and storage medium
CN109325865B (en) Exception handling method, exception handling device, computer equipment and storage medium
CN108874644B (en) Data monitoring method and device, computer equipment and storage medium
CN109359283B (en) Summarizing method of form data, terminal equipment and medium
CN108876122B (en) Batch work order processing method and device, computer equipment and storage medium
CN109799948B (en) Data storage method and device
CN110647531A (en) Data synchronization method, device, equipment and computer readable storage medium
CN107861991B (en) Receipt data processing method and device, computer equipment and storage medium
CN109597763B (en) Consistency verification method and device for normalizing multiple items of data
CN104268291A (en) Data consistency processing method and system
CN104254064B (en) A kind of number of writing method of mobile phone string information
US20150227577A1 (en) Method and device for guaranteeing consistency of planning data
CN112905706A (en) Database synchronization method and device, storage medium and computer equipment
CN112328631A (en) Production fault analysis method and device, electronic equipment and storage medium
CN113505078B (en) Configuration file updating method, device, equipment and storage medium
CN113158988A (en) Financial statement processing method and device and computer readable storage medium
CN116756129A (en) Data complement method and device, storage medium and electronic equipment
CN110162461B (en) Data synchronization verification method and device and computer equipment
CN115618828B (en) Data interaction method and system applied to industrial Internet
CN110647578B (en) Method, device, computer equipment and storage medium for synchronously displaying page information
CN109344372B (en) Big data-based document generation method and system
CN107085553B (en) Input box testing method and device
CN111507066B (en) Method and system for uploading and loading files and analyzing and warehousing
CN113704176B (en) File scanning method, device, electronic equipment and storage medium
CN112818937B (en) Excel file identification method and device, electronic equipment and readable storage medium

Legal Events

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

Ref document number: 18923461

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 12.04.2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18923461

Country of ref document: EP

Kind code of ref document: A1