CN109726053B - Switching method and device of database control center and computer equipment - Google Patents

Switching method and device of database control center and computer equipment Download PDF

Info

Publication number
CN109726053B
CN109726053B CN201811444713.1A CN201811444713A CN109726053B CN 109726053 B CN109726053 B CN 109726053B CN 201811444713 A CN201811444713 A CN 201811444713A CN 109726053 B CN109726053 B CN 109726053B
Authority
CN
China
Prior art keywords
database
control center
control
recovery system
disaster recovery
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.)
Active
Application number
CN201811444713.1A
Other languages
Chinese (zh)
Other versions
CN109726053A (en
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.)
NetsUnion Clearing Corp
Original Assignee
NetsUnion Clearing Corp
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 NetsUnion Clearing Corp filed Critical NetsUnion Clearing Corp
Priority to CN201811444713.1A priority Critical patent/CN109726053B/en
Publication of CN109726053A publication Critical patent/CN109726053A/en
Application granted granted Critical
Publication of CN109726053B publication Critical patent/CN109726053B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Telephonic Communication Services (AREA)

Abstract

The invention provides a switching method and a switching device of a database control center and computer equipment, wherein the database control center is used for carrying out centralized control on a background database of a liquidation platform and is provided with a corresponding disaster recovery system; calling a corresponding preset script file according to the control state parameter; executing a preset script file to switch the database control center to the disaster recovery system; and performing centralized control on the background database based on the disaster recovery system, wherein the database control center is kept in a running state while being switched. The invention can realize hot switching of the database control center, reduce the switching operation cost, effectively ensure the business continuity of the clearing platform and improve the intelligent switching effect.

Description

Switching method and device of database control center and computer equipment
Technical Field
The invention relates to the technical field of clearing, in particular to a switching method and device of a database control center and computer equipment.
Background
In the related technology, the switching of the database control center of the clearing platform adopts a cold spare data center mode and a cold spare data center mode in order to ensure the continuity of the service, when a fault occurs and the cold spare data center needs to be started, the configuration files of the database or the network class of the server need to be modified so as to be suitable for the server environment of the cold spare data center, and the operation cost is high; and when the number of application servers is large, the starting operation is time-consuming, and before all the servers are started, the external service cannot be provided, so that the continuity of the clearing service is greatly influenced.
Disclosure of Invention
The present invention is directed to solving, at least to some extent, one of the technical problems in the related art.
Therefore, the invention aims to provide a switching method and device of a database control center and computer equipment, which can realize hot switching of the database control center, reduce the switching operation cost, effectively ensure the service continuity of a clearing platform and improve the switching intelligent effect.
In order to achieve the above object, a method for switching a database control center provided in an embodiment of a first aspect of the present invention is a method for performing centralized control on a background database of a clearing platform, where the database control center has a corresponding disaster recovery system, and the method includes: acquiring control state parameters of the database control center; calling a corresponding preset script file according to the control state parameter; executing the preset script file to switch the database control center to the disaster recovery system; and performing centralized control on the background database based on the disaster recovery system, wherein the database control center is kept in a running state while being switched.
In the method for switching the database control center provided in the embodiment of the first aspect of the present invention, the control state parameter of the database control center is obtained; calling a corresponding preset script file according to the control state parameter; executing a preset script file to switch the database control center to the disaster recovery system; the background database is centrally controlled based on the disaster recovery system, wherein the database control center is kept in a running state while being switched, so that hot switching of the database control center can be realized, the switching operation cost is reduced, the service continuity of the clearing platform is effectively guaranteed, and the switching intelligent effect is improved.
In order to achieve the above object, a switching device of a database control center according to an embodiment of a second aspect of the present invention is a switching device of a database control center, where the database control center is configured to perform centralized control on a background database of a clearing platform, and the database control center has a corresponding disaster recovery system, and includes: the acquisition module is used for acquiring the control state parameters of the database control center; the calling module is used for calling the corresponding preset script file according to the control state parameter; the execution module is used for executing the preset script file so as to switch the database control center to the disaster recovery system; and the centralized control module is used for performing centralized control on the background database based on the disaster recovery system, wherein the database control center is kept in a running state while being switched.
In the switching device of the database control center provided by the embodiment of the second aspect of the present invention, the control state parameter of the database control center is obtained; calling a corresponding preset script file according to the control state parameter; executing a preset script file to switch the database control center to the disaster recovery system; the background database is centrally controlled based on the disaster recovery system, wherein the database control center is kept in a running state while being switched, so that hot switching of the database control center can be realized, the switching operation cost is reduced, the service continuity of the clearing platform is effectively guaranteed, and the switching intelligent effect is improved.
To achieve the above object, a non-transitory computer-readable storage medium according to a third embodiment of the present invention is a non-transitory computer-readable storage medium, where instructions of the storage medium are executed by a processor of a mobile terminal, so that the mobile terminal can perform a method for switching a database control center, where the database control center is configured to centrally control a background database of a clearing platform, and the database control center has a corresponding disaster recovery system, where the method includes: the embodiment of the first aspect of the invention provides a switching method for a database control center.
In a non-transitory computer-readable storage medium according to a third embodiment of the present invention, a control state parameter of a database control center is obtained; calling a corresponding preset script file according to the control state parameter; executing a preset script file to switch the database control center to the disaster recovery system; the background database is centrally controlled based on the disaster recovery system, wherein the database control center is kept in a running state while being switched, so that hot switching of the database control center can be realized, the switching operation cost is reduced, the service continuity of the clearing platform is effectively guaranteed, and the switching intelligent effect is improved.
In order to achieve the above object, a computer program product according to a fourth aspect of the present invention is provided, where instructions in the computer program product are executed by a processor to perform a method for switching a database control center, where the database control center is configured to perform centralized control on a background database of a clearing platform, and the database control center has a corresponding disaster recovery system, and the method includes: acquiring control state parameters of the database control center; calling a corresponding preset script file according to the control state parameter; executing the preset script file to switch the database control center to the disaster recovery system; and performing centralized control on the background database based on the disaster recovery system, wherein the database control center is kept in a running state while being switched.
In a computer program product according to an embodiment of the fourth aspect of the present invention, the control state parameters of the database control center are obtained; calling a corresponding preset script file according to the control state parameter; executing a preset script file to switch the database control center to the disaster recovery system; the background database is centrally controlled based on the disaster recovery system, wherein the database control center is kept in a running state while being switched, so that hot switching of the database control center can be realized, the switching operation cost is reduced, the service continuity of the clearing platform is effectively guaranteed, and the switching intelligent effect is improved.
In order to achieve the above object, an embodiment of a fifth aspect of the present invention further provides a computer device, which includes a housing, a processor, a memory, a circuit board, and a power circuit, wherein the circuit board is disposed inside a space enclosed by the housing, and the processor and the memory are disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the computer equipment; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing: acquiring control state parameters of the database control center; calling a corresponding preset script file according to the control state parameter; executing the preset script file to switch the database control center to the disaster recovery system; and performing centralized control on the background database based on the disaster recovery system, wherein the database control center is kept in a running state while being switched.
In the computer device provided by the embodiment of the fifth aspect of the present invention, the control state parameters of the database control center are obtained; calling a corresponding preset script file according to the control state parameter; executing a preset script file to switch the database control center to the disaster recovery system; the background database is centrally controlled based on the disaster recovery system, wherein the database control center is kept in a running state while being switched, so that hot switching of the database control center can be realized, the switching operation cost is reduced, the service continuity of the clearing platform is effectively guaranteed, and the switching intelligent effect is improved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flowchart of a handover method of a database control center according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a handover method of a database control center according to another embodiment of the present invention;
fig. 3 is a schematic structural diagram of a switching device of a database control center according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a switching device of a database control center according to another embodiment of the present invention;
fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
Detailed Description
Reference will now be made in detail to embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the accompanying drawings are illustrative only for the purpose of explaining the present invention, and are not to be construed as limiting the present invention. On the contrary, the embodiments of the invention include all changes, modifications and equivalents coming within the spirit and terms of the claims appended hereto.
Fig. 1 is a flowchart illustrating a switching method of a database control center according to an embodiment of the present invention.
The present embodiment is exemplified in a case where the switching method of the database control center is configured as the switching device of the database control center.
The switching method of the database control center in this embodiment may be configured in the switching device of the database control center, and the switching device of the database control center may be set in the server, or may also be set in the electronic device, which is not limited in this embodiment of the present invention.
The present embodiment takes the case where the switching method of the database control center is configured in the server.
The database control center is used for carrying out centralized control on a background database of the liquidation platform and is provided with a corresponding disaster recovery system.
The electronic device is, for example, a Personal Computer (PC), a cloud device or a mobile device, and the mobile device is, for example, a smart phone or a tablet Computer.
It should be noted that, the execution main body of the embodiment of the present invention may be, for example, a Central Processing Unit (CPU) in a server or an electronic device in terms of hardware, and may be, for example, a related background service in the server or the electronic device in terms of software, which is not limited to this.
In the related technology, the switching of the database control center of the clearing platform adopts a cold spare data center mode and a cold spare data center mode in order to ensure the continuity of the service, when a fault occurs and the cold spare data center needs to be started, the configuration files of the database or the network class of the server need to be modified so as to be suitable for the server environment of the cold spare data center, and the operation cost is high; and when the number of application servers is large, the starting operation is time-consuming, and before all the servers are started, the external service cannot be provided, so that the continuity of the clearing service is greatly influenced.
In order to solve the above technical problem, an embodiment of the present invention provides a method for switching a database control center, where a control state parameter of the database control center is obtained; calling a corresponding preset script file according to the control state parameter; executing a preset script file to switch the database control center to the disaster recovery system; the background database is centrally controlled based on the disaster recovery system, wherein the database control center is kept in a running state while being switched, so that hot switching of the database control center can be realized, the switching operation cost is reduced, the service continuity of the clearing platform is effectively guaranteed, and the switching intelligent effect is improved.
Referring to fig. 1, the method includes:
s101: and acquiring control state parameters of the database control center.
The control state parameter is used to describe a control state of the database control center on the background database, for example, a communication state between the database control center and each background database, a flag bit of a control logic, and the like, which is not limited herein.
S102: and calling the corresponding preset script file according to the control state parameter.
In the specific implementation process of the embodiment of the present invention, before obtaining the control state parameter of the database control center, the method further includes: analyzing and processing the control logic of the database control center; determining a plurality of control state parameters according to the result obtained by analysis and processing, wherein one control state parameter indicates one control logic; writing corresponding script files as preset script files aiming at various control state parameters; and executing a preset script file to enable the disaster recovery system to perform centralized control on the background database based on the control logic indicated by the control state parameter.
For example, the control logic of the database control center may be analyzed in advance, and a plurality of control state parameters (e.g., the communication state, the flag bits of the control logic, etc.) may be determined according to the result obtained by the analysis, and then, corresponding script files may be written for the various control state parameters to serve as preset script files; and executing a preset script file to enable the disaster recovery system to perform centralized control on the background database based on the control logic indicated by the control state parameter.
By writing the corresponding script file as the preset script file aiming at various control state parameters in advance, the fault time of the database control center can be generated, when the fault time needs to be switched, the preset script file is directly executed to switch the database control center to the disaster recovery system, the preset script file is generated by analyzing the control logic of the database control center in advance and determining various control state parameters according to the result obtained by analyzing, so that the accuracy is high, the switching efficiency is high, and the switching operation cost is effectively reduced.
S103: and executing the preset script file to switch the database control center to the disaster recovery system.
In the specific execution process of the embodiment of the present invention, referring to fig. 2, executing a preset script file to switch the database control center to the disaster recovery system includes:
s201: and executing the preset script file to generate the routing information corresponding to the disaster recovery system in real time.
S202: and switching the database control center to the disaster recovery system according to the routing information.
In the specific execution process of the embodiment of the invention, the control state parameter may also include address information of the disaster recovery system corresponding to the database control center, so that the preset script file is executed subsequently, the routing information corresponding to the disaster recovery system can be generated in real time according to the address information, and the switching accuracy can be effectively guaranteed.
The preset script file is executed to generate the routing information corresponding to the disaster recovery system in real time, and the database control center is switched to the disaster recovery system according to the routing information, so that the implementation mode is simple, and the operation convenience is effectively improved and the operation cost is reduced based on the form of executing the script file instead of modifying the database of the server or the configuration file of the network class in the related technology to be suitable for the server environment of the cold-standby data center.
S104: and performing centralized control on the background database based on the disaster recovery system, wherein the database control center is kept in a running state while being switched.
Optionally, when the background database is centrally controlled based on the disaster recovery system, the status of each backup database in the disaster recovery system is set to be in a read-write status, so that the continuity of the technical means for implementing the method is ensured, the hot switch of the database control center is smoothly and imperceptibly completed, and the continuity of the clearing service is ensured.
The hot switching of the database control center is effectively realized by keeping the database control center in the running state while switching the database control center.
In the embodiment, the control state parameters of the database control center are obtained; calling a corresponding preset script file according to the control state parameter; executing a preset script file to switch the database control center to the disaster recovery system; the background database is centrally controlled based on the disaster recovery system, wherein the database control center is kept in a running state while being switched, so that hot switching of the database control center can be realized, the switching operation cost is reduced, the service continuity of the clearing platform is effectively guaranteed, and the switching intelligent effect is improved.
Fig. 3 is a schematic structural diagram of a switching device of a database control center according to an embodiment of the present invention.
The database control center is used for carrying out centralized control on a background database of the liquidation platform and is provided with a corresponding disaster recovery system.
Referring to fig. 3, the apparatus 300 includes:
an obtaining module 301, configured to obtain a control state parameter of a database control center;
a calling module 302, configured to call a corresponding preset script file according to the control state parameter;
the execution module 303 is configured to execute a preset script file to switch the database control center to the disaster recovery system;
and the centralized control module 304 is used for performing centralized control on the background database by using a disaster recovery system, wherein the database control center is kept in an operating state while being switched.
Optionally, in some embodiments, the executing module 303 is specifically configured to:
executing a preset script file to generate routing information corresponding to the disaster recovery system in real time;
and switching the database control center to the disaster recovery system according to the routing information.
Optionally, in some embodiments, the centralized control module 304 is specifically configured to:
when the background databases are centrally controlled based on the disaster recovery system, the states of the standby databases in the disaster recovery system are set to be read-write states.
Optionally, in some embodiments, referring to fig. 4, further comprising:
an analysis module 305, configured to analyze and process control logic of the database control center;
a determining module 306, configured to determine multiple control state parameters according to a result obtained by the analysis processing, where one control state parameter indicates one control logic;
a compiling module 307, configured to compile a corresponding script file as a preset script file for each control state parameter; and executing a preset script file to enable the disaster recovery system to perform centralized control on the background database based on the control logic indicated by the control state parameter.
It should be noted that the explanation of the embodiment of the switching method of the database control center in the foregoing fig. 1-2 is also applicable to the switching apparatus 300 of the database control center in this embodiment, and the implementation principle is similar, and is not described herein again.
In the embodiment, the control state parameters of the database control center are obtained; calling a corresponding preset script file according to the control state parameter; executing a preset script file to switch the database control center to the disaster recovery system; the background database is centrally controlled based on the disaster recovery system, wherein the database control center is kept in a running state while being switched, so that hot switching of the database control center can be realized, the switching operation cost is reduced, the service continuity of the clearing platform is effectively guaranteed, and the switching intelligent effect is improved.
Fig. 5 is a schematic structural diagram of a computer device according to an embodiment of the present invention.
The computer device may be a mobile phone, a tablet computer, etc.
Referring to fig. 5, the computer apparatus 50 of the present embodiment includes: the electronic device comprises a shell 501, a processor 502, a memory 503, a circuit board 504 and a power supply circuit 505, wherein the circuit board 504 is arranged inside a space enclosed by the shell 501, and the processor 502 and the memory 503 are arranged on the circuit board 504; a power supply circuit 505 for supplying power to each circuit or device of the computer apparatus 50; the memory 503 is used to store executable program code; the processor 502 runs a program corresponding to the executable program code by reading the executable program code stored in the memory 503, so as to execute:
acquiring control state parameters of a database control center;
calling a corresponding preset script file according to the control state parameter;
executing a preset script file to switch the database control center to the disaster recovery system;
and performing centralized control on the background database based on the disaster recovery system, wherein the database control center is kept in a running state while being switched.
It should be noted that the explanation of the foregoing switching method embodiment of the database control center in the embodiment of fig. 1-2 is also applicable to the computer device 50 of this embodiment, and the implementation principle is similar, and is not described herein again.
In the embodiment, the control state parameters of the database control center are obtained; calling a corresponding preset script file according to the control state parameter; executing a preset script file to switch the database control center to the disaster recovery system; the background database is centrally controlled based on the disaster recovery system, wherein the database control center is kept in a running state while being switched, so that hot switching of the database control center can be realized, the switching operation cost is reduced, the service continuity of the clearing platform is effectively guaranteed, and the switching intelligent effect is improved.
In order to implement the foregoing embodiment, the present invention further provides a non-transitory computer-readable storage medium, where instructions in the storage medium are executed by a processor of a terminal, so that the terminal can execute a method for switching a database control center, where the database control center is configured to perform centralized control on a background database of a clearing platform, and the database control center has a corresponding disaster recovery system, and the method includes:
acquiring control state parameters of a database control center;
calling a corresponding preset script file according to the control state parameter;
executing a preset script file to switch the database control center to the disaster recovery system;
and performing centralized control on the background database based on the disaster recovery system, wherein the database control center is kept in a running state while being switched.
The non-transitory computer readable storage medium in this embodiment obtains the control state parameters of the database control center; calling a corresponding preset script file according to the control state parameter; executing a preset script file to switch the database control center to the disaster recovery system; the background database is centrally controlled based on the disaster recovery system, wherein the database control center is kept in a running state while being switched, so that hot switching of the database control center can be realized, the switching operation cost is reduced, the service continuity of the clearing platform is effectively guaranteed, and the switching intelligent effect is improved.
In order to implement the foregoing embodiments, the present invention further provides a computer program product, where when an instruction in the computer program product is executed by a processor, the computer program product executes a method for switching a database control center, where the database control center is configured to perform centralized control on a background database of a clearing platform, and the database control center has a corresponding disaster recovery system, and the method includes:
acquiring control state parameters of a database control center;
calling a corresponding preset script file according to the control state parameter;
executing a preset script file to switch the database control center to the disaster recovery system;
and performing centralized control on the background database based on the disaster recovery system, wherein the database control center is kept in a running state while being switched.
The computer program product in the embodiment obtains the control state parameters of the database control center; calling a corresponding preset script file according to the control state parameter; executing a preset script file to switch the database control center to the disaster recovery system; the background database is centrally controlled based on the disaster recovery system, wherein the database control center is kept in a running state while being switched, so that hot switching of the database control center can be realized, the switching operation cost is reduced, the service continuity of the clearing platform is effectively guaranteed, and the switching intelligent effect is improved.
It should be noted that the terms "first," "second," and the like in the description of the present invention are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In addition, in the description of the present invention, "a plurality" means two or more unless otherwise specified.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing specific logical functions or steps of the process, and alternate implementations are included within the scope of the preferred embodiment of the present invention in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present invention.
It should be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware that is related to instructions of a program, and the program may be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
Although embodiments of the present invention have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present invention, and that variations, modifications, substitutions and alterations can be made to the above embodiments by those of ordinary skill in the art within the scope of the present invention.

Claims (10)

1. A switching method of a database control center is used for carrying out centralized control on a background database of a liquidation platform, and the database control center is provided with a corresponding disaster recovery system, and is characterized by comprising the following steps:
acquiring control state parameters of the database control center, wherein the control state parameters are used for describing the control state of the database control center on background databases, and the control state comprises the communication state of the database control center and each background database and a flag bit of control logic;
calling a corresponding preset script file according to the control state parameter;
executing the preset script file to switch the database control center to the disaster recovery system;
and performing centralized control on the background database based on the disaster recovery system, wherein the database control center is kept in a running state while being switched.
2. The method for switching the database control center according to claim 1, wherein the executing the preset script file to switch the database control center to the disaster recovery system includes:
executing the preset script file to generate routing information corresponding to the disaster recovery system in real time;
and switching the database control center to the disaster recovery system according to the routing information.
3. The database control center handover method according to claim 1, wherein,
and when the background databases are subjected to centralized control based on the disaster recovery system, setting the state of each standby database in the disaster recovery system as a read-write state.
4. The switching method of the database control center according to claim 1, further comprising, before the obtaining the control state parameter of the database control center:
analyzing and processing the control logic of the database control center;
determining a plurality of control state parameters according to the result obtained by analysis and processing, wherein one control state parameter indicates one control logic;
writing corresponding script files as the preset script files aiming at various control state parameters; and executing the preset script file to enable the disaster recovery system to perform centralized control on the background database based on the control logic indicated by the control state parameter.
5. A switching device of a database control center, wherein the database control center is used for carrying out centralized control on a background database of a liquidation platform, and is provided with a corresponding disaster recovery system, and the switching device is characterized by comprising:
the acquisition module is used for acquiring control state parameters of the database control center, wherein the control state parameters are used for describing the control state of the database control center on background databases, and the control state comprises the communication state of the database control center and each background database and the flag bit of control logic;
the calling module is used for calling the corresponding preset script file according to the control state parameter;
the execution module is used for executing the preset script file so as to switch the database control center to the disaster recovery system;
and the centralized control module is used for performing centralized control on the background database based on the disaster recovery system, wherein the database control center is kept in a running state while being switched.
6. The switching device of the database control center according to claim 5, wherein the executing module is specifically configured to:
executing the preset script file to generate routing information corresponding to the disaster recovery system in real time;
and switching the database control center to the disaster recovery system according to the routing information.
7. The switching device of the database control center according to claim 5, wherein the centralized control module is specifically configured to:
and when the background databases are subjected to centralized control based on the disaster recovery system, setting the state of each standby database in the disaster recovery system as a read-write state.
8. The switching apparatus of a database control center according to claim 5, further comprising:
the analysis module is used for analyzing and processing the control logic of the database control center;
the determining module is used for determining various control state parameters according to the result obtained by analysis and processing, wherein one control state parameter indicates one control logic;
the compiling module is used for compiling corresponding script files as the preset script files aiming at various control state parameters; and executing the preset script file to enable the disaster recovery system to perform centralized control on the background database based on the control logic indicated by the control state parameter.
9. A non-transitory computer-readable storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements the database control center switching method according to any one of claims 1 to 4.
10. A computer device comprising a housing, a processor, a memory, a circuit board, and a power circuit, wherein the circuit board is disposed inside a space enclosed by the housing, the processor and the memory being disposed on the circuit board; the power supply circuit is used for supplying power to each circuit or device of the computer equipment; the memory is used for storing executable program codes; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory, for performing:
acquiring control state parameters of a database control center, wherein the control state parameters are used for describing the control state of the database control center on background databases, and the control state comprises the communication state of the database control center and each background database and a flag bit of a control logic;
calling a corresponding preset script file according to the control state parameter;
executing the preset script file to switch the database control center to a disaster recovery system;
and performing centralized control on the background database based on the disaster recovery system, wherein the database control center is kept in a running state while being switched.
CN201811444713.1A 2018-11-29 2018-11-29 Switching method and device of database control center and computer equipment Active CN109726053B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811444713.1A CN109726053B (en) 2018-11-29 2018-11-29 Switching method and device of database control center and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811444713.1A CN109726053B (en) 2018-11-29 2018-11-29 Switching method and device of database control center and computer equipment

Publications (2)

Publication Number Publication Date
CN109726053A CN109726053A (en) 2019-05-07
CN109726053B true CN109726053B (en) 2021-08-27

Family

ID=66294772

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811444713.1A Active CN109726053B (en) 2018-11-29 2018-11-29 Switching method and device of database control center and computer equipment

Country Status (1)

Country Link
CN (1) CN109726053B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081621A (en) * 2009-11-27 2011-06-01 ***通信集团浙江有限公司 Method and device for determining disaster toleration switching of database production system
CN102098713A (en) * 2011-01-25 2011-06-15 浪潮通信信息***有限公司 Method for quickly tolerating disaster for base station in mobile communication network
CN105022681A (en) * 2014-04-22 2015-11-04 ***通信集团江西有限公司 Method and system for implementing disaster tolerance emergency switching
CN106209920A (en) * 2016-09-19 2016-12-07 贵州白山云科技有限公司 The safety protecting method of a kind of dns server and device
US20180316728A1 (en) * 2017-02-09 2018-11-01 Kyland Technology Co., Ltd. Method and apparatus for detecting security using an industry internet operating system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102081621A (en) * 2009-11-27 2011-06-01 ***通信集团浙江有限公司 Method and device for determining disaster toleration switching of database production system
CN102098713A (en) * 2011-01-25 2011-06-15 浪潮通信信息***有限公司 Method for quickly tolerating disaster for base station in mobile communication network
CN105022681A (en) * 2014-04-22 2015-11-04 ***通信集团江西有限公司 Method and system for implementing disaster tolerance emergency switching
CN106209920A (en) * 2016-09-19 2016-12-07 贵州白山云科技有限公司 The safety protecting method of a kind of dns server and device
US20180316728A1 (en) * 2017-02-09 2018-11-01 Kyland Technology Co., Ltd. Method and apparatus for detecting security using an industry internet operating system

Also Published As

Publication number Publication date
CN109726053A (en) 2019-05-07

Similar Documents

Publication Publication Date Title
US9906622B2 (en) Automated service interface optimization
US9558016B2 (en) Platform system, method for changing support hardware configuration of universal extensible firmware interface basic input output system and computer program product
CN112636992B (en) Dynamic routing method, device, equipment and storage medium
CN109445690B (en) RAID card performance optimization method, device, terminal and storage medium
US8806277B1 (en) Systems and methods for fetching troubleshooting data
US20170277439A1 (en) Techniques for Path Optimization in Storage Networks
CN104375933A (en) Unit testing method and device
CN111143039A (en) Virtual machine scheduling method and device and computer storage medium
CN110597552B (en) Configuration method, device, equipment and storage medium of project continuous integrated pipeline
CN104375854A (en) Application updating and downloading method and user terminal
CN110046100B (en) Packet testing method, electronic device and medium
CN104517067A (en) Method, device and system for data access
CN113448690A (en) Monitoring method and device
CN109726053B (en) Switching method and device of database control center and computer equipment
CN110908644A (en) Configuration method and device of state node, computer equipment and storage medium
CN114995770B (en) Data processing method, device, equipment, system and readable storage medium
CN104679648A (en) Cross-application automatic testing method
CN108984238A (en) Gesture processing method, device and the electronic equipment of application program
JP2016018269A (en) Information processing apparatus, information processing method, and program
CN110659125A (en) Analysis task execution method, device and system and electronic equipment
CN110019148B (en) Database capacity management method and device, storage medium and computer equipment
CN113805854A (en) Method, system and device for realizing Hook of application layer based on Linux system and storage medium
CN111858234A (en) Task execution method, device, equipment and medium
WO2021102849A1 (en) Resource acquisition method and apparatus, and electronic device
CN105867961A (en) System upgrading and degrading method and device

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
GR01 Patent grant
GR01 Patent grant