Application change strategy generation method and device

By comparing the data files before and after the electronic information system migration, an application change strategy was generated, which solved the problem of system program verification after database migration and improved the integrity and correctness of the modified system.

CN116662303BActive Publication Date: 2025-09-30INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310654768.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-05
Publication Date
2025-09-30
Estimated Expiration
2043-06-05

AI Technical Summary

Technical Problem

In the prior art, when an electronic information system migrates its database, it is difficult to effectively verify the integrity and correctness of the system program after adaptation and modification, resulting in low verification efficiency and low accuracy.

Method used

By acquiring target data, calling the first target application and the second target application to process the data respectively, generating the first and second data files, and performing file comparison, an application change strategy is generated to verify and repair missing or erroneous programs.

Benefits of technology

The integrity and correctness of system programs have been improved after adaptation and transformation to the new database product features, ensuring that the electronic information system can operate normally after migration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116662303B_ABST
    Figure CN116662303B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method, apparatus, device, and storage medium for generating an application change policy, which can be applied to the fields of big data technology and financial technology. The method comprises: obtaining target data, wherein the target data represents data to be processed by a first target application and a second target application, wherein the second target application is obtained by performing an initial change on the first target application based on the characteristics of a migrated database, and the second target application represents an initial application for implementing the same function as the first target application; processing the target data by calling the first target application to obtain a first data file; processing the target data by calling the second target application to obtain a second data file; and performing a file comparison operation on the first data file and the second data file to generate an application change policy corresponding to the second target application.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the fields of big data technology and financial technology, and in particular to a method, apparatus, device, medium, and program product for generating an application change strategy. Background Art

[0002] The phenomenon of replacing database products in electronic information systems is common. In addition to migrating data objects and business data from the original database to the new database, while maintaining the system's business functions, it is often necessary to adapt and modify the system programs based on the characteristics of the new database product. The integrity and correctness of the adapted and modified system programs must also be verified. However, related technologies for verifying the integrity and correctness of system programs suffer from low efficiency and accuracy.

[0003] Therefore, when an electronic information system migrates its database, how to ensure the integrity and correctness of the system program after it is adapted and modified to the characteristics of the new database product is a technical problem that needs to be solved in related technologies. Summary of the Invention

[0004] In view of the above problems, the present disclosure provides a method, apparatus, device, medium and program product for generating an application change policy.

[0005] According to a first aspect of the present disclosure, a method for generating an application change strategy is provided, comprising:

[0006] Obtaining target data, wherein the target data represents data to be processed by a first target application and a second target application, the second target application being obtained by initially modifying the first target application based on characteristics of the migrated database, and the second target application representing an initial application for implementing the same function as the first target application;

[0007] Processing the target data by calling the first target application to obtain a first data file;

[0008] Processing the target data by calling the second target application to obtain a second data file;

[0009] A file comparison operation is performed on the first data file and the second data file to generate an application change policy corresponding to the second target application.

[0010] According to an embodiment of the present disclosure, the above-mentioned application change strategy generation method further includes:

[0011] In the case of the first file comparison operation, the business data in the first database is copied and migrated to the second database and the backup database to obtain the business data in the second database and the backup database, wherein the first database represents the database before migration and the second database represents the database after migration; and

[0012] In the case of a non-first file comparison operation, the business data in the backup database is used to perform a repair operation on the data to be repaired whose data status has changed in the first database and the second database.

[0013] According to an embodiment of the present disclosure, when performing a non-first file comparison operation, using the business data in the backup database to repair the data to be repaired whose data status has changed in the first database and the second database includes:

[0014] In a case where the data to be repaired exists in the first database or the data to be repaired exists in the second database, clearing the data corresponding to the data to be repaired in the first database and the second database; and

[0015] The data corresponding to the data to be repaired is copied from the business data in the backup database to the first database and the second database.

[0016] According to an embodiment of the present disclosure, the first data file is obtained by processing the target data by calling the first target application, including:

[0017] grouping the first target applications according to a preset rule to obtain a plurality of first applications, wherein the first target applications represent programs for processing the business data;

[0018] The target data is processed by calling at least one of the first applications to obtain the first data file, wherein the at least one first application represents a program in the first target application for processing the target data, and the business data includes the target data.

[0019] According to an embodiment of the present disclosure, the second target application is called to process the target data to obtain the second data file, including:

[0020] grouping the second target applications according to the preset rule to obtain a plurality of second applications, wherein the second target applications represent programs for processing the business data;

[0021] The second data file is obtained by calling at least one of the second application programs to process the target data, wherein the at least one first application program represents a program in the second target application program for processing the target data.

[0022] According to an embodiment of the present disclosure, performing a file comparison operation on the first data file and the second data file to generate an application change policy corresponding to the second target application includes:

[0023] Performing a file comparison operation on the first data file and the second data file to obtain a file comparison report;

[0024] The application change strategy corresponding to the second target application is generated based on the file comparison report.

[0025] According to an embodiment of the present disclosure, performing a file comparison operation on the first data file and the second data file to obtain a file comparison report includes:

[0026] Comparing the name of each first target file in the first data file with the name of each second target file in the second data file to obtain a first comparison result corresponding to each first target file;

[0027] If the first comparison result indicates that the second target file with the same name as the first target file exists in the second data file, performing a consistency comparison on the first target file and the second target file to obtain a second comparison result;

[0028] Based on the plurality of first comparison results and the plurality of second comparison results, the file comparison report corresponding to the first data file and the second data file is obtained.

[0029] According to an embodiment of the present disclosure, the above-mentioned application change strategy generation method further includes:

[0030] When the second target application is changed according to the application change policy to obtain a new second target application, performing a file comparison operation on a new second data file obtained by calling the new second target application and a new first data file obtained by calling the first target application to obtain a new file comparison report;

[0031] A new application change strategy corresponding to the new second target application is generated based on the new file comparison report.

[0032] The second aspect of the present disclosure provides an application change strategy generation device, including: an acquisition module, a first calling module, a second calling module and a comparison module. The acquisition module is used to acquire target data, wherein the target data represents the data that needs to be processed by the first target application and the second target application, the second target application is obtained by performing an initial change on the first target application according to the characteristics of the database after migration, and the second target application represents the initial application for realizing the same function as the first target application. The first calling module is used to process the target data by calling the first target application to obtain a first data file. The second calling module is used to process the target data by calling the second target application to obtain a second data file. The comparison module is used to perform a file comparison operation on the first data file and the second data file to generate an application change strategy corresponding to the second target application.

[0033] A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the above method.

[0034] A fourth aspect of the present disclosure further provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the above method.

[0035] The fifth aspect of the present disclosure further provides a computer program product, comprising a computer program, which implements the above method when executed by a processor.

[0036] According to the application change strategy generation method, apparatus, equipment, medium and program product provided by the present disclosure, a first data file can be obtained by calling a first target application to process target data, and a second data file can be obtained by calling a second target application to process target data, wherein the second target application is obtained by making an initial change to the first target application according to the characteristics of the database after migration, and performing a file comparison operation on the first data file and the second data file, thereby enabling verification of the integrity and correctness of the second target application, and according to the generated application change policy corresponding to the second target application, changes are made to the missing parts and erroneous parts in the second target application, thereby improving the integrity and correctness of the second target application. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] The above contents and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0038] Figure 1 The following schematically illustrates an application scenario diagram of the method for generating an application change strategy according to an embodiment of the present disclosure;

[0039] Figure 2 A flowchart of a method for generating an application change strategy according to an embodiment of the present disclosure is schematically shown;

[0040] Figure 3 A flowchart for obtaining a file comparison report according to an embodiment of the present disclosure is schematically shown;

[0041] Figure 4 Schematically shows a structural diagram of a comparison tool according to an embodiment of the present disclosure;

[0042] Figure 5 Schematically shows a front-end interface diagram of a comparison tool according to an embodiment of the present disclosure;

[0043] Figure 6 A schematic diagram of a file comparison report according to an embodiment of the present disclosure is schematically shown;

[0044] Figure 7 A schematic diagram shows a structural block diagram of an application change strategy generating device according to an embodiment of the present disclosure; and

[0045] Figure 8 A block diagram of an electronic device suitable for implementing the application change policy generation method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0046] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are merely exemplary and are not intended to limit the scope of the present disclosure. In the detailed description below, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of well-known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0047] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise," "include," etc. used herein indicate the presence of the features, steps, operations, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, or components.

[0048] All terms used herein (including technical and scientific terms) have the meanings commonly understood by those skilled in the art unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification and should not be interpreted in an idealized or overly rigid manner.

[0049] When expressions such as "at least one of A, B and C, etc." are used, they should generally be interpreted in accordance with the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0050] In the technical solutions disclosed herein, the collection, storage, use, processing, transmission, provision, disclosure and application of the data involved (including but not limited to user personal information) comply with the provisions of relevant laws and regulations, take necessary confidentiality measures, and do not violate public order and good morals.

[0051] In the process of realizing the present disclosure, it is found that after the program that generates system data files (such as various statistical reports and upstream and downstream interactive files) based on business data processing is adapted and transformed, the integrity and correctness of the program adaptation and transformation are generally verified by manually comparing the data files generated before and after the transformation. For electronic information systems with a large number of data files generated, the number of files and the content of the files generated by the program after the adaptation and transformation are manually checked. When the number of files is large, it is easy to miss the verification of some data files; when the row record length of the data file is long (more than 150 bits), it is necessary to manually drag the mouse to display a row of data on the screen for inspection and verification, resulting in low verification efficiency; when the data file uses "invisible characters" as row record line breaks, the program is adapted and transformed and the record line breaks are mistakenly modified (for example, the record line break is mistakenly modified from "0D0A" to "0D"), it is difficult to find such transformation differences through manual verification, resulting in low accuracy of the verification result. Therefore, when the electronic information system migrates the database, how to ensure the integrity and correctness of the system program after the adaptation and transformation for the new database product features is a technical problem that needs to be solved in the relevant technology.

[0052] To this end, an embodiment of the present disclosure provides an application change strategy generation method, including: obtaining target data, wherein the target data represents data that needs to be processed by a first target application and a second target application, the second target application is obtained by making an initial change to the first target application based on the characteristics of the migrated database, and the second target application represents an initial application used to implement the same function as the first target application; processing the target data by calling the first target application to obtain a first data file; processing the target data by calling the second target application to obtain a second data file; performing a file comparison operation on the first data file and the second data file to generate an application change policy corresponding to the second target application.

[0053] Figure 1 The application scenario diagram of the application change strategy generation method according to an embodiment of the present disclosure is schematically shown.

[0054] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a first terminal device 101, a second terminal device 102, a third terminal device 103, a network 104, and a server 105. The network 104 is used as a medium for providing a communication link between the first terminal device 101, the second terminal device 102, the third terminal device 103, and the server 105. The network 104 may include various connection types, such as wired or wireless communication links or optical fiber cables.

[0055] The user may use at least one of the first terminal device 101, the second terminal device 102, and the third terminal device 103 to interact with the server 105 via the network 104 to receive or send messages, etc. Various communication client applications may be installed on the first terminal device 101, the second terminal device 102, and the third terminal device 103, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).

[0056] The first terminal device 101 , the second terminal device 102 , and the third terminal device 103 may be various electronic devices having display screens and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0057] The server 105 may be a server that provides various services, such as a background management server (for example only) that supports websites browsed by users using the first terminal device 101, the second terminal device 102, and the third terminal device 103. The background management server may analyze and process received user requests and other data, and feed back processing results (e.g., web pages, information, or data obtained or generated according to user requests) to the terminal devices.

[0058] For example, the target data can be obtained through the server 105, and the target data can be processed by calling the first target application to obtain a first data file. The target data can be processed by calling the second target application to obtain a second data file. Finally, a file comparison operation is performed on the first data file and the second data file to generate an application change policy corresponding to the second target application.

[0059] It should be noted that the application change policy generation method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the application change policy generation device provided in the embodiment of the present disclosure can generally be set in the server 105. The application change policy generation method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105. Accordingly, the application change policy generation device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the first terminal device 101, the second terminal device 102, the third terminal device 103 and / or the server 105.

[0060] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is merely illustrative. Any number of terminal devices, networks and servers may be provided as required.

[0061] The following will be based on Figure 1 The scene described by Figures 2 to 6 The application change strategy generation method of the embodiment of the present disclosure is described in detail.

[0062] Figure 2 The flowchart of the method for generating an application change strategy according to an embodiment of the present disclosure is schematically shown.

[0063] like Figure 2 As shown, the method 200 includes operations S210 to S240.

[0064] In operation S210 , target data is acquired.

[0065] According to an embodiment of the present disclosure, the target data can represent the data that needs to be processed by the first target application and the second target application. The second target application is obtained by making initial changes to the first target application based on the characteristics of the migrated database. The second target application can represent the initial application used to achieve the same function as the first target application.

[0066] According to the embodiments of the present disclosure, database migration refers to migrating an electronic information system from one database to another. The business requirements of the electronic information system before and after the migration remain unchanged; that is, the electronic information system must still perform the same functions after the migration as before. For example, if the electronic information system can generate ten reports for the pre-migration database, it will also need to generate ten reports for the post-migration database, with each report displaying the same data as the corresponding report for the pre-migration database.

[0067] According to embodiments of the present disclosure, when an application in an electronic information system adapts to the characteristics of a particular database, the electronic information system can retrieve data from that database and process the data to implement the corresponding functionality. Therefore, if, after an electronic information system switches from one database to another, the database no longer supports the original application in the electronic information system due to the changed database characteristics, the application must also be modified accordingly, becoming one supported by the database.

[0068] According to an embodiment of the present disclosure, the first target application can represent an application that matches the database characteristics before migration, and the second target application can represent the initial application obtained by making initial changes to the first target application based on the database characteristics after migration. Because there may be missing programs or erroneous programs in the second target application obtained by the initial change, it is necessary to verify the integrity and correctness of the second target application, that is, to verify whether the second target application completely matches the database characteristics after migration.

[0069] According to the embodiments of the present disclosure, the business requirements before and after the migration of the electronic information system remain unchanged, that is, the system data files obtained by processing the business data in the database before and after the migration of the electronic information system need to be consistent. Therefore, the same target data can be obtained from the business data in the database to verify the integrity and correctness of the first target application.

[0070] In operation S220, the target data is processed by calling a first target application to obtain a first data file.

[0071] According to an embodiment of the present disclosure, the target data can be processed by calling an application corresponding to the target data in the first target application to obtain a first data file corresponding to the target data, wherein the first data file can represent a data file obtained for the target data before the electronic information system is migrated.

[0072] In operation S230 , the target data is processed by calling a second target application to obtain a second data file.

[0073] According to an embodiment of the present disclosure, the target data can be processed by calling an application corresponding to the target data in the second target application to obtain a second data file corresponding to the target data, wherein the second data file can represent a data file obtained for the target data after the electronic information system is migrated.

[0074] According to embodiments of the present disclosure, if the second target application matches the characteristics of the post-migration database, the first and second target applications can implement the same functionality, meaning that the data files generated by processing the same target data are identical. Therefore, to verify the integrity and correctness of the adaptation and modification of the second target application, the first and second target applications can be invoked to process the same target data, generating the first and second data files.

[0075] According to embodiments of the present disclosure, a first target application and a second target application are invoked according to the same input parameters, so that the first and second target applications process the same batch of target data. For example, the input parameters may include a specific date, so that the first and second target applications can be invoked to process the target data for that date.

[0076] In operation S240 , a file comparison operation is performed on the first data file and the second data file to generate an application change policy corresponding to the second target application.

[0077] According to an embodiment of the present disclosure, a file comparison operation is performed on the obtained first and second data files to generate an application change policy corresponding to the second target application. If the first and second data files are consistent, this indicates that the second target application matches the characteristics of the post-migration database and does not require changes to the second target application. If the first and second data files are inconsistent, this indicates that the second target application contains missing or incorrect programs, and changes to the second target application are required according to the application change policy.

[0078] According to an embodiment of the present disclosure, a first data file can be obtained by calling a first target application to process target data, and a second data file can be obtained by calling a second target application to process target data, wherein the second target application is obtained by making an initial change to the first target application according to the characteristics of the database after migration, and performing a file comparison operation on the first data file and the second data file, thereby enabling verification of the integrity and correctness of the second target application, and according to the generated application change policy corresponding to the second target application, changes are made to missing programs and erroneous programs in the second target application, thereby improving the integrity and correctness of the second target application.

[0079] According to an embodiment of the present disclosure, the above-mentioned application change strategy generation method also includes: when performing the first file comparison operation, copying and migrating the business data in the first database to the second database and the backup database to obtain the business data in the second database and the backup database; when performing a non-first file comparison operation, using the business data in the backup database to perform a repair operation on the data to be repaired whose data status has changed in the first database and the second database.

[0080] According to an embodiment of the present disclosure, the first database may represent a database before migration, and the second database may represent a database after migration.

[0081] According to an embodiment of the present disclosure, after the electronic information system is migrated to the second database, it is necessary to perform an initial change to the first target application based on the characteristics of the second database to obtain the second target application. Before verifying the integrity and correctness of a portion of the second target application, that is, before performing the initial file comparison operation, it is necessary to copy and migrate the business data in the first database to the second database and the backup database. When the business data in the first database is copied and migrated to the second database and the backup database, the same target data can be obtained from the first and second databases to verify the integrity and correctness of the application corresponding to the target data in the second target application.

[0082] According to an embodiment of the present disclosure, when there is a missing program or an erroneous program in the application corresponding to the target data in the second target application, the second target application can be changed according to the generated application change strategy to obtain a new second target application. The integrity and correctness of the obtained new second target application can be verified, that is, a non-first file comparison operation is performed. However, the data in the first database and the second database may cause the operation of the first target application and the second target application to be triggered by the previous round of file comparison operations, which may cause the data status in the first database and the second database to change (also known as data contamination or dirty data). The data in the first database and the second database need to be repaired so that the data basis in the first database and the second database remains consistent before the next round of file comparison operations can be started.

[0083] According to an embodiment of the present disclosure, when the integrity and correctness of the second target application are verified, the target data can be processed by calling the first target application and the second target application, but this may cause the state of the target data in the first database or the target data in the second database to change. For example, the business needs before and after the migration of the electronic information system may include the generation of invoice reports, and the application can be called to process the data corresponding to the business needs and generate a corresponding data file. In the case where the data file can represent the generated invoice report, it can be indicated that the invoice has been generated for this data, and the status of the data in the database will be updated to the invoice issued. Under the above-mentioned basic situation, calling the application again to process the data will not generate a data file, but an empty file, which makes it impossible to perform the file comparison operation. Therefore, in the case of performing a non-first file comparison operation, the data to be processed needs to be restored to its original state so that the data in the database before and after the migration remains consistent.

[0084] According to the embodiments of the present disclosure, the state of the business data in the backup database will be maintained in its original state. Therefore, in the case of a non-initial file comparison operation, the business data in the backup database can be used to repair the data to be repaired whose data state has changed in the first and second databases.

[0085] According to an embodiment of the present disclosure, data can be replicated using DRS (Data Replication Service) data replication technology, or by exporting SQL (Structured Query Language) data files from the post-migration database and replaying the SQL data files in the pre-migration database.

[0086] According to the embodiments of the present disclosure, the speed of repairing the data to be repaired will also affect the efficiency of verifying the integrity and correctness of the adaptation and transformation of the second target application. Therefore, the business data in the backup database can be used to perform repair operations on the data to be repaired whose data status has changed in the first database and the second database. The data in the database before migration and the data in the database after migration can be quickly restored to consistency in the data basis, thereby solving the problem of data contamination in the database before migration and the database after migration during the previous round of file comparison operations, and facilitating the generation of data files for subsequent file comparison operations.

[0087] According to an embodiment of the present disclosure, when performing a non-first file comparison operation, the business data in the backup database is used to perform a repair operation on the data to be repaired whose data status has changed in the first database and the second database, including: when there is data to be repaired in the first database or there is data to be repaired in the second database, the data corresponding to the data to be repaired in the first database and the second database are cleared; and the data corresponding to the data to be repaired in the business data in the backup database is copied to the first database and the second database.

[0088] According to an embodiment of the present disclosure, when performing a non-initial file comparison operation, it is necessary to first determine whether there is data in the first database and the second database whose status has changed, that is, data to be repaired. If there is no data to be repaired in either the first database or the second database, there is no need to repair the data in the first database or the second database.

[0089] According to an embodiment of the present disclosure, when there is data to be repaired in the first database or in the second database, the data corresponding to the data to be repaired in the first database and the second database can be cleared first, and the data corresponding to the data to be repaired can be copied from the business data in the backup database to the first database and the second database.

[0090] According to an embodiment of the present disclosure, when performing a non-first file comparison operation, the business data in the backup database can be used to perform a repair operation on the data to be repaired whose data status has changed in the first database and the second database, so that the data in the first database and the second database can be quickly restored to consistency, and the problem of data contamination in the first database and the second database during the previous round of file comparison operations can be solved.

[0091] According to an embodiment of the present disclosure, a first data file is obtained by calling a first target application to process target data, including: grouping the first target applications according to preset rules to obtain multiple first applications, wherein the first target application can represent a program for processing business data; and a first data file is obtained by calling at least one first application to process target data, wherein at least one first application can represent a program in the first target application for processing target data, and the business data may include target data.

[0092] According to an embodiment of the present disclosure, the preset rules can characterize data dependencies. The first target applications can be grouped according to the data dependencies to obtain multiple first applications, wherein each first application has no dependencies and can be called separately. For example, business data processing has data dependencies. For a certain application, the business requirements that the application needs to implement can be characterized by writing the acquired table data into a data file in a temporary directory and copying and moving the data file from the temporary directory to the target directory. The applications can be grouped according to the data dependencies to obtain program A, program B, and program C, wherein different programs have different functions. Program A can be used to obtain table data, program B can be used to write table data into a data file and write it to a temporary directory, and program C can be used to copy and move data files from a temporary directory to a target directory.

[0093] According to an embodiment of the present disclosure, a first data file can be obtained by invoking at least one first application to process target data, wherein the at least one first application can represent a program in the first target application for processing the target data. For example, the first target applications can be grouped to obtain 20 first applications, and the at least one first application can include 2 first applications, or can include 5, 10, 15, or 20 first applications.

[0094] According to an embodiment of the present disclosure, by grouping the first target applications, multiple first applications can be obtained, thereby supporting real-time file comparison operations at the granularity of a single first application. After the data that at least one first application that needs to be called depends on is obtained, the at least one first application can be called to perform a file comparison operation, and there is no need to wait for all the data that the first target application depends on to be obtained before performing the file comparison operation.

[0095] According to an embodiment of the present disclosure, a second data file is obtained by calling a second target application to process target data, including: grouping the second target applications according to preset rules to obtain multiple second applications, wherein the second target applications can represent programs for processing business data; and processing the target data by calling at least one second application to obtain a second data file, wherein at least one first application can represent a program in the second target application for processing target data.

[0096] According to an embodiment of the present disclosure, the second target applications may be grouped according to the same data dependency relationship to obtain multiple second applications, wherein each second application has no dependency relationship and can be called independently.

[0097] According to an embodiment of the present disclosure, a second data file can be obtained by invoking at least one second application to process target data, wherein the at least one second application can represent a program within the second target application for processing the target data. For example, the second target applications can be grouped to obtain 20 second applications, and the at least one second application can include 2 second applications, 5, 10, 15, or 20 second applications.

[0098] According to an embodiment of the present disclosure, by grouping the second target applications, multiple second applications can be obtained, thereby supporting real-time file comparison operations at the granularity of a single second application. After the data on which at least one second application that needs to be called depends is obtained, the at least one second application can be called to perform a file comparison operation, and there is no need to wait for all the data on which the second target application depends to be obtained before performing the file comparison operation.

[0099] According to an embodiment of the present disclosure, a file comparison operation is performed on a first data file and a second data file to generate an application change strategy corresponding to a second target application, including: performing a file comparison operation on the first data file and the second data file to obtain a file comparison report; and generating an application change strategy corresponding to the second target application based on the file comparison report.

[0100] According to an embodiment of the present disclosure, a comparison operation is performed on the first data file and the second data file, that is, files in the first data file and the second data file are compared, thereby generating a file comparison report. Based on the file comparison report, an application change policy corresponding to the second target application can be generated.

[0101] According to an embodiment of the present disclosure, a file comparison operation is performed on the first data file and the second data file, and an application change policy corresponding to the second target application can be generated, so that the second target application can be changed according to the application change policy to improve the integrity and correctness of the second target application.

[0102] Figure 3 The flowchart of obtaining a file comparison report according to an embodiment of the present disclosure is schematically shown.

[0103] like Figure 3 As shown, the method 300 includes operations S310 to S330.

[0104] In operation S310 , the name of each first target file in the first data file is compared with the name of each second target file in the second data file to obtain a first comparison result corresponding to each first target file.

[0105] According to an embodiment of the present disclosure, for each first target file in a first data file, a check can be performed based on the file name granularity to determine whether the first target file exists in a second data file, that is, whether a second target file with the same name as the first target file exists in the second data file, thereby obtaining a first comparison result corresponding to the first target file. For example, for a file named A in the first data file, the files in the second data file can be traversed to determine whether there is a file named A in the second data file.

[0106] In operation S320 , if the first comparison result indicates that a second target file with the same name as the first target file exists in the second data file, a consistency comparison is performed on the first target file and the second target file to obtain a second comparison result.

[0107] According to an embodiment of the present disclosure, when the first comparison result indicates that there is a second target file with the same name as the first target file in the second data file, for the files with the same name existing in both the first database and the second database, that is, the first target file and the second target file, an MD5 (Message-Digest Algorithm 5) encryption algorithm can be used to generate MD5 values ​​of the first target file and the second target file respectively, and a consistency comparison is performed on the MD5 values ​​of the first target file and the second target file respectively, so as to obtain a second comparison result.

[0108] According to an embodiment of the present disclosure, an interface of a file comparison tool such as Beyond Compare may be called to perform file consistency comparison.

[0109] In operation S330 , a file comparison report corresponding to the first data file and the second data file is obtained based on the plurality of first comparison results and the plurality of second comparison results.

[0110] According to an embodiment of the present disclosure, the obtained multiple first comparison results and multiple second comparison results are written into a file comparison report, so that a file comparison report corresponding to the first data file and the second data file can be obtained.

[0111] According to an embodiment of the present disclosure, if the first comparison result indicates that the second target file with the same name as the first target file does not exist in the second data file, the file name that exists in the first data file but does not exist in the second data file can be prominently marked in the file comparison report, and this prominent mark can be used to indicate that there may be an adaptation and modification omission (missing) program in at least one second application. If the second comparison result indicates that the MD5 values ​​of the first target file and the second target file are inconsistent, the files with the same name but inconsistent MD5 values ​​can be prominently marked in the file comparison report, and this prominent mark can be used to indicate that there may be an adaptation and modification error program in at least one second application.

[0112] According to an embodiment of the present disclosure, by comparing the first data file and the second data file, a file comparison report can be obtained, which facilitates subsequent generation of an application change policy corresponding to the second target application based on the file comparison report.

[0113] According to an embodiment of the present disclosure, the above-mentioned application change policy generation method also includes: when the second target application is changed according to the application change policy to obtain a new second target application, a file comparison operation is performed on the new second data file obtained by calling the new second target application and the new first data file obtained by calling the first target application to obtain a new file comparison report; based on the new file comparison report, a new application change policy corresponding to the new second target application is generated.

[0114] According to an embodiment of the present disclosure, when the second target application is changed according to the application change policy to obtain a new second target application, the above operations S210 to S240 can be re-executed to obtain a new application change policy corresponding to the new second target application, so that the new second target application can be changed again according to the new application change policy.

[0115] According to an embodiment of the present disclosure, for each new second target application obtained by changing according to a new application change strategy, the above operations S210 to S240 can be repeatedly performed until the file comparison report for each second application can indicate that the new first data file and the new second data file are consistent, that is, the second target application matches the second database characteristics.

[0116] According to an embodiment of the present disclosure, when the second target application is changed according to the application change policy to obtain a second target application that ultimately matches the second database characteristics, the second target application as a whole can be called as at least one second application.

[0117] According to an embodiment of the present disclosure, the file comparison operation can be repeated for the new second target application obtained by the change, so that the second target application finally obtained matches the characteristics of the second database.

[0118] Figure 4 The schematic diagram shows the structure of the comparison tool according to the embodiment of the present disclosure.

[0119] like Figure 4 As shown, the comparison tool 400 includes a front-end information collection interface 410 and a back-end processing module 420 , wherein the back-end processing module 420 includes an acquisition submodule 421 , a file comparison submodule 422 and a report downloading submodule 423 .

[0120] According to an embodiment of the present disclosure, the front-end information collection interface 410 can collect the R&D environment information (server IP, port, user, password) before the electronic information system adaptation database is changed, the scheduling commands of the data file generation program / batch job group, and the data file generation directory, wherein the batch job group can represent multiple first applications.

[0121] According to an embodiment of the present disclosure, the front-end information collection interface 410 can also collect R&D environment information (server IP, port, user, password) after the electronic information system adaptation database is changed, scheduling commands of the data file generation program / batch job group, and data file generation directory, where the batch job group can represent multiple second applications.

[0122] According to an embodiment of the present disclosure, before the electronic information system adapts to the database change, the above operations S210 and S220 can be performed in the pre-transformation R&D environment to obtain a first data file; after the electronic information system adapts to the database change, the above operations S210 and S230 can be performed in the post-transformation R&D environment to obtain a second data file.

[0123] According to an embodiment of the present disclosure, the acquisition submodule 421 in the backend processing module 420 can be used to acquire the first data file and the second data file. The comparison tool can connect to the data file generation directory of the electronic information system R&D environment before and after the transformation via FTP (File Transfer Protocol) to acquire the first data file and the second data file.

[0124] According to an embodiment of the present disclosure, the file comparison submodule 422 in the backend processing module 420 may perform the above operations S310 to S330 to obtain a file comparison report.

[0125] According to an embodiment of the present disclosure, the report downloading submodule 423 in the backend processing module 420 may be used to download the file comparison report.

[0126] Figure 5 A schematic diagram of the front-end interface of the comparison tool according to an embodiment of the present disclosure is shown schematically.

[0127] like Figure 5 As shown, if this is not the first time that a file comparison operation is performed, and there is data to be repaired (contaminated data) in the first database or in the second database, you can click "Yes" to determine whether the contaminated data needs to be repaired, and enter the table name of the table list where the data to be repaired is located, so that the corresponding table data in the first database and the second database are cleared, and the original data of the relevant tables are copied from the backup database to the first database and the second database.

[0128] According to the embodiments of the present disclosure, the R&D environment information (server IP, port, user, password) before the electronic information system adaptation database is changed and transformed, the scheduling commands of the data file generation program / batch job group, the data file generation directory, and the R&D environment information (server IP, port, user, password) after the electronic information system adaptation database is changed and transformed, the scheduling commands of the data file generation program / batch job group, and the data file generation directory can be input according to needs.

[0129] According to an embodiment of the present disclosure, you can click "Create Comparison Task" on the front-end interface of the comparison tool. Before the electronic information system adapts to the database change and transformation, you can respond to the input data file to generate a program scheduling command (R&D environment before transformation), and perform the above operations S210 and S220 in the R&D environment before transformation to obtain the first data file; after the electronic information system adapts to the database change and transformation, you can respond to the input data file to generate a program scheduling command (R&D environment after transformation), and perform the above operations S210 and S230 in the R&D environment after transformation to obtain the second data file.

[0130] According to an embodiment of the present disclosure, the comparison tool connects to the data file generation directory of the electronic information system R&D environment before and after the transformation via FTP, obtains the first data file and the second data file, and performs the above-mentioned operations S310 to S320. For example, the file names in the first data file are read in sequence, and the corresponding file names are checked in the second data file to see whether they exist. If they do not exist, the comparison report is marked as "no file with the same name exists"; if a file with the same name exists, the MD5 function is called to generate MD5 values ​​for the file with the same name before and after the adaptation transformation, and the MD5 values ​​of the two files are compared to see whether they are consistent; if they are consistent, the comparison report is marked as "file comparison consistent", otherwise it is marked as "file comparison inconsistent".

[0131] According to an embodiment of the present disclosure, you can click "Get Comparison Report" on the front-end interface of the comparison tool to download the comparison report generated by the comparison task.

[0132] Figure 6 A schematic diagram of a file comparison report according to an embodiment of the present disclosure is schematically shown.

[0133] like Figure 6 As shown, the file comparison report may include the name of the first target file in the first data file, the name of the second target file in the second data file, and the comparison result.

[0134] According to an embodiment of the present disclosure, for a first target file whose first target file name is A.bin, if a second target file with the same name as A.bin exists in the second data file and the MD5 values ​​of the two files are consistent, the comparison result in the file comparison report may indicate that the file comparison is consistent; for a first target file whose first target file name is B.bin, if a second target file with the same name as B.bin exists in the second data file, but the MD5 values ​​of the two files are inconsistent, the comparison result in the file comparison report may indicate that the file comparison is inconsistent; for a first target file whose first target file name is C.bin, if there is no second target file with the same name as C.bin in the second data file, the comparison result in the file comparison report may indicate that there is no file with the same name.

[0135] Based on the above application change strategy generation method, the present disclosure also provides an application change strategy generation device. Figure 7 The device is described in detail.

[0136] Figure 7 The structural block diagram of the application change strategy generating device according to an embodiment of the present disclosure is schematically shown.

[0137] like Figure 7As shown, the application change policy generating device 700 of this embodiment includes an acquisition module 710 , a first calling module 720 , a second calling module 730 and a comparison module 740 .

[0138] Acquisition module 710 is used to acquire target data, where the target data represents data to be processed by the first target application and the second target application. The second target application is obtained by making initial changes to the first target application based on the characteristics of the migrated database. The second target application represents an initial application that implements the same functionality as the first target application. In one embodiment, acquisition module 710 can be used to perform operation S210 described above and will not be further described here.

[0139] The first calling module 720 is used to process the target data by calling the first target application to obtain the first data file. In one embodiment, the first calling module 720 can be used to perform the operation S220 described above, which will not be repeated here.

[0140] The second calling module 730 is used to process the target data by calling the second target application to obtain the second data file. In one embodiment, the second calling module 730 can be used to perform the operation S230 described above, which will not be repeated here.

[0141] The comparison module 740 is used to perform a file comparison operation on the first data file and the second data file to generate an application change policy corresponding to the second target application. In one embodiment, the comparison module 740 can be used to perform the operation S240 described above, which will not be repeated here.

[0142] According to an embodiment of the present disclosure, the application change policy generating apparatus 700 further includes a copy module and a repair module.

[0143] The replication module is used to replicate and migrate the business data in the first database to the second database and the backup database during the first file comparison operation, thereby obtaining the business data in the second database and the backup database, wherein the first database represents the database before migration and the second database represents the database after migration.

[0144] The repair module is used to use the business data in the backup database to perform a repair operation on the data to be repaired whose data status has changed in the first database and the second database when performing a non-first file comparison operation.

[0145] According to an embodiment of the present disclosure, the repair module includes a clearing unit and a copying unit.

[0146] The clearing unit is configured to clear the data corresponding to the data to be repaired from the first database and the second database when the data to be repaired exists in the first database or the second database.

[0147] The copying unit is used to copy data corresponding to the data to be repaired from the business data in the backup database to the first database and the second database.

[0148] According to an embodiment of the present disclosure, the first calling module 720 includes a first grouping unit and a first calling unit.

[0149] The first grouping unit is configured to group the first target applications according to a preset rule to obtain a plurality of first applications, wherein the first target applications represent programs for processing business data.

[0150] The first calling unit is configured to process the target data by calling at least one first application to obtain a first data file, wherein the at least one first application represents a program in the first target application for processing the target data, and the business data includes the target data.

[0151] According to an embodiment of the present disclosure, the second calling module 730 includes a second grouping unit and a second calling module.

[0152] The second grouping module is configured to group the second target applications according to a preset rule to obtain a plurality of second applications, wherein the second target applications represent programs for processing business data.

[0153] The second calling module is configured to process the target data by calling at least one second application program to obtain a second data file, wherein the at least one first application program represents a program in the second target application program for processing the target data.

[0154] According to an embodiment of the present disclosure, the comparison module 740 includes a comparison unit and a generation unit.

[0155] The comparison unit is used to perform a file comparison operation on the first data file and the second data file to obtain a file comparison report.

[0156] The generating unit is configured to generate an application change strategy corresponding to the second target application according to the file comparison report.

[0157] According to an embodiment of the present disclosure, the comparing unit includes a first comparing subunit, a second comparing subunit and an obtaining subunit.

[0158] The first comparison subunit is used to compare the name of each first target file in the first data file with the name of each second target file in the second data file to obtain a first comparison result corresponding to each first target file.

[0159] The second comparison subunit is used to perform consistency comparison on the first target file and the second target file to obtain a second comparison result when the first comparison result indicates that a second target file with the same name as the first target file exists in the second data file.

[0160] The obtaining subunit is used to obtain a file comparison report corresponding to the first data file and the second data file based on the multiple first comparison results and the multiple second comparison results.

[0161] According to an embodiment of the present disclosure, the application change policy generating apparatus 700 further includes an obtaining module and a generating module.

[0162] The acquisition module is used to perform a file comparison operation on the new second data file obtained by calling the new second target application and the new first data file obtained by calling the first target application when the second target application is changed according to the application change policy to obtain a new second target application, so as to obtain a new file comparison report.

[0163] The generating module is used to generate a new application change strategy corresponding to the new second target application according to the new file comparison report.

[0164] According to an embodiment of the present disclosure, any multiple modules among the acquisition module 710, the first call module 720, the second call module 730 and the comparison module 740 can be combined into one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the acquisition module 710, the first call module 720, the second call module 730 and the comparison module 740 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware and firmware or in an appropriate combination of any of them. Alternatively, at least one of the acquisition module 710 , the first calling module 720 , the second calling module 730 and the comparison module 740 may be at least partially implemented as a computer program module, which may perform corresponding functions when executed.

[0165] Figure 8 A block diagram of an electronic device suitable for implementing the application change policy generation method according to an embodiment of the present disclosure is schematically shown.

[0166] like Figure 8 As shown, the electronic device 800 according to an embodiment of the present disclosure includes a processor 801, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 802 or a program loaded from a storage part 808 into a random access memory (RAM) 803. The processor 801 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 801 may also include an onboard memory for caching purposes. The processor 801 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0167] Various programs and data required for the operation of the electronic device 800 are stored in the RAM 803. The processor 801, ROM 802, and RAM 803 are connected to each other via a bus 804. The processor 801 executes the various operations of the method flow according to the embodiment of the present disclosure by executing the programs in the ROM 802 and / or RAM 803. It should be noted that the programs may also be stored in one or more memories other than the ROM 802 and RAM 803. The processor 801 may also execute the various operations of the method flow according to the embodiment of the present disclosure by executing the programs stored in the one or more memories.

[0168] According to an embodiment of the present disclosure, the electronic device 800 may further include an input / output (I / O) interface 805, which is also connected to the bus 804. The electronic device 800 may further include one or more of the following components connected to the I / O interface 805: an input portion 806 including a keyboard, a mouse, etc.; an output portion 807 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and speakers; a storage portion 808 including a hard disk; and a communication portion 809 including a network interface card such as a LAN card or a modem. The communication portion 809 performs communication processing via a network such as the Internet. A drive 810 is also connected to the I / O interface 805 as needed. A removable medium 811, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed in the drive 810 as needed, so that a computer program read therefrom can be installed into the storage portion 808 as needed.

[0169] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments, or may exist independently and not be incorporated into the device / apparatus / system. The computer-readable storage medium carries one or more programs, and when executed, implements the method according to the embodiments of the present disclosure.

[0170] According to an embodiment of the present disclosure, a computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, it may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, apparatus, or device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 802 and / or RAM 803 described above and / or one or more memories other than ROM 802 and RAM 803.

[0171] The embodiments of the present disclosure also include a computer program product, which includes a computer program containing program code for executing the method shown in the flowchart. When the computer program product is executed in a computer system, the program code is used to cause the computer system to implement the item recommendation method provided by the embodiments of the present disclosure.

[0172] The computer program executes the above functions defined in the system / device of the embodiment of the present disclosure when the computer program is executed by the processor 801. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0173] In one embodiment, the computer program may be stored on a tangible storage medium such as an optical storage device or a magnetic storage device. In another embodiment, the computer program may be transmitted and distributed in the form of a signal on a network medium, downloaded and installed via the communication portion 809, and / or installed from a removable medium 811. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to wireless, wired, or any suitable combination thereof.

[0174] In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 809, and / or installed from a removable medium 811. When the computer program is executed by the processor 801, the above-described functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the systems, devices, means, modules, units, etc. described above can be implemented by computer program modules.

[0175] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computer programs can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, languages ​​such as Java, C++, python, "C" or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect via the Internet).

[0176] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the above-mentioned module, program segment, or a part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0177] Those skilled in the art will appreciate that the features described in the various embodiments and / or claims of this disclosure may be combined and / or coupled in various ways, even if such combinations and / or couplings are not explicitly described in this disclosure. In particular, the features described in the various embodiments and / or claims of this disclosure may be combined and / or coupled in various ways without departing from the spirit and teachings of this disclosure. All such combinations and / or couplings are intended to fall within the scope of this disclosure.

[0178] The embodiments of the present disclosure are described above. However, these embodiments are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although each embodiment has been described separately above, this does not mean that the measures in each embodiment cannot be used in combination to advantage. The scope of the present disclosure is defined by the appended claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make various substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A method for generating an application change strategy, comprising: Obtaining target data, wherein the target data represents data to be processed by a first target application and a second target application, the second target application being obtained by performing an initial modification on the first target application based on characteristics of the migrated database, and the second target application representing an initial application for implementing the same function as the first target application; Processing the target data by calling the first target application to obtain a first data file; Processing the target data by calling the second target application to obtain a second data file; performing a file comparison operation on the first data file and the second data file to generate an application change policy corresponding to the second target application; The method further comprises: In the case of the first file comparison operation, the business data in the first database is copied and migrated to the second database and the backup database to obtain the business data in the second database and the backup database, wherein the first database represents the database before migration and the second database represents the database after migration; In the case of a non-first file comparison operation, the business data in the backup database is used to perform a repair operation on the data to be repaired whose data status has changed in the first database and the second database.

2. The method according to claim 1, wherein In the case of performing a non-first file comparison operation, using the business data in the backup database to perform a repair operation on the data to be repaired whose data status has changed in the first database and the second database, includes: When the data to be repaired exists in the first database or the data to be repaired exists in the second database, clearing the data corresponding to the data to be repaired from the first database and the second database; and The data corresponding to the data to be repaired is copied from the business data in the backup database to the first database and the second database.

3. The method according to claim 1, wherein The process of processing the target data by calling the first target application to obtain a first data file includes: grouping the first target applications according to a preset rule to obtain a plurality of first applications, wherein the first target applications represent programs for processing the business data; The first data file is obtained by calling at least one of the first applications to process the target data, wherein the at least one first application represents a program in the first target application for processing the target data, and the business data includes the target data.

4. The method according to claim 3, wherein: The process of processing the target data by calling the second target application to obtain a second data file includes: grouping the second target applications according to the preset rule to obtain a plurality of second applications, wherein the second target applications represent programs for processing the business data; The second data file is obtained by calling at least one of the second application programs to process the target data, wherein the at least one first application program represents a program in the second target application program for processing the target data.

5. The method according to claim 1, wherein The performing a file comparison operation on the first data file and the second data file to generate an application change policy corresponding to the second target application includes: Performing a file comparison operation on the first data file and the second data file to obtain a file comparison report; The application change strategy corresponding to the second target application is generated according to the file comparison report.

6. The method according to claim 5, wherein: The performing a file comparison operation on the first data file and the second data file to obtain a file comparison report includes: Comparing the name of each first target file in the first data file with the name of each second target file in the second data file to obtain a first comparison result corresponding to each first target file; If the first comparison result indicates that the second target file has the same name as the first target file in the second data file, performing a consistency comparison on the first target file and the second target file to obtain a second comparison result; Based on the plurality of first comparison results and the plurality of second comparison results, the file comparison report corresponding to the first data file and the second data file is obtained.

7. The method according to claim 1, further comprising: When the second target application is changed according to the application change policy to obtain a new second target application, performing a file comparison operation on a new second data file obtained by calling the new second target application and a new first data file obtained by calling the first target application to obtain a new file comparison report; A new application change policy corresponding to the new second target application is generated according to the new file comparison report.

8. An application change strategy generation device, comprising: an acquisition module, configured to acquire target data, wherein the target data represents data to be processed by a first target application and a second target application, the second target application being obtained by making initial changes to the first target application based on characteristics of the migrated database, the second target application representing an initial application for implementing the same functionality as the first target application; A first calling module, configured to process the target data by calling the first target application to obtain a first data file; a second calling module, configured to process the target data by calling the second target application to obtain a second data file; a comparison module, configured to perform a file comparison operation on the first data file and the second data file, and generate an application change policy corresponding to the second target application; Wherein, the device further includes: a copy module, configured to copy and migrate the business data in the first database to the second database and the backup database when performing the first file comparison operation, thereby obtaining the business data in the second database and the backup database, wherein the first database represents the database before migration and the second database represents the database after migration; The repair module is used to use the business data in the backup database to perform a repair operation on the data to be repaired whose data status has changed in the first database and the second database when performing a non-first file comparison operation.

9. An electronic device comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors are enabled to execute the method according to any one of claims 1 to 7.

10. A computer-readable storage medium having executable instructions stored thereon, wherein when the instructions are executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 7.

11. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • MIT system upgrade method, storage medium and terminal equipment

    CN108170453A