Memory method and apparatus based on embedded database

A database and embedded technology, which is applied in the field of storage based on embedded databases, can solve problems such as the inability to guarantee data consistency and correctness of embedded databases

Active Publication Date: 2009-05-13
ZTE CORP
View PDF0 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In consideration of the problems existing in the related art in the data storage process of the embedded database, the consistency and correctness of the embedded database data cannot be g

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
  • Memory method and apparatus based on embedded database
  • Memory method and apparatus based on embedded database
  • Memory method and apparatus based on embedded database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] Functional Overview

[0024] As described above, the correctness of the data is very important to the embedded database. After the data is rewritten in the memory, if the rewritten data cannot be stored in the memory correctly, the system will load the wrong data when it is loaded again. data, resulting in system errors. Based on this, the present invention provides a structure using double directories to ensure that the system can be rolled back even if an error occurs during the data storage process, and three identification files are added to mark the location of the error during the system storage process, which is convenient for System error in positioning.

[0025] The term "storage medium" may refer to one or more devices for storing data, including read-only memory (ROM), random-access memory (RAM), magnetic RAM, magnetic core memory, magnetic disk storage media, optical storage media, flash memory device and / or other machine-readable medium for storing inform...

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 storage method based on an embedded database and a device thereof. The method comprises the following steps: a first storage region and a second storage region are set on a memory in advance, wherein, the memory is used for storing data of the embedded database; a plurality of groups of data of the embedded database are subject to updating operation, furthermore, each group of updated data is stored in the first storage region; if a plurality of groups of updated data are successfully stored to the first storage region, a plurality of groups of data stored in the first storage region are copied to the second storage region. By means of the technical proposal, the system can be recovered once again when severe error happens in saving process, and the position of error data can be monitored by setting the two storage regions on the memory and respectively storing data on the two regions.

Description

technical field [0001] The invention relates to the communication field, in particular to a storage method and device based on an embedded database. Background technique [0002] The embedded database is stored in the storage in units of tables. If you want to modify the data in the embedded database in the memory, you need to save the new data to the storage again. However, during the process of saving the new data to the storage, if the system crashes Power-on or reset will cause some new data and some old data to be stored in the memory, which will destroy the consistency of the data. [0003] At present, XML is mainly used to store data. The past method is to save the new data in an intermediate format to the memory after modifying a table, and then rename the intermediate format file to an XML file. If 3 tables are modified at the same time, when the 1st and 2nd tables are all saved, and the system resets when the 3rd table is saved, then the data of the 1st and 2nd ta...

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
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