Summary of the invention
Based on this, it is necessary in view of the above technical problems, provide a kind of data reconstruction method, a kind of Data Recapture Unit with
And a kind of base station.
To achieve the above object, the embodiment of the present invention uses following technical scheme:
On the one hand, the embodiment of the present invention provides a kind of data reconstruction method, includes the following steps:
Log-on data managing process;Wherein, the data management process is for interaction data between each process of transfer
Process;
Pass through the corresponding target data of the data management process backup target process;The target process is described each
Any process in process;
If the data management process detection exception occurs to the target process, according to the target data, pass through
The data management process carries out data recovery to the target process.
In one of the embodiments, the interaction data include database file, the interim table of database and database forever
Long relation table, the target data include the interim table of database.
The method also includes steps in one of the embodiments:
Pass through database file described in the target process timed backup;
If the interim table of the corresponding database of the database file and/or database permanent relationship table change, standby
The interim table of the database and/or database permanent relationship table after part change.
The method also includes steps in one of the embodiments:
It, will by the target process after the data management process resumption if the data management process exception
The interim table of database is synchronized to the data management process.
If the data management process detection occurs abnormal, root to the target process in one of the embodiments,
According to the target data, the step of data recovery is carried out to the target process by the data management process, comprising:
If the data management process detection exception occurs to the target process, deleted by the data management process
The target process is synchronized to except the database file in the target process, and by the database file of backup;
It is by the data management process that the interim table of the database of backup and the database permanent relationship table is same
It walks to the target process.
The method also includes steps in one of the embodiments:
The target process is notified to back up the database file by the data management process.
The target data includes file data packet in one of the embodiments,;
If the data management process detection exception occurs to the target process, according to the target data, pass through
The step of data management process carries out data recovery to the target process, comprising:
If the data management process detection exception occurs to the target process, pass through the data management process root
According to the nearest received file data packet, the target process is notified to restore to send the remaining file data packet;
By the data management process, the remaining file data packet is forwarded.
The target data further includes state parameter data in one of the embodiments,;
If the data management process detection exception occurs to the target process, according to the target data, pass through
The step of data management process carries out data recovery to the target process, further includes:
It, will by the data management process if the data management process detection exception occurs to the target process
The state parameter data synchronization updating is to the target process.
The target data further includes performance data in one of the embodiments,;
If the data management process detection exception occurs to the target process, according to the target data, pass through
The step of data management process carries out data recovery to the target process, further includes:
It, will by the data management process if the data management process detection exception occurs to the target process
The state parameter data and the performance data synchronized update are to the target process.
In one of the embodiments, the method also includes:
If the data management process exception, institute is updated to the data management Process Synchronization by the target process
State state parameter data and/or the performance data.
On the other hand, a kind of Data Recapture Unit is also provided, comprising:
Process initiation module is used for log-on data managing process;Wherein, the data management process is each for transfer
The process of interaction data between process;
Target backup module, for passing through the corresponding target data of the data management process backup target process;It is described
Target process is any process in each process;
Recovery module is used for when the data management process detection to the target process occurs abnormal, according to described
Target data carries out data recovery to the target process by the data management process.
Another aspect, also provides a kind of base station, including memory and processor, and the memory is stored with computer journey
The step of sequence, the processor realizes above-mentioned data reconstruction method when executing the computer program.
In another aspect, also providing a kind of computer readable storage medium, it is stored thereon with computer program, the computer
The step of above-mentioned data reconstruction method is realized when program is executed by processor.
A technical solution in above-mentioned technical proposal is had the following advantages and beneficial effects:
Above-mentioned data reconstruction method, by establishing independent data management process, for interaction data between each process
Transfer, the target data in backup interaction data.When data management process detection to target process is abnormal, data pipe
Reason process can use the target data of backup to carry out data recovery to the target process being abnormal, to restore target process
State to being abnormal the normal condition before the moment.In this way, can occur during target process transmits interaction data different
Chang Shi can carry out rapidly data recovery, can also improve the stability of base station, reduce the software of base station exploitation and maintenance at
This.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood
The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not
For limiting the application.
Data reconstruction method provided by the present application can be applied to the number between different base station systems and between inside of base station
According to interaction, as shown in Figure 1, such as LTE base station or LTE base station system.By taking LTE base station as an example, in inside of base station, base station is
Unite in operational process, can establish an independent data management process and come to other each processes, such as data-transfer process and
Database service process etc. interacts the transfer of data.It base station can be by data management process come to one or more
The interaction data of target process transmission carries out transfer, and the target data in the interaction data of backup target process transmission.To,
Lead to interaction data Transmission when data management process detection to target process is abnormal, influences the data with other processes
When the correctness of interactive or data storage, data management process can be counted target process according to the target data of backup
According to recovery, so that abnormal target process occur is promptly restored to the normal condition before the abnormal moment.
Referring to Fig. 2, in one embodiment, a kind of data reconstruction method is provided, with the data reconstruction method application
It is illustrated in base station, includes the following steps S12 to S16:
S12, log-on data managing process;Wherein, data management process is for interaction data between each process of transfer
Process.
It is appreciated that in the system operation of base station, can be started by processor an independent data management into
Journey directly or indirectly interacts between the data management process and each process, as the hinge process of each process, in
Turn the interaction data between each process.
S14 passes through the corresponding target data of data management process backup target process;Target process is in each process
Any process.
Wherein, target data be transmission interaction data in, can be used for the data of recovering process state or transmission, such as
State class supplemental characteristic, files classes data or relation table class data.Interact with itself one of data management process pair is more
A target process interacts data relay simultaneously, can back up to the target data in interaction data.
Specifically, base station in the process of running can by data management process, to the interaction data of target process into
Row transfer and backup target data provide the unified management to each process transmission data.In other words, each target process
The interaction data of transmission is being forwarded corresponding receiving side process by data management process.Data management process is in
It, can in real time or the target data in schedule backup interaction data, in case when process exception, to do data extensive when turning interaction data
It is multiple to use.
S14, according to target data, passes through data management if data management process detection exception occurs to target process
Process carries out data recovery to target process.Wherein, it can be guidance extremely and cause transmission interaction data abnormal interrupt or error
The situations such as recovery, corrupted data or loss after various unusual conditions, such as process self-healing, network interruption.Data recovery can be
State before restoring the interaction data to abnormal moment of target process transmission, the state parameter for being also possible to restore target process arrive
State before the abnormal moment can also be that other can enable target process normal transmission interaction data and holding interaction again
The complete recovery process of data.
Specifically, in inside of base station, can by data management process transfer target process to receive target process different
Normal report or active detecting transmitted to target process data occur it is abnormal (such as in the interaction data of target process transmission
Disconnected, loss error) when, according to the target data of backup, data recovery is carried out to there is abnormal target process, such as will be corresponding
Target data import, or import target data simultaneously, it is synchronous by the interaction data in other processes of target data association
The target process that recovery is transmitted after exception is updated, so that the data transmission state of target process was restored to before the abnormal moment just
Normal state.
In above-mentioned data reconstruction method, by establishing independent data management process, for interaction number between each process
According to transfer, target data in backup interaction data.When data management process detection to target process is abnormal, data
Managing process can use the target data of backup to carry out data recovery to the target process that is abnormal, with restore target into
The state of journey is to being abnormal the normal condition before the moment.In this way, can occur during target process transmits interaction data
When abnormal, data recovery can be carried out rapidly, can also improve the stability of base station, reduce the exploitation and maintenance of the software of base station
Cost.
In one embodiment, interaction data includes database file, the interim table of database and database permanent relationship table.
Target data includes the interim table of database.
It is appreciated that for the data transmitting scene of database in base station, above-mentioned target process can be but not limited to
Database service process.Above-mentioned interaction data may include database file, the interim table of database and database permanent relationship
Table.Specifically, database service process transmit database data when, such as transmission database file, can safeguard corresponding
The interim table of data and database permanent relationship table.Data management process can be in the number that interim data library service processes transmit
Whens according to library file etc., then the interim table of corresponding database can be backed up, to provide when database service process occurs abnormal
The interim table of database needed for the data recovery procedure of database service process.
Fig. 3 and Fig. 4 are please referred to, in one embodiment, above-mentioned data reconstruction method further includes step S13a and S13b:
S13a passes through target process timed backup database file.
It is appreciated that for the data transmitting scene of database in base station, target process (such as database service processes),
In the data procedures for handling database, in addition to completing the load of normal database file, parameter configuration files are imported or export
It, can periodically Backup Data library file outside the operations such as database.The database file of backup is possibly stored to non-volatile deposit
It is spare on reservoir, such as the FLASH memory in base station.For example, target process can periodically detect whether data file goes out
It is now abnormal, such as database file is damaged or other abnormal conditions.If to detection end cycle when, database file is not
There are abnormal conditions, then Backup Data library file, so that exception, such as database file damage, database occurs in target process
Occur the abnormal conditions such as deadlock or self-healing when, data management process can call the database file of backup to target process into
Row data are restored.Wherein Fig. 4 is optional a kind of abnormal restoring flow diagram in the data transmitting scene of database.
S13b, it is standby if the interim table of the corresponding database of database file and/or database permanent relationship table change
The interim table in part changed data library and/or database permanent relationship table.
It is appreciated that the database that database saves can occur for target process interim in transmitting above-mentioned data procedures
When table changes or wide area information server permanent relationship table changes, the database after immediate backup changes is interim
Table or database permanent relationship table.Target process can also change in the interim table of database and database permanent relationship table
When change, the interim table of immediate backup database and database permanent relationship table.For example, target process passes through the interim table of registration database
Call back function, realization change in the interim table of database, then the interim table of database after variation is backuped to accordingly immediately
In the configuration file of volatile ram.Target process passes through the call back function of registration database permanent relationship table, realizes in data
Library permanent relationship table changes, then immediately backups to the database permanent relationship table after variation in corresponding configuration file,
Such as the data base configuration file on FLASH memory.
In this way, S13a and S13b through the above steps, data management process can in target process interactive process,
It backs up in realtime the interim table of database therein, it is so as to when detecting that target process occurs abnormal, the database of backup is interim
Table is supplied to target process, after the Backup Data library file and data library permanent relationship table that import target process, is backed up
The interim table of database complete data and restore.
Referring to Fig. 5, in one embodiment, above-mentioned data reconstruction method further includes step S17:
S17 after data management process resumption, is faced database by target process if data management process exception
When table be synchronized to data management process.
Specifically, during data management process and other target process interact, if data management process itself
It is abnormal, such as database file abnormality detection thread is activated individually in data management process, detects the data library text of transfer
When deadlock occurs for part, self-healing or process are damaged, after data management process resumption, preserve the target of the interim table of database into
Row can to data management process import the interim table of database, thus data management process can be restored back to be abnormal when
Normal condition before quarter.After data management process resumption normal condition, it can notify that other target process of interaction are synchronous more
The interim table of new database, it is ensured that the recovery and accuracy of data relay.
Referring to Fig. 6, in one embodiment, for step S16, can specifically include following steps S162 and S164:
S162 passes through data management process-kill target if data management process detection exception occurs to target process
Database file in process, and the database file of backup is synchronized to target process;
The interim table of the database of backup and database permanent relationship table are synchronized to target by data management process by S164
Process.
Specifically, after the database file that data base administration process detection to target process transmits is by abnormal damage, number
According to managing process by database file original in delete target process, and by the database file of backup be loaded into target into
Journey is completed the synchronous of database file and is restored.However, when the database file in target process is compared to abnormal occur at this time
It carves, can have partial data and not update last state, and the interim table of database and database permanent relationship table are also in loss
State.Therefore, data management process can continue to import the interim table of database of backup to target process and database permanently closes
It is table, normal condition namely last state before the database file of target process to be restored to the abnormal generation moment.This
Afterwards, with target process interaction other processes can by with target process interact complete data it is synchronous, recovery normally
Data transmission and processing.When other processes for interacting with target process occur abnormal, such as self-healing, then its after abnormal restoring
When his process is linked into target process, the data after recovery can be synchronized to other processes above-mentioned by target process, so that should
Other processes are promptly restored to abnormal preceding normal condition.
S162 and S164 through the above steps, can be when target process be abnormal situation, by data management process
Corresponding Backup Data is synchronized, rapidly and reliably realizes that the data of the target process after exception are restored, can additionally pass through
Other processes of target process Fast synchronization further increase the efficiency of data recovery and the stability of base station system, are conducive to reduce
Maintenance cost.
Referring to Fig. 7, in one embodiment, above-mentioned data reconstruction method can also include step S18:
S18 notifies target process Backup Data library file by data management process.
It is appreciated that when the database file of backup is synchronized to target process by above-mentioned data management process, storage
Backup Data library file is in case use.Data management process simultaneously, can lead to target process load Backup Data library file
Know that target process carries out Backup of database files again, backs up spare on the database file to nonvolatile memory.In this way,
S18 through the above steps can ensure to improve target process abnormal restoring there are available Backup Data library file at any time
Reliability, and then improve the system stability of base station.
Referring to Fig. 8, in one embodiment, target data includes state parameter data.It is specific to go back about step S16
May include following process:
If data management process detection exception occurs to target process, pass through data management process for state parameter data
Synchronized update is to target process.Wherein, state parameter data are the state class parameter after target process completion function switch, such as
In LTE base station, state, the connection status of S1 or X2 link etc. that state, the network configuration that each chip configuration is completed are completed are loaded
State parameter data.
Specifically, target process after the function switch for completing certain stage, corresponding state parameter data can be synchronized
Data management process is sent to be backed up.When target process occurs abnormal, data management process then can be by the shape of backup
State supplemental characteristic synchronized update is to there is abnormal target process, so that target process is fast according to the state parameter data received
Normal condition before quick-recovery to abnormal moment.It is appreciated that can similarly understand for other target process.
The detailed process of S16 through the above steps can pass through data management process when target process occurs abnormal
By the state parameter data synchronization updating of backup to corresponding target process, restore the state parameter of target process rapidly, it is ensured that
Target process correctly can transmit and handle all kinds of interaction datas.
Referring to Fig. 9, in one embodiment, target data further includes file data packet.It is specific to go back about step S16
May include following process:
If data management process detection occur to target process it is abnormal, by data management process according to having received recently
File data packet, notice target process restores to send remaining file data packet;By data management process, it is surplus to restore forwarding
Remaining file data packet.
Wherein, the profile data packet that file data packet transmits between different processes, for example, log, performance or its
His configuration file.Specifically, data management process is in transfer file data in a base station in the transmitting scene of non-database data
Bao Shi can recorde the file data packet for receiving target process such as process A, and the file data packet forwarded, such as forward
To the file data packet of process B.When target process occurs abnormal, such as unstable networks or other reasons lead to target process
When transmitting file data packet abnormal interrupt, data management process then can be when transmission conditions be restored, such as setting time Intranet
When network restores, nearest received file data packet is notified that, to target process, target process then can be from the number of files of interruption
According to package location, continue to send remaining file data packet being given to data management process.In turn, data management process can be from nearest
The file data packet forwarded not successfully continues to forward remaining file data packet, is such as forwarded to process B.
In this way, the detailed process of S16 through the above steps, can occur in target process abnormal, lead to file data packet
When failing to complete transmission, synchronizes the transmission state of target process rapidly by data management process, restore normal file data
Packet transmission, avoids file data packet loss.
In one embodiment, target data further includes performance data.It specifically can also include as follows about step S16
Process:
If data management process detection exception occurs to target process, pass through data management process for state parameter data
With performance data synchronized update to target process.Wherein, process critical function is influenced whether when performance data is loss of data
Using or cause other data transmission with processing problem data.It is appreciated that the memory of data management process may store
Data volume it is relatively limited for nonvolatile memory, therefore, data management process can only save data recovery
Required target data, performance data, file data packet and state parameter data as escribed above etc., the file of remaining transfer is only
It forwards.When target process occurs abnormal, such as there is performance data damage in target process, causes certain functions unavailable
When, data management process can be by the performance data of backup together with state parameter data synchronization updating to target process, so that mesh
Mark process is restored according to the performance data and state parameter data that receive.
The detailed process of S16 through the above steps can occur important performance data damage in target process or lose
When mistake etc. is abnormal, backup and synchronized update by data management process can quickly and reliably be completed to restore, and improve target
The data recovering efficiency and system stability of process.
In one embodiment, above-mentioned data reconstruction method further includes following steps:
If data management process exception, state parameter data are updated to data management Process Synchronization by target process
And/or performance data.
It is appreciated that in above-mentioned base station in the transmitting scene of non-database data, when data management process occurs abnormal,
Such as when the abnormal conditions such as loss of data of the self-healing of data management process or transfer, can also by the target with normal condition into
Cheng Jinhang data synchronization updating, by the state parameter data or performance data on target process, or by state parameter number
According to being synchronized to data management process together with performance data, so that data management process resumption is to normal condition, it is ensured that target into
The normal transfer of all kinds of interaction datas of journey transmission.
Although should be understood that each step in the flow chart of Fig. 2 to Fig. 3 and Fig. 5 to Fig. 7 according to arrow
Instruction is successively shown, but these steps are not that the inevitable sequence according to arrow instruction successively executes.Unless having herein bright
True explanation, there is no stringent sequences to limit for the execution of these steps, these steps can execute in other order.And
And at least part step of Fig. 2 to Fig. 3 and Fig. 5 to Fig. 7 may include multiple sub-steps or multiple stages, this is a little
Step or stage are not necessarily to execute completion in synchronization, but can execute at different times, these sub-steps
Perhaps the execution sequence in stage be also not necessarily successively carry out but can with the sub-step of other steps or other steps or
At least part in person's stage executes in turn or alternately.
Referring to Fig. 10, in one embodiment, providing a kind of Data Recapture Unit 100, including process initiation module
12, target backup module 14 and recovery module 16, in which: process initiation module 12 is used for log-on data managing process;Wherein, institute
Stating data management process is the process for interaction data between each process of transfer.Target backup module 12 is for passing through data
The corresponding target data of managing process backup target process;Target process is any process in each process.Recovery module 14
For when data management process detection to target process occurs abnormal, according to target data, by data management process to mesh
Mark process carries out data recovery.
Above-mentioned Data Recapture Unit 100, after 12 log-on data managing process of process initiation module, target backup mould
Block 14 carries out transfer to the interaction data that target process transmits, and backs up target data therein.When target process is abnormal,
The target data that backup can be utilized by data management process with recovery module 14, carries out data to the target process being abnormal
Restore, to restore the state of target process to being abnormal the normal condition before the moment.It is handed in this way, can be transmitted in target process
When being abnormal in mutual data procedures, data recovery can be carried out rapidly, the stability of base station can also be improved, reduce base station
The exploitation and maintenance cost of software.
In one embodiment, Data Recapture Unit 100 can also include that database timed backup module and table data are standby
Part module.Database timed backup module is for notifying target process timed backup database file.Table data backup module is used
In when the interim table of the corresponding database of database file and/or database permanent relationship table change, back up after changing
The interim table of database and/or database permanent relationship table.
In one embodiment, Data Recapture Unit 100 can also include the first recovery module.First recovery module is used for
When forwarding backup module 12 abnormal, the interim table of database is synchronized to by forwarding backup module 12 by target process.
In one embodiment, recovery module 14 includes database file recovery module and relation table recovery module.
Database file recovery module is used in target process exception, notice forwarding 12 delete target process of backup module
In database file, and the database file of backup is synchronized to target process.Relation table recovery module is for notifying forwarding
The interim table of the database of backup and database permanent relationship table are synchronized to target process by backup module 12.
In one embodiment, Data Recapture Unit 100 can also include again backup module.Backup module is for notifying again
Target process Backup Data library file.
Specific about Data Recapture Unit 100 limits the restriction that may refer to above for data reconstruction method,
This is repeated no more.Modules in above-mentioned Data Recapture Unit 100 can come fully or partially through software, hardware and combinations thereof
It realizes.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, can also be with software
Form is stored in the memory in computer equipment, executes the corresponding operation of the above modules in order to which processor calls.
In one embodiment, a kind of base station is provided, which can be LTE base station or base station system.The base station
Including processor, memory, network interface and the database connected by system bus, it is possible to understand that aforementioned show is main
It constitutes, and not all composition.Wherein, the processor of the base station is for providing calculating and control ability.The memory packet of the base station
Include non-volatile memory medium, built-in storage.The non-volatile memory medium is stored with operating system, computer program and data
Library.The built-in storage provides environment for the operation of operating system and computer program in non-volatile memory medium.The base station
Database for storing various transmission data.The network interface of the computer equipment is used to pass through net with external communication equipment
Network connection communication.To realize a kind of data reconstruction method when the computer program is executed by processor.
In one embodiment, a kind of base station, including memory and processor are provided, is stored with computer in memory
Program, the processor perform the steps of log-on data managing process when executing computer program;Wherein, data management process
For the process for interaction data between each process of transfer;The corresponding target data of data management process backup target process;
Target process is any process in each process;If there is exception to target process in data management process detection, according to mesh
Data are marked, data recovery is carried out to target process by data management process.
In one embodiment, it can also realize that the data in the various embodiments described above are extensive when processor executes computer program
The increase step or sub-step of compound method.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated
Machine program performs the steps of log-on data managing process when being executed by processor;Wherein, data management process is for transfer
The process of interaction data between each process: pass through the corresponding target data of data management process backup target process;Target into
Journey is any process in each process;If data management process detection occur to target process it is abnormal, according to target data,
Data recovery is carried out to target process by data management process.
In one embodiment, the data in the various embodiments described above can also be realized when computer program is executed by processor
The increase step or sub-step of restoration methods.
Those of ordinary skill in the art will appreciate that realizing all or part of stream in above-described embodiment data reconstruction method
Journey is relevant hardware can be instructed to complete by computer program, computer program to can be stored in one non-volatile
In computer-readable storage medium, the computer program is when being executed, it may include such as the implementation of above-mentioned each data reconstruction method
The process of example.Wherein, to memory, storage, database or other media used in each embodiment provided herein
Any reference, may each comprise non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory
(ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.It is volatile
Property memory may include random access memory (RAM) or external cache.By way of illustration and not limitation, RAM
It is available in many forms, such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram
(DDRSDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus
(Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram
(RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment
In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance
Shield all should be considered as described in this specification.
Above embodiments only express the several embodiments of the application, and the description thereof is more specific and detailed, but can not
Therefore it is construed as limiting the scope of the patent.It should be pointed out that for those of ordinary skill in the art,
Under the premise of not departing from the application design, various modifications and improvements can be made, these belong to the protection scope of the application.
Therefore, the scope of protection shall be subject to the appended claims for the application patent.