Method and device for controlling memory in database rollback synchronization

A control method and database technology, which are applied in the redundant operation of data error detection, electrical digital data processing, and response error generation, etc., can solve problems such as the shortage of memory resources of the source system, and relieve the shortage of memory resources. Effect

Active Publication Date: 2021-10-08
WUHAN DAMENG DATABASE
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, when the source-end database executes a large number of transaction operations, the DBA information of a large number of transaction DML operations needs to be cached in the memory, causing the memory resources of the source-end system to be tight.

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 and device for controlling memory in database rollback synchronization
  • Method and device for controlling memory in database rollback synchronization
  • Method and device for controlling memory in database rollback synchronization

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0027] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments It is a part of embodiments of the present invention, but not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention. In addition, the technical features in each embodiment or a single embodiment provided by the present invention can be combined arbitrarily with each other to form a feasible technical solution, but it must be based on the realization of those skilled in the art. When there is a contradiction or cannot be realized, it should be considered that ...

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 embodiment of the present invention provides a memory control method and device in database rollback synchronization. The method includes: if the log analysis thread resolves to the DML operation transaction of the database, then locate the corresponding transaction structure in the hash table according to the ID of the DML operation transaction; if the transaction structure to which the DML operation transaction belongs is located, and the DML operation transaction The value of the dba information stored in the first dba_array structure exceeds the storage threshold of the first dba_array structure, then the second dba_array structure is allocated to the DML operation transaction, and the dba information is stored in the first dba_array structure and the second dba_array structure simultaneously; If the value of the dba information exceeds the sum of the storage threshold of the first dba_array structure and the storage threshold of the second dba_array structure, the dba information is stored in the storage disk, and the memory space occupied by the dba information is released, and the first dba_array structure is added to The end of the dba_array linked list. The method and device for controlling the memory in the database rollback synchronization provided by the embodiments of the present invention alleviate the shortage of memory resources when performing partial rollback synchronization.

Description

technical field [0001] Embodiments of the present invention relate to the technical field of database synchronization, and in particular to a method and device for controlling memory in database rollback synchronization. Background technique [0002] Data synchronization from the database to other heterogeneous databases based on log parsing is to capture the incremental REDO records by reading the REDO log files or archived log files of the database in real time, and then analyze the change vector (Change vector) in the REDO records The content of the database is parsed to obtain the DML (Data Manipulation Language) operation of the database and the corresponding data, and the information is converted and sent to the target database for SQL reverse recovery, and then the synchronization is performed. In order to perform transaction-level synchronization and support partial transaction rollback synchronization, the capture analysis synchronization thread needs to collect all...

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): G06F11/14
CPCG06F11/1471
Inventor 孙峰余院兰赵家威
Owner WUHAN DAMENG DATABASE
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