CN100343814C - Data management system and method - Google Patents

Data management system and method Download PDF

Info

Publication number
CN100343814C
CN100343814C CNB2005100891308A CN200510089130A CN100343814C CN 100343814 C CN100343814 C CN 100343814C CN B2005100891308 A CNB2005100891308 A CN B2005100891308A CN 200510089130 A CN200510089130 A CN 200510089130A CN 100343814 C CN100343814 C CN 100343814C
Authority
CN
China
Prior art keywords
data
fam
bam
consistance
sign
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.)
Expired - Fee Related
Application number
CNB2005100891308A
Other languages
Chinese (zh)
Other versions
CN1851658A (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.)
Shanghai Huawei Technologies Co Ltd
Original Assignee
Shanghai Huawei Technologies 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 Shanghai Huawei Technologies Co Ltd filed Critical Shanghai Huawei Technologies Co Ltd
Priority to CNB2005100891308A priority Critical patent/CN100343814C/en
Publication of CN1851658A publication Critical patent/CN1851658A/en
Application granted granted Critical
Publication of CN100343814C publication Critical patent/CN100343814C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

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

Abstract

The present invention discloses a data management system. Consistency signs are set in BAM. When FAM running data in BAM are consistent with backup data in BAM after the data management system completes data synchronization operation, the consistency signs are set to be consistent, and then, the consistency signs are immediately set to be inconsistent when data are firstly modified. The present invention also provides a data management method. The data management system and the data management method provided by the present invention can mark the inconsistent condition of the FAM running data in BAM and the backup data in FAM in time after the data are firstly modified.

Description

A kind of data management system and method
Technical field
The present invention relates to data management technique, particularly the data check of distributed and distributed and method of data synchronization.
Background technology
The normal distributed that adopts of current communication facilities comprises a plurality of preceding management system (FAM) and user oriented back management systems (BAM) that are used to carry out application task.BAM carries out centralized stores and management to the service data of a plurality of FAM, and each FAM only stores and manage the Backup Data of self service data and service data, when FAM restarts with Backup Data as self initial launch data.When BAM receive that the user sends at a certain FAM during such as the data modification instruction of FAM1, BAM is according to the FAM1 service data of data modification instruction real time modifying self storage, and its service data of notice FAM1 real time modifying, the service data perseverance of storing with the FAM1 service data and FAM1 self that guarantees to store among the BAM is consistent, to guarantee normal user's operation.But Backup Data is not a real time modifying among the BAM, so certainly exist Backup Data and inconsistent time period of service data among the BAM, if during this period FAM1 restart with Backup Data as the initial launch data, then can be owing to the inconsistent user's operation exception that causes of FAM1 service data among the initial launch data of FAM1 and the BAM.In order to guarantee that Backup Data is consistent with FAM1 service data among the BAM among the BAM, need carry out synchronously both.
Fig. 1 is the structural drawing of the distributed of prior art, is example with a certain FAM among BAM and a plurality of FAM such as FAM1 among Fig. 1.The distributed of prior art comprises: FAM1 101 and BAM 102.
Wherein, FAM1 101 comprises: the application module 110 that is used to realize the various application functions of FAM1 101; Be used for the data management module 113 that service data and the Backup Data in the Backup Data district 116 to internal storage data district 115 manage, comprise: data modification unit 177, data check unit 178, data synchronisation unit 179 and consistance sign F 170; Be used to realize the communication module 114 of the remote functionality of FAM1 101, it can guarantee the proper communication between FAM1 101 and the BAM 102; The Backup Data district 116 of Backup Data of the internal storage data district 115 of the service data of storage FAM1 101 and storage FAM1 101, the composition of the data recording in internal storage data district 115 and Backup Data district 116 and put in order identical.BAM102 comprises: be used to provide the human-computer interaction module 120 of man-machine interface, it is made amendment to data for the user and safeguards, the data modification instruction that the user sends arrives data management module 123 by human-computer interaction module 120; Be used for the data management module 123 that the data to data field 125 storage manage, comprise data modification unit 167, data check unit 168 and data synchronisation unit 169; Be used to realize the communication module 124 of the remote functionality of BAM 102, it can guarantee the proper communication between BAM 102 and the FAM1 101; Store the data field 125 of the service data of a plurality of FAM, data field 125 comprises the FAM1_B data field 152 of storage FAM1 service data, the composition in FAM1_B data field 152 and internal storage data district 115 and Backup Data district 116 and put in order identical.
Carry out interactive operation by communication module 114 and communication module 124 between data management module 113 and the data management module 123, such as mutual in the data modification process of the data modification unit 177 that is used for data modification and data modification unit 167; Be used for mutual in the data check process of the data check unit 178 of data check and data check unit 168; Be used for mutual in data synchronization process of the data synchronisation unit 179 of data sync and data synchronisation unit 169.Interactive operation between the relevant above-mentioned module of hereinafter mentioning is all represented to be undertaken by communication module 114 and communication module 124.
Specifically, data management module 113 comprises: data modification unit 177, data check unit 178, data synchronisation unit 179 and consistance sign F 170.Wherein, whether consistance sign F 170 is used for characterizing the Backup Data in Backup Data district 116 identical with service data in the FAM1_B data field 152, the F value is 1 or 0, F=1 represents that data are identical among the present invention, F=0 represents that data are inequality, data synchronisation unit 179 can be read and write consistance sign F 170, and consistance sign F170 can be write in data check unit 178; Data modification unit 177 is used for the data modification operation, can receive the data modification message from the data recording that comprises modification of data modification unit 167, and with the data recording write memory data field 115 of revising; Data check unit 178 is used for the data check operation, can receive the data check instruction of verifying data Check_B from comprising of data check unit 168, and read from Backup Data district 116 and to verify data Check_F, and relatively whether Check_B is identical with Check_F, if both are identical, then data check unit 178 puts 1 with consistance sign F 170, if both differences, then data check unit 178 puts 0 with consistance sign F 170; Data synchronisation unit 179 is used for the data sync operation, can read consistance sign F 170, and judge whether F equals 0, if F is not equal to 0, illustrate that then Backup Data district 116 is identical with the data of FAM1_B data field 152, then data synchronisation unit 179 is not carried out data synchronous operation, if F equals 0, illustrate that then Backup Data district 116 is inequality with the data of FAM1_B data field 152, then data synchronisation unit 179 is carried out data synchronous operation and is sent the data sync instruction to data synchronisation unit 169, reception is from the synchrodata Syn_B of data synchronisation unit 169, data synchronisation unit 179 writes Backup Data district 116 with synchrodata Syn_B, and consistance sign F 170 is put 1.
The service data of internal storage data district 115 storage FAM1 101, comprise a plurality of according to certain tactic data recording, when the user sends the data modification instruction, the corresponding service data meeting real time modifying of storage in the internal storage region 115, the service data of internal storage region 115 storages is lost after the power down; The Backup Data of Backup Data district 116 storage FAM1 101, comprise a plurality of according to certain tactic data recording, when the user sends the data modification instruction, the respective backup data of storage can real time modifying in the Backup Data district 116, the Backup Data of storing in the Backup Data district 116 after the power down is not lost, when FAM1 101 is restarted, internal storage data district 115 from Backup Data district 116 duplicate backup data as the initial launch data.
Specifically, data management module 123 comprises data modification unit 167, data check unit 168 and data synchronisation unit 169.Wherein, data modification unit 167 is used for the data modification operation, can receive from the user's data modify instruction and with the data recording of revising by human-computer interaction module 120 and write FAM1_B data field 152; Data check unit 168 is used for the data check operation, can read from FAM1_B data field 152 and verify data Check_B, and transmission comprises that the data check message of verifying data Check_B is to data check unit 178; Data synchronisation unit 169 is used for the data sync operation, can receive the data synchronization request from data synchronisation unit 179, reads synchrodata Syn_B from FAM1B data field 152, and synchrodata Syn_B is sent to data synchronisation unit 179.
Fig. 2 is the data modification process flow diagram of prior art, and the data modification flow process of prior art may further comprise the steps:
Step 201~203: data modification unit 167 is received from the user's data modify instruction by human-computer interaction module 120; Data modification unit 167 writes FAM1_B data field 152 with the data recording of revising, and sends the data modification message of the data recording that comprises modification to data modification unit 177; Data modification unit 177 is with the data recording write memory data field 115 of revising, process ends.
Fig. 3 is the data check process flow diagram of prior art, and the data check flow process of prior art may further comprise the steps:
Step 301~307: data check unit 168 sends to FAM1_B data field 152 and gets the verification data command; Data check unit 168 reads from FAM1_B data field 152 verifies data Check_B, and Check_B comprises the data recording that FAM1_B data field 152 is all; Data check unit 168 sends to data check unit 178 and comprises the data check message of verifying data Check_B; Data check unit 178 sends to Backup Data district 116 and gets the verification data command; Data check unit 178 reads from Backup Data district 116 verifies data Check_F, and Check_F comprises the data recording that Backup Data district 116 is all; Data check unit 178 compares all data recording among Check_B and the Check_F one by one, according to comparative result, consistance sign F 170 is set, if Check_B and Check_F are inequality, then data check unit 178 puts 0, process ends with consistance sign F 170, if Check_B is identical with Check_F, then data check unit 178 puts 1 with consistance sign F 170, and process ends is an example with Check_B and Check_F situation inequality among Fig. 3.
Fig. 4 is the data sync process flow diagram of prior art, and the data sync flow process of prior art may further comprise the steps:
Step 401: data synchronisation unit 179 reads consistance sign F 170 and judges whether F equals 0, if F=0, then execution in step 402 and subsequent step thereof, otherwise, process ends, the situation with F=0 among Fig. 4 is an example;
Step 402~407: data synchronisation unit 179 sends data synchronization request to data synchronisation unit 169; Data synchronisation unit 169 sends to FAM1_B data field 152 and gets the synchrodata instruction; Data synchronisation unit 169 reads synchrodata Syn_B from FAM1_B data field 152, and Syn_B comprises the data recording that the FAM1_B data field is all; Data synchronisation unit 169 sends synchrodata Syn_B to data synchronisation unit 179; Data synchronisation unit 179 writes synchrodata Syn_B to Backup Data district 116, and synchrodata Syn_B has covered all legacy data records in Backup Data district 116; Data synchronisation unit 179 puts 1, process ends with consistance sign F170.
Common, in adopting the data management system of prior art, data modification determined by the opportunity that external user sends the data modification instruction opportunity, and data check opportunity is periodic, data sync can be opportunity: periodic, and in morning every day minimum time of portfolio for example; Perhaps, periodically combine, for example set a synchronizing cycle of 1 hour,, otherwise wait for that the next cycle carries out again, can not have influence on system's regular traffic with the assurance data sync if cycle FAM1 load then is lower than certain thresholding and then carries out synchronously with idle-detection; Perhaps, manually issue, the user issues data sync instruction at any time and carries out synchronously, for example to adapt to special applications scene such as system upgrade.
In the practical application, adopt the data management system of prior art, the choose opportunities of its data modification, data check and data sync is fully independently.After data management system is finished the data sync operation, among the BAM among FAM1 service data and the BAM Backup Data reach consistent, consistance sign F=1 among the FAM1 is set, after this operation of the data modification first that carries out will make among the BAM that Backup Data is inconsistent in the FAM1 service data and BAM, and the verification of the periodic data of prior art can not guarantee to carry out the data check operation first immediately behind the data modification EO opportunity, that is to say and to guarantee the F among the FAM1 is being put 0 behind the data modification first at once, then from data modification EO first to after the time period T of the EO of data check first in, both just data sync arrived opportunity, still may can not carry out owing to F=1 causes data sync operation, the result makes among the BAM that Backup Data loses the synchrodyne meeting and keeps inconsistent state in the FAM1 service data and BAM.In time period T, if FAM1 restarts, FAM1 will with BAM in the inconsistent Backup Data of FAM1 service data as the initial launch data, thereby cause user's operation exception.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of data management system, can after the operation of data modification first, revise the consistance sign immediately, thereby whether in time identify among the BAM in the FAM service data and FAM Backup Data consistent.
The present invention also aims to provide a kind of data managing method, can after the operation of data modification first, revise the consistance sign immediately, thereby whether in time identify among the BAM in the FAM service data and FAM Backup Data consistent.
An aspect according to above-mentioned purpose the invention provides two kinds of data management systems.
A kind of data management system of the present invention, the preceding management system FAM that comprises user oriented back management system BAM and at least one execution application task, each FAM comprises the application module of carrying out various application functions, the communication module that communicates with BAM, the internal storage data district of storage running data, the Backup Data district of store backup data and the data management module that the storage data are managed, wherein, data management module further comprises the data modification unit that is used to revise data, be used to verify the data check unit of data, data synchronisation unit that is used for synchrodata and the consistance sign (170) that is used for determining that service data and Backup Data be whether consistent; Communication module, the FAM data field of storage FAM service data and the data management module that storage data in the data field are managed that BAM comprises the human-computer interaction module that receives and carry out user instruction, communicates with FAM; The data management module of described BAM side comprises:
Consistance sign (501) is used for determining whether the BAM side data is consistent with FAM side service data;
The data modification unit, being used to receive user instruction revises data and amended data is write the FAM data field, its service data is revised in the data modification unit of notice FAM side, the consistance sign (501) that the BAM side is set is inconsistent for data, and sends the verification instruction to the data check unit of this side;
The data check unit receives the verification instruction that this side data is revised the unit, reads from the FAM data field to verify data and verify the unit transmission to the FAM side data to comprise the verification message of verifying data;
Data synchronisation unit is used to receive the data synchronization request of FAM side data lock unit, reads synchrodata from the FAM data field and sends to FAM side data lock unit, and the consistance sign (501) that this side is set is a data consistent.
Another kind of data management system of the present invention, comprise that user oriented back management system BAM and at least one carry out the preceding management system FAM of application task, the Backup Data district of the communication module that each FAM comprises the application module of carrying out various application functions, communicate with BAM, the internal storage data district of storage running data, store backup data and to storing the data management module that data manage; Communication module, the FAM data field of storage FAM service data and the data management module that storage data in the data field are managed that BAM comprises the human-computer interaction module that receives and carry out user instruction, communicates with FAM; The data management module of described BAM side comprises:
Consistance sign (501) is used for determining whether the BAM side data is consistent with FAM side service data;
The data modification unit, being used to receive user instruction revises data and amended data is write the FAM data field, data are revised in the data modification unit of notice FAM side, the consistance sign (501) that this side is set is inconsistent for data, and revises the unit to the FAM side data and send and FAM side consistance sign (170) is set is the inconsistent instruction of data;
Data synchronisation unit is used to receive the data synchronization request of FAM side data lock unit, reads synchrodata from the FAM data field and sends to FAM side data lock unit, and the consistance sign (501) that this side is set is a data consistent;
The data management module of described FAM side comprises:
Consistance sign (170) is used for determining whether the service data of this side is consistent with Backup Data;
The data modification unit is revised data notification according to the BAM side that receives and is revised data, and with amended data write memory data field, and that this side consistance sign (170) is set is inconsistent for data according to the instruction that is provided with of BAM side;
Data synchronisation unit, be used for carrying out data sync according to consistance sign (170) the request BAM side data lock unit of this side, and the synchrodata that BAM side data lock unit is sent writes the Backup Data district, and the consistance sign (170) that this side is set is a data consistent.
Another aspect according to above-mentioned purpose, the invention provides a kind of data managing method, be applicable in the system of the preceding management system FAM that comprises user oriented back management system BAM and at least one execution application task, whether consistent service data and Backup Data the consistance sign F of expression self be set in FAM, whether consistent the consistance sign B of service data among data and the FAM be set in BAM among the expression BAM, this method also comprises data modification and verification and two parallel flow processs of data sync, wherein, data modification and verification flow process comprise:
After a1.BAM receives the data modification instruction, revise the FAM data of self, and notice FAM modification corresponding data, FAM revises the service data of self according to notice;
The consistance sign B that b1.BAM is provided with self is that data are inconsistent, and the consistance sign F that notice FAM is provided with among the FAM is that data are inconsistent;
The data sync flow process comprises:
A2.FAM initiates data synchronization request according to the consistance sign F of self to BAM;
B2.BAM reads synchrodata and sends to FAM from the data storage area of self, and the consistance sign B that self is set is a data consistent;
C2.FAM receives the data that BAM sends, and with the Backup Data of the Data Update that receives self, the consistance sign F that self is set afterwards is a data consistent.
Wherein, BAM further comprises before consistance sign B is set among the step b1: judge whether current consistance sign B is that data are inconsistent, if not, it is that data are inconsistent that consistance sign B then is set; Otherwise, do not deal with.
Wherein, consistance sign F among the FAM is set is that data are inconsistent to the FAM of notice described in the step b1 is specially: BAM sends to FAM instruction is set, and FAM is that data are inconsistent according to the consistance sign F that the instruction of receiving is provided with self.
Wherein, consistance sign F among the FAM is set is that data are inconsistent to the FAM of notice described in the step b1 specifically comprises:
B11.BAM reads the data that will verify from the data storage area of self, the verification data that will read then send to FAM;
B12.FAM reads self Backup Data corresponding with verifying data, determine that relatively the Backup Data that reads and the verification data of receiving are inconsistent after, the consistance sign F that FAM is provided with self is that data are inconsistent.
Wherein, BAM further comprises after reading the data that will verify among the step b11: calculating will be verified the proof test value of data, then proof test value is sent to FAM as verifying data;
Then FAM further comprises after reading self Backup Data among the step b12: calculate the proof test value of Backup Data, the proof test value of the Backup Data that relatively calculates then and the proof test value of receiving that will verify data.
Wherein, the method for described calculation check value is: with all data step-by-step XORs.
Wherein, BAM further comprises after reading synchrodata from its data memory block among the step b2: synchrodata is compressed, and the data after will compressing then send to FAM;
Then FAM further comprises after receiving the data that BAM sends among the step c2: the data that receive are decompressed, then with the Backup Data of the Data Update self after decompressing.
As seen, data management system provided by the invention and method, by consistance sign B is set in BAM, after data management system is finished the data sync operation, among the BAM among FAM1 service data and the BAM Backup Data reach consistent, consistance sign B=1 is set, F=1, after this carry out judging whether current B equals 1 earlier before the data modification operation, when B=1 illustrates this data modification is data modification operation first, then BAM is after finishing data modification operation first, notify FAM1 that consistance sign F is put 0 immediately, when after this data sync arrives opportunity, can be owing to F=0 be set and carry out data synchronous operation immediately, make among the BAM that Backup Data reaches consistent state again in the FAM1 service data and BAM, although do not exist described in the prior art among the BAM FAM1 service data and FAM1 Backup Data inconsistent, but still possibly can't carry out the time period T of data sync operation when data sync arrives opportunity, also just not have user's operation exception because of existing this time period to bring.
In addition, data management system provided by the invention and method can adopt proof test value as verifying data, BAM sends proof test value to FAM1 when carrying out the data check operation, whether FAM1 is relatively identical from proof test value and the proof test value of self of BAM, common, this proof test value is 32bit, and the item number in the multinomial data recording that is compared in the common prior art promptly is to surpass 32bit's according to the length that writes down, so significantly reduced the verification data volume of transmitting between BAM and FAM1, and efficient relatively is very high.
Also have, data management system provided by the invention and method can adopt the synchrodata after the compression to carry out data sync, synchrodata after BAM will compress when carrying out data synchronous operation sends to FAM1, the synchrodata of FAM1 after to compression decompresses and obtains original synchrodata and then cover the Backup Data district, significantly reduced the synchrodata amount of transmitting between BAM and FAM1.
Description of drawings
Fig. 1 is the structural drawing of the distributed of prior art;
Fig. 2 is the data modification process flow diagram of prior art;
Fig. 3 is the data check process flow diagram of prior art;
Fig. 4 is the data sync process flow diagram of prior art;
Fig. 5 is the structural drawing of the distributed of the embodiment of the invention one;
Fig. 6 is the data modification of the embodiment of the invention one and verifies process flow diagram;
Fig. 7 is the data sync process flow diagram of the embodiment of the invention one;
Fig. 8 is the structural drawing of the distributed of the embodiment of the invention two;
Fig. 9 is the data modification process flow diagram of the embodiment of the invention two;
Figure 10 is the data sync process flow diagram of the embodiment of the invention two.
Embodiment
Core concept of the present invention is: after carrying out first the data modification operation, revise the consistance sign immediately, enable to identify among the current BAM the inconsistent situation of Backup Data in the FAM1 service data and BAM.
For making the purpose, technical solutions and advantages of the present invention clearer, by the following examples, and with reference to accompanying drawing, the present invention is described in more detail.
Embodiment one: in the present embodiment, after data modification operation is first carried out in the data modification unit of BAM, notify the data check unit of BAM to carry out data check immediately, according to verifying real time modifying consistance sign F as a result, make consistance sign F can identify among the current BAM the inconsistent situation of Backup Data in the FAM1 service data and BAM by the data check unit among the FAM1.
Fig. 5 is the structural drawing of the distributed of the embodiment of the invention one, is example with a certain FAM among BAM and a plurality of FAM such as FAM1 among Fig. 5.The distributed of present embodiment comprises: FAM1 101 and BAM 102.
Wherein, FAM1 101 comprises: application module 110, data management module 113, communication module 114, internal storage data district 115 and Backup Data district 116, data management module 113 comprises: data modification unit 177, data check unit 178, data synchronisation unit 179 and consistance sign F 170.BAM 102 comprises: human-computer interaction module 120, data management module 123, communication module 124, comprise the data field 125 of the FAM1_B data field 152 of storage FAM1 service data, data management module 123 comprises data modification unit 167, data check unit 168, data synchronisation unit 169 and consistance sign B 501.
Specifically, whether consistance sign B 501 is used for characterizing the Backup Data in Backup Data district 116 identical with service data in the FAM1_B data field 152, the B value is 1 or 0, B=1 represents that data are identical in the present embodiment, B=0 represents that data are inequality, consistance sign B 501 can be read and write in data modification unit 167, and data synchronisation unit 169 can be write consistance sign B 501.Data modification unit 167 can also send verifies the 168 execution data check operations of instruction notification data check unit.
Fig. 6 is the data modification of the embodiment of the invention one and verifies process flow diagram that the data modification of present embodiment and verification flow process may further comprise the steps:
Step 601~603: data modification unit 167 is received from the user's data modify instruction by human-computer interaction module 120; Data modification unit 167 writes FAM1_B data field 152 with the data recording of revising, and sends the data modification message of the data recording that comprises modification to data modification unit 177; Data modification unit 177 is with the data recording write memory data field 115 of revising;
In data modification unit 177 execution in step 603, data modification unit 167 executed in parallel steps 603 ' read consistance sign B 501, and judge whether B equals 1, if B=1, then execution in step 604 and subsequent step thereof, otherwise, process ends, the situation with B=1 among Fig. 6 is an example;
Step 604~612: data modification unit 167 puts 0 with consistance sign B 501; Data modification unit 167 sends to data check unit 168 and verifies instruction; Data check unit 168 receives that verifying back the transmission to FAM1_B data field 152 of instruction gets the verification data notification; Data check unit 168 reads from FAM1_B data field 152 verifies data Check_B, and Check_B comprises the data recording that FAM1_B data field 152 is all; Data check unit 168 sends to data check unit 178 and comprises the data check message of verifying data Check_B; Data check unit 178 sends to Backup Data district 116 and gets the verification data command; Data check unit 178 reads from Backup Data district 116 verifies data Check_F, and Check_F comprises the data recording that Backup Data district 116 is all; Data check unit 178 compares all data recording among Check_B and the Check_F one by one, according to comparative result, consistance sign F 170 is set, if Check_B and Check_F are inequality, then data check unit 178 puts 0, process ends with consistance sign F 170, otherwise, data check unit 178 puts 1 with consistance sign F 170, and process ends is an example with Check_B and Check_F situation inequality among Fig. 6.
Can increase between the step 607 of present embodiment and 608 step 607 ', all data recording step-by-steps of the 168 couples of Check_B in data check unit are carried out xor operation and are calculated a proof test value Check_B_D, common, this proof test value is 32bit; Accordingly, should increase between the step 610 and 611 step 610 ', all data recording step-by-steps of the 178 couples of Check_F in data check unit are carried out xor operation and are calculated a proof test value Check_F_D, common, this proof test value is 32bit; Accordingly, described step 608 sends the data check message that comprises proof test value Check_B_D for data check unit 168 to data check unit 178; Accordingly, described step 611 is whether data check unit 178 twin check value Check_B_D are identical with proof test value Check_F_D, according to comparative result, consistance sign F 170 is set, if Check_B_D and Check_F_D are inequality, then data check unit 178 puts 0 with consistance sign F 170, process ends, otherwise data check unit 178 puts 1, process ends with consistance sign F 170.
Fig. 7 is the data sync process flow diagram of the embodiment of the invention one, and the data sync flow process of present embodiment may further comprise the steps:
Step 701: data synchronisation unit 179 reads consistance sign F 170 and judges whether F equals 0, if F=0, then execution in step 702 and subsequent step thereof, otherwise, process ends, the situation with F=0 among Fig. 7 is an example;
Step 702~708: data synchronisation unit 179 sends data synchronization request to data synchronisation unit 169; Data synchronisation unit 169 sends to FAM1_B data field 152 and gets the synchrodata instruction; Data synchronisation unit 169 reads synchrodata Syn_B from FAM1_B data field 152, and Syn_B comprises the data recording that the FAM1_B data field is all; Data synchronisation unit 169 puts 1 with consistance sign B 501; Data synchronisation unit 169 sends synchrodata Syn_B to data synchronisation unit 179; Data synchronisation unit 179 writes synchrodata Syn_B to Backup Data district 116, and synchrodata Syn_B has covered all legacy data records in Backup Data district 116; Data synchronisation unit 179 puts 1 with consistance sign F 170.
Can increase between the step 705 of present embodiment and 706 step 705 ', 169 couples of synchrodata Syn_B of data synchronisation unit compress the synchrodata Syn_B_K after obtaining compressing; Accordingly, described step 706 is the synchrodata Syn_B_K of data synchronisation unit 169 after data synchronisation unit 179 sends compression; Should increase between the corresponding step 706 and 707 step 706 ', the synchrodata Syn_B_K after 179 pairs of compressions of data synchronisation unit decompresses, and obtains original synchrodata Syn_B.
Embodiment two: in the present embodiment, after data modification operation is first carried out in the data modification unit of BAM, notify the real time modifying consistance sign F of the data modification unit among the FAM1 immediately, make consistance sign F can identify among the current BAM the inconsistent situation of Backup Data in the FAM1 service data and BAM.
Fig. 8 is the structural drawing of the distributed of the embodiment of the invention two, is example with a certain FAM among BAM and a plurality of FAM such as FAM1 among Fig. 8.The distributed of present embodiment comprises: FAM1 101 and BAM 102.
Wherein, FAM1 101 comprises: application module 110, data management module 113, communication module 114, internal storage data district 115 and Backup Data district 116, data management module 113 comprises: data modification unit 177, data synchronisation unit 179 and consistance sign F 170.BAM 102 comprises: human-computer interaction module 120, data management module 123, communication module 124, data field 125, data management module 123 comprise data modification unit 167, data synchronisation unit 169 and consistance sign B 501.
Specifically, data synchronisation unit 179 can be read and write consistance sign F 170, consistance sign F 170 can be write in data modification unit 177, and consistance sign B 501 can be read and write in data modification unit 167, and data synchronisation unit 169 can be write consistance sign B 501.The difference of present embodiment and embodiment one also is, data modification unit 167 can also send write consistance sign F 170 be notified to data modification unit 177, by it consistance sign F 170 is provided with.
Fig. 9 is the data modification process flow diagram of the embodiment of the invention two, and the data modification flow process of present embodiment may further comprise the steps:
Step 901~903: data modification unit 167 is received from the user's data modify instruction by human-computer interaction module 120; Data modification unit 167 writes FAM1_B data field 152 with the data recording of revising, and sends the data modification message of the data recording that comprises modification to data modification unit 177; Data modification unit 177 is with the data recording write memory data field 115 of revising;
In data modification unit 177 execution in step 903, data modification unit 167 executed in parallel steps 903 ' read consistance sign B 501, and judge whether B equals 1, if B=1, then execution in step 904 and subsequent step thereof, otherwise, process ends, the situation with B=1 among Fig. 9 is an example;
Step 904~906: data modification unit 167 puts 0 with consistance sign B 501; Consistance sign F 170 is put to 177 transmissions of data modification unit 0 instruction in data modification unit 167; Data modification unit 177 puts 0 with consistance sign F 170.
Figure 10 is the data sync process flow diagram of the embodiment of the invention two, and the data sync flow process of present embodiment may further comprise the steps:
Step 1001: data synchronisation unit 179 reads consistance sign F 170 and judges whether F equals 0, if F=0, then execution in step 1002 and subsequent step thereof, otherwise, process ends, the situation with F=0 among Figure 10 is an example;
Step 1002~1008: data synchronisation unit 179 sends data synchronization request to data synchronisation unit 169; Data synchronisation unit 169 sends to FAM1B data field 152 and gets the synchrodata instruction; Data synchronisation unit 169 reads synchrodata Syn_B from FAM1_B data field 152, and Syn_B comprises the data recording that FAM1_B data field 152 is all; Data synchronisation unit 169 puts 1 with consistance sign B 501; Data synchronisation unit 169 sends synchrodata Syn_B to data synchronisation unit 179; Data synchronisation unit 179 writes synchrodata Syn_B to Backup Data district 116, and synchrodata Syn_B has covered all legacy data records in Backup Data district 116; Data synchronisation unit 179 puts 1 with consistance sign F 170.
Can increase between the step 1005 of present embodiment and 1006 step 1005 ', 169 couples of synchrodata Syn_B of data synchronisation unit compress the synchrodata Syn_B_K after obtaining compressing; Accordingly, described step 1006 is the synchrodata Syn_B_K of data synchronisation unit 169 after data synchronisation unit 179 sends compression; Accordingly, should increase between the step 1006 and 1007 step 1006 ', the synchrodata Syn_B_K after 179 pairs of compressions of data synchronisation unit decompresses, and obtains original synchrodata Syn_B.
The above is preferred embodiment of the present invention only, is not to be used to limit protection scope of the present invention.

Claims (9)

1, a kind of data management system, the preceding management system FAM that comprises user oriented back management system BAM and at least one execution application task, each FAM comprises the application module of carrying out various application functions, the communication module that communicates with BAM, the internal storage data district of storage running data, the Backup Data district of store backup data and the data management module that the storage data are managed, wherein, data management module further comprises the data modification unit that is used to revise data, be used to verify the data check unit of data, data synchronisation unit that is used for synchrodata and the consistance sign (170) that is used for determining that service data and Backup Data be whether consistent; Communication module, the FAM data field of storage FAM service data and the data management module that storage data in the data field are managed that BAM comprises the human-computer interaction module that receives and carry out user instruction, communicates with FAM; It is characterized in that the data management module of described BAM side comprises:
Consistance sign (501) is used for determining whether the BAM side data is consistent with FAM side service data;
The data modification unit, being used to receive user instruction revises data and amended data is write the FAM data field, its service data is revised in the data modification unit of notice FAM side, the consistance sign (501) that the BAM side is set is inconsistent for data, and sends the verification instruction to the data check unit of this side;
The data check unit receives the verification instruction that this side data is revised the unit, reads from the FAM data field to verify data and verify the unit transmission to the FAM side data to comprise the verification message of verifying data;
Data synchronisation unit is used to receive the data synchronization request of FAM side data lock unit, reads synchrodata from the FAM data field and sends to FAM side data lock unit, and the consistance sign (501) that this side is set is a data consistent.
2, a kind of data management system, comprise that user oriented back management system BAM and at least one carry out the preceding management system FAM of application task, the Backup Data district of the communication module that each FAM comprises the application module of carrying out various application functions, communicate with BAM, the internal storage data district of storage running data, store backup data and to storing the data management module that data manage; Communication module, the FAM data field of storage FAM service data and the data management module that storage data in the data field are managed that BAM comprises the human-computer interaction module that receives and carry out user instruction, communicates with FAM; It is characterized in that the data management module of described BAM side comprises:
Consistance sign (501) is used for determining whether the BAM side data is consistent with FAM side service data;
The data modification unit, being used to receive user instruction revises data and amended data is write the FAM data field, data are revised in the data modification unit of notice FAM side, the consistance sign (501) that this side is set is inconsistent for data, and revises the unit to the FAM side data and send and FAM side consistance sign (170) is set is the inconsistent instruction of data;
Data synchronisation unit is used to receive the data synchronization request of FAM side data lock unit, reads synchrodata from the FAM data field and sends to FAM side data lock unit, and the consistance sign (501) that this side is set is a data consistent;
The data management module of described FAM side comprises:
Consistance sign (170) is used for determining whether the service data of this side is consistent with Backup Data;
The data modification unit is revised data notification according to the BAM side that receives and is revised data, and with amended data write memory data field, and that this side consistance sign (170) is set is inconsistent for data according to the instruction that is provided with of BAM side;
Data synchronisation unit, be used for carrying out data sync according to consistance sign (170) the request BAM side data lock unit of this side, and the synchrodata that BAM side data lock unit is sent writes the Backup Data district, and the consistance sign (170) that this side is set is a data consistent.
3, a kind of data managing method, be applicable in the system of the preceding management system FAM that comprises user oriented back management system BAM and at least one execution application task, whether consistent service data and Backup Data the consistance sign F of expression self be set in FAM, it is characterized in that, whether consistent the consistance sign B of service data among data and the FAM be set in BAM among the expression BAM, this method also comprises data modification and verification and two parallel flow processs of data sync, wherein, data modification and verification flow process comprise:
After a1.BAM receives the data modification instruction, revise the FAM data of self, and notice FAM modification corresponding data, FAM revises the service data of self according to notice;
The consistance sign B that b1.BAM is provided with self is that data are inconsistent, and the consistance sign F that notice FAM is provided with among the FAM is that data are inconsistent;
The data sync flow process comprises:
A2.FAM initiates data synchronization request according to the consistance sign F of self to BAM;
B2.BAM reads synchrodata and sends to FAM from the data storage area of self, and the consistance sign B that self is set is a data consistent;
C2.FAM receives the data that BAM sends, and with the Backup Data of the Data Update that receives self, the consistance sign F that self is set afterwards is a data consistent.
4, method according to claim 3 is characterized in that, BAM further comprises before consistance sign B is set among the step b1: judge whether current consistance sign B is that data are inconsistent, if not, it is that data are inconsistent that consistance sign B then is set; Otherwise, do not deal with.
5, method according to claim 3, it is characterized in that, the FAM of notice described in the step b1 is provided with consistance sign F among the FAM, and to be that data are inconsistent be specially: BAM sends to FAM instruction is set, and FAM is that data are inconsistent according to the consistance sign F that the instruction of receiving is provided with self.
6, method according to claim 3 is characterized in that, the FAM of notice described in the step b1 is provided with consistance sign F among the FAM, and to be that data are inconsistent specifically comprise:
B11.BAM reads the data that will verify from the data storage area of self, the verification data that will read then send to FAM;
B12.FAM reads self Backup Data corresponding with verifying data, determine that relatively the Backup Data that reads and the verification data of receiving are inconsistent after, the consistance sign F that FAM is provided with self is that data are inconsistent.
7, method according to claim 6 is characterized in that, BAM further comprises after reading the data that will verify among the step b11: calculating will be verified the proof test value of data, then proof test value is sent to FAM as verifying data;
Then FAM further comprises after reading self Backup Data among the step b12: calculate the proof test value of Backup Data, the proof test value of the Backup Data that relatively calculates then and the proof test value of receiving that will verify data.
8, method according to claim 7 is characterized in that, the method for described calculation check value is: with all data step-by-step XORs.
9, method according to claim 3 is characterized in that, BAM further comprises after reading synchrodata from its data memory block among the step b2: synchrodata is compressed, and the data after will compressing then send to FAM;
Then FAM further comprises after receiving the data that BAM sends among the step c2: the data that receive are decompressed, then with the Backup Data of the Data Update self after decompressing.
CNB2005100891308A 2005-08-02 2005-08-02 Data management system and method Expired - Fee Related CN100343814C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100891308A CN100343814C (en) 2005-08-02 2005-08-02 Data management system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100891308A CN100343814C (en) 2005-08-02 2005-08-02 Data management system and method

Publications (2)

Publication Number Publication Date
CN1851658A CN1851658A (en) 2006-10-25
CN100343814C true CN100343814C (en) 2007-10-17

Family

ID=37133137

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100891308A Expired - Fee Related CN100343814C (en) 2005-08-02 2005-08-02 Data management system and method

Country Status (1)

Country Link
CN (1) CN100343814C (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101640587B (en) * 2008-08-01 2012-04-25 华为技术有限公司 Data synchronization method and data synchronization device
CN101815099B (en) * 2010-04-20 2013-12-04 中兴通讯股份有限公司 Double-controller configuration information synchronization method and device in double-control disk array
CN104572350B (en) * 2014-12-19 2018-11-06 华为技术有限公司 A kind of metadata processing method and device
CN107229541B (en) * 2017-06-20 2019-11-26 携程旅游信息技术(上海)有限公司 Backup method, standby system and the server of Transaction Information
CN111326223B (en) * 2020-01-21 2023-09-12 上海联影医疗科技股份有限公司 Information maintenance method, device, system and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08305714A (en) * 1995-04-28 1996-11-22 Fujitsu Ltd Distributed data base managing system
CN1037129C (en) * 1992-12-08 1998-01-21 艾利森电话股份有限公司 A system for taking backup in a data base
US20030065717A1 (en) * 2001-10-01 2003-04-03 Kabushiki Kaisha Toshiba Data distributing method
US20030131025A1 (en) * 1998-12-24 2003-07-10 Zondervan Quinton Yves System and method for synchronizing data in multiple databases

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1037129C (en) * 1992-12-08 1998-01-21 艾利森电话股份有限公司 A system for taking backup in a data base
JPH08305714A (en) * 1995-04-28 1996-11-22 Fujitsu Ltd Distributed data base managing system
US20030131025A1 (en) * 1998-12-24 2003-07-10 Zondervan Quinton Yves System and method for synchronizing data in multiple databases
US20030065717A1 (en) * 2001-10-01 2003-04-03 Kabushiki Kaisha Toshiba Data distributing method

Also Published As

Publication number Publication date
CN1851658A (en) 2006-10-25

Similar Documents

Publication Publication Date Title
CN100343814C (en) Data management system and method
CN102123279B (en) Distributed real-time transcoding method and system
WO2018223842A1 (en) Video file transcoding system, segmentation method, and transcoding method and device
CN101042651A (en) Software updating method and system thereof
CN101064630A (en) Data synchronization method and system
CN108174226B (en) Transcoding device and method for live video and computer readable storage medium
CN1545252A (en) A method for implementing foreground data configuration in network management system
CN104168439B (en) A kind of method for video coding and device
CN1528052A (en) Method and system for providing a context for message compression
CN1976275A (en) Data synchronizing system and method
CN102882829A (en) Transcoding method and system
CN1764117A (en) Method for sending upgrade software to optical network unit in Ethernet passive optical network
CN112653913A (en) Screen projection method and device, client device and readable storage medium
CN1866961A (en) Client system and service system data synchronizing method and system
CN1529979A (en) Method for selecting executable softwave image
CN103399795A (en) Address book synchronizing method and device
CN101083532A (en) Method and system for realizing data loading
CN1822618A (en) Dynamic remote storage system
CN115080515A (en) Block chain based system file sharing method and system
CN1638481A (en) Apparatus and method for converting a codec of image data
CN112788585B (en) NF (NF) switching method and device in 5G core network and storage medium
CN101526959B (en) Data storing method and device
CN1215422C (en) Network
CN1956392A (en) Method, device and system for implementing multi-service type structure
CN1682215A (en) Databases synchronization

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20071017

Termination date: 20210802