Movatterモバイル変換


[0]ホーム

URL:


CN105159944A - Database emergency handling method and system - Google Patents

Database emergency handling method and system
Download PDF

Info

Publication number
CN105159944A
CN105159944ACN201510485929.2ACN201510485929ACN105159944ACN 105159944 ACN105159944 ACN 105159944ACN 201510485929 ACN201510485929 ACN 201510485929ACN 105159944 ACN105159944 ACN 105159944A
Authority
CN
China
Prior art keywords
storage facility
processing plant
facility located
storehouse
emergent
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
CN201510485929.2A
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.)
Beijing Si Tech Information Technology Co Ltd
Original Assignee
Beijing Si Tech 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 Beijing Si Tech Information Technology Co LtdfiledCriticalBeijing Si Tech Information Technology Co Ltd
Priority to CN201510485929.2ApriorityCriticalpatent/CN105159944A/en
Publication of CN105159944ApublicationCriticalpatent/CN105159944A/en
Pendinglegal-statusCriticalCurrent

Links

Classifications

Landscapes

Abstract

The invention relates to a database emergency handling method and system. The method comprises the following steps of: detecting an operational state of a production library; when the production library is in a normal state, synchronizing data of the production library into an emergency library in real time; when the production library has a fault, switching the production library to the emergency library, and switching a database connection address of an application system to the emergency library; and when the production library returns to the normal state, switching the emergency library back to the production library, and reversely synchronizing data read-write, which is performed in the emergency library within the fault time period of the production library, into the production library. According to the method and the system, in a mode of reverse synchronization from the emergency library to the production library by use of oracle Active Data Guard, data operation records of the emergency library are reduced, and the processing time based on sql covering data in the past is effectively shortened. Furthermore, data covering modes for all services are same, so that the operation is convenient and quick, and each system is not needed to process covering data.

Description

A kind of database emergency processing method and system
Technical field
The present invention relates to computer realm, particularly a kind of database emergency processing method and system.
Background technology
The database that a lot of business system uses, comprises storage facility located at processing plant and emergent storehouse.When database normally runs, system access storage facility located at processing plant, when storage facility located at processing plant go wrong cannot use time, system can be switched to emergent storehouse.After storehouse to be produced can normally use, then by systematic evaluation to storage facility located at processing plant.The process need that database switches keeps the data consistent in storage facility located at processing plant and emergent storehouse.
The data consistent in current storage facility located at processing plant and emergent storehouse, by oracleActiveDataGuard technology, can by the real time data synchronization in storage facility located at processing plant to emergent storehouse, but when system uses emergent storehouse, need record data interaction each time, and the additions and deletions recording all databases change data, then be synchronized to storage facility located at processing plant by the mode of sql.
The existing mode being synchronized to storage facility located at processing plant from emergent storehouse, owing to being the mode of the sql record adopted, adding database processing logic, add the number of processes of database, and long in the time of data syn-chronization, the probability of makeing mistakes in processing procedure is also larger.
Summary of the invention
Technical matters to be solved by this invention is to provide the database emergency processing method and system that database are carried out active-standby switch under emergency rating.
The technical scheme that the present invention solves the problems of the technologies described above is as follows: a kind of database emergency processing method, comprises the following steps:
Detect the running status of storage facility located at processing plant;
When storage facility located at processing plant is in normal condition, by the real time data synchronization of storage facility located at processing plant in emergent storehouse;
When storage facility located at processing plant breaks down, storage facility located at processing plant is switched to emergent storehouse, and by the DataBase combining address switchover of application system to emergent storehouse;
When storage facility located at processing plant recovers normal condition, storehouse of will meeting an urgent need switches back storage facility located at processing plant, and the reading and writing data reverse sync of carrying out meeting an urgent need within the time period that storage facility located at processing plant breaks down in storehouse is in storage facility located at processing plant.
The invention has the beneficial effects as follows: the mode of the present invention by using oracleActiveDataGuard to be oppositely synchronized to storage facility located at processing plant from emergent storehouse, the record that emergent database data is operated reduced, and effectively shorten the processing time in the past being covered data by sql.And the data of all business covering mode is consistent, convenient and swift, each system oneself is not needed to process covering data.
On the basis of technique scheme, the present invention can also do following improvement.
Further, when storage facility located at processing plant breaks down, also comprise the system identifier obtaining pending operation system, obtain the host information disposed in advance according to system identifier, call host interface according to host information.
Further, describedly storage facility located at processing plant is switched to emergent storehouse and is specially:
The host interface that calling JCF framework provides carries out withdrawing business, handed over service and opening service operations.
Further, described handed over service is realized by the configuration file of JCF framework amendment operation system.
It is further, described that storage facility located at processing plant to be switched to emergent storehouse to comprise emergent storehouse further from read-only status modifier be read/write status.
Further, a kind of database emergent treatment system, comprises detection module, synchronization module, handover module and reverse sync module;
Described detection module, for detecting the running status of storage facility located at processing plant;
Described synchronization module, for when storage facility located at processing plant is in normal condition, by the real time data synchronization of storage facility located at processing plant in emergent storehouse;
Described handover module, for when storage facility located at processing plant breaks down, is switched to emergent storehouse by storage facility located at processing plant, and by the DataBase combining address switchover of application system to emergent storehouse;
Described reverse sync module, for when storage facility located at processing plant recovers normal condition, storehouse of will meeting an urgent need switches back storage facility located at processing plant, and the reading and writing data reverse sync of carrying out meeting an urgent need within the time period that storage facility located at processing plant breaks down in storehouse is in storage facility located at processing plant.
Further, described handover module, when storage facility located at processing plant breaks down, also comprises the system identifier obtaining pending operation system, obtains the host information disposed in advance, call host interface according to host information according to system identifier.
Further, in described handover module, storage facility located at processing plant is switched to emergent storehouse to be specially:
The host interface that calling JCF framework provides carries out withdrawing business, handed over service and opening service operations.
Further, described handed over service is realized by the configuration file of JCF framework amendment operation system.
Further, in described handover module, storage facility located at processing plant being switched to that emergent storehouse to comprise emergent storehouse further from read-only status modifier is read/write status.
Accompanying drawing explanation
Fig. 1 is the inventive method flow chart of steps;
Fig. 2 is that storage facility located at processing plant is switched to emergent storehouse process flow diagram by the present invention;
Fig. 3 is that emergent storehouse is switched to storage facility located at processing plant process flow diagram by the present invention;
Fig. 4 is present system structural drawing.
In accompanying drawing, the list of parts representated by each label is as follows:
1, detection module, 2, synchronization module, 3, handover module, 4, reverse sync module.
Embodiment
Be described principle of the present invention and feature below in conjunction with accompanying drawing, example, only for explaining the present invention, is not intended to limit scope of the present invention.
Embodiment 1
A kind of database emergency processing method, comprises the following steps:
Detect the running status of storage facility located at processing plant;
When storage facility located at processing plant is in normal condition, by the real time data synchronization of storage facility located at processing plant in emergent storehouse;
When storage facility located at processing plant breaks down, storage facility located at processing plant is switched to emergent storehouse, and by the DataBase combining address switchover of application system to emergent storehouse;
When storage facility located at processing plant recovers normal condition, storehouse of will meeting an urgent need switches back storage facility located at processing plant, and the reading and writing data reverse sync of carrying out meeting an urgent need within the time period that storage facility located at processing plant breaks down in storehouse is in storage facility located at processing plant.
The invention has the beneficial effects as follows: the mode of the present invention by using oracleActiveDataGuard to be oppositely synchronized to storage facility located at processing plant from emergent storehouse, the record that emergent database data is operated reduced, and effectively shorten the processing time in the past being covered data by sql.And the data of all business covering mode is consistent, convenient and swift, each system oneself is not needed to process covering data.
When storage facility located at processing plant breaks down, also comprise the system identifier obtaining pending operation system, obtain the host information disposed in advance according to system identifier, call host interface according to host information.
Describedly storage facility located at processing plant is switched to emergent storehouse and is specially:
The host interface that calling JCF framework provides carries out withdrawing business, handed over service and opening service operations.
Described handed over service is realized by the configuration file of JCF framework amendment operation system.
It is described that storage facility located at processing plant to be switched to emergent storehouse to comprise emergent storehouse further from read-only status modifier be read/write status.
As shown in Figure 4, a kind of database emergent treatment system, comprises detection module 1, synchronization module 2, handover module 3 and reverse sync module 4;
Described detection module 1, for detecting the running status of storage facility located at processing plant;
Described synchronization module 2, for when storage facility located at processing plant is in normal condition, by the real time data synchronization of storage facility located at processing plant in emergent storehouse;
Described handover module 3, for when storage facility located at processing plant breaks down, is switched to emergent storehouse by storage facility located at processing plant, and by the DataBase combining address switchover of application system to emergent storehouse;
Described reverse sync module 4, for when storage facility located at processing plant recovers normal condition, storehouse of will meeting an urgent need switches back storage facility located at processing plant, and the reading and writing data reverse sync of carrying out meeting an urgent need within the time period that storage facility located at processing plant breaks down in storehouse is in storage facility located at processing plant.
Described handover module 3, when storage facility located at processing plant breaks down, also comprises the system identifier obtaining pending operation system, obtains the host information disposed in advance, call host interface according to host information according to system identifier.
In described handover module 3, storage facility located at processing plant is switched to emergent storehouse to be specially:
The host interface that calling JCF framework provides carries out withdrawing business, handed over service and opening service operations.
Described handed over service is realized by the configuration file of JCF framework amendment operation system.
In described handover module 3, storage facility located at processing plant being switched to that emergent storehouse to comprise emergent storehouse further from read-only status modifier is read/write status.
In concrete enforcement, the step that program main flow performs is illustrated in figure 1:
When 1, needing that performing database is emergent to be switched, first get pending system identifier;
2, the host information of deployment is got according to ID;
3, call host interface, and implement to switch script, storage facility located at processing plant and emergent storehouse are switched;
4, applied business process is stopped;
5, when contingency management platform is switched to emergent storehouse to operation system from storage facility located at processing plant, step in concrete execution Fig. 2.When being switched to storage facility located at processing plant to operation system from emergent storehouse, perform step in Fig. 3.
Under normal condition, use oracleActiveDataGuard by the real time data synchronization of storage facility located at processing plant in emergent storehouse, now storage facility located at processing plant is read-write state, and emergent storehouse is a read states.
When storage facility located at processing plant breaks down, be first that the software systems be connected on oracle database carry out database switching, switch and comprise two steps:
The active and standby storehouse of oracle database switches;
Application system database connects points to switching;
Contingency management platform manages a lot of operation systems, each operation system is in order to ensure the stability of system, database is all provided with storage facility located at processing plant and sets of data storehouse, emergent storehouse two, when operation system carries out database write operation, be written in storage facility located at processing plant, pass through oracleActiveDataGuard technology again by real time data synchronization in emergent storehouse, data in such maintenance two sets of data storehouse are identical, cannot use once storage facility located at processing plant breaks down, contingency management platform is by a series of operation (flow processing shown in Fig. 2), storage facility located at processing plant is switched on emergent storehouse, to ensure that the operation system the fastest time recovers to use.Storehouse to be produced after recovering needs emergent storehouse to switch back storage facility located at processing plant again.
Fig. 2 is by after database storage facility located at processing plant fault, the active and standby storehouse of database switches by contingency management platform, namely be switched to the process in emergent storehouse from storage facility located at processing plant, the switching of the DataBase combining of system application, the namely handoff procedure of the DataBase combining address of front end applications.
The storage facility located at processing plant of operation system is switched in the concrete processing procedure of processing procedure in emergent storehouse by contingency management platform:
The interface that contingency management platform invoke JCF provides carries out the operation of withdrawing business, switching and opening service, wherein start the operation of service, be that the script provided by calling operation system performs, the switching that database is active and standby, only needs to revise the configuration file in operation system.
1, after JCF receives and stops Service Notification, call the script withdrawing business and perform, if period has call request can automatically to printed words such as foreground responses " emergent switch in, please after a while ";
2, after JCF receives the notice in switch data storehouse, JCF automatically revises the configuration file of operation system and changes the sensing in data in EMS memory storehouse;
3, after JCF receives the notice of the service of opening, the script calling the service of opening performs.
Fig. 3 be when storage facility located at processing plant recover normal after, the contingency management platform storehouse that needs to meet an urgent need switches back storage facility located at processing plant, and by the reading and writing data reverse sync in emergent storehouse to the process in storage facility located at processing plant.
Emergent storehouse to the synchronous implementation of data back of storage facility located at processing plant is, by storage facility located at processing plant being changed into standby storehouse, master library is changed in emergent storehouse into, just restart oracleActiveDataGuard and data are synchronously returned storage facility located at processing plant from emergent storehouse, the benefit of this scheme is that the data covering mode of all business is consistent, convenient and swift, do not need each system oneself to process covering data.
In this method, oracleActiveDataGuard technology is oppositely used for synchronous in storage facility located at processing plant of emergent storehouse, synchronous by bottom data, decreases the number of processes of database, decrease the processing time of data syn-chronization simultaneously.
The advantage of this method is from emergent storehouse to storage facility located at processing plant, and the data back method of synchronization of all business is consistent, convenient and swift, does not need each system oneself to process covering data.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (10)

CN201510485929.2A2015-08-102015-08-10Database emergency handling method and systemPendingCN105159944A (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201510485929.2ACN105159944A (en)2015-08-102015-08-10Database emergency handling method and system

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201510485929.2ACN105159944A (en)2015-08-102015-08-10Database emergency handling method and system

Publications (1)

Publication NumberPublication Date
CN105159944Atrue CN105159944A (en)2015-12-16

Family

ID=54800800

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201510485929.2APendingCN105159944A (en)2015-08-102015-08-10Database emergency handling method and system

Country Status (1)

CountryLink
CN (1)CN105159944A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107015885A (en)*2016-07-122017-08-04阿里巴巴集团控股有限公司Service providing method, system and configuration center when primary standby data storehouse switches
CN108664593A (en)*2018-05-082018-10-16东软集团股份有限公司Data consistency verification method, device, storage medium and electronic equipment
CN109299175A (en)*2018-09-262019-02-01中国建设银行股份有限公司Database Dynamic extended method, system, device and storage medium
CN112596951A (en)*2020-12-242021-04-02深圳市科力锐科技有限公司NAS data disaster tolerance method, device, equipment and storage medium
CN114969206A (en)*2022-05-242022-08-30连连银通电子支付有限公司Data processing method, device, equipment and storage medium
CN115934391A (en)*2022-11-152023-04-07平安付科技服务有限公司Database emergency template generation method and device, storage medium and computer equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101242253A (en)*2007-02-062008-08-13上海市医疗保险信息中心Software failure emergent handling method and system
CN101527656A (en)*2009-04-152009-09-09烽火通信科技股份有限公司Emergency switched system of NGN service platform database and realizing method thereof
CN101876924A (en)*2009-04-302010-11-03升东网络科技发展(上海)有限公司Database fault automatic detection and transfer method
CN104361043A (en)*2014-10-292015-02-18中国建设银行股份有限公司Database switching method and database switching system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN101242253A (en)*2007-02-062008-08-13上海市医疗保险信息中心Software failure emergent handling method and system
CN101527656A (en)*2009-04-152009-09-09烽火通信科技股份有限公司Emergency switched system of NGN service platform database and realizing method thereof
CN101876924A (en)*2009-04-302010-11-03升东网络科技发展(上海)有限公司Database fault automatic detection and transfer method
CN104361043A (en)*2014-10-292015-02-18中国建设银行股份有限公司Database switching method and database switching system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN107015885A (en)*2016-07-122017-08-04阿里巴巴集团控股有限公司Service providing method, system and configuration center when primary standby data storehouse switches
CN108664593A (en)*2018-05-082018-10-16东软集团股份有限公司Data consistency verification method, device, storage medium and electronic equipment
CN109299175A (en)*2018-09-262019-02-01中国建设银行股份有限公司Database Dynamic extended method, system, device and storage medium
CN109299175B (en)*2018-09-262022-11-08中国建设银行股份有限公司Dynamic expansion method, system, device and storage medium for database
CN112596951A (en)*2020-12-242021-04-02深圳市科力锐科技有限公司NAS data disaster tolerance method, device, equipment and storage medium
CN114969206A (en)*2022-05-242022-08-30连连银通电子支付有限公司Data processing method, device, equipment and storage medium
CN115934391A (en)*2022-11-152023-04-07平安付科技服务有限公司Database emergency template generation method and device, storage medium and computer equipment

Similar Documents

PublicationPublication DateTitle
CN105159944A (en)Database emergency handling method and system
CN110569149B (en)Method for triggering Oracle disaster recovery automatic emergency switching based on fault detection
CN101577735B (en)Method, device and system for taking over fault metadata server
CN202798798U (en)High availability system based on cloud computing technology
CN103441863B (en)The hot standby system of two server and control method in a kind of air traffic control automation system
CN102891849B (en)Service data synchronization method, data recovery method, data recovery device and network device
CN101561773B (en)Method for recovering disk data and device thereof
CN109582443A (en)Virtual machine standby system based on distributed storage technology
CN102855163B (en)A kind of memory database hot-standby method and main frame
CN101706795A (en)Method for synchronizing data of database in active/standby server
US7730029B2 (en)System and method of fault tolerant reconciliation for control card redundancy
CN101452410A (en)Data backup system for embedded database, and data backup and recovery method
CN106557543A (en)Node switching method and system
CN102231161A (en)Method for synchronously verifying and monitoring databases
CN103186348B (en)Storage system and data read-write method thereof
CN106919473A (en)A kind of data disaster recovery and backup systems and method for processing business
CN103324715A (en)Disaster recovery backup system availability detection method and device
CN107147529A (en) A data disaster recovery system and method
CN102799503B (en)Recover method applied to large quantity of small files
CN104615511A (en)Host batch recovery processing method and device based on double centers
CN100461646C (en)Method for negat main spare board in communication equipment
CN101252464B (en)Dual system and dual system online upgrading method
CN104850628B (en)The synchronous method and device of a kind of database data
CN111444200B (en) A data updating method and storage medium
CN109522145A (en)A kind of virtual-machine fail automatic recovery system and its method

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
RJ01Rejection of invention patent application after publication
RJ01Rejection of invention patent application after publication

Application publication date:20151216


[8]ページ先頭

©2009-2025 Movatter.jp