Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Database synchronization method based on drive encapsulation

A database and driver-side technology, applied in the field of relational databases, can solve the problems of limited support for heterogeneous data synchronization, limited data synchronization functions, and no database support, and achieve the effect of good data synchronization performance

Active Publication Date: 2017-11-17
THE 28TH RES INST OF CHINA ELECTRONICS TECH GROUP CORP
View PDF4 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Many synchronization software are developed by database manufacturers themselves. As supporting tools for their own database software, they do not support databases from other manufacturers.
[0004] (2) The supported data synchronization function is limited
Many data synchronization software only support the synchronization of homogeneous data, but have limited support for heterogeneous data synchronization
[0005] (3) Restricted by the database, it has a great impact on database performance
Since none of the database vendors has opened their redo log formats, the scanning of redo logs must be implemented through the interfaces or tools provided by the database vendors, which is restricted by the data vendors. If the database vendors refuse to provide such interfaces, they can only be scanned through trigger implementation

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
  • Database synchronization method based on drive encapsulation
  • Database synchronization method based on drive encapsulation
  • Database synchronization method based on drive encapsulation

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0040] Such as Figure 9 As shown, a database synchronization method based on driver encapsulation includes the following steps:

[0041] (1) Encapsulate the native database driver to form the driver end of the synchronization method, which provides the same interface as the native database driver interface;

[0042] (2) When the application accesses the database through the interface provided by the driver, if it is a database query, the database is directly queried and the result is returned; otherwise, the modification operation is recorded in the log file while the database is being accessed;

[0043] (3) The driver sends the contents of the log file to the server;

[0044] (4) The server extracts the modification operation according to the content of the log file, synchronizes the modification operation to other databases, and then returns the synchronization result to the driver;

[0045] (5) The driver side backs up the log files.

[0046] In step (2), the steps of r...

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 database synchronization method based on drive encapsulation. The method comprises the following steps: encapsulating native database drives to form a drive end of the synchronization method, wherein interfaces provided by the drive end are the same as interfaces of the native database drives; when database accessing is carried out by an application through the interfaces provided by the drive end, directly querying a database and returning a result if the database accessing is database querying, and otherwise, recording modification operations to a log file while the database accessing is carried out; sending contents of the log file to a service end by the drive end; extracting the modification operations by the service end according to the contents of the log file, synchronizing the modification operations to other databases, and then returning a synchronization result to the drive end; and backing up the log file. The method of the invention does not depend on technical constraints of database vendors, can support various relational databases, and support synchronization of heterogeneous data, and has good data synchronization performance in a case of low loads on the databases.

Description

technical field [0001] The invention relates to the technical field of relational databases, in particular to a database synchronization method based on drive encapsulation. Background technique [0002] With the rapid development of the Internet, data has become more and more important. As a traditional data storage carrier, relational databases are being widely used. Almost all industries will store industry data in databases. As a data carrier, the database only serves as a static storage function for data, but does not involve the dynamic relationship between data (data backup, data aggregation / distribution). Therefore, a large number of database synchronization software have emerged. These synchronization software have realized the basic database synchronization function, which is to capture the changes of the source database data, and send the changed data to the destination database for storage, so as to maintain the source and destination data. End database data con...

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
IPC IPC(8): G06F17/30
CPCG06F16/24578G06F16/27G06F16/284
Inventor 焦涌徐立洲朱海文王璐耿会东张磊
Owner THE 28TH RES INST OF CHINA ELECTRONICS TECH GROUP CORP
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products