CN106528241A - Data upgrading method and apparatus - Google Patents
Data upgrading method and apparatus Download PDFInfo
- Publication number
- CN106528241A CN106528241A CN201611041477.XA CN201611041477A CN106528241A CN 106528241 A CN106528241 A CN 106528241A CN 201611041477 A CN201611041477 A CN 201611041477A CN 106528241 A CN106528241 A CN 106528241A
- Authority
- CN
- China
- Prior art keywords
- data base
- server
- client
- version information
- version
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Computer Security & Cryptography (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
Embodiments of the invention provide a data upgrading method and apparatus, which relates to the field of computers and is used for ensuring normal storage of data. The method comprises the steps of obtaining a configuration file of a client and version information of a database in a server; obtaining version information of the client in the configuration file, and determining whether the version information of the configuration file of the client is consistent with the version information of the database in the server or not according to the version information of the configuration file of the client and the version information of the database in the server; and when the version information of the configuration file of the client is not consistent with the version information of the database in the server and the version of the database in the server is low, obtaining an upgrading file corresponding to the database in the server according to the configuration file of the client, performing upgrading processing on the database in the server, and updating the version information of the database in the server. The method and the apparatus are suitable for a software upgrading scene.
Description
Technical field
A kind of the present invention relates to field of computer technology, more particularly to the method and device of data upgrading.
Background technology
At present, in order to ensure safety and the stability of business data, generally the data of the management software of enterprise are preserved
In the Database Systems of server, each enterprise may use different Database Systems, conventional Database Systems to have
Oracle, SQL Server, Sybase etc..As enterprise customer is using the development with technology, the management software of enterprise can be regular
New version is issued, new version software may occur the change of data structure.Management software in user terminal is client
Edition upgrading is carried out, after as client uses the software of redaction, the data base of server is also required to be risen accordingly
Level, to adapt to the software of redaction.
Therefore, how the version match by the version of client with the data base of server gets up to become asking for urgent need to resolve
Topic.
The content of the invention
Embodiments of the invention provide a kind of method and device of data upgrading, to by the business management software of client
Version get up with the version match of the data base of server, it is ensured that the normal storage of data.
For reaching above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
A kind of method of data upgrading is embodiments provided, including:The configuration file of client is obtained, and in server
The version information of data base;The version information stores the version number of the data base of client data and renewal in including server
Date;In the configuration file of the client, record has the version of the relevant information of client and the data base of storage client data
This information;Obtain the version information of the client in the configuration file, and according to the configuration file of the client
The version information of data base in version information and server, determines the version information and the clothes of the configuration file of the client
In business device, whether the version information of data base is consistent;In version information and the server of the configuration file of the client
The version information of data base is inconsistent, and in the server data base version it is low when, according to the configuration of client text
Part, obtains the corresponding upgrade file of data base in the server, carries out upgrading processing to data base in the server, and more
The version information of data base in the new server.
Alternatively, also include:In version information and the data base in the server of the configuration file of the client
Version information is inconsistent, and the client version it is low when, then sending to user terminal needs the message of updating client, so as to
User terminal carries out upgrading processing to the client.
Alternatively, the configuration file according to the client, obtains the corresponding upgrading of data base in the server
File, carries out upgrading processing, and updates the version information of data base in the server including to data base in the server:
According to the type of data base in the version information of data base in the server and the server, look in the configuration file
Find out current version number and the corresponding information of upgrade file of more new version number of data base in the server;According to the upgrading
Fileinfo, the corresponding upgrade file of data base in default upgrade file concentrates the determination server, to the server
Middle data base carries out upgrading processing, and updates the version information of data base in the server;The default upgrade file is concentrated
Have recorded the upgrade file of the corresponding all versions of each type of data base.
Alternatively, version of the configuration file according to the data base of the disparate modules record storage client data of data base
This information;In the acquisition server, the version information of data base includes:Obtain the version of the use module of data base in server
This information;The version information of data base in the version information and server of the configuration file according to the client, it is determined that
The version information of the configuration file of the client it is whether consistent with the version information of data base in the server including:It is described
According to the version information of the use module of data base in the version information and server of the configuration file of the client, institute is determined
Whether the version information for stating the configuration file of client is consistent with the version information of the use module of data base in the server;
It is inconsistent with the version information of data base in the server in the version information of the configuration file of the client, and the clothes
When in business device, the version of data base is low, according to the configuration file of the client, in obtaining the server, data base is corresponding
Upgrade file, carries out upgrading processing, and updates the version information of data base in the server to data base in the server
Including:In the version information of version information and the use module of data base in the server of the configuration file of the client
It is inconsistent, and in the server use module of data base version it is low when, according to the configuration file of the client, obtain
In the server, the corresponding upgrade file of use module of data base, is carried out to the use module of data base in the server
Upgrading processing, and update the version information of the use module of data base in the server.
Alternatively, the upgrade file includes SQL sql upgrading data.
Further, a kind of device of data upgrading is embodiments provided, including:Acquiring unit, for obtaining
The configuration file of client, and in server data base version information;The version information stores client in including server
The version number of the data base of end data and update date;In the configuration file of the client, record has the relevant information of client
And the version information of the data base of storage client data;Processing unit, for the configuration obtained in the acquiring unit
Obtain the version information of the client in file, and according in the version information and server of the configuration file of the client
The version information of data base, determines the version of version information and the data base in the server of the configuration file of the client
Whether information is consistent;The processing unit, is additionally operable to the version information and the server of configuration file in the client
The version information of middle data base is inconsistent, and in the server data base version it is low when, according to the configuration of the client
File, obtains the corresponding upgrade file of data base in the server, carries out upgrading processing to data base in the server, and
Update the version information of data base in the server.
Alternatively, also include:Transmitting element, for version information and the service of the configuration file in the client
In device, the version information of data base is inconsistent, and the client version it is low when, then to user terminal send need upgrade client
The message at end, so that user terminal carries out upgrading processing to the client.
Alternatively, the processing unit, specifically for according to the version information of data base in the server and the clothes
The type of data base in business device, finds out the current version number of data base in the server in the configuration file and updates
The corresponding information of upgrade file of version number;According to the information of upgrade file, concentrate in default upgrade file and determine the service
The corresponding upgrade file of data base in device, carries out upgrading processing to data base in the server, and updates in the server
The version information of data base;The default upgrade file centralized recording liter of the corresponding all versions of each type of data base
Level file.
Alternatively, version of the configuration file according to the data base of the disparate modules record storage client data of data base
This information;The acquiring unit, specifically for obtaining the version information of the use module of data base in server;It is described to process single
Unit, specifically for the use module of data base in the version information and server of the configuration file according to the client
Version information, determines the version of version information and the use module of data base in the server of the configuration file of the client
Whether this information is consistent;In the use module of version information and the data base in the server of the configuration file of the client
Version information it is inconsistent, and in the server use module of data base version it is low when, according to matching somebody with somebody for the client
File is put, the corresponding upgrade file of use module of data base in the server is obtained, to data base in the server
Upgrading processing is carried out using module, and updates the version information of the use module of data base in the server.
Alternatively, the upgrade file includes SQL sql upgrading data.
A kind of method and device of data upgrading is embodiments provided, including:The configuration file of client is obtained,
The version information of data base in server;The version information of client is obtained in configuration file, and according to the configuration of client
The version information of data base in the version information and server of file, determines version information and the service of the configuration file of client
In device, whether the version information of data base is consistent;The version of data base in the version information and server of the configuration file of client
This information is inconsistent, and in server data base version information it is low when, according to the configuration file of client, obtain in server
The corresponding upgrade file of data base, carries out upgrading processing, and updates the version of data base in server to data base in server
Information.So, the device of data upgrading can directly according to the version information and server of the configuration file of client
Version information determines whether the data base in server needs upgrading, when data base in the server needs upgrading, determines
The upgrade file of data base, and carry out upgrading processing to data base, such that it is able to by the version of the business management software of client
Get up with the version match of the data base of server, it is ensured that the normal storage of data.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below will be in embodiment or description of the prior art
The required accompanying drawing for using is briefly described, it should be apparent that, drawings in the following description are only some realities of the present invention
Example is applied, for those of ordinary skill in the art, on the premise of not paying creative work, can be with according to these accompanying drawings
Obtain other accompanying drawings.
Fig. 1 is a kind of schematic flow sheet of the method for data upgrading provided in an embodiment of the present invention;
Fig. 2 is the schematic flow sheet of the method for another kind of data upgrading provided in an embodiment of the present invention;
Fig. 3 is a kind of structural representation of the device of data upgrading provided in an embodiment of the present invention;
Fig. 4 is the structural representation of the device of another kind of data upgrading provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
As shown in figure 1, a kind of method of data upgrading is embodiments provided, including:
Step 101, obtain client configuration file, and in server data base version information.
Wherein, version information stores version number and the update date of the data base of client data in including server.Visitor
In the configuration file at family end, record has the version information of the relevant information of client and the data base of storage client data.
Specifically, when client is logged in, the device of data upgrading can obtain the configuration text of client from client
Part, and the version information of data base is got from the data base of server.
Further, can in the version information of the data base of the storage client data for recording in the configuration file of client
To include old version information, can be with sub-module recording version information, can the letter of the version comprising polytype data base
Breath etc..
That is, the configuration file of client is when being configured, can be by the data base's of storage client data
Version information is recorded in configuration file, and the configuration content for now recording in configuration file includes:1)The module of upgrading is needed to compile
Number and title, each intermodule is with semicolon separated.2)Old version update date, record each old version number and update day
Phase, with semicolon separated between each version.3)Database Identification, disparate databases perform different upgrade files.4)Sub-module is deposited
Each version update date and updatingfile list.Each module takes an exclusive tables of data of this module, in data base
There is this table then to show that this module needs upgrading.With semicolon separated between version, updatingfile list behind version number, is deposited, each liter
With CSV between level filename.
It should be noted that can in client AKU preset configuration file.
Further, as client is when data storage is carried out, not using data base in whole modules, only use
Data base part of module, when only can carry out data storage to client, the module for using carries out version updating, therefore,
In configuration file according to data base disparate modules record storage client data data base version information.
Now, the device that data are upgraded can obtain the version information of data base in server to be included:Obtain in server
The version information of the use module of data base.
Step 102, the version information for obtaining client in configuration file, and the version of the configuration file according to client
The version information of data base in information and server, determines the version information of the configuration file of client and data base in server
Version information it is whether consistent.
Specifically, due to recording the version information for having client, therefore the dress of data upgrading in the configuration file of client
Putting can be by parsing the version information that the configuration file of client gets the configuration file of client, and matching somebody with somebody client
The version information and the version information of data base in server for putting file is compared, and determines the version of the configuration file of client
Whether information is consistent with the version information of data base in server.
It should be noted that due to including update date and version number in version information, can be by the configuration of client
Update date in the version information of the data base in the update date in the version information of file and server is compared, this
When, in the version information of the update date in the version information of the configuration file of client and the data base in server more
When new date is identical, it is determined that the version information of the configuration file of client is consistent with the version information of data base in server.
Can also be by the version of the data base in the version number in the version information of the configuration file of client and server
Version number in information is compared, now, in the version number and server in the version information of the configuration file of client
Data base version information in version number it is identical when, it is determined that in the version information of the configuration file of client and server
The version information of data base is consistent.
It is, of course, also possible to by the version number in the version information of the configuration file of client and update date and server
Data base version information in version number and update date be compared, now, in the version of the configuration file of client
Version number and update date in the version information of the data base in the version number and update date in information and server is homogeneous
Simultaneously, it is determined that the version information of the configuration file of client is consistent with the version information of data base in server.
Further, the version information according to data base in the version information and server of the configuration file of client, really
Determine the configuration file of client version information it is whether consistent with the version information of data base in server including:
According to the version information of the use module of data base in the version information and server of the configuration file of client, it is determined that objective
Whether the version information of the configuration file at family end is consistent with the version information of the use module of data base in server.
It should be noted that the device upgraded in data determines the version information and server of the configuration file of client
When the version information of middle data base is consistent, illustrates that the version of client is consistent with the version of data base in server, need not carry out
Upgrading processing, can no longer perform following step.
Step 103, client configuration file version information and data base in server version information it is inconsistent,
And in server data base version it is low when, according to the configuration file of client, obtain the corresponding upgrading of data base in server
File, carries out upgrading processing, and updates the version information of data base in server to data base in server.
Specifically, the device of data upgrading data in the version information of configuration file of client and server is determined
The version information in storehouse is inconsistent, and in server data base version information it is low when, illustrate client be upgrading after version, need
The version of data base in server is only upgraded.Now, due to have recorded the correlation of client in the configuration file of client
The version information of the data base of information and storage client data, therefore upgrading text can be known in the configuration file of client
The information of part, the device of such data upgrading can get data base in server according to the configuration file of client
The information of upgrade file, and by searching default upgrade file collection, get the corresponding upgrade file of data base in server, enter
And upgrading processing is carried out to data base in server according to upgrade file.After data base in server upgrades, need
The version information of data base in the server for having been recorded in storehouse is updated the data according to the version information of the data base after upgrading.
It should be noted that wherein, the upgrade file centralized recording corresponding all versions of each type of data base are preset
This upgrade file.
Further, the configuration file according to client, obtains the corresponding upgrade file of data base in server, to service
In device, data base carries out upgrading processing, and updates the version information of data base in server and include:
According to the type of data base in the version information and server of data base in server, service is found out in configuration file
The current version number of data base and the corresponding information of upgrade file of more new version number in device.
According to information of upgrade file, concentrate in default upgrade file and determine the corresponding upgrade file of data base in server,
Upgrading processing is carried out to data base in server, and updates the version information of data base in server.
Further, upgrade file includes sql(Structured Query Language, SQL)Rise
DBMS.
Further, the configuration file of client version information and data base in the server version information not
Unanimously, when the version of data base is low and in server, according to the configuration file of client, in obtaining server, data base is corresponding
Upgrade file, carries out upgrading processing, and updates the version information of data base in server including to data base in server:
It is inconsistent with the version of the use module of data base in server in the version information of the configuration file of client, and service
When in device, the version information of the use module of data base is low, according to the configuration file of client, data base in acquisition server
Using the corresponding upgrade file of module, upgrading processing is carried out to the use module of data base in server, and is updated in server
The version information of the use module of data base.
It should be noted that after the low version referred to before not updating of version described in embodiments of the present invention is less than updating
Version.For example, it is assumed that the version number of the version for updating more than the version before updating version number when, then data base in server
The low version number for referring to data base in server of version less than client version number.
So, the device of data upgrading can directly according to the configuration file of client version information and server
Version information determine whether the data base in server needs upgrading, when data base in the server needs upgrading, it is determined that
Go out the upgrade file of data base, and upgrading processing is carried out to data base, such that it is able to by the version of the business management software of client
This is got up with the version match of the data base of server, it is ensured that the normal storage of data.
Further, the version of data base in the version information and server of the configuration file of client is determined in step 102
When whether this information is consistent, if the device of data upgrading determines the version information and number in server of the configuration file of client
According to the version information in storehouse it is consistent when, can there are two kinds of situations, a kind of situation is that the version information of data base in server is low, as
The version of client is now needed to upgrade data base in server, is as performed higher than the version of data base in server
Step 103.Another kind of situation is that the version of client is low, version of the version of data base higher than client as in server,
Now need to upgrade client, perform following step 104, it is specific as follows:
As shown in Fig. 2 said method after step 102, also includes:
Step 104, client configuration file version information and data base in server version information it is inconsistent, and visitor
When the version at family end is low, then sending to user terminal needs the message of updating client, so that user terminal is risen to client
Level is processed.
It is specifically, inconsistent with the version information of data base in server in the version information of the configuration file of client,
And client version it is low when, illustrate to need to update the version of client, as client is arranged on user terminal, now count
Cannot directly make client be upgraded according to the device of upgrading, therefore disappearing for updating client can be needed to user terminal transmission
Breath, so that user carries out upgrading processing by user terminal to client.
So, the device of data upgrading can obtain the version number and more of data base in server when client is logged in
The version number of the configuration file of new date and client and update date, and will obtain server in data base version number and
The version number of the configuration file of update date and client and update date are compared, if client release is low, point out
Customer upgrade client software.If the version of data base is low in server, the data of server are searched in configuration file
The corresponding version number in storehouse and update date, then according to type of database, this version of module searches and later version need to hold one by one
Capable sql listed files, the as information of upgrade file, get upgrade file in preset upgrade file concentration and are sql
Upgrading data, and sql upgrading data are performed in data base, the version that have updated data base in server is after running succeeded
Number and update date, realize the automatic upgrading of data base in server.
Realize that the partial code for implementing of above-mentioned steps 101-104 is as follows:
1. preset configuration file in software upgrade package
[UPMESS]
Upxt=cw, it is public;Yw, business;
update=V1.0,20160101;V1.1,20160301; V1.2,20160601;
[MSS]
cw=PUBLIC; 20160101,pub160101.syb, pub160102.syb; 20160301,pub160301.syb,
pub160302.syb; 20160601,pub160601.syb, pub160602.syb;
yw=LSWLZD; 20160101,yw160101.syb; 20160601,yw160601.syb, yw160602.syb,
yw160603.syb;
[ORA]
cw=PUBLIC; 20160101,pub160101.ora, pub160102.ora; 20160301,pub160301.ora,
pub160302.ora; 20160601,pub160601.ora, pub160602.ora;
yw=LSWLZD; 20160101,yw160101.ora; 20160601,yw160601.ora, yw160602.ora,
yw160603.ora;
[SYB]
cw=PUBLIC; 20160101,pub160101.syb, pub160102.syb; 20160301,pub160301.syb,
pub160302.syb; 20160601,pub160601.syb, pub160602.syb;
yw=LSWLZD; 20160101,yw160101.syb; 20160601,yw160601.syb, yw160602.syb,
yw160603.syb;
Wherein, the storage of [UPMESS] one section is module and version information.Upxt is followed by needing the module numbering of upgrading and name
Claim, update is followed by each old version number and corresponding update date.
What [MSS] one section was deposited is the upgrading sql files row of each old version of SQL Server data base's modules
Table.
What [ORA] one section was deposited is the upgrading sql listed files of each old version of oracle database modules.
What [SYB] one section was deposited is the upgrading sql listed files of each old version of sybase database modules.
2. preset upgrading sql files in software upgrade package
Under the update catalogues of software it is preset above all upgrading sql files in configuration file.
3. auto-upgrade program interface
// take the server update date
select F_VAL into :vsupdate from LSCONF where F_VKEY='CW_UPDATE';
// take server version
select F_VAL into :vsversion from LSCONF where F_VKEY='CW_VERSION';
// take client configuration file version information
vstemp=profilestring("upgrade.ini","UPMESS","update",vsversion+","+
vsupdate)
do while vstemp<>""
vsset=get_token(vstemp,";")
loop
vsnewver=get_token(vsset,",")
vsnewdate=vsset
// judge whether client is consistent with server version
if vsnewdate>vsupdate then
If messagebox (" prompting ", " whether upgrade server ", information!,yesno!,1)=1 then
// perform automatically upgrading sql
update()
end if
return -1
elseif vsnewdate<vsupdate then
Messagebox (" prompting ", " needing updating client ")
return -1
end if
So, the version that the device of data upgrading can directly according to the version information and server of the configuration file of client
This information determines whether the data base in server or client need upgrading, when data base in the server needs upgrading,
The upgrade file of data base is determined, and upgrading processing is carried out to data base.When client need to be upgraded, user's liter can be notified
Level client, gets up such that it is able to the version match by the version of the business management software of client with the data base of server,
Ensure that the normal storage of data.
As shown in figure 3, a kind of device of data upgrading is embodiments provided, including:
Acquiring unit 301, for obtaining the configuration file of client, and in server data base version information.
Wherein, version information stores version number and the update date of the data base of client data in including server.Visitor
In the configuration file at family end, record has the version information of the relevant information of client and the data base of storage client data.
Processing unit 302, for the version information for obtaining client in the configuration file that acquiring unit 301 is obtained, and
According to the version information of data base in the version information and server of the configuration file of client, the configuration file of client is determined
Version information it is whether consistent with the version information of data base in server.
Processing unit 302, is additionally operable to the version information of the configuration file in client and the version of data base in server
Information is inconsistent, and in server data base version it is low when, according to the configuration file of client, obtain data base in server
Corresponding upgrade file, carries out upgrading processing, and updates the version information of data base in server to data base in server.
Specifically, processing unit 302, specifically for data in the version information and server according to data base in server
The type in storehouse, finds out the current version number and the corresponding upgrading text of more new version number of data base in server in configuration file
Part information.According to information of upgrade file, the corresponding upgrade file of data base in default upgrade file concentrates determination server is right
In server, data base carries out upgrading processing, and updates the version information of data base in server.
Wherein, preset the upgrade file centralized recording upgrade file of the corresponding all versions of each type of data base.
Further, the device of above-mentioned data upgrading, as shown in figure 4, also include:
Transmitting element 303, for data base in version information and the server of the configuration file in client version information not
Unanimously, and client version it is low when, then sending to user terminal needs the message of updating client, so that user terminal is to client
End carries out upgrading processing.
Further, version of the configuration file according to the data base of the disparate modules record storage client data of data base
Information.
Acquiring unit 301, specifically for obtaining the version information of the use module of data base in server.
Processing unit 302, specifically for data in the version information and server of the configuration file according to the client
The version information of the use module in storehouse, determines the use mould of data base in the version information and server of the configuration file of client
Whether the version information of block is consistent.
Differ with the version information of the use module of data base in server in the version information of the configuration file of client
Cause, and in server the use module of data base version it is low when, according to the configuration file of client, obtain data in server
The corresponding upgrade file of use module in storehouse, carries out upgrading processing, and more new demand servicing to the use module of data base in server
The version information of the use module of data base in device.
Further, upgrade file includes SQL sql upgrading data.
So, the device of data upgrading can directly according to the configuration file of client version information and server
Version information determine whether data base in server or client need upgrading, data base in the server needs upgrading
When, the upgrade file of data base is determined, and upgrading processing is carried out to data base.When client need to be upgraded, can notify to use
Family updating client, rises such that it is able to the version match by the version of the business management software of client with the data base of server
Come, it is ensured that the normal storage of data.
Finally it should be noted that:Above example only to illustrate technical scheme, rather than a limitation;Although
With reference to the foregoing embodiments the present invention has been described in detail, it will be understood by those within the art that:Which still may be used
To modify to the technical scheme described in foregoing embodiments, or equivalent is carried out to which part technical characteristic;
And these modification or replace, do not make appropriate technical solution essence depart from various embodiments of the present invention technical scheme spirit and
Scope.
Claims (10)
1. a kind of method that data are upgraded, it is characterised in that include:
Obtain client configuration file, and in server data base version information;During the version information includes server
The version number of the data base of storage client data and update date;In the configuration file of the client, record has client
The version information of the data base of relevant information and storage client data;
The version information of the client, and the version of the configuration file according to the client is obtained in the configuration file
The version information of data base in information and server, determines the version information and the server of the configuration file of the client
Whether the version information of middle data base is consistent;
It is inconsistent with the version information of data base in the server in the version information of the configuration file of the client, and institute
State data base in server version it is low when, according to the configuration file of the client, obtain data base couple in the server
The upgrade file answered, carries out upgrading processing, and updates the version of data base in the server to data base in the server
Information.
2. method according to claim 1, it is characterised in that also include:
It is inconsistent with the version information of data base in the server in the version information of the configuration file of the client, and institute
State client version it is low when, then sending to user terminal needs the message of updating client, so that user terminal is to the client
End carries out upgrading processing.
3. method according to claim 1, it is characterised in that the configuration file according to the client, obtains institute
The corresponding upgrade file of data base in server is stated, upgrading processing is carried out to data base in the server, and is updated the clothes
In business device, the version information of data base includes:
According to the type of data base in the version information of data base in the server and the server, in the configuration file
In find out current version number and the corresponding information of upgrade file of more new version number of data base in the server;
According to the information of upgrade file, in default upgrade file is concentrated and determines the server, the corresponding upgrading of data base is literary
Part, carries out upgrading processing, and updates the version information of data base in the server to data base in the server;It is described pre-
If the upgrade file centralized recording upgrade file of the corresponding all versions of each type of data base.
4. method according to claim 1, it is characterised in that the configuration file is recorded according to the disparate modules of data base
The version information of the data base of storage client data;
In the acquisition server, the version information of data base includes:
Obtain the version information of the use module of data base in server;
The version information of data base in the version information and server of the configuration file according to the client, it is determined that described
The version information of the configuration file of client it is whether consistent with the version information of data base in the server including:
The version letter of the use module of data base in the version information and server of the configuration file according to the client
Breath, determines the version information of version information and the use module of data base in the server of the configuration file of the client
It is whether consistent;
It is inconsistent with the version information of data base in the server in the version information of the configuration file of the client, and institute
State data base in server version it is low when, according to the configuration file of the client, obtain data base couple in the server
The upgrade file answered, carries out upgrading processing, and updates the version of data base in the server to data base in the server
Information includes:
In the version information of version information and the use module of data base in the server of the configuration file of the client
It is inconsistent, and in the server use module of data base version it is low when, according to the configuration file of the client, obtain
In the server, the corresponding upgrade file of use module of data base, is carried out to the use module of data base in the server
Upgrading processing, and update the version information of the use module of data base in the server.
5. the method according to any one of claim 1-4, it is characterised in that the upgrade file includes structuralized query language
Speech sql upgrading data.
6. the device that a kind of data are upgraded, it is characterised in that include:
Acquiring unit, for obtaining the configuration file of client, and in server data base version information;The version information
Version number and update date including the data base for storing client data in server;Remember in the configuration file of the client
Record has the version information of the data base of the relevant information of client and storage client data;
Processing unit, for obtaining the version information of the client in the configuration file that the acquiring unit is obtained,
And according to the version information of data base in the version information and server of the configuration file of the client, determine the client
Configuration file version information it is whether consistent with the version information of data base in the server;
The processing unit, is additionally operable to the version information of the configuration file in the client and data base in the server
Version information is inconsistent, and in the server data base version it is low when, according to the configuration file of the client, obtain institute
The corresponding upgrade file of data base in server is stated, upgrading processing is carried out to data base in the server, and is updated the clothes
The version information of data base in business device.
7. device according to claim 6, it is characterised in that also include:
Transmitting element, is believed with the version of data base in the server for the version information of the configuration file in the client
Breath is inconsistent, and the client version it is low when, then sending to user terminal needs the message of updating client, so as to user's end
End carries out upgrading processing to the client.
8. device according to claim 6, it is characterised in that
The processing unit, specifically for according to data base in the version information of data base in the server and the server
Type, find out the current version number of data base in the server in the configuration file and more new version number be corresponding
Information of upgrade file;
According to the information of upgrade file, in default upgrade file is concentrated and determines the server, the corresponding upgrading of data base is literary
Part, carries out upgrading processing, and updates the version information of data base in the server to data base in the server;It is described pre-
If the upgrade file centralized recording upgrade file of the corresponding all versions of each type of data base.
9. device according to claim 6, it is characterised in that the configuration file is recorded according to the disparate modules of data base
The version information of the data base of storage client data;
The acquiring unit, specifically for obtaining the version information of the use module of data base in server;
The processing unit, specifically for data in the version information and server of the configuration file according to the client
The version information of the use module in storehouse, determines the version information of the configuration file of the client and data base in the server
Use module version information it is whether consistent;
In the version information of version information and the use module of data base in the server of the configuration file of the client
It is inconsistent, and in the server use module of data base version it is low when, according to the configuration file of the client, obtain
In the server, the corresponding upgrade file of use module of data base, is carried out to the use module of data base in the server
Upgrading processing, and update the version information of the use module of data base in the server.
10. the device according to any one of claim 6-9, it is characterised in that the upgrade file includes structuralized query
Language sql upgrading data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611041477.XA CN106528241A (en) | 2016-11-21 | 2016-11-21 | Data upgrading method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611041477.XA CN106528241A (en) | 2016-11-21 | 2016-11-21 | Data upgrading method and apparatus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106528241A true CN106528241A (en) | 2017-03-22 |
Family
ID=58356431
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611041477.XA Pending CN106528241A (en) | 2016-11-21 | 2016-11-21 | Data upgrading method and apparatus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106528241A (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107222147A (en) * | 2017-05-16 | 2017-09-29 | 珠海瑞合电气有限公司 | A kind of AC servo driver system |
CN107220345A (en) * | 2017-05-27 | 2017-09-29 | 北京酷我科技有限公司 | User data protection method in the database that a kind of App is used |
CN110740377A (en) * | 2019-10-22 | 2020-01-31 | 广东长虹电子有限公司 | channel searching method using network, satellite television and operation system |
CN110865828A (en) * | 2018-08-28 | 2020-03-06 | 成都鼎桥通信技术有限公司 | Data upgrading method, device, equipment and computer readable storage medium |
CN111106966A (en) * | 2019-12-26 | 2020-05-05 | 深信服科技股份有限公司 | Information processing method and device, equipment and storage medium |
CN111796851A (en) * | 2020-08-06 | 2020-10-20 | 北京百度网讯科技有限公司 | Client base library updating method and device, electronic equipment and storage medium |
CN112737855A (en) * | 2020-12-30 | 2021-04-30 | 百视通网络电视技术发展有限责任公司 | Multi-dimensional terminal configuration system in OTT service |
CN114449554A (en) * | 2022-01-28 | 2022-05-06 | 深圳Tcl新技术有限公司 | Equipment upgrading method, device, equipment and storage medium |
US20230107783A1 (en) * | 2020-03-26 | 2023-04-06 | Autonetworks Technologies, Ltd. | In-vehicle information processing apparatus, information processing method, and server program |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080301663A1 (en) * | 2007-06-01 | 2008-12-04 | Lior Bahat | System and Method for Providing Uninterrupted Operation of a Replication System During a Software Upgrade |
CN101409709A (en) * | 2008-11-24 | 2009-04-15 | 浪潮通信信息系统有限公司 | Method for publishing client terminal program of communication network management system automatically |
CN102495733A (en) * | 2011-12-08 | 2012-06-13 | 方正国际软件有限公司 | Methods for detecting compatibility of application program and relevant database script and performing upgrading maintenance on application program and relevant database script |
CN102521001A (en) * | 2011-12-19 | 2012-06-27 | 青岛海信网络科技股份有限公司 | Compatibility control method for C/S (client/server) structure application program versions |
CN102882978A (en) * | 2012-10-16 | 2013-01-16 | 北京奇虎科技有限公司 | Server and application updating method |
CN105871955A (en) * | 2015-01-21 | 2016-08-17 | 深圳市腾讯计算机系统有限公司 | Distributed file system-based processing method, server and client |
-
2016
- 2016-11-21 CN CN201611041477.XA patent/CN106528241A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20080301663A1 (en) * | 2007-06-01 | 2008-12-04 | Lior Bahat | System and Method for Providing Uninterrupted Operation of a Replication System During a Software Upgrade |
CN101409709A (en) * | 2008-11-24 | 2009-04-15 | 浪潮通信信息系统有限公司 | Method for publishing client terminal program of communication network management system automatically |
CN102495733A (en) * | 2011-12-08 | 2012-06-13 | 方正国际软件有限公司 | Methods for detecting compatibility of application program and relevant database script and performing upgrading maintenance on application program and relevant database script |
CN102521001A (en) * | 2011-12-19 | 2012-06-27 | 青岛海信网络科技股份有限公司 | Compatibility control method for C/S (client/server) structure application program versions |
CN102882978A (en) * | 2012-10-16 | 2013-01-16 | 北京奇虎科技有限公司 | Server and application updating method |
CN105871955A (en) * | 2015-01-21 | 2016-08-17 | 深圳市腾讯计算机系统有限公司 | Distributed file system-based processing method, server and client |
Cited By (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107222147A (en) * | 2017-05-16 | 2017-09-29 | 珠海瑞合电气有限公司 | A kind of AC servo driver system |
CN107220345A (en) * | 2017-05-27 | 2017-09-29 | 北京酷我科技有限公司 | User data protection method in the database that a kind of App is used |
CN107220345B (en) * | 2017-05-27 | 2020-09-29 | 北京酷我科技有限公司 | User data protection method in database used by App |
CN110865828A (en) * | 2018-08-28 | 2020-03-06 | 成都鼎桥通信技术有限公司 | Data upgrading method, device, equipment and computer readable storage medium |
CN110740377A (en) * | 2019-10-22 | 2020-01-31 | 广东长虹电子有限公司 | channel searching method using network, satellite television and operation system |
CN111106966A (en) * | 2019-12-26 | 2020-05-05 | 深信服科技股份有限公司 | Information processing method and device, equipment and storage medium |
CN111106966B (en) * | 2019-12-26 | 2022-09-30 | 深信服科技股份有限公司 | Information processing method and device, equipment and storage medium |
US20230107783A1 (en) * | 2020-03-26 | 2023-04-06 | Autonetworks Technologies, Ltd. | In-vehicle information processing apparatus, information processing method, and server program |
CN111796851A (en) * | 2020-08-06 | 2020-10-20 | 北京百度网讯科技有限公司 | Client base library updating method and device, electronic equipment and storage medium |
CN112737855A (en) * | 2020-12-30 | 2021-04-30 | 百视通网络电视技术发展有限责任公司 | Multi-dimensional terminal configuration system in OTT service |
CN114449554A (en) * | 2022-01-28 | 2022-05-06 | 深圳Tcl新技术有限公司 | Equipment upgrading method, device, equipment and storage medium |
CN114449554B (en) * | 2022-01-28 | 2024-01-19 | 深圳Tcl新技术有限公司 | Equipment upgrading method, device, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106528241A (en) | Data upgrading method and apparatus | |
US5884310A (en) | Distributed data integration method and system | |
US20080126364A1 (en) | Two-way and multi-master synchronization over web syndications | |
GB2434230A (en) | Contextually ranked search results | |
CN110543512B (en) | Information synchronization method, device and system | |
CN110245145A (en) | Structure synchronization method and apparatus of the relevant database to Hadoop database | |
CN111857880A (en) | Dialogue configuration item information management method, device, equipment and storage medium | |
US20140032494A1 (en) | Data index using a linked data standard | |
CN107193616A (en) | Application program upgrading method and terminal | |
CN105426128A (en) | Index maintenance method and device | |
WO2020001391A1 (en) | Dynamic management method for menu, server and system | |
CN105426544B (en) | Method and device for monitoring database state | |
CN108763279B (en) | Webpage data distributed template acquisition method and system | |
CN106844497A (en) | The check device and method of a kind of database code | |
CN111782679B (en) | Supervision method and device for data processing process, computer equipment and storage medium | |
CN106603289A (en) | LMT configuration file smooth upgrade method | |
US8498963B2 (en) | Method and system for data synchronization | |
CN107291938A (en) | Order Query System and method | |
US7945578B2 (en) | Optimizing scalar search in a text indexing and search server | |
US7991741B2 (en) | System and method for synchronizing data record with web document in a content management system | |
CN107577680B (en) | Real-time full-text retrieval system based on HBase big data and implementation method thereof | |
CN104468948A (en) | Information processing method and electronic device | |
CN110807037B (en) | Data modification method and device, electronic equipment and storage medium | |
CN113760907A (en) | Data uniqueness identification method in database | |
WO2019137365A1 (en) | Method and device for creating index and performing search in cloud search platform |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170322 |
|
RJ01 | Rejection of invention patent application after publication |