Method and device for restoring data in embedded database

A database and embedded technology, which is applied in the direction of data error detection, electrical digital data processing, special data processing applications, etc., to solve data anomalies, loss, and increase the burden of physical storage resources in embedded systems, etc. problem, to achieve the effect of improving fault tolerance and saving storage resources

Inactive Publication Date: 2010-11-24
ZTE CORP
View PDF6 Cites 21 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

With the rapid development of embedded technology, users have higher and higher requirements for data stability. However, when the single board software encounters power failure or program abnormal reset during operation, data may be abnormal or lost. , so the data needs to be backed up for data recovery when the data is abnormal or lost
[0003] In the prior art, for data recovery in embedded systems, some of them distinguish whether the data content is consistent by compar

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 restoring data in embedded database
  • Method and device for restoring data in embedded database
  • Method and device for restoring data in embedded database

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0062] It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0063] see figure 1 , the present invention proposes an embodiment of the method for data recovery in an embedded database, which includes:

[0064] Step 101, judging whether the data files and data file structures in the primary database and the backup database are wrong;

[0065] Step 102, when the data file and / or data file structure in the main database is wrong, and the data file and data file structure in the backup database are correct, update the data file in the main database to the data file in the backup database;

[0066] In this step, the data files in the primary database are updated to the data files in the backup database, so as to restore the data files in the primary database.

[0067] Step 103, when the data files and data file structures in the main database are correct, and the data files and / or...

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 and device for restoring data in an embedded database. The method comprises the following steps: judging whether the data files and the data file structures in a master database and a backup database are wrong; updating the data files in the master database into the data files in the backup database when the data files and/or the data file structures in the master database are wrong while the data files and the data file structures in the backup database are correct; and updating the data files in the backup database into the data files in the master database when the data files and the data file structures in the master database are correct while the data files and/or the data file structures in the backup database are wrong. The method and device provided by the invention restore the data in the embedded database with wrong data files and/or data file structures, thus saving the storage resources in the embedded system and improving the fault tolerance of the databases in the embedded system.

Description

technical field [0001] The invention relates to the technical field of embedded systems, in particular to a method and device for restoring data in an embedded database. Background technique [0002] In embedded systems, such as in large-capacity communication transmission equipment, the single-board software often needs to manage the data in the embedded system through the data management module during the operation process. The data management module generally uses Embedded databases, or file table structures similar to databases are managed. In order to ensure that the embedded system data is stable and persistent, these data tables need to be stored on physical storage media. With the rapid development of embedded technology, users have higher and higher requirements for data stability. However, when the single-board software encounters power failure or program abnormal reset during operation, data may be abnormal or lost. , so it is necessary to back up the data so tha...

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/30G06F11/14
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