CN111736883A - Computer management system hot upgrading method and device based on data delay upgrading - Google Patents

Computer management system hot upgrading method and device based on data delay upgrading Download PDF

Info

Publication number
CN111736883A
CN111736883A CN202010393110.4A CN202010393110A CN111736883A CN 111736883 A CN111736883 A CN 111736883A CN 202010393110 A CN202010393110 A CN 202010393110A CN 111736883 A CN111736883 A CN 111736883A
Authority
CN
China
Prior art keywords
dynamic link
link library
updated
client
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010393110.4A
Other languages
Chinese (zh)
Inventor
王敏
宫磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Inspur Genersoft Information Technology Co Ltd
Original Assignee
Shandong Inspur Genersoft Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Inspur Genersoft Information Technology Co Ltd filed Critical Shandong Inspur Genersoft Information Technology Co Ltd
Priority to CN202010393110.4A priority Critical patent/CN111736883A/en
Publication of CN111736883A publication Critical patent/CN111736883A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/656Updates while running
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • G06F8/658Incremental updates; Differential updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44521Dynamic linking or loading; Link editing at or after load time, e.g. Java class loading

Abstract

The application discloses a method and a device for thermal upgrading of a computer management system based on data delay upgrading, which are used for solving the problems that the normal use of software by a user in the upgrading process is influenced and inconvenience is brought to the user because internet information service needs to be restarted when a software system is upgraded. The method comprises the following steps: the server side updates the dynamic link library; the updated dynamic link library comprises two branch codes of an original code and an updated code; determining the value of a preset system parameter according to the updating condition of a dynamic link library of a client; and determining the branch code to be executed from the updated dynamic link library according to the value of the system parameter. The method can realize asynchronous update of the server and the client under the condition of maintaining normal work of the client, so that a user does not need to be forced to stop service, and convenience is provided for the user.

Description

Computer management system hot upgrading method and device based on data delay upgrading
Technical Field
The present application relates to the field of computer system upgrade technologies, and in particular, to a method and an apparatus for thermal upgrade of a computer management system based on data delay upgrade.
Background
With the development of technology, the application range of computers is wider and wider.
In the process of routine maintenance of software in a computer management system, a patch updating mode is usually adopted to make up for defects of software design, add new functions to the software, and solve a series of problems of software usability, new requirements, program errors and the like so as to realize software upgrading.
However, in the upgrading process of the software system, the internet information service IIS is often required to be restarted, which affects the normal operation of the network, so that the server is in an abnormal working state, which also affects the normal use of the software by the user in the upgrading process, and brings inconvenience to the user.
Disclosure of Invention
The embodiment of the application provides a method and a device for thermal upgrading of a computer management system based on data delay upgrading, and aims to solve the problems that the normal use of software by a user in the upgrading process is influenced and inconvenience is brought to the user because the internet information service needs to be restarted when a software system is upgraded.
The embodiment of the application provides a computer management system hot upgrading method based on data delay upgrading, which comprises the following steps:
the server side updates the dynamic link library; the updated dynamic link library comprises two branch codes of an original code and an updated code;
determining the value of a preset system parameter according to the updating condition of a dynamic link library of a client;
and determining the branch code to be executed from the updated dynamic link library according to the value of the system parameter.
In one example, the server updates the dynamic link library, including: and the server side adopts the dynamic link library to be updated to cover the existing dynamic link library.
In one example, determining the value of the preset system parameter according to the update condition of the dynamic link library of the client comprises: acquiring update information of a client, and modifying a preset system parameter value; wherein the modified value of the system parameter corresponds to the updated branch code.
In one example, the method further comprises: and storing the dynamic link library to be updated of the client to the specified position of the application server.
In one example, the method further comprises: and updating the database structure when the dynamic link library of the client is determined to be updated.
In one example, the method further comprises: receiving a request of the client; the request includes database information; and judging whether the database structure corresponding to the database information is updated or not, and returning a corresponding result to the client according to the updating condition of the database structure.
In one example, the determining whether the database structure corresponding to the database information is updated includes: determining whether information matched with the database information exists in a database; and if so, determining that the database structure is updated.
The embodiment of the application provides a computer management system hot upgrading method based on data delay upgrading, which comprises the following steps:
when the client determines to restart, updating the dynamic link library; the updated dynamic link library comprises two branch codes of an original code and an updated code;
and sending update information to the server to enable the server to modify the preset system parameters so that the server executes corresponding branch codes according to the modified system parameters.
In one example, when the client determines to restart, the client updates the dynamic link library, including: when the client is restarted, checking whether the version of the dynamic link library of the client is consistent with the version of the dynamic link library of the server; and if the dynamic link library is inconsistent with the version of the dynamic link library of the server, updating the dynamic link library of the server.
The embodiment of the application provides a computer management system hot upgrading device based on data delay upgrading, including:
the updating module is used for updating the dynamic link library; the updated dynamic link library comprises two branch codes of an original code and an updated code;
the first determining module is used for determining the value of a preset system parameter according to the updating condition of a dynamic link library of the client;
and the second determining module is used for determining the branch code to be executed from the updated dynamic link library according to the value of the system parameter.
The embodiment of the application provides a method and a device for thermal upgrade of a computer management system based on data delay upgrade, which at least have the following beneficial effects:
by setting the system parameters and the two branch codes corresponding to different values of the system parameters, the corresponding branch codes can be executed according to the updating condition of the DLL file of the client.
By adding the original code in the DLL file of the server, the compatible processing of the two branch codes can be realized, so that the client can still maintain a normal working state according to the logic of the original code under the condition of asynchronous update with the server, and the abnormal conditions such as operation errors and the like can be avoided.
The hot upgrading method of the software system ensures that the client does not need to be updated immediately, and can be updated after the client is restarted. Therefore, the process that the user uses the client side is not interrupted due to the restart of the IIS in the updating process, so that the client has to pause the work, and inconvenience is brought to the user.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
FIG. 1 is a flowchart of a method for thermal upgrade of a computer management system based on data delay upgrade according to an embodiment of the present disclosure;
fig. 2 is a schematic structural diagram of a device for thermal upgrade of a computer management system based on data delay upgrade according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions of the present application will be described in detail and completely with reference to the following specific embodiments of the present application and the accompanying drawings. It should be apparent that the described embodiments are only some of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Fig. 1 is a flowchart of a method for thermal upgrade of a computer management system based on data delay upgrade, which includes the following steps:
s101: the server side updates the dynamic link library; and when the client determines to restart, updating the dynamic link library.
In the process of upgrading the software system, both a Dynamic Link Library (DLL) file of the server and a DLL file of the client need to be updated, so as to update and upgrade the software system.
In the embodiment of the application, when the software system is upgraded, the server can immediately update the existing DLL file according to the DLL file to be updated, so that the software system is updated and upgraded at the server. The DLL file to be updated represents a new DLL file added with new functions or made up for system vulnerabilities.
In one embodiment, the server can directly adopt the DLL file to be updated to cover the existing DLL file, that is, directly replace the existing DLL file, and the updated DLL file includes the updated content of the software system and all original basic contents.
In the embodiment of the application, in order to prevent inconvenience to a user caused by adverse effects on the user due to software system upgrade in the process that the user uses an application program of the client, the client does not need to be updated synchronously with the server, that is, the client does not need to update the DLL file immediately, but can update the DLL file of the client after being restarted.
Specifically, after the update of the server is completed, the client can restart the IIS service in the same way when the client is restarted, and the original DLL file is covered by using the DLL file to be updated, so that the update of the DLL file of the client is realized.
In one embodiment, when the client restarts, the version of the DLL file of the client and the version of the DLL file of the server are checked respectively to determine whether the versions of the two DLL files are consistent.
If the versions of the two DLL files are not consistent, the DLL version of the client is usually lower than that of the server, namely the client is not updated in time. Therefore, the client can update the DLL file of the client according to the DLL file version of the server.
In one embodiment, since the client does not update the DLL file instantly, the server may store the DLL file to be updated by the client in a designated location of the application server. When the subsequent client is restarted to update, the DLL file to be updated can be obtained from the application server according to the designated position so as to update.
The client is updated in a delayed manner by updating the server immediately, so that inconvenience to a user caused by the fact that the user is forced to stop working due to the fact that IIS service needs to be restarted in the process that the user uses the client can be avoided.
S102: and the server side determines the value of the preset system parameter according to the updating condition of the dynamic link library of the client side.
In the embodiment of the present application, the DLL file updated by the server may include preset system parameters. The server side can determine the value of the system parameter according to the updating condition of the DLL file of the client side. Wherein the value of the system parameter can be used to represent the update status of the client.
It should be noted that, in a normal case, the update of the DLL file by the default client is delayed from that of the server, and therefore, the default initial values of the system parameters included in the DLL file updated by the server indicate that the DLL file of the client is not updated.
In the embodiment of the application, the server can acquire the update information of the client to the DLL file by checking the version information of the DLL file of the client, receiving the update information sent by the client after the update is completed, and the like.
If the server detects that the DLL file of the client is updated, the server can modify the value of the system parameter in the DLL file of the server so as to record the state that the client completes the updating of the DLL file through the change of the value of the system parameter.
By setting the system parameters, the server can record the updating condition of the DLL file of the client according to the values of the system parameters, so that the current updating condition of the client can be confirmed conveniently according to the values of the system parameters, and the asynchronous updating compatible processing of the client and the server is realized.
S103: and the server side determines the branch code to be executed from the dynamic link library updated by the server side according to the value of the system parameter.
In this embodiment, the updated DLL file of the server may further include two branch codes, which are the original code and the updated code, respectively. The original code represents the code of the last version (namely the original version) of the DLL file, and the updated code has the function and logic of the original version of the DLL file, and the updated code represents the code of the current version (namely the new version) of the DLL file, and the updated code has the function and logic newly added or modified in the updating.
Specifically, the two branch codes may respectively correspond to different values of the system parameter, and also respectively correspond to different update situations of the client. The original code corresponds to a default initial value of a system parameter and also corresponds to the non-updated condition of the client; the update code corresponds to a modified value of a system parameter and also corresponds to an updated condition of the client.
In the embodiment of the application, after receiving a request from a client, a server can determine which branch code of two branch codes should be executed, that is, a branch code to be executed, according to a value of a system parameter in a DLL file updated by the server.
Specifically, if the preset value of the system parameter is a default initial value, it indicates that the DLL file at the client is not updated, and the code logic of the DLL file is consistent with the original code of the server. Accordingly, the server side can confirm the branch code represented by the original code.
If the preset value of the system parameter is the modified value, namely the preset value is not the default initial value, the DLL file of the client side is updated, and the code logic of the DLL file is consistent with the update code of the server side. Accordingly, the server side can confirm the branch code represented by the execution updating code.
In the embodiment of the application, by setting the system parameter and the two branch codes corresponding to different values of the system parameter, the corresponding branch codes can be executed according to the updating condition of the DLL file of the client.
By adding the original code in the DLL file of the server, the compatible processing of the two branch codes can be realized, so that the client can still maintain a normal working state according to the logic of the original code under the condition of asynchronous update with the server, and the abnormal conditions such as operation errors and the like can be avoided.
The hot upgrading method of the software system ensures that the client does not need to be updated immediately, and can be updated after the client is restarted. Therefore, the process that the user uses the client side is not interrupted due to the restart of the IIS in the updating process, so that the client has to pause the work, and inconvenience is brought to the user.
In the method, the IIS service is not required to be restarted any more when the application service is updated, the patch update can be carried out on the project required to be updated at any time, any influence on the user is avoided, and the usability and the user acceptance of the software are greatly improved.
In one embodiment, the database structure may be updated synchronously with the client. Therefore, when determining that the DLL file of the client is updated, the server can update the database structure together. The updated database structure includes addition, deletion, modification of data fields, modification of preset data, and the like.
In one embodiment, in some cases, the update progress of the database may lag behind the update progress of the client, both failing to achieve full synchronization.
In this case, the server may determine the database information included in the request after receiving the request from the client. The server side can judge whether the database structure is updated or not according to the database information, and returns a corresponding result to the client side according to the updating condition of the database structure. The database information may include a data field requesting processing, preset data, and the like.
In one embodiment, the server may perform query in the database according to the data field, the preset data, and the like requested to be processed included in the database information, and determine whether a matched data field or preset data exists in the database, so as to determine whether the database structure is updated.
If the corresponding data field or preset data exists in the database, the structure of the database can be determined to be updated, and the server can normally process and respond to the request of the client.
If the corresponding data field or preset data does not exist in the database, it can be determined that the database structure is not updated, and the server cannot normally process the request of the client, so that the server can return corresponding prompt information to the client and inform the client of the condition that the database is not updated.
The method considers the abnormal condition that the updating of the database and the client are not synchronous, ensures that the software system can continue to operate under the abnormal condition by judging the request of the client in advance and setting a certain processing mechanism aiming at the abnormal condition, increases the compatibility of the server to the updating of the database and is beneficial to the normal operation of the software system.
Based on the same inventive concept, the foregoing method for thermal upgrade of a computer management system based on data delay upgrade provided in the embodiment of the present application further provides a corresponding device for thermal upgrade of a computer management system based on data delay upgrade, as shown in fig. 2.
Fig. 2 is a schematic structural diagram of a computer management system thermal upgrade device based on data delay upgrade provided in an embodiment of the present application, which specifically includes:
an update module 201, which updates the dynamic link library; the updated dynamic link library comprises two branch codes of an original code and an updated code;
the first determining module 202 determines a preset value of a system parameter according to an update condition of a dynamic link library of the client;
and the second determining module 203 determines the branch code to be executed from the updated dynamic link library according to the value of the system parameter.
The above description is only an example of the present application and is not intended to limit the present application. Various modifications and changes may occur to those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included in the scope of the claims of the present application.

Claims (10)

1. A method for thermal upgrade of a computer management system based on data delay upgrade is characterized by comprising the following steps:
the server side updates the dynamic link library; the updated dynamic link library comprises two branch codes of an original code and an updated code;
determining the value of a preset system parameter according to the updating condition of a dynamic link library of a client;
and determining the branch code to be executed from the updated dynamic link library according to the value of the system parameter.
2. The method of claim 1, wherein the server side updates the dynamic link library, and comprises:
and the server side adopts the dynamic link library to be updated to cover the existing dynamic link library.
3. The method of claim 1, wherein determining the value of the preset system parameter according to the update condition of the dynamic link library of the client comprises:
acquiring update information of a client, and modifying a preset system parameter value; wherein the modified value of the system parameter corresponds to the updated branch code.
4. The method of claim 1, further comprising:
and storing the dynamic link library to be updated of the client to the specified position of the application server.
5. The method of claim 1, further comprising:
and updating the database structure when the dynamic link library of the client is determined to be updated.
6. The method of claim 1, further comprising:
receiving a request of the client; the request includes database information;
and judging whether the database structure corresponding to the database information is updated or not, and returning a corresponding result to the client according to the updating condition of the database structure.
7. The method of claim 6, wherein determining whether the database structure corresponding to the database information is updated comprises:
determining whether information matched with the database information exists in a database;
and if so, determining that the database structure is updated.
8. A method for thermal upgrade of a computer management system based on data delay upgrade is characterized by comprising the following steps:
when the client determines to restart, updating the dynamic link library; the updated dynamic link library comprises two branch codes of an original code and an updated code;
and sending update information to the server to enable the server to modify the preset system parameters so that the server executes corresponding branch codes according to the modified system parameters.
9. The method of claim 8, wherein the updating the dynamically linked library when the client determines to reboot comprises:
when the client is restarted, checking whether the version of the dynamic link library of the client is consistent with the version of the dynamic link library of the server;
and if the dynamic link library is inconsistent with the version of the dynamic link library of the server, updating the dynamic link library of the server.
10. A computer management system hot-upgrade device based on data delay upgrade is characterized by comprising:
the updating module is used for updating the dynamic link library; the updated dynamic link library comprises two branch codes of an original code and an updated code;
the first determining module is used for determining the value of a preset system parameter according to the updating condition of a dynamic link library of the client;
and the second determining module is used for determining the branch code to be executed from the updated dynamic link library according to the value of the system parameter.
CN202010393110.4A 2020-05-11 2020-05-11 Computer management system hot upgrading method and device based on data delay upgrading Pending CN111736883A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010393110.4A CN111736883A (en) 2020-05-11 2020-05-11 Computer management system hot upgrading method and device based on data delay upgrading

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010393110.4A CN111736883A (en) 2020-05-11 2020-05-11 Computer management system hot upgrading method and device based on data delay upgrading

Publications (1)

Publication Number Publication Date
CN111736883A true CN111736883A (en) 2020-10-02

Family

ID=72647063

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010393110.4A Pending CN111736883A (en) 2020-05-11 2020-05-11 Computer management system hot upgrading method and device based on data delay upgrading

Country Status (1)

Country Link
CN (1) CN111736883A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113296822A (en) * 2021-05-27 2021-08-24 北京思特奇信息技术股份有限公司 Dynamic library-based database system online upgrading method and system
CN115361435A (en) * 2022-07-13 2022-11-18 阿里巴巴(中国)有限公司 Data processing method

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050010915A1 (en) * 2003-07-11 2005-01-13 Chih-Wei Chen Network-based server code auto upgrade method and system
CN102223380A (en) * 2011-07-07 2011-10-19 昆明伯尔瑞科技开发有限公司 Client terminal automatic updating frame based on Webservice and application thereof
CN106775857A (en) * 2016-12-07 2017-05-31 珠海格力电器股份有限公司 A kind of component heat of server is deleted, heat increases and hot replacement method and device
CN107943501A (en) * 2017-11-30 2018-04-20 深圳市东微智能科技股份有限公司 Embedded device upgrade method, device, computer equipment and storage medium
CN108427571A (en) * 2018-02-07 2018-08-21 深圳市雁联计算系统有限公司 A kind of dynamic link library update method and server
CN108845813A (en) * 2018-06-14 2018-11-20 郑州云海信息技术有限公司 A kind of hot update method of application program
CN109857427A (en) * 2018-12-29 2019-06-07 深圳云天励飞技术有限公司 Configure update method and Related product
CN110413295A (en) * 2019-06-26 2019-11-05 上海电器科学研究所(集团)有限公司 A kind of embedded device remote firmware updating method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050010915A1 (en) * 2003-07-11 2005-01-13 Chih-Wei Chen Network-based server code auto upgrade method and system
CN102223380A (en) * 2011-07-07 2011-10-19 昆明伯尔瑞科技开发有限公司 Client terminal automatic updating frame based on Webservice and application thereof
CN106775857A (en) * 2016-12-07 2017-05-31 珠海格力电器股份有限公司 A kind of component heat of server is deleted, heat increases and hot replacement method and device
CN107943501A (en) * 2017-11-30 2018-04-20 深圳市东微智能科技股份有限公司 Embedded device upgrade method, device, computer equipment and storage medium
CN108427571A (en) * 2018-02-07 2018-08-21 深圳市雁联计算系统有限公司 A kind of dynamic link library update method and server
CN108845813A (en) * 2018-06-14 2018-11-20 郑州云海信息技术有限公司 A kind of hot update method of application program
CN109857427A (en) * 2018-12-29 2019-06-07 深圳云天励飞技术有限公司 Configure update method and Related product
CN110413295A (en) * 2019-06-26 2019-11-05 上海电器科学研究所(集团)有限公司 A kind of embedded device remote firmware updating method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
姜洪等: "《Delphi 5数据库技术》", 30 April 2001, 北京:国防工业出版社 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113296822A (en) * 2021-05-27 2021-08-24 北京思特奇信息技术股份有限公司 Dynamic library-based database system online upgrading method and system
CN113296822B (en) * 2021-05-27 2023-11-03 北京思特奇信息技术股份有限公司 Online upgrading method and system for database system based on dynamic library
CN115361435A (en) * 2022-07-13 2022-11-18 阿里巴巴(中国)有限公司 Data processing method

Similar Documents

Publication Publication Date Title
US20210124574A1 (en) Techniques for updating a file using a multi-version patch file
US9678734B2 (en) System and method for passive detection and context sensitive notification of upgrade availability for computer information
US7310801B2 (en) Servicing a component-based software product throughout the software product lifecycle
US8589909B2 (en) Techniques for reducing down time in updating applications with metadata
US9043778B2 (en) Method and system for upgrading software
US6493871B1 (en) Method and system for downloading updates for software installation
CN109240730B (en) Singlechip online upgrading method and system
US6317880B1 (en) Patch source list management
US20030023770A1 (en) Automated software driver installation
CN109766330B (en) Data slicing method and device, electronic equipment and storage medium
CN108027741A (en) Document handling method, device, terminal and storage medium based on patch upgrading
WO2000068836A2 (en) Methods for managing the distribution of client bits to client computers
CN111736883A (en) Computer management system hot upgrading method and device based on data delay upgrading
CN111651304B (en) Software recovery method and device based on double-core intelligent ammeter and computer equipment
CN114490677A (en) Data synchronization in a data analysis system
CN111752577B (en) Upgrading method and equipment for system version
EP4060484A1 (en) Control method and control device for enabling operations of application program in multiple systems
CN112947956B (en) Application software upgrading method
CN113535206B (en) Multi-version code upgrading method and system
CN115374083A (en) Data source switching method and device, electronic equipment and storage medium
CN109960522B (en) Software upgrading method and device
CN113468143A (en) Data migration method, system, computing device and storage medium
CN112328295A (en) Software updating method and device
CN113553488A (en) Method and device for updating index data in search engine, electronic equipment and medium
CN117130987B (en) Flight control management method for large-scale unmanned aerial vehicle cluster

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20201002

RJ01 Rejection of invention patent application after publication