Method for data synchronization between heterogeneous relational databases
A data synchronization and database technology, applied in the direction of electrical digital data processing, special data processing applications, instruments, etc., can solve problems such as failure to meet the business needs of Sqlserver database, use maintenance and upgrade problems, etc., to achieve flexible expansion of synchronization range, reduce The effect of small resource overhead
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0062] The embodiment of the present invention provides a data synchronization method between heterogeneous relational databases, which is applied to the target database to synchronize the source database, as shown in the attached figure 1 Shown, specifically include the following:
[0063] Step S11, according to business requirements, respectively determine the source database for synchronization, the target database for synchronization, the database type, and the database table of the source database and the database table of the target database involved; the database table is a set of a series of two-dimensional arrays, Used to represent and store relationships between data objects;
[0064] Step S12, using java language to write the function code of the synchronization service, and performing targeted adaptation to the SQL syntax for the source database and the target database type, and packaging the function code of the synchronization service into a deployable jar file; ...
Embodiment 2
[0082] In order to achieve bidirectional synchronization between the first database and the second database at the same time in the method of Embodiment 1, triggers are added to both databases. In this case, synchronization services a and b can be reused, that is, synchronization services a and b each periodically perform "pull from the message queue" - "assemble data and write" - "query local messages to be synchronized" - — The process of "assembling a message and delivering it".
[0083] The embodiment of the present invention provides that the present invention also provides another data synchronization method between heterogeneous relational databases, which can realize two-way synchronization between the first database and the second database, as shown in the attached figure 2 As shown, the specific implementation method includes the following steps:
[0084] Step S21, respectively determine the first database, the second database, the database type, and the database t...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com