Summary of the invention
The technical problem to be solved in the present invention provides the data archiving method in a kind of computer application system, can satisfy the data filing requirement of the application system of the complicated incidence relation data structure of having of small-sized, medium-sized even large-scale database system.
For solving the problems of the technologies described above, the inventive method comprises that application system can be carried out filing master control operation; Application system is taked to scan stage by stage, the design of the system architecture of synchronization monitoring archive job overall process; Application system is with related data that key word the was produced unit as data filing, carries out that checking before the data filing, data filing, data dump check, data dump, data recover inquiry; Application system comprises each correlation subsystem, and each correlation subsystem adopts relatively independent filing discontinuous running design; Application system comprises each functional module, and functional module is registered in the data distribution services set of data distribution configuration center, application system scans described data distribution services set by filing master control operation, control each correlation subsystem and carry out the modularization of archive job stage by stage, wherein the data distribution services set comprises: sub-material winds up the case that processing module, contract can be filed processing module, set up the data link table module, the data filing processing module, remove mark module, data dump processing module are set; Application system adopts the data link table structural design, the data chainning with complicated incidence relation that described key word is described as main line is carried out the cutting processing, can segmentation carrying out data filing and data deletion operation; Wherein the system architecture design of scanning, synchronization monitoring archive job overall process comprises following sequential steps stage by stage: the mark setting of winding up the case of step 1, sub-material, step 2, the contract of winding up the case are filed mark accordingly and are handled, step 3, set up data link table, step 4, data filing, step 5, filing data cleared condition check, step 6, filing data are removed, and step 7, filing finish.
The present invention is owing to the filing principle of design of serving as theme and affecting all related datas with the key word that runs through whole application system, employing each correlation subsystem under filing master control complete operation supervision method is carried out relatively independent filing discontinuous running design and the design of modular system architecture, the historical data information of using system is filed according to the data link table structural design scheme and deleted, finally make the data message amount of application system reach mobile equilibrium.
Embodiment
The present invention is further detailed explanation below in conjunction with drawings and the specific embodiments.
At first tell about principle of the present invention: the inventive method has been constructed the incorporate model framework of system and has been filed treatment technology stage by stage, with the filing principle of design of key word as main line, the design data list structure carries out staging treating with all related datas of key word association.The data filing system model master control of using the inventive method is supervised system-wide archive job and the design of modular system architecture and can be correlated with according to the configuration requirement of commercialization software and file the cutting of module, be combined into the software product of different demands, really realize the customization configuration, reached the design object of commercialization software.Specifically comprise following feature:
1, the filing principle of design of serving as theme with key word
The filing principle of design that employing is served as theme with key word, to run through the unit of the related data that key word produced of whole application system, carry out that checking before the data filing, data filing, data dump check, data dump, data recover inquiry as data filing.
2, the primary control program mode of supervising in overall process
Employing by primary control program from file condition distinguishing=" filing data handles=" set up data link table=" data filing=" the filing data cleared condition checks=" filing data removes=" the filing end process, the system architecture of scanning, synchronization monitoring archive job overall process design stage by stage, guarantee consistance, the integrality of filing data, guarantee the correctness of archive job.
3, independent filing discontinuous running design
Employing each correlation subsystem under filing master control operation is carried out relatively independent filing discontinuous running design, makes the exploitation of huge data filing system model have operability and maintainability.
4, modular system architecture design
Adopt modular system architecture design, functional module is registered in " the data distribution services set " of data distribution configuration center.By filing master control operation scanning " data distribution services set ", control the idea of modular that each subsystem carries out archive job stage by stage, make whole filing system have more extensibility and expandability.
5, data link table structural design
The design data list structure carries out the cutting processing with the data chainning with complicated incidence relation that key word is described as main line, makes the data filing system segmentation carry out data filing and data deletion operation.
Further set forth the present invention below in conjunction with accompanying drawing.As shown in Figure 1, be a specific embodiment of the present invention, be about to this method and be applied among the metallurgical industry MES whole contract dataset filing system model general frame figure.Be background with metallurgical industry MES Demonstration Application among the figure, described from contract and wound up the case, the batch processing whole contract dataset filing system model general frame under the contract filing master control operation of winding up the case.Specifically comprise the steps:
1) the contract operation of winding up the case
After Office Of Contract Settlements is finished dealing with, the contract that the notice filing system the is relevant data of winding up the case, the expression contract is wound up the case.
2) the batch processing contract of winding up the case is filed the master control operation
Primary control program is realized system-wide archive job by the master control supervision method.System scans the contract that meets treatment conditions in " contract wind up the case tables of data " stage by stage according to the filing treatment step, is the least unit of processing with the contract of each stage scanning.After a contract is handled successfully, system can improve automatically this contract filing code the processing stage, then, scan next contract according to the order of sequence.After system finished the contract scan process in a stage, can enter the next stage automatically carried out the scan process of contract, until the scanning of finishing final stage.
Wherein the logical process of primary control program operation is as follows:
1) archive job initialization
The initiation parameter setting is filed in the master control operation, as: the control that the zero-time of filing, filing stage carry out etc.
2) the filing first step
The mark setting of winding up the case of the corresponding sub-material of the contract of winding up the case.Corresponding sub-material in " data distribution services set " processing module of winding up the case is called in the master control operation, the sub-material mark of winding up the case is set for the corresponding sub-stores record of contract of data centralization, the master control operation is provided with the sub-material mark of winding up the case for this contract in " contract wind up the case tables of data ".
3) second step of filing
The contract of winding up the case is filed mark accordingly and is handled.Whether the master control operation is called corresponding contract material in " data distribution services set " the processing module inspection of contract of winding up the case and can be filed, whether calculate (mother) material of the sub-material of winding up the case on the contract finished product production line can wind up the case according to recursive fashion, when all sub-materials of affiliated (mother) material were all wound up the case, (mother) material was wound up the case.Under all (mother) materials of contract when all winding up the case, contract can be filed, and in " contract wind up the case tables of data " the wind up the case mark filed of contract record of setting.
4) the 3rd step of filing
Foundation can be filed the contract dataset chained list.The master control operation call " data distribution services set " but in foundation filing data chained list module, based on contract (mother) material of finished product production line, calculate relevant contract semi-manufacture according to recursive fashion and produce the material of winding up the case on the line, set up the data link table that the relevant semi-manufacture of contract produce wire material respectively, material number that produces by upper and lower operation productive unit and identical contract number are as key word, set up the data link table of upper and lower inter process, and the data link table that the contract record of winding up the case is set has been set up mark in " contract wind up the case tables of data ".
5) the 4th step of filing
The contract dataset filing.The contract that can file is handled in the master control operation according to the order of sequence, call relevant filing module in " data distribution services set " and finish the data filing operation of each subsystem, when all relevant filing subroutines all finished the data filing of a contract handled after, the master control operation is filed and is finished mark for this contract is provided with contract in " contract wind up the case tables of data ".
6) the 5th step of filing
The filing contract can be removed the mark setting.After the contract dataset filing is finished, whether can remove, the removing mark that the master control operation is called in " data distribution services set " is provided with module scan-data chained list, based on contract produce all filed rule that checks of the pairing sub-material of (mother) material on line at each, finish whether can remove the filing contract checking operation, the master control operation can be removed mark for this contract setting in " contract wind up the case tables of data ".
7) the 6th step of filing
The removing operation of filing data.Remove the removing operation that processing module scan-data chained list is finished the contract total data by the filing data that the master control operation is called in " data distribution services set ", the master control operation has been removed mark for this contract setting in " contract wind up the case tables of data ".
8) the 7th step of filing
The filing end process.Filed contract number, filing tape label and relevant information thereof are signed in in the contract filing resume, and remove corresponding data in " contract wind up the case tables of data " and the related data chained list thereof, finish archive job.
Need point out, though aforesaid specific embodiment is present in " metallurgical industry MES framework and gordian technique research and Demonstration Application ", the inventive method has extraordinary reference function for the data filing design of the computer information management of large-scale Joint Production enterprise.
In sum, the filing principle of design that the inventive method is served as theme and affected all related datas with the key word that runs through whole application system, employing each correlation subsystem under filing master control complete operation supervision method is carried out relatively independent filing discontinuous running design and the design of modular system architecture, the historical data information of using system is filed according to the data link table structural design scheme and deleted, finally make the data message amount of application system reach mobile equilibrium, solved the data filing requirement of the application system of the complicated incidence relation data structure of having of large-scale database system.