CN103218450B - A kind of many application real-time data base method of data synchronization - Google Patents

A kind of many application real-time data base method of data synchronization Download PDF

Info

Publication number
CN103218450B
CN103218450B CN201310151798.5A CN201310151798A CN103218450B CN 103218450 B CN103218450 B CN 103218450B CN 201310151798 A CN201310151798 A CN 201310151798A CN 103218450 B CN103218450 B CN 103218450B
Authority
CN
China
Prior art keywords
data
application
real
time
time data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201310151798.5A
Other languages
Chinese (zh)
Other versions
CN103218450A (en
Inventor
吴庆曦
王瑾
彭晖
靳晶
魏娜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nari Technology Co Ltd
Original Assignee
Nari Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nari Technology Co Ltd filed Critical Nari Technology Co Ltd
Priority to CN201310151798.5A priority Critical patent/CN103218450B/en
Publication of CN103218450A publication Critical patent/CN103218450A/en
Application granted granted Critical
Publication of CN103218450B publication Critical patent/CN103218450B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of many application real-time data base method of data synchronization, in real-time data base, multiple data that are different under application can be carried out real-time synchronization, its step: 1) data element in real-time data base is applied by the definition of specific territory is affiliated in dictionary table; 2) in real-time data base, each application has and uses a data file of this application correspondence, between application, in the shared data element data file under each application, has a copy; 3), in the time that data change, real-time data base is determined the application under delta data according to definition, and Data Update is synchronized in the data file of these application. The present invention can realize independently and parallel access and operation the affiliated data in real-time data base, has improved the data efficiency of concurrency and the real-time data base of data access; And real-time data base carries out real-time synchronization to the variation of data, data consistency and security are improved.

Description

A kind of many application real-time data base method of data synchronization
Technical field
The present invention relates to a kind of many application real-time data base method of data synchronization, belong to Real-Time Databases System Technique application neckTerritory.
Background technology
Real-time data base is a branch of Database Systems development, and it is applicable to process constantly update fast-changingData and there is the issued transaction of time restriction. Real-Time Databases System Technique is the product that real-time system and database technology combineThing, it can be used for automatic collection, storage and the supervision of plant processes, data for many years that can the each technical process point of on-line storage,Clear, accurate operational circumstances picture can be provided; In real-time data base, if a data entity is shared in all application,When in the face of increasing application, there will be access efficiency low, the problem that real-time declines. If adopt many parts of entities, againThere is the problem of data consistency, cause system data security to decline.
Summary of the invention
For solving now methodical deficiency, the object of this invention is to provide synchronously side of a kind of many application real time data database datasFormula method, according to the data under application memory application, and while keeping being applied in more new data, makes a number by real time dataAccording to the Data Update in file can real-time synchronization in the data file of other application.
For achieving the above object, technical scheme of the present invention is as follows:
A kind of many application real time data database data methods of synchronization, is characterized in that, in real-time data base, each application hasThe data file that has comprised its required all data, application is used own affiliated data, and real-time data base ensures an application instituteThe uniformity that belongs to the common data in data file, is characterized in that comprising following three steps:
(1) data element in real-time data base (table, record and territory) can be fixed by specific territory in dictionary tableApplication under justice;
(2) in real-time data base, each application has and uses a data file of this application correspondence, between application, is total toWith the data file of data element under each application in have a copy;
(3), in the time that data change, real-time data base is determined the application under delta data according to definition, and by dataRenewal is synchronized in the data file of these application.
Aforesaid many application real time data database data methods of synchronization, is characterized in that: in described step (1), for tableShow that the field of applying under data element is integer numerical value, each bit of this numerical value represents a specific application, shouldApplication equals 2 the several of square power by a value and identifies, n the application that bit represents, the n-1 that the ident value of application is 2Power, n is natural number.
Aforesaid many application real time data database data methods of synchronization, is characterized in that: in described step (2), and Mei GeyingWith taking independently data file storage real time data database data, this data file, comprises and only comprises the reality that belongs to this applicationTime database data.
In described step (3), real-time data base is in the time of synchronous real time data, in accordance with the following steps:
(a) take out the affiliated application field of record that is modified data, application field under application field and table under territory, instituteState the affiliated application field of record, under territory, under application field and table, application field is done AND operation bit-by-bit and is obtained end value;
(b) each bit to the above results value, 1 is calculated its corresponding application identities value 2n-1 if, noDo not operate;
(c) the application identities value each being calculated, writes by the data of variation the real-time number that this application is usedAccording to storehouse.
The beneficial effect that the present invention reaches:
The present invention is by said method, by the data in real-time data base according to storing respectively under different application,Ensure that data carry out in real time synchronously between multiple application, its application can realize solely the affiliated data in real-time data base simultaneouslyVertical and parallel access and operation, improved the data efficiency of concurrency and the real-time data base of data access; And in real timeDatabase carries out real-time synchronization to the variation of data, has improved data consistency and security.
Brief description of the drawings
Describe the present invention in detail below in conjunction with the drawings and specific embodiments;
Fig. 1 is the visioning procedure of the real-time database data of many application.
Fig. 2 is the synchronous flow process of many application real time data database datas.
Detailed description of the invention
For technological means, creation characteristic that the present invention is realized, reach object and effect is easy to understand, below in conjunction withDetailed description of the invention, further sets forth the present invention.
Referring to Fig. 1 and Fig. 2, the present invention is to provide a kind of many application real-time data base method of data synchronization, first it beApplication under data element in real-time data base creates. In data dictionary, field of independent definition is for store dataThe affiliated application of element, this field is integer numerical value, each bit of this numerical value represents a specific application, this applicationEqualed 2 the several of square power by a value and identify, the application of n bit representative, the n-1 power that the ident value of application is 2.
To be applied as example under table, for Table A, the affiliated application field in table definition table is application under table, itsType is integer numerical value, and each bit represents an application, and this bit is that 1 expression Table A belongs to this application, is 0 expression Table ADo not belong to this application.
Table Properties table
Table name Application under table
A 25
Table A belongs to application 1(ident value 1), application 4(ident value 8) and application 5(ident value 16), therefore under Table A, appliesThe value of field is 20+23+24=25.
In like manner, the territory definition list in data dictionary and Definition list of records also comprise similar field to characterize territory and recordAffiliated application message.
The mode of the invention provides can be created according to the attaching information of data element (table, record and territory) real-time data baseBuild the affiliated database of application, generated data file, and corresponding data are written in the data file of application, form applicationExclusive data, flow process as shown in Figure 1. Real-time data base is in the time building application real time data, in accordance with the following steps:
(1) data element in real-time data base (table, record and territory) can be fixed by specific territory in dictionary tableApplication under justice; The i.e. table definition table in scan-data dictionary first, by value and the application of application field under the table of every tableIdent value does AND operation bit-by-bit, and whether result represent that for or not 0 this table belongs to this application, otherwise do not belong to, and will belong to this applicationTable join application use real-time data base;
(2) in real-time data base, each application has and uses a data file of this application correspondence, between application, is total toWith the data file of data element under each application in have a copy;
The present embodiment, after above-mentioned steps (1), then scans the territory definition of this table correspondence, will under the territory table in each territory, answerDo AND operation bit-by-bit by value and the application identities value of field, whether result represent that for or not 0 this territory belongs to this application, otherwise do not belong toIn, and the territory that belongs to this application is joined to the table of response;
(2), in the time that data change, real-time data base is determined the application under delta data according to definition, and by dataRenewal is synchronized in the data file of these application.
Be the record in scan table, the value of the affiliated application field of each record and application identities value are done to step-by-step and fortuneCalculate, whether result represent that for or not 0 this territory belongs to this application, otherwise do not belong to, and record data are written to the reality that application is usedTime database.
(4) all tables are finished to above operating procedure (1) to step (3), the real-time data base that application is used createsComplete.
The mode that the invention provides is in the time that application is upgraded real-time database data, and the data that are updated will be according to its corresponding numberBe synchronized to according to information under the application of element in the data file of corresponding affiliated application, flow process as shown in Figure 2. Real-time data base existsWhen synchronous real time data, in accordance with the following steps:
1) take out the affiliated application field A of record that is modified data, application field C under application field B and table under territory,Three values are done AND operation bit-by-bit and are obtained result D.
2) each bit to D, 1 is calculated its corresponding application identities value 2n-1 if, otherwise does not operate.
3) the application identities value each being calculated, writes by the data of variation the real time data that this application is usedStorehouse.
The many application real time data database data method of synchronization the present invention relates to is in conjunction with the independent development that is operated in application layerReal-time storehouse on realize, do not rely on concrete operating system, be applicable to various operating system. The many application that the present invention relates to are realTime database in phase mode ensured portability, can be along with real-time storehouse security of system, stably operate in IBMIn the operating system platforms such as AIX, SunSolaris, AlphaTru64, HPUX, Linux, Windows; System programming language is adoptedWith ANSIC/C++, and meet IEEEPOSIX.2 standard.
More than show and described general principle of the present invention and principal character and advantage of the present invention. The technology of the industryPersonnel should understand, and the present invention is not restricted to the described embodiments, and the just explanation of describing in above-described embodiment and description originallyThe principle of invention, without departing from the spirit and scope of the present invention, the present invention also has various changes and modifications, these changesChange and improve and all fall in the claimed scope of the invention. The claimed scope of the present invention by appending claims andEquivalent defines.

Claims (5)

1. the real-time data base of application a more than method of data synchronization, is characterized in that, in real-time data base, each application has bagContained the data file of its required all data, application is used own affiliated data, and it comprises step:
(1) in real-time data base, each data element is applied define it in data dictionary under; In data dictionary table, arrangeA field is used to specify the application under this data element, and this field represents the mode of different application by different bits,The application attaching information that comprises data element;
(2) each application has independently data file, has comprised all data that belong to this application; Different application is used it certainlySome data files, access data wherein and the data in data file under it are upgraded;
(3) renewal of each data element, can be synchronized in every other application; Real-time data base is according to the data element being updatedElement is counter looks into its affiliated application, and determines the data entity that needs renewal, finally the data of renewal is written to and has comprised this dataIn the affiliated data entity of application of element.
2. many application real-time data base method of data synchronization according to claim 1, is characterized in that: in described step(1) in, being used to specify the field of applying under this data element is integer numerical value, and each bit of this integer numerical value representsAn application, this application equals 2 the several of square power by a value and identifies, the application of n bit representative, the mark of applicationValue is 2 n-1 power, and n is natural number.
3. many application real-time data base method of data synchronization according to claim 1, is characterized in that: in described step(2) in, independently data file storage real time data database data is taked in each application, and this data file comprises and belongs to this applicationReal time data database data.
4. many application real-time data base method of data synchronization according to claim 1, is characterized in that: described data elementFor table, record or territory.
5. many application real-time data base method of data synchronization according to claim 1, is characterized in that: described step (3)In, real-time data base is in the time of synchronous real time data, in accordance with the following steps: under (a) taking out the record that is modified data, apply wordSection, application field under the affiliated application field in territory and table, application field under described record, under the affiliated application field in territory and tableApplication field is done AND operation bit-by-bit and is obtained end value;
(b) each bit to the above results value, 1 is calculated n-1 time that its corresponding application identities value is 2 ifSide, n is natural number, otherwise does not operate;
(c) the application identities value each being calculated, writes by the data of variation the real time data that this application is usedStorehouse.
CN201310151798.5A 2013-04-26 2013-04-26 A kind of many application real-time data base method of data synchronization Active CN103218450B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310151798.5A CN103218450B (en) 2013-04-26 2013-04-26 A kind of many application real-time data base method of data synchronization

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310151798.5A CN103218450B (en) 2013-04-26 2013-04-26 A kind of many application real-time data base method of data synchronization

Publications (2)

Publication Number Publication Date
CN103218450A CN103218450A (en) 2013-07-24
CN103218450B true CN103218450B (en) 2016-05-04

Family

ID=48816237

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310151798.5A Active CN103218450B (en) 2013-04-26 2013-04-26 A kind of many application real-time data base method of data synchronization

Country Status (1)

Country Link
CN (1) CN103218450B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107273522B (en) * 2015-06-01 2020-01-14 明算科技(北京)股份有限公司 Multi-application-oriented data storage system and data calling method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1092886A (en) * 1992-12-08 1994-09-28 艾利森电话股份有限公司 Be used for the system that database backs up
CN1472688A (en) * 2003-07-09 2004-02-04 北京四方继保自动化有限公司 Data monitoring method in electric network safe dynamic monitoring system
CN1542652A (en) * 2003-11-06 2004-11-03 北京四方继保自动化有限公司 Application method and network system of fully distributed protected information processing system real-time database
US7424496B1 (en) * 2002-03-20 2008-09-09 Applied Micro Circuits Corporation Asymmetric coherency protection
US8209289B1 (en) * 2005-01-27 2012-06-26 Netapp, Inc. Technique for accelerating the creation of a point in time representation of a virtual file system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1092886A (en) * 1992-12-08 1994-09-28 艾利森电话股份有限公司 Be used for the system that database backs up
US7424496B1 (en) * 2002-03-20 2008-09-09 Applied Micro Circuits Corporation Asymmetric coherency protection
CN1472688A (en) * 2003-07-09 2004-02-04 北京四方继保自动化有限公司 Data monitoring method in electric network safe dynamic monitoring system
CN1542652A (en) * 2003-11-06 2004-11-03 北京四方继保自动化有限公司 Application method and network system of fully distributed protected information processing system real-time database
US8209289B1 (en) * 2005-01-27 2012-06-26 Netapp, Inc. Technique for accelerating the creation of a point in time representation of a virtual file system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
开放实时数据库及其在调度自动化系统中的应用;周宁等;《电网技术》;20061031;第30卷;第171-175页 *
电网调度广域分布式实时数据库系统体系架构和关键技术;翟明玉等;《电力系统自动化》;20130125;第37卷(第2期);第67-71页 *

Also Published As

Publication number Publication date
CN103218450A (en) 2013-07-24

Similar Documents

Publication Publication Date Title
CN105138635B (en) A method of it is compared using cryptographic Hash and carries out data increment duplication
CN108197181B (en) Compression storage method of time sequence data, electronic equipment and storage medium
CN104899295B (en) A kind of heterogeneous data source data relation analysis method
CN103853820A (en) Data processing method and data processing system
CN102752372A (en) File based database synchronization method
CN105930493A (en) Method and system for data synchronization between different databases
CN110727684B (en) Incremental data synchronization method for big data statistical analysis
CN107861989A (en) Partitioned storage method, apparatus, computer equipment and the storage medium of data
CN105975502A (en) Method for realizing incremental data extract based on CDC (Change Data Capture) mode
CN102375827B (en) Method for fast loading versioned electricity network model database
CN109857803A (en) Method of data synchronization, device, equipment, system and computer readable storage medium
CN105608126A (en) Method and apparatus for establishing secondary indexes for massive databases
CN106469219A (en) A kind of method that embedded device configuration file synchronously compares
CN102857949A (en) Method and device for planning data consistency guarantees
CN103678696A (en) Method and device for controlling data read-write separation
CN104317957A (en) Open platform and system for processing reports and report processing method
CN104714957A (en) List structure changing method and device
CN105446824B (en) Table increment acquisition methods and long-distance data backup method
CN105653696A (en) Data processing method and system for nuclear power plant databases
CN103606032A (en) Two-dimensional grid GIS data concentration method
CN103218450B (en) A kind of many application real-time data base method of data synchronization
CN103984723A (en) Method used for updating data mining for frequent item by incremental data
CN106802928A (en) Power network historical data management method and its system
CN103455575A (en) Method and device for statistic analysis of data
CN106649452A (en) Method of generating template graphics

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant