CN106156052A - Terminal data upgrade method and device - Google Patents
Terminal data upgrade method and device Download PDFInfo
- Publication number
- CN106156052A CN106156052A CN201510141922.9A CN201510141922A CN106156052A CN 106156052 A CN106156052 A CN 106156052A CN 201510141922 A CN201510141922 A CN 201510141922A CN 106156052 A CN106156052 A CN 106156052A
- Authority
- CN
- China
- Prior art keywords
- data
- redaction
- terminal
- translation
- database
- 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.)
- Withdrawn
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
Abstract
The invention discloses a kind of terminal data upgrade method, including step: when loading the data AKU of redaction, from data base's master meter, read the data of old database table format as the first data, and from the auxiliary table of data base, read the data of expansion as the second data;First data are merged with the second data, and will merge after data be saved in new master meter data base, to complete the updating operation of terminal data.The invention also discloses a kind of terminal data update device.The invention enables terminal data upgrading to need not delete database file and re-issue configuration, improve the stability of terminal in escalation process, and this upgrading mode is independent of standby machine system, the software upgrading of the terminal of all system structure can be met, extend the scope of application of terminal data upgrading.
Description
Technical field
The present invention relates to technical field of data processing, particularly relate to terminal data upgrade method and device.
Background technology
Communication equipment software is usually and the data of network management configuration is saved in document data bank, due to user
Constantly having newly-increased demand, the software of redaction is in order to adapt to the demand that user increases newly, often by some
Data base's tableau format is extended, to preserve the configuration data of what's new, therefore, at communication equipment
Typically all along with tabular extension of this data base when of software upgrading.
Use of upgrade method in the past deletes database file more, is then re-issued the side of configuration by webmaster
Method.This process needs user manually to intervene, comparatively laborious, and webmaster re-issues the process of configuration
Stabilization of equipment performance is also had a certain impact, time serious, even can affect business.
The existing method that need not delete database file, generally just can need to complete with main frame and standby host
The upgrading of data base, for not being that the communication equipment of main frame and reserve system structure just cannot use.Make
The upgrading of data base cannot meet the software upgrading of the communication equipment of all system structure, and database upgrade is subject to
To limiting, and then affect the business of communication equipment, cause communication equipment to experience poor.
Foregoing is only used for auxiliary and understands technical scheme, does not represent and recognizes that foregoing is
Prior art.
Summary of the invention
Present invention is primarily targeted at a kind of terminal data upgrade method of offer and device, it is intended to solve existing
The upgrading making data base in some escalation process cannot meet the software of the communication equipment of all system structure
Upgrading, database upgrade is restricted, and then affects the business of communication equipment, causes communication equipment to experience
The problem of difference.
For achieving the above object, a kind of terminal data upgrade method that the present invention provides, including step:
When loading the data AKU of redaction, from data base's master meter, read old database table format
Data as the first data, and from the auxiliary table of data base, read the data of expansion as the second data;
First data are merged with the second data, and will merge after data be saved in new master meter data base
In, to complete the updating operation of terminal data.
Preferably, the described data of old database table format that read from data base's master meter are as the first number
According to, and before reading the data of the expansion step as the second data from the auxiliary table of data base, also wrap
Include:
The default value of data base's extended field of redaction is registered in auxiliary table database file;
Described auxiliary table database file is added to the data AKU of redaction.
Preferably, the described default value by data base's extended field of redaction is registered to auxiliary table data library text
Step in part includes:
Determine the data base of redaction field to be increased, to be deleted and/or to be modified and determined by field
Corresponding default value;
Default value determined by Jiang is registered in assistance data library file.
Preferably, the described data of old database table format that read from data base's master meter are as the first number
According to, and from the auxiliary table of data base, read the data of expansion include as the step of the second data:
From data base's master meter, read old data and translation obtains the first translation result, by the first translation knot
Fruit is saved in internal storage data list item as the first data;
Data the translation of reading expansion from the auxiliary table of data base obtain the second translation result, by second
Translation result is saved in internal storage data list item as the second data.
Preferably, described first data are merged with the second data, and the data after merging are saved in newly
Master meter data base in step include:
First data and the second data are merged the memory database list item generating redaction;
The memory database list item of redaction is saved in new master meter data base.
Additionally, for achieving the above object, the present invention also provides for a kind of terminal data update device, including:
Read module, for when loading the data AKU of redaction, reading old from data base's master meter
The data of database table format as the first data, and from the auxiliary table of data base, read the number of expansion
According to as the second data;
Merge module, for the first data being merged with the second data;
Memory module, the data after merging are saved in new master meter data base, to complete terminal
The updating operation of data.
Preferably, described terminal data update device also includes Registering modules and adds module,
Described Registering modules, for being registered to auxiliary table number by the default value of data base's extended field of redaction
According in library file;
Described interpolation module, for adding the data AKU to redaction by described auxiliary table database file
In.
Preferably, described Registering modules includes determining unit and registering unit,
Described determine unit, for determining that the data base of redaction is to be increased, to be deleted and/or to be modified
Field and determined by default value corresponding to field;
Described registering unit, is registered in assistance data library file for default value determined by general.
Preferably, described read module also includes reading unit, translation unit and storage unit,
Described reading unit, for reading old data from data base's master meter;
Described translation module, for obtaining the first translation result by old data translation;
Described storage unit, for being saved in the first translation result in internal storage data list item as the first number
According to;
Described reading unit, is additionally operable to read the data of expansion from the auxiliary table of data base;
Described translation unit, the data being additionally operable to translate expansion obtain the second translation result;
Described storage unit, is additionally operable to be saved in internal storage data list item as second second translation result
Data.
Preferably, described merging module, it is additionally operable to merge the first data and the second data generate redaction
Memory database list item;It is additionally operable to the memory database list item of redaction is saved in new master meter data
In storehouse.
The present invention passes through by the data record of needs extension in auxiliary table database file, and is added by auxiliary table
To the data AKU of redaction, for during terminal staging data by the expansion in auxiliary table database file
The data of exhibition merge with the data of legacy version, generate new data, to complete terminal staging.It is prevented effectively from
The upgrading making data base in existing escalation process cannot meet the soft of the communication equipment of all system structure
Part is upgraded, and database upgrade is restricted, and then affects the business of communication equipment, causes communication equipment body
Test poor problem.Make terminal data upgrading need not delete database file and re-issue configuration, improve
The stability of terminal in escalation process, and this upgrading mode is independent of standby machine system, can meet all
The software upgrading of the terminal of system structure, extends the scope of application of terminal data upgrading, improves terminal
Experience.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of the preferred embodiment of terminal data upgrade method of the present invention;
Fig. 2 is that the present invention reads the data of old database table format as the first number from data base's master meter
According to, and from the auxiliary table of data base, read the data of expansion show as the flow process of the second data one embodiment
It is intended to;
Fig. 3 is the schematic flow sheet that in terminal data escalation process of the present invention, data move towards an embodiment;
Fig. 4 is the high-level schematic functional block diagram of the preferred embodiment of terminal data update device of the present invention;
Fig. 5 is the refinement high-level schematic functional block diagram of Registering modules one embodiment in Fig. 4;
Fig. 6 is the refinement high-level schematic functional block diagram of read module one embodiment in Fig. 4.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, do referring to the drawings further
Explanation.
Detailed description of the invention
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not used to limit
Determine the present invention.
The primary solutions of the embodiment of the present invention is: when loading the data AKU of redaction, from number
According to storehouse master meter reading the data of old database table format as the first data, and from the auxiliary table of data base
Read the data of expansion as the second data;First data are merged with the second data, and will merge
After data be saved in new master meter data base, to complete the updating operation of terminal data.By need to
Data record to be extended is in auxiliary table database file, and auxiliary table adds the data upgrading to redaction
Bao Zhong, for during terminal staging data by the data of the extension in auxiliary table database file and legacy version
Data merge, and generate new data, to complete terminal staging.It is prevented effectively from existing escalation process and makes
The upgrading of data base cannot meet the software upgrading of communication equipment of all system structure, database upgrade
It is restricted, and then affects the business of communication equipment, cause the problem that difference experienced by communication equipment.Make end
End data upgrading need not delete database file and re-issues configuration, improves terminal in escalation process
Stability, and this upgrading mode is independent of standby machine system, can meet terminal soft of all system structure
Part is upgraded, and extends the scope of application of terminal data upgrading, improves the experience of terminal.
Owing to existing escalation process making the upgrading of data base cannot meet the communication of all system structure
The software upgrading of equipment, database upgrade is restricted, and then affects the business of communication equipment, causes logical
It is poor that letter equipment is experienced.
Based on the problems referred to above, the present invention provides a kind of terminal data upgrade method.
Schematic flow sheet with reference to the preferred embodiment that Fig. 1, Fig. 1 are terminal data upgrade method of the present invention.
In one embodiment, described terminal data upgrade method includes:
Step S10, when loading the data AKU of redaction, reads old data from data base's master meter
The tabular data in storehouse are as the first data, and read the data conduct of expansion from the auxiliary table of data base
Second data;
In the present embodiment, terminal software need increase function, or terminal software function need repair
Change, and/or when the function of terminal software needs to delete, build the data AKU of redaction, this new edition
This data AKU, for upgrading terminal software, is typically provided by the developer of terminal software,
And update the data AKU of different editions.Described upgrading data packet include to be increased, delete and/or revise
Data corresponding to function.
Concrete, the default value of data base's extended field of redaction is registered in auxiliary table database file;
Described auxiliary table database file is added to the data AKU of redaction.Determine the data base of redaction
Field to be increased, to be deleted and/or to be modified and determined by default value corresponding to field;To be determined
Default value be registered in assistance data library file.The data AKU of redaction is copied or is downloaded to
Need the terminal of upgrading.Described terminal is when loading the data AKU of redaction, from data base's master meter
Read the data of old database table format as the first data, and from the auxiliary table of data base, read extension
The data divided are as the second data.Described second data, the i.e. data of expansion refer to redaction relative to
Some database table format of legacy version may extend, and such as redaction increases supports that certain New function needs
Will be extended tables of data Table_A, its result is that tables of data Table_A has increased certain field newly
Filed_S。
Concrete, with reference to Fig. 2, the described data reading old database table format from data base's master meter are made
Be the first data, and from the auxiliary table of data base, read the data of expansion can as the process of the second data
To include:
Step S11, reads old data from data base's master meter and carries out translation and obtain the first translation result, will
First translation result is saved in internal storage data list item as the first data;
Step S12, reads the data of expansion from the auxiliary table of data base and carries out translation and obtain the second translation knot
Really, the second translation result is saved in internal storage data list item as the second data.
The process of described translation is provided by the database table translation module that newly defines, the function of this module be
After the running software of redaction gets up, i.e. after the data AKU loading redaction, to file data
Data in storehouse table or auxiliary table are translated, and are then saved in internal storage data list item by translation result.
First data are merged by step S20 with the second data, and will merge after data be saved in new master
In table data base, to complete the updating operation of terminal data.
First data and the second data are merged the memory database list item generating redaction, by redaction
First data described in internal storage data merge with the second data to be provided by the database table synthesis module newly defined,
The function of this module is to be merged, so by data table items relevant with auxiliary table for master meter in internal storage data list item
The internal storage data list item of rear generation redaction also saves it in new master meter database file.
Concrete, in described terminal data escalation process, data are moved towards as shown in Figure 3.First from master meter data
Library file and auxiliary table data base read and needs the data of upgrading, i.e. first read from master meter database file
Fetching data, these part data contain the content in legacy data storehouse, then read auxiliary list file data base
Being read out, the contents of the section includes the part of Data expansion, i.e. includes that data need the interior of changing section
Hold, the data (including the data read from master meter and auxiliary table database file) read are delivered to data
Storehouse table translation module, database table translation module the data read are translated obtain including complete
Legacy data and the information of redaction growth data, and generate memory database list item according to translation result,
Including redaction and legacy version, memory database list item is merged, generates a final interior poke
According to table, as the internal storage data table of new version software, the internal storage data table of new version software is generated new edition
This table database file, is running after this software, realize newly increasing by redaction table database file,
Amendment or the function deleted, finally realize terminal data updating operation.
In order to be able to better illustrate terminal data escalation process of the present invention, below from new field, cancel (CANCL)
Section and amendment field illustrate:
One, new field
1, illustrating, new version software adds certain function, and this function needs to preserve some information
In existing database table Table_A, this will carry out one extension to database table Table-A, expand
The result of exhibition is that database table Table_A has increased field Filed_S newly, and the default value of this field is
Value_V.First by auxiliary for these information registerings to table database file, auxiliary table database file can
With the form according to table 1, new field is registered.
TABEL NAME | FILED NAME | VALUE |
… | … | … |
Tabel_A | Filed_S | Value_V |
… | … | … |
Table 1
Wherein, first row represents the title of database table, and secondary series represents the title of the field of newly-increased table,
The default value of new field is shown in 3rd list.Auxiliary table database file is referred to as keyword with the name of data base,
Log-on message also includes the title of extended field and the default value of this field.
2, during upgrading, auxiliary table database file and new version software are together put in AKU, system loads
After the running software of redaction gets up, first master meter document data bank is carried out by database table translation module
Translation, and the result of translation is saved in internal storage data list item.After having translated, internal storage data table
Item just contains the content in legacy data storehouse.
3, after completing the translation to master meter, auxiliary list file data base is carried out by database table translation module
Translation, field Filed_S newly-increased by database table Table_A and its default value Value_V translation
Save in internal storage data list item.So far, internal storage data list item just includes complete legacy version number
According to the information with redaction growth data.
4, the internal storage data list item that legacy version and redaction are extended by database table synthesis module merges,
And generate a final internal storage data table, as the internal storage data table of new version software.Such as, data
Storehouse table Table_A includes field Filed_O of legacy version, the most also includes redaction extension
One field Filed_S, database table synthesis module retrieves new and old according to database table title Table_A
Two fields Filed_O of version and Filed_S, then merged, and generates a final interior poke
According to table.
5, new internal storage data table is saved in document data bank as redaction by database table synthesis module
Master meter database file.So, new master meter just contains the content of redaction growth data list item,
Data base's master meter has been upgraded to redaction by what legacy version smoothed.
Embodiment two: delete field
1, illustrating, certain function of new version software is no longer necessary to, the database table that this function is corresponding
Field Filed_O in Table_A needs to delete.First by auxiliary for these information registerings to table data base
In file, auxiliary table database file can be registered deleting field according to the form described in table 2.
TABEL NAME | FILED NAME |
… | … |
Tabel_A | Filed_O |
… | … |
Table 2
Wherein first row represents the title of database table, and secondary series represents the title of the field of the table of deletion.
2, during upgrading, auxiliary table database file and new version software are together put in AKU, system loads
After the running software of redaction gets up, first master meter document data bank is carried out by database table translation module
Translation, and the result of translation is saved in internal storage data list item.After having translated, internal storage data table
Item just contains the content in legacy data storehouse.
3, after completing the translation to master meter, auxiliary list file data base is carried out by database table translation module
Translation, translates field Filed_O that database table Table_A is deleted in internal storage data list item and preserves
Come.So far, internal storage data list item just includes complete legacy data and the letter of redaction deletion data
Breath.
4, the information that database table synthesis module is registered according to auxiliary table, by the Filed_O field of Table_A
Delete, and generate a final internal storage data table, as the internal storage data table of new version software.
5, new internal storage data table is saved in document data bank as redaction by database table synthesis module
Master meter database file.So, new master meter just contains redaction and deletes data table items after field
Content, data base's master meter has been upgraded to redaction by what legacy version smoothed.
Embodiment three: amendment field
1, amendment field can with first deletes increase afterwards two operate cooperations complete, be referred to table 1 here
With table 2, the information deleted and increase newly is registered in auxiliary table database file simultaneously.
2, during upgrading, auxiliary table database file and new version software are together put in AKU, system loads
After the running software of redaction gets up, first master meter document data bank is carried out by database table translation module
Translation, and the result of translation is saved in internal storage data list item.After having translated, internal storage data table
Item just contains the content in legacy data storehouse.
3, after completing the translation to master meter, auxiliary list file data base is carried out by database table translation module
Translation, deletes database table Table_A and newly-increased field log-on message translates internal storage data table
Save in Xiang.So far, internal storage data list item just includes complete legacy data and redaction is repaiied
Change the information of data.
4, first database table synthesis module processes deletion action, former field is deleted, and then processes newly-increased
Operation, concrete steps refer to the explanation in embodiment one, two.
5, new internal storage data table is saved in document data bank as redaction by database table synthesis module
Master meter database file.So, new master meter just contains the content of redaction amendment data table items,
Data base's master meter has been upgraded to redaction by what legacy version smoothed.
The present embodiment passes through by the data record of needs extension in auxiliary table database file, and is added by auxiliary table
Add in the data AKU of redaction, pass through in auxiliary table database file for during terminal staging data
The data of extension merge with the data of legacy version, generate new data, to complete terminal staging.Make end
End data upgrading need not delete database file and re-issues configuration, improves terminal in escalation process
Stability, and this upgrading mode is independent of standby machine system, can meet terminal soft of all system structure
Part is upgraded, and extends the scope of application of terminal data upgrading, improves the experience of terminal.
The executive agent of the terminal data upgrade method of above-described embodiment can be all terminal.Further,
This terminal data upgrade method can be realized by the client terminal data ROMPaq being arranged in terminal,
Wherein, this terminal includes but not limited to mobile phone, pad, notebook computer etc..
The present invention further provides a kind of terminal data update device.
Functional module signal with reference to the preferred embodiment that Fig. 4, Fig. 4 are terminal data update device of the present invention
Figure.
In one embodiment, described terminal data update device includes: read module 10, Registering modules 20,
Add module 30, merge module 40 and memory module 50.
Described read module 10, for when loading the data AKU of redaction, from data base's master meter
Read the data of old database table format as the first data, and from the auxiliary table of data base, read extension
The data divided are as the second data;
Need to increase function at terminal software, or need amendment in the function of terminal software, and/or in terminal
When the function of software needs to delete, build the data AKU of redaction, the data AKU of this redaction
For terminal software is upgraded, typically provided by the developer of terminal software, and update different editions
Data AKU.Described upgrading data packet includes the number that function to be increased, that delete and/or revise is corresponding
According to.
Described Registering modules 20, for being registered to auxiliary table by the default value of data base's extended field of redaction
In database file;Described interpolation module 30, for adding described auxiliary table database file to redaction
Data AKU in.
With reference to Fig. 5, described Registering modules 20 includes determining unit 21, for determining the data base of redaction
Field to be increased, to be deleted and/or to be modified and determined by default value corresponding to field;Registering unit
22, it is registered in assistance data library file for default value determined by general.The data of redaction are upgraded
Bag copies or is downloaded to need the terminal of upgrading.Described terminal load redaction data AKU time,
The data reading old database table format from data base's master meter are as the first data and auxiliary from data base
Table reads the data of expansion as the second data.Described second data, the i.e. data of expansion
Referring to that redaction may extend relative to some database table format of legacy version, such as redaction increases props up
Holding certain New function to need to be extended tables of data Table_A, its result is that tables of data Table_A increases newly
Certain field Filed_S.
With reference to Fig. 6, described read module 10 includes reading unit 11, translation unit 12 and storage unit
13,
Described reading unit 11, for reading old data from data base's master meter;
Described translation unit 12, obtains the first translation result for translating old data;
Described storage unit 13, for being saved in the first translation result in internal storage data list item as first
Data;
Described reading unit 11, is additionally operable to read the data of expansion from the auxiliary table of data base;
Described translation unit 12, the data being additionally operable to translate expansion obtain the second translation result;
Described storage unit 13, is additionally operable to be saved in internal storage data list item by the second translation result as
Two data.
The process of described translation is provided by the database table translation module that newly defines, the function of this module be
After the running software of redaction gets up, i.e. after the data AKU loading redaction, to file data
Data in storehouse table or auxiliary table are translated, and are then saved in internal storage data list item by translation result.
Described merging module 40, for merging the first data with the second data;
Described memory module 50, the data after merging are saved in new master meter data base, with complete
Become the updating operation of terminal data.
First data and the second data are merged the memory database list item generating redaction, by redaction
First data described in internal storage data merge with the second data to be provided by the database table synthesis module newly defined,
The function of this module is to be merged, so by data table items relevant with auxiliary table for master meter in internal storage data list item
The internal storage data list item of rear generation redaction also saves it in new master meter database file.
Concrete, in described terminal data escalation process, data are moved towards as shown in Figure 3.First from master meter data
Library file and auxiliary table data base read and needs the data of upgrading, i.e. first read from master meter database file
Fetching data, these part data contain the content in legacy data storehouse, then read auxiliary list file data base
Being read out, the contents of the section includes the part of Data expansion, i.e. includes that data need the interior of changing section
Hold, the data (including the data read from master meter and auxiliary table database file) read are delivered to data
Storehouse table translation module, database table translation module the data read are translated obtain including complete
Legacy data and the information of redaction growth data, and generate memory database list item according to translation result,
Including redaction and legacy version, memory database list item is merged, generates a final interior poke
According to table, as the internal storage data table of new version software, the internal storage data table of new version software is generated new edition
This table database file, is running after this software, realize newly increasing by redaction table database file,
Amendment or the function deleted, finally realize terminal data updating operation.
In order to be able to better illustrate terminal data escalation process of the present invention, below from new field, cancel (CANCL)
Section and amendment field illustrate:
One, new field
1, illustrating, new version software adds certain function, and this function needs to preserve some information
In existing database table Table_A, this will carry out one extension to database table Table-A, expand
The result of exhibition is that database table Table_A has increased field Filed_S newly, and the default value of this field is
Value_V.First by auxiliary for these information registerings to table database file, auxiliary table database file can
With the form according to table 1, new field is registered.
2, during upgrading, auxiliary table database file and new version software are together put in AKU, system loads
After the running software of redaction gets up, first master meter document data bank is carried out by database table translation module
Translation, and the result of translation is saved in internal storage data list item.After having translated, internal storage data table
Item just contains the content in legacy data storehouse.
3, after completing the translation to master meter, auxiliary list file data base is carried out by database table translation module
Translation, field Filed_S newly-increased by database table Table_A and its default value Value_V translation
Save in internal storage data list item.So far, internal storage data list item just includes complete legacy version number
According to the information with redaction growth data.
4, the internal storage data list item that legacy version and redaction are extended by database table synthesis module merges,
And generate a final internal storage data table, as the internal storage data table of new version software.Such as, data
Storehouse table Table_A includes field Filed_O of legacy version, the most also includes redaction extension
One field Filed_S, database table synthesis module retrieves new and old according to database table title Table_A
Two fields Filed_O of version and Filed_S, then merged, and generates a final interior poke
According to table.
5, new internal storage data table is saved in document data bank as redaction by database table synthesis module
Master meter database file.So, new master meter just contains the content of redaction growth data list item,
Data base's master meter has been upgraded to redaction by what legacy version smoothed.
Embodiment two: delete field
1, illustrating, certain function of new version software is no longer necessary to, the database table that this function is corresponding
Field Filed_O in Table_A needs to delete.First by auxiliary for these information registerings to table data base
In file, auxiliary table database file can be registered deleting field according to the form described in table 2.
2, during upgrading, auxiliary table database file and new version software are together put in AKU, system loads
After the running software of redaction gets up, first master meter document data bank is carried out by database table translation module
Translation, and the result of translation is saved in internal storage data list item.After having translated, internal storage data table
Item just contains the content in legacy data storehouse.
3, after completing the translation to master meter, auxiliary list file data base is carried out by database table translation module
Translation, translates field Filed_O that database table Table_A is deleted in internal storage data list item and preserves
Come.So far, internal storage data list item just includes complete legacy data and the letter of redaction deletion data
Breath.
4, the information that database table synthesis module is registered according to auxiliary table, by the Filed_O field of Table_A
Delete, and generate a final internal storage data table, as the internal storage data table of new version software.
5, new internal storage data table is saved in document data bank as redaction by database table synthesis module
Master meter database file.So, new master meter just contains redaction and deletes data table items after field
Content, data base's master meter has been upgraded to redaction by what legacy version smoothed.
Embodiment three: amendment field
1, amendment field can with first deletes increase afterwards two operate cooperations complete, be referred to table 1 here
With table 2, the information deleted and increase newly is registered in auxiliary table database file simultaneously.
2, during upgrading, auxiliary table database file and new version software are together put in AKU, system loads
After the running software of redaction gets up, first master meter document data bank is carried out by database table translation module
Translation, and the result of translation is saved in internal storage data list item.After having translated, internal storage data table
Item just contains the content in legacy data storehouse.
3, after completing the translation to master meter, auxiliary list file data base is carried out by database table translation module
Translation, deletes database table Table_A and newly-increased field log-on message translates internal storage data table
Save in Xiang.So far, internal storage data list item just includes complete legacy data and redaction is repaiied
Change the information of data.
4, first database table synthesis module processes deletion action, former field is deleted, and then processes newly-increased
Operation, concrete steps refer to the explanation in embodiment one, two.
5, new internal storage data table is saved in document data bank as redaction by database table synthesis module
Master meter database file.So, new master meter just contains the content of redaction amendment data table items,
Data base's master meter has been upgraded to redaction by what legacy version smoothed.
The present embodiment passes through by the data record of needs extension in auxiliary table database file, and is added by auxiliary table
Add in the data AKU of redaction, pass through in auxiliary table database file for during terminal staging data
The data of extension merge with the data of legacy version, generate new data, to complete terminal staging.Make end
End data upgrading need not delete database file and re-issues configuration, improves terminal in escalation process
Stability, and this upgrading mode is independent of standby machine system, can meet terminal soft of all system structure
Part is upgraded, and extends the scope of terminal data upgrading, improves the experience of terminal.
These are only the preferred embodiments of the present invention, not thereby limit the scope of the claims of the present invention, every
Utilize equivalent structure or equivalence flow process conversion that description of the invention and accompanying drawing content made, or directly or
Connect and be used in other relevant technical fields, be the most in like manner included in the scope of patent protection of the present invention.
Claims (10)
1. a terminal data upgrade method, it is characterised in that include step:
When loading the data AKU of redaction, from data base's master meter, read old database table format
Data as the first data, and from the auxiliary table of data base, read the data of expansion as the second data;
First data are merged with the second data, and will merge after data be saved in new master meter data base
In, to complete the updating operation of terminal data.
2. terminal data upgrade method as claimed in claim 1, it is characterised in that described from data base
Master meter reads the data of old database table format as the first data, and read from the auxiliary table of data base
Before the data of the expansion step as the second data, also include:
The default value of data base's extended field of redaction is registered in auxiliary table database file;
Described auxiliary table database file is added to the data AKU of redaction.
3. terminal data upgrade method as claimed in claim 2, it is characterised in that described by redaction
The default value of the data base's extended field step that is registered in auxiliary table database file include:
Determine the data base of redaction field to be increased, to be deleted and/or to be modified and determined by field
Corresponding default value;
Default value determined by Jiang is registered in assistance data library file.
4. the terminal data upgrade method as described in any one of claims 1 to 3, it is characterised in that institute
State the data reading old database table format from data base's master meter as the first data, and from data base
Auxiliary table reads the data of expansion include as the step of the second data:
From data base's master meter, read old data and translation obtains the first translation result, by the first translation knot
Fruit is saved in internal storage data list item as the first data;
Data the translation of reading expansion from the auxiliary table of data base obtain the second translation result, by second
Translation result is saved in internal storage data list item as the second data.
5. terminal data upgrade method as claimed in claim 4, it is characterised in that described by the first number
Merge according to the second data, and the data step that is saved in new master meter data base after merging include:
First data and the second data are merged the memory database list item generating redaction;
The memory database list item of redaction is saved in new master meter data base.
6. a terminal data update device, it is characterised in that including:
Read module, for when loading the data AKU of redaction, reading old from data base's master meter
The data of database table format as the first data, and from the auxiliary table of data base, read the number of expansion
According to as the second data;
Merge module, for the first data being merged with the second data;
Memory module, the data after merging are saved in new master meter data base, to complete terminal
The updating operation of data.
7. terminal data update device as claimed in claim 6, it is characterised in that described terminal data
Update device also includes Registering modules and adds module,
Described Registering modules, for being registered to auxiliary table number by the default value of data base's extended field of redaction
According in library file;
Described interpolation module, for adding the data AKU to redaction by described auxiliary table database file
In.
8. terminal data update device as claimed in claim 7, it is characterised in that described Registering modules
Including determining unit and registering unit,
Described determine unit, for determining that the data base of redaction is to be increased, to be deleted and/or to be modified
Field and determined by default value corresponding to field;
Described registering unit, is registered in assistance data library file for default value determined by general.
9. the terminal data update device as described in any one of claim 6 to 8, it is characterised in that institute
State read module also to include reading unit, translation unit and storage unit,
Described reading unit, for reading old data from data base's master meter;
Described translation module, for obtaining the first translation result by old data translation;
Described storage unit, for being saved in the first translation result in internal storage data list item as the first number
According to;
Described reading unit, is additionally operable to read the data of expansion from the auxiliary table of data base;
Described translation unit, the data being additionally operable to translate expansion obtain the second translation result;
Described storage unit, is additionally operable to be saved in internal storage data list item as second second translation result
Data.
10. terminal data update device as claimed in claim 9, it is characterised in that described merging mould
Block, is additionally operable to the first data and the second data merge the memory database list item generating redaction;Also use
In the memory database list item of redaction is saved in new master meter data base.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510141922.9A CN106156052A (en) | 2015-03-27 | 2015-03-27 | Terminal data upgrade method and device |
PCT/CN2016/075369 WO2016155455A1 (en) | 2015-03-27 | 2016-03-02 | Method and device for upgrading terminal data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510141922.9A CN106156052A (en) | 2015-03-27 | 2015-03-27 | Terminal data upgrade method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106156052A true CN106156052A (en) | 2016-11-23 |
Family
ID=57004734
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510141922.9A Withdrawn CN106156052A (en) | 2015-03-27 | 2015-03-27 | Terminal data upgrade method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106156052A (en) |
WO (1) | WO2016155455A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108459869A (en) * | 2017-12-28 | 2018-08-28 | 新华三技术有限公司 | ISSU upgrade methods and device |
CN108614868A (en) * | 2018-04-16 | 2018-10-02 | 北京酷我科技有限公司 | A kind of database automatically updating method |
CN109828765A (en) * | 2017-11-23 | 2019-05-31 | 北京华为数字技术有限公司 | A kind of method, Versatile Routing Platform and the storage medium of online upgrading service |
CN115827789A (en) * | 2023-02-21 | 2023-03-21 | 苏州浪潮智能科技有限公司 | Method, system, equipment and storage medium for optimizing file type database upgrading |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110620940A (en) * | 2019-09-19 | 2019-12-27 | 四川天邑康和通信股份有限公司 | System, method and processing device for IPTV to rapidly make set-top box OTA upgrade package |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1859125A (en) * | 2006-03-31 | 2006-11-08 | 华为技术有限公司 | System and its method for central remote automatic upgrading software |
CN101183361A (en) * | 2006-11-13 | 2008-05-21 | 中兴通讯股份有限公司 | Method of relation data base applications automatic upgrade |
CN101499069A (en) * | 2008-02-02 | 2009-08-05 | 中兴通讯股份有限公司 | Internal memory database file updating method and apparatus |
CN102890720A (en) * | 2012-10-16 | 2013-01-23 | 南京通达海信息技术有限公司 | Database inspection and maintenance method |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103095838B (en) * | 2013-01-16 | 2016-03-30 | 百度时代网络技术(北京)有限公司 | A kind of method of Android smartphone software of being upgraded by download increment AKU |
CN103647816A (en) * | 2013-12-03 | 2014-03-19 | 北京奇虎科技有限公司 | Method and device for upgrading application software |
CN103810257B (en) * | 2014-01-24 | 2018-07-13 | 华为技术有限公司 | A kind of method, apparatus and equipment of upgrading software database |
-
2015
- 2015-03-27 CN CN201510141922.9A patent/CN106156052A/en not_active Withdrawn
-
2016
- 2016-03-02 WO PCT/CN2016/075369 patent/WO2016155455A1/en active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1859125A (en) * | 2006-03-31 | 2006-11-08 | 华为技术有限公司 | System and its method for central remote automatic upgrading software |
CN101183361A (en) * | 2006-11-13 | 2008-05-21 | 中兴通讯股份有限公司 | Method of relation data base applications automatic upgrade |
CN101499069A (en) * | 2008-02-02 | 2009-08-05 | 中兴通讯股份有限公司 | Internal memory database file updating method and apparatus |
CN102890720A (en) * | 2012-10-16 | 2013-01-23 | 南京通达海信息技术有限公司 | Database inspection and maintenance method |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109828765A (en) * | 2017-11-23 | 2019-05-31 | 北京华为数字技术有限公司 | A kind of method, Versatile Routing Platform and the storage medium of online upgrading service |
CN109828765B (en) * | 2017-11-23 | 2022-05-17 | 北京华为数字技术有限公司 | Method for upgrading online service, general routing platform and storage medium |
CN108459869A (en) * | 2017-12-28 | 2018-08-28 | 新华三技术有限公司 | ISSU upgrade methods and device |
CN108614868A (en) * | 2018-04-16 | 2018-10-02 | 北京酷我科技有限公司 | A kind of database automatically updating method |
CN115827789A (en) * | 2023-02-21 | 2023-03-21 | 苏州浪潮智能科技有限公司 | Method, system, equipment and storage medium for optimizing file type database upgrading |
Also Published As
Publication number | Publication date |
---|---|
WO2016155455A1 (en) | 2016-10-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106156052A (en) | Terminal data upgrade method and device | |
CN103365646B (en) | Form user-defined, logical definition and processing method based on script engine | |
US9582500B2 (en) | Run-time SQL language translation | |
US20140298318A1 (en) | Computer-executable application packaging method, computer-executable device and storage media performing the same | |
CN106598667A (en) | Method and device used for restoring kernel vulnerability | |
CN103377038B (en) | The description of customizing form and list analytic method | |
CN106294658A (en) | The quick methods of exhibiting of webpage and device | |
CN108762743B (en) | Data table operation code generation method and device | |
CN104375818A (en) | System and method for achieving general data form inputting through configuration files | |
CN111068328A (en) | Game advertisement configuration table generation method, terminal device and medium | |
CN104750472A (en) | Resource bundle management method and device of terminal application | |
CN111818175B (en) | Enterprise service bus configuration file generation method, device, equipment and storage medium | |
CN104423982A (en) | Request processing method and device | |
CN109408682A (en) | A kind of method of regular expression matching, system and equipment | |
KR101646138B1 (en) | Method of determing layout, layout determination server performing the same and storage medium storing the same | |
CN102004633B (en) | Method and device for processing control property | |
CN110750973A (en) | Dynamic template configuration method and system | |
CN110058849A (en) | Generation method, device, computer equipment and the storage medium of flow chart | |
US9483578B2 (en) | Computer-readable storage medium storing update program, update method, and update device | |
CN102542363B (en) | Business object generation method and device and ERP (Enterprise Resource Planning) system | |
CN109857380B (en) | Workflow file compiling method and device | |
CN106293801A (en) | Mobile terminal and data updating method, system and upgrading data generating device | |
CN113377458A (en) | Plug-in management method and device, electronic equipment and storage medium | |
CN113032706A (en) | Implementation method and system for quickly building webpage | |
US20090171895A1 (en) | Method and system for generating dynamic associations to data objects |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WW01 | Invention patent application withdrawn after publication | ||
WW01 | Invention patent application withdrawn after publication |
Application publication date: 20161123 |