Domestic migration method and device for government affair APP database and middleware

By employing a migration method that operates simultaneously in both domestic and non-domestic environments, the impact of adapting databases and middleware to domestic environments on system operation was resolved, ensuring a smooth system transition and improving migration success rate and system stability.

CN118535545AInactive Publication Date: 2024-08-23INSPUR ZHUOSHU BIG DATA IND DEV CO LTD

Patent Information

Application Number
CN202410247666.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-03-05
Publication Date
2024-08-23
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The process of adapting databases and middleware to domestic standards can easily affect the normal operation of the system, making the migration and transformation process complex and time-consuming, and affecting the stability of the system.

Method used

By running both a non-domestic online environment and a domestic IT innovation environment simultaneously, we gradually carried out adaptation and data migration, including functional testing, data switching, and middleware switching, to ensure a smooth system transition. If necessary, we can also roll back to the non-domestic environment to ensure the normal operation of the system.

Benefits of technology

The system was able to operate normally during the migration of the database and middleware to domestic versions, reducing the impact on users and improving the migration success rate. Dual functional testing was also used to reduce the risk of problems occurring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118535545A
    Figure CN118535545A
Patent Text Reader

Abstract

The invention discloses a domestic migration method and device for government affair APP databases and middleware, and relates to the technical field of data migration, the method comprises the following steps: according to all contents of a non-domestic online environment, establishing a corresponding domestic credential environment, and carrying out adaptive transformation on an application program connected with a non-domestic database; after the credential environment runs normally, migrating the online environment data to the credential environment by using a corresponding localized database migration tool; the application program and the server ip where the database is located are controlled to be switched in batches by writing scripts, and the domestic database is started online and the transformed application program is adapted; starting the localized middleware by using the non-localized database, starting the localized middleware by using the localized database, and carrying out adaptive modification on the localized middleware; and after stable operation of the credential environment, the credential environment is offline from the non-domestic environment. According to the method, the problem that the normal operation of the system is possibly influenced in the localization adaptation process of the database and the middleware is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data migration, and in particular to a method and device for localizing the migration of a government affairs APP database and middleware. Background Art

[0002] Government APPs are APPs that integrate various resources and information such as local government services, public services, and social services. In order to ensure the security of government information and ensure the autonomy and controllability of government systems, government APPs are APPs that integrate various resources and information such as local government services, public services, and social services. In order to ensure the security of government information and ensure the autonomy and controllability of government systems, we try to use Hangao database and Oriental Communication middleware to replace the MySQL database and tomcat middleware in the existing system to achieve the migration and transformation of the database and middleware. However, the migration and transformation of the database and middleware is a relatively cumbersome and time-consuming process, so it is easy to affect the normal operation of the system. Finding a way to ensure that the normal operation of the system is not affected during the migration and adaptation of the database and middleware is a problem. Summary of the invention

[0003] In order to solve the problem that the database and middleware may affect the normal operation of the system during the localization adaptation process, the present invention provides a localization migration method and device for government APP database and middleware.

[0004] In the first aspect, the present invention provides a method for localization migration of government APP database and middleware. The technical solution adopted to solve the above technical problems is as follows:

[0005] A method for localization migration of government APP database and middleware, comprising the following steps:

[0006] S1. According to all the contents of the non-local online environment, a corresponding domestic information and innovation environment is built. The non-local online environment and the domestic information and innovation environment run simultaneously to adapt and transform the application programs connected to the non-local database. After the application program transformation is completed, the domestic information and innovation environment is functionally tested and modified to operate normally;

[0007] S2. After the trusted innovation environment functions are running normally, use the corresponding domestic database migration tools to migrate the online environment data to the trusted innovation environment;

[0008] S3. After the online environment data migration is completed and the transformed application is adapted to the trusted innovation environment, it can run stably. By writing scripts to batch control the application and the server IP where the database is located, the domestic database and the adapted and transformed application can be enabled online.

[0009] S4. Use a non-localized database to start the localized middleware, and verify whether the function of the localized middleware is normal after running for a set time. At the same time, use the localized database to start the localized middleware and adapt and modify the localized middleware;

[0010] S5. After the domestic information and communication technology environment has been running stably for a set period of time, the non-domestic environment services and databases will be gradually shut down and taken offline, and their applications and data will be encrypted and stored.

[0011] Optionally, execute step S1 to build a localized information innovation environment including databases, middleware, and various Java and Go applications;

[0012] Based on the differences in connection methods and SQL syntax between domestic and non-domestic databases, domestic and non-domestic databases are compared, and the application modifications that need to be made to non-domestic databases are analyzed and adapted; after the application modification is completed, the information innovation environment is functionally tested and modified to operate normally.

[0013] Further optionally, execute step S2, complete the data migration, test the interfaces of each modified application to see whether its functions are normal, and perform stress tests on the services of the modified application with corresponding indicators to verify whether the modified application meets the online standards, thereby ensuring that the modified application can run stably after adapting to the trusted innovation environment.

[0014] Further optionally, the step S4 involved specifically includes:

[0015] When using a non-localized database to start the localized middleware, first analyze the dependencies and configuration modifications required by the localized middleware in comparison with the non-localized middleware, and then make corresponding adaptation modifications to the localized middleware based on the analysis results. At this time, when starting the localized middleware using the non-localized database in the online environment, you only need to modify the address of the calling middleware to switch between the non-localized middleware and the localized middleware;

[0016] At the same time, use the domestic database to start the domestic middleware. First, configure the domestic middleware accordingly, and adapt and modify the way the domestic middleware connects to the domestic database. During this process, if there is a problem when using the domestic database to start the domestic middleware, switch back to using the non-domestic database to start the non-domestic middleware.

[0017] Optionally, the domestic database involved is the Hangao database, the non-domestic database is the MySQL database, the non-domestic middleware is the tomcat middleware, and the domestic middleware is the Hangao database migration tool.

[0018] In the second aspect, the present invention provides a localized migration device for a government APP database and middleware, and the technical solution adopted to solve the above technical problems is as follows:

[0019] A localized migration device for a government affairs APP database and middleware, comprising:

[0020] Build a transformation module to build a corresponding domestic information and innovation environment based on all the contents of the non-domestic online environment. It is also used to adapt and transform the application connected to the non-domestic database when the non-domestic online environment and the domestic information and innovation environment are running at the same time. After the application transformation is completed, the domestic information and innovation environment is functionally tested and modified to operate normally;

[0021] The data migration module is used to migrate online environment data to the trusted innovation environment using the corresponding domestic database migration tool after the trusted innovation environment functions are running normally;

[0022] The script control module is used to control the switching of the server IP of the application and the database by writing scripts after the online environment data migration is completed and the transformed application is adapted to the trusted innovation environment and runs stably, so as to enable the online activation of the domestic database and the adapted transformed application;

[0023] The middleware startup module is used to start the domestic middleware using a non-domestic database, and verify whether the function of the domestic middleware is normal after running for a set time. It is also used to start the domestic middleware using a domestic database and adapt and modify the domestic middleware;

[0024] The offline preservation module is used to gradually shut down the non-domestic environment services and databases and encrypt and preserve their applications and data after the domestic information innovation environment has been running stably for a set period of time.

[0025] Optionally, the localized information innovation environment involved in building the transformation module includes databases, middleware, and various Java and Go applications;

[0026] Based on the differences in connection methods and SQL syntax between domestic and non-domestic databases, a transformation module is built to compare domestic and non-domestic databases, analyze the areas of non-domestic database applications that need to be transformed, and perform adaptive transformation; after the application transformation is completed, a transformation module is built to perform functional testing on the trusted innovation environment and modify it to normal operation.

[0027] Further optionally, the device involved also includes a test verification module;

[0028] After the data migration module involved uses the corresponding domestic database migration tool to migrate the online environment data to the trusted innovation environment, the test verification module tests the interfaces of each transformed application to check whether its functions are normal, and performs stress testing on the services of the transformed application with corresponding indicators to verify whether the transformed application meets the online standards, ensuring that the transformed application can run stably after adapting to the trusted innovation environment.

[0029] Further optionally, the middleware startup module involved uses a non-localized database to start the domestic middleware, including: firstly analyzing the dependencies and configuration modifications required for the domestic middleware in comparison with the non-localized middleware, and then making corresponding adaptation modifications to the domestic middleware according to the analysis results. After the adaptation modification is completed, when the middleware startup module uses the non-localized database of the online environment to start the domestic middleware, it only needs to modify the address of the calling middleware to switch between the non-localized middleware and the domestic middleware;

[0030] The middleware startup module uses the domestic database to start the domestic middleware, including: first, configuring the domestic middleware accordingly, adapting and modifying the way the domestic middleware connects to the domestic database. During the adaptation and modification process, if there is a problem when the middleware startup module uses the domestic database to start the domestic middleware, then switch back to using the non-domestic database to start the non-domestic middleware.

[0031] Optionally, the domestic database involved is Hangao database, the non-domestic database is MySQL database, and the non-domestic middleware is Tomcat middleware;

[0032] The domestically produced database migration tool used in the data migration module is the Hangao database migration tool.

[0033] Compared with the prior art, the method and device for localization migration of government affairs APP database and middleware of the present invention have the following beneficial effects:

[0034] The present invention performs gradual switching by running the trusted innovation environment and the online environment simultaneously. The switching process is short, which can ensure the normal operation of the system and hardly affects user use. The present invention performs two functional tests, one in a data-free state and the other in a data-existing state, respectively, which reduces the problems caused by the migration and improves the success rate of a single migration. The present invention fully considers the idea of ​​promptly rolling back to a non-domestic environment when problems arise, to ensure the normal operation of the online environment. The present invention solves the problem that the database and middleware may affect the normal operation of the system during the localization adaptation process. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Attached Figure 1 is a flowchart of the method implementation of the first embodiment of the present invention;

[0036] Attached Figure 2 This is a module connection block diagram of the second embodiment of the present invention. DETAILED DESCRIPTION

[0037] In order to make the technical solution, the technical problem solved and the technical effect of the present invention more clearly understood, the technical solution of the present invention is clearly and completely described below in conjunction with specific embodiments.

[0038] Embodiment 1:

[0039] Combined with Figure 1 This embodiment proposes a method for localizing the migration of a government APP database and middleware, which includes the following steps:

[0040] S1. Based on all the contents of the non-domestic online environment, build a corresponding domestic information and communication technology environment. The non-domestic online environment and the domestic information and communication technology environment run simultaneously to adapt and transform the applications connected to the non-domestic database. After the application transformation is completed, the domestic information and communication technology environment is functionally tested and modified to operate normally.

[0041] Execute step S1, and the domestic information innovation environment built includes databases, middleware, and various Java and Go applications. Since the connection method and SQL syntax of domestic databases and non-domestic databases are different, it is necessary to compare the domestic databases with the non-domestic databases, analyze the areas where the applications of the non-domestic databases need to be modified, and perform adaptation and modification; after the application modification is completed, the information innovation environment is functionally tested and modified to operate normally.

[0042] S2. After the trusted innovation environment functions are operating normally, use the corresponding domestic database migration tools to migrate the online environment data to the trusted innovation environment.

[0043] After data migration is completed, we test the interfaces of each transformed application to see whether its functions are normal, and perform stress testing on the services of the transformed application with corresponding indicators to verify whether the transformed application meets the online standards and ensure that the transformed application can run stably after adapting to the trusted innovation environment.

[0044] S3. After the online environment data migration is completed and the transformed application is adapted to the trusted innovation environment, it can run stably. By writing script A to batch control the application and the server IP where the database is located, the domestic database can be enabled online as well as the adapted and transformed application.

[0045] S4. Use a non-domestic database to start the domestic middleware, and verify whether the function of the domestic middleware is normal after running for a set time. At the same time, use the domestic database to start the domestic middleware and adapt and modify the domestic middleware.

[0046] The specific operations involved in step S4 are as follows:

[0047] When using a non-localized database to start the localized middleware, first analyze the dependencies and configuration modifications required by the localized middleware in comparison with the non-localized middleware, and then make corresponding adaptation modifications to the localized middleware based on the analysis results. At this time, when starting the localized middleware using the non-localized database in the online environment, you only need to modify the address of the calling middleware to switch between the non-localized middleware and the localized middleware;

[0048] At the same time, use the domestic database to start the domestic middleware. First, configure the domestic middleware accordingly, and adapt and modify the way the domestic middleware connects to the domestic database. During this process, if there is a problem when using the domestic database to start the domestic middleware, switch back to using the non-domestic database to start the non-domestic middleware.

[0049] S5. After the domestic information and communication technology environment has been running stably for a set period of time, the non-domestic environment services and databases will be gradually shut down and taken offline, and their applications and data will be encrypted and stored.

[0050] When executing the above steps, the domestic database involved is the Hangao database, the non-domestic database is the MySQL database, the non-domestic middleware is the tomcat middleware, and the domestic middleware is the Hangao database migration tool.

[0051] Embodiment 2:

[0052] Combined with Figure 2 This embodiment proposes a localized migration device for a government APP database and middleware, which includes:

[0053] Build a transformation module to build a corresponding domestic information and innovation environment based on all the contents of the non-domestic online environment. It is also used to adapt and transform the application connected to the non-domestic database when the non-domestic online environment and the domestic information and innovation environment are running at the same time. After the application transformation is completed, the domestic information and innovation environment is functionally tested and modified to operate normally;

[0054] The data migration module is used to migrate online environment data to the trusted innovation environment using the corresponding domestic database migration tool after the trusted innovation environment functions are running normally;

[0055] The script control module is used to control the switching of the server IP of the application and the database by writing scripts after the online environment data migration is completed and the transformed application is adapted to the trusted innovation environment and runs stably, so as to enable the online activation of the domestic database and the adapted transformed application;

[0056] The middleware startup module is used to start the domestic middleware using a non-domestic database, and verify whether the function of the domestic middleware is normal after running for a set time. It is also used to start the domestic middleware using a domestic database and adapt and modify the domestic middleware;

[0057] The offline preservation module is used to gradually shut down the non-domestic environment services and databases and encrypt and preserve their applications and data after the domestic information innovation environment has been running stably for a set period of time.

[0058] In this embodiment, the domestic information innovation environment built by the construction and transformation module includes databases, middleware, and various Java and Go applications. Based on the differences in connection methods and SQL syntax between domestic and non-domestic databases, the construction and transformation module compares the domestic and non-domestic databases, analyzes the areas where the applications of the non-domestic databases need to be transformed, and performs adaptation and transformation; after the application transformation is completed, the construction and transformation module performs functional testing on the information innovation environment and modifies it to normal operation.

[0059] In this embodiment, the device involved also includes a test verification module. After the data migration module involved uses the corresponding domestic database migration tool to migrate the online environment data to the trusted innovation environment, the test verification module tests the interface of each transformed application to check whether its function is normal, and performs a stress test on the corresponding indicators of the service of the transformed application to verify whether the transformed application meets the online standard, ensuring that the transformed application can run stably after adapting to the trusted innovation environment.

[0060] In this embodiment, the middleware startup module involved uses a non-localized database to start the domestic middleware, including: first, analyzing the required dependencies and required configuration modifications of the domestic middleware in comparison with the non-localized middleware, and then making corresponding adaptation modifications to the domestic middleware according to the analysis results. After the adaptation modification is completed, when the middleware startup module uses the online environment non-localized database to start the domestic middleware, it only needs to modify the address of the calling middleware to switch between the non-localized middleware and the domestic middleware. The middleware startup module involved uses a domestic database to start the domestic middleware, including: first, making corresponding configurations for the domestic middleware, and making adaptation modifications to the way the domestic middleware connects to the domestic database. During the adaptation modification process, if there is a problem when the middleware startup module uses the domestic database to start the domestic middleware, it switches back to using the non-localized database to start the non-localized middleware.

[0061] In this embodiment, the domestic database involved is the Hangao database, the non-domestic database is the MySQL database, and the non-domestic middleware is the tomcat middleware; the domestic database migration tool used by the data migration module is the Hangao database migration tool.

[0062] In summary, the method and device for localization migration of a government APP database and middleware of the present invention solves the problem that the database and middleware may affect the normal operation of the system during the localization adaptation process.

[0063] The above specific examples are used to explain the principles and implementation methods of the present invention in detail. These examples are only used to help understand the core technical content of the present invention. Based on the above specific embodiments of the present invention, any improvements and modifications made by technicians in this technical field without departing from the principles of the present invention should fall within the scope of patent protection of the present invention.

Claims

1. A method for localization migration of government APP database and middleware, characterized in that: The steps include: S1. According to all the contents of the non-local online environment, a corresponding domestic information and innovation environment is built. The non-local online environment and the domestic information and innovation environment run simultaneously to adapt and transform the application programs connected to the non-local database. After the application program transformation is completed, the domestic information and innovation environment is functionally tested and modified to operate normally; S2. After the trusted innovation environment functions are running normally, use the corresponding domestic database migration tools to migrate the online environment data to the trusted innovation environment; S3. After the online environment data migration is completed and the transformed application is adapted to the trusted innovation environment, it can run stably. By writing scripts to batch control the application and the server IP where the database is located, the domestic database and the adapted and transformed application can be enabled online. S4. Use a non-localized database to start the localized middleware, and verify whether the function of the localized middleware is normal after running for a set time. At the same time, use the localized database to start the localized middleware and adapt and modify the localized middleware; S5. After the domestic information and communication technology environment has been running stably for a set period of time, the non-domestic environment services and databases will be gradually shut down and taken offline, and their applications and data will be encrypted and stored.

2. According to claim 1, a method for localization migration of government APP database and middleware is characterized in that: Execute step S1 to build a localized information innovation environment including database, middleware, and various Java and Go applications; Based on the differences in connection methods and SQL syntax between domestic and non-domestic databases, domestic and non-domestic databases are compared, and the application modifications that need to be made to non-domestic databases are analyzed and adapted; after the application modification is completed, the information innovation environment is functionally tested and modified to operate normally.

3. According to claim 2, a method for localization migration of government APP database and middleware is characterized in that: Execute step S2 to complete data migration. Test the interfaces of each modified application to see whether its functions are normal, and perform stress tests on the services of the modified application with corresponding indicators to verify whether the modified application meets the online standards, thereby ensuring that the modified application can run stably after adapting to the trusted innovation environment.

4. According to claim 3, a method for localization migration of government APP database and middleware is characterized in that: The step S4 specifically includes: When using a non-localized database to start the localized middleware, first analyze the dependencies and configuration modifications required by the localized middleware in comparison with the non-localized middleware, and then make corresponding adaptation modifications to the localized middleware based on the analysis results. At this time, when starting the localized middleware using the non-localized database in the online environment, you only need to modify the address of the calling middleware to switch between the non-localized middleware and the localized middleware; At the same time, use the domestic database to start the domestic middleware. First, configure the domestic middleware accordingly, and adapt and modify the way the domestic middleware connects to the domestic database. During this process, if there is a problem when using the domestic database to start the domestic middleware, switch back to using the non-domestic database to start the non-domestic middleware.

5. According to claim 1, a method for localization migration of government APP database and middleware is characterized in that: The domestic database is the Hangao database, the non-domestic database is the MySQL database, the non-domestic middleware is the tomcat middleware, and the domestic middleware is the Hangao database migration tool.

6. A localized migration device for government APP database and middleware, characterized in that: It includes: Build a transformation module to build a corresponding domestic information and innovation environment based on all the contents of the non-domestic online environment. It is also used to adapt and transform the application connected to the non-domestic database when the non-domestic online environment and the domestic information and innovation environment are running at the same time. After the application transformation is completed, the domestic information and innovation environment is functionally tested and modified to operate normally; The data migration module is used to migrate online environment data to the trusted innovation environment using the corresponding domestic database migration tool after the trusted innovation environment functions are running normally; The script control module is used to control the switching of the server IP of the application and the database by writing scripts after the online environment data migration is completed and the transformed application is adapted to the trusted innovation environment and runs stably, so as to enable the online activation of the domestic database and the adapted transformed application; The middleware startup module is used to start the domestic middleware using a non-domestic database, and verify whether the function of the domestic middleware is normal after running for a set time. It is also used to start the domestic middleware using a domestic database and adapt and modify the domestic middleware; The offline preservation module is used to gradually shut down the non-domestic environment services and databases and encrypt and preserve their applications and data after the domestic information innovation environment has been running stably for a set period of time.

7. According to claim 6, a localized migration device for government APP database and middleware, characterized in that: The localized information innovation environment built by the transformation module includes databases, middleware, and various Java and Go applications; Based on the differences in connection methods and SQL syntax between domestic databases and non-domestic databases, the construction and transformation module compares domestic databases with non-domestic databases, analyzes where the applications of non-domestic databases need to be transformed and performs adaptive transformation; after the application transformation is completed, the construction and transformation module performs functional testing on the trusted innovation environment and modifies it to normal operation.

8. According to claim 7, a localized migration device for government APP database and middleware is characterized in that: The device also includes a test verification module; After the data migration module uses the corresponding domestic database migration tool to migrate the online environment data to the trusted innovation environment, the test verification module tests the interfaces of each transformed application to check whether its functions are normal, and performs stress tests on the services of the transformed application with corresponding indicators to verify whether the transformed application meets the online standards, ensuring that the transformed application can run stably after adapting to the trusted innovation environment.

9. According to claim 8, a localized migration device for government APP database and middleware is characterized in that: The middleware startup module uses the non-localized database to start the localized middleware, including: firstly analyzing the dependencies and configuration modifications required for the localized middleware in comparison with the non-localized middleware, and then performing corresponding adaptation and modification on the localized middleware according to the analysis results. After the adaptation and modification is completed, when the middleware startup module uses the non-localized database of the online environment to start the localized middleware, it only needs to modify the address of the calling middleware to switch between the non-localized middleware and the localized middleware; The middleware startup module uses the domestic database to start the domestic middleware, including: first, configuring the domestic middleware accordingly, adapting and modifying the way the domestic middleware connects to the domestic database, and during the adaptation and modification process, if a problem occurs when the middleware startup module uses the domestic database to start the domestic middleware, then switching back to using the non-domestic database to start the non-domestic middleware.

10. The localized migration device for government APP database and middleware according to claim 6 is characterized in that: The localized database is the Hangao database, the non-localized database is the MySQL database, and the non-localized middleware is the Tomcat middleware; The domestically produced database migration tool used in the data migration module is the Hangao database migration tool.

Citation Information

Patent Citations

  • Localization migration method of power enterprise information system middleware and database

    CN107357866A

  • Domestic substitution migration method for foreign technology application system

    CN113127445A

  • Software automatic migration and optimization method based on domestic software and hardware environment

    CN116737232A

Cited By

  • Domestic Gaussian database substitution method for electricity utilization information acquisition system

    CN121326888A

  • A domestically developed Gaussian database replacement method for electricity consumption information collection systems

    CN121326888B

  • Method for realizing credential and credential adaptive migration through credential and credential resource evaluation and flow replication

    CN121455539A