Method of internal data base main-spare synchronization

A database and memory technology, applied in synchronization devices, digital transmission systems, electrical components, etc., can solve problems such as wasting space and data loss, and achieve the effect of reducing transmission load, reducing data space waste, and improving operating speed.

Inactive Publication Date: 2006-11-22
ZTE CORP
View PDF1 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The technical solution described in this patent writes all the changed data into the buffer when the master and backup are synchronized. It is quite large, and the buffer is equally large, which will undoubtedly waste space; if the size of the buffer is smaller than the database, there will be a possibility of data loss

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method of internal data base main-spare synchronization
  • Method of internal data base main-spare synchronization
  • Method of internal data base main-spare synchronization

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0029] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments.

[0030] figure 1 It is the main flow chart of the technical solution of the present invention. like figure 1 As shown, the method for master-backup synchronization of the memory database proposed by the present invention includes the following steps: (1) initializing the out-of-sync image registration area, out-of-sync image area, out-of-sync queue and transmission data control area of ​​the database. In the present invention, the following data structures are created:

[0031] Out-of-sync image registration area: used to record all relevant attributes and operation methods of tables that may need to be synchronized;

[0032] Out-of-sync image area: It is composed of out-of-sync flag and split label field. The out-of-sync flag is used to store the type of record change in the table. When the record is modified, the split tag is used to store...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for master-backup synchronization of memory databases, which comprises the following steps: initializing the database; registering tables to be synchronized in the database in the out-of-synchronization image registration area, and initially corresponding to the out-of-synchronization image area and out-of-synchronization Queue; when the main database changes, write the change record number of the change table into the out-of-sync queue of the corresponding table, and record the corresponding change in the corresponding out-of-sync image area; send the out-of-sync record to the receiving end database in packages, and at the same time Delete the corresponding records in the out-of-sync image area and out-of-sync queue; the receiver database accepts the data, updates the corresponding table records, and returns a response message; after receiving the synchronization confirmation, continue to synchronize other out-of-sync data. The present invention sets the out-of-sync image area to record the record changes, and then controls the transmission of several steps of records through the transmission control data area, so that all changed records can be recorded and real-time synchronization can be continuously and efficiently performed.

Description

technical field [0001] The invention relates to database backup technology, in particular to a method for synchronously recovering databases. Background technique [0002] The primary technique for dealing with catastrophic failures is database backups. Typically, all databases and logs are periodically backed up on inexpensive storage media. In the event of a catastrophic system failure, the database can be reloaded from the most recent backup and the system started. [0003] To avoid losing all updates since the last backup, you typically want to back up the syslog to an alternate storage medium more frequently. Since the system log is much smaller than the database, it can be backed up more frequently. This way users don't lose all transactions since the last backup. The database can be restored to the state it was in at the time of the crash by recovering all committed transactions in the log. Also, start a new log after every database backup. Therefore, when recov...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Patents(China)
IPC IPC(8): H04L7/00H04B1/74
Inventor 肖旸周晶陈于锋
Owner ZTE CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products