CN103729204A - Data on-line migration method and device for updating applications in network platform - Google Patents

Data on-line migration method and device for updating applications in network platform Download PDF

Info

Publication number
CN103729204A
CN103729204A CN201210392891.0A CN201210392891A CN103729204A CN 103729204 A CN103729204 A CN 103729204A CN 201210392891 A CN201210392891 A CN 201210392891A CN 103729204 A CN103729204 A CN 103729204A
Authority
CN
China
Prior art keywords
application
redaction
legacy
database
data storehouse
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.)
Granted
Application number
CN201210392891.0A
Other languages
Chinese (zh)
Other versions
CN103729204B (en
Inventor
张希魁
宋金华
吴盼盼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201210392891.0A priority Critical patent/CN103729204B/en
Publication of CN103729204A publication Critical patent/CN103729204A/en
Application granted granted Critical
Publication of CN103729204B publication Critical patent/CN103729204B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a data on-line migration method and device for updating applications in a network platform in order to solve the problem that services fail to be executed in the prior art. The method includes the steps that at the first stage of updating, a new version application and an old version application are run simultaneously, and the new version application and the old version application have access to an old database in the running process; the first stage of updating is finished, data in the old database are all synchronized to a new database, the second stage of updating is carried out, the new version application and the old version application are run simultaneously, the new version application has access to the new database in the running process, and the old version application has access to the old database; the second stage of updating is finished, the third step stage of updating is carried out, the new version application and the old version application are run simultaneously, and the new version application and the old version application have access to the new database in the running process; when the third stage of updating is finished, the new version application is run, and the new version application has access to the new database in the running process.

Description

Online data moving method and device that in a kind of network platform, application is upgraded
Technical field
The application relates to data processing technique, particularly relates to the online data moving method device that in a kind of network platform, application is upgraded.
Background technology
When user uses computing machine, software usually can upgrade, and adopts redaction replace old version.Application platform in network is also so, in order to provide better service, the application in platform to tend to increase new function, improve old function etc. to user, now will produce redaction application.Redaction application needs to debug to not having after mistake, formally on-line running, and redaction application need to be tried out in the network platform, could find wrong, modification mistake finally to complete debugging.In order not affect the execution of business in platform, can move redaction application and legacy version application simultaneously, a business can be carried out in redaction application, also can in legacy version application, carry out.
When in platform, application is upgraded, often database also needs to revise, be that redaction application tends to carry new database, when therefore new in the network platform, legacy version application moves jointly, just there will be situation new, that legacy data storehouse coexists, therefore just there will be the problem of online data migration.If now directly adopt redaction application access new database, legacy version application access legacy data storehouse, it is differentiated due to business new, legacy version application, carrying out, therefore the operation of data also be there are differences, for example, in redaction application, business has been finished, and in legacy version, business is also being carried out, and so now just may occur the inconsistent problem of data.If user inquires about the now state of business, new, legacy version application will be returned to different data, causes user's puzzlement.
In order to address the above problem, adopt method be in advance by the Data Migration in legacy data storehouse in new database, then when new, legacy version application move jointly, new database is still normally accessed in redaction application, still, during legacy version application access legacy data storehouse, can lock table handling, forbid the write operation to legacy data storehouse, so now legacy version application only can read data, can not write data, and then unlatching new database is synchronous to the increment in legacy data storehouse.Like this, in business is carried out, the change of data just only can occur in new database, and by increment synchronously can guarantee newly, data consistent in legacy data storehouse.
But the problem that this method exists is, owing to having forbidden that legacy version apply the write operation to legacy data storehouse, will cause the business in legacy version is applied to be carried out unsuccessfully.
Summary of the invention
Online data moving method and system that the application provides in a kind of network platform application to upgrade, to solve in prior art, owing to having forbidden that legacy version apply the write operation to legacy data storehouse, will cause the business in legacy version is applied to carry out failed problem.
In order to address the above problem, the online data moving method that in a kind of network platform, application is upgraded is disclosed in the embodiment of the present application, comprising:
The first stage of upgrading is moved redaction application and legacy version application simultaneously, and redaction application in service and legacy version application conduct interviews to legacy data storehouse, and described legacy data storehouse is the database of legacy version application in the network platform;
Finish the first stage of upgrading, data full dose in legacy data storehouse is synchronized in new database, and enter the subordinate phase of renewal, move redaction application and legacy version application simultaneously, redaction application in service conducts interviews to new database, legacy version application conducts interviews to legacy data storehouse, and wherein, described new database is the database of redaction application in the network platform;
Finish the subordinate phase of upgrading, and enter the phase III of renewal, move redaction application and legacy version application simultaneously, redaction application in service and legacy version application conduct interviews to new database;
The phase III of upgrading, while finishing, operation redaction was applied, and redaction application in service conducts interviews to new database.
In the embodiment of the present application, described access comprises read operation and write operation.
In the embodiment of the present application, the first stage of renewal also comprises: when redaction application is failed to the read operation in legacy data storehouse, new database is carried out to read operation.
In the embodiment of the present application, after the first stage that finishes to upgrade, before entering the subordinate phase of renewal, also comprise: open the increment that arrives new database in legacy data storehouse synchronous.
In the embodiment of the present application, the subordinate phase of renewal also comprises: when legacy version application is failed to the read operation in legacy data storehouse, new database is carried out to read operation; When redaction application is failed to the read operation of new database, read operation is carried out in legacy data storehouse.
In the embodiment of the present application, the phase III of renewal also comprises: when legacy version application is failed to the read operation of new database, read operation is carried out in legacy data storehouse.
In the embodiment of the present application, confirm that redaction application is connected normally with new database, and after countless certificates write in new database, finish the first stage of upgrading.
In the embodiment of the present application, before entering the subordinate phase of renewal, also comprise: by the database update of redaction application access, be new database.
In the embodiment of the present application, confirm that redaction application is normal to the access of new database, and redaction application to legacy data storehouse without write operation after, finish the subordinate phase of upgrading.
In the embodiment of the present application, before entering the phase III of renewal, also comprise: by the database update of legacy version application access, be new database.
In the embodiment of the present application, confirm newly apply legacy data storehouse without read operation and write operation, and redaction application and legacy data storehouse be without after linking the phase III of end renewal.
In the embodiment of the present application, the first stage of upgrading in end is to entering in the time period of subordinate phase of renewal, and in the time period of trying out to the phase III that enters renewal in the subordinate phase that finishes to upgrade, redaction out of service is applied.
Accordingly, in the embodiment of the present application, also disclose the online data moving apparatus that in a kind of network platform, application is upgraded, having comprised:
The first operation module is moved redaction application and legacy version application for the first stage of upgrading simultaneously, and redaction application in service and legacy version are applied legacy data storehouse is conducted interviews, and described legacy data storehouse is the database that in the network platform, legacy version is applied;
The second operation module, for the first stage that finishes to upgrade, and enter the subordinate phase of renewal, move redaction application and legacy version application simultaneously, redaction application in service conducts interviews to new database, legacy version application conducts interviews to legacy data storehouse, and wherein, described new database is the database of redaction application in the network platform;
The 3rd operation module, for the subordinate phase that finishes to upgrade, and enters the phase III of renewal, moves redaction application and legacy version application simultaneously, and redaction application in service and legacy version application conduct interviews to new database;
Redaction operation module, while finishing for the phase III of upgrading, the application of operation redaction, redaction application in service conducts interviews to new database.
Compared with prior art, the embodiment of the present application comprises following advantage:
First, the embodiment of the present application is applied while upgrading in the network platform, the renewal that divides three phases to apply, in every one-phase, all move redaction application and legacy version application simultaneously, but different phase is new, the database difference of legacy version application access, can be access legacy data storehouse or new database, can be also access legacy data storehouse and new database.When new, legacy version application access database, can not limit, can not lock table handling, therefore there will not be the failure problem of application access database, can guarantee the normal execution of business.
Secondly, in prior art, because write operation is not carried out in legacy data storehouse, just need to carry out from new database to legacy data storehouse increment when synchronous, the time of Data Migration is long, also in the time of will causing from legacy data storehouse read data, need the long time just can get result, relatively lose time.And in the embodiment of the present application, in the first stage redaction of upgrading, apply carrying out read operation in new, legacy data storehouse; In the subordinate phase of upgrading, new, legacy version application can be carried out read operation to new, legacy data storehouse; In the phase III legacy version application of upgrading, to new, legacy data storehouse, can carry out read operation.By said method, even if make the Data Migration time long, when application read data when failure from a database, also can from another database, read, thereby can read fast data, can not carry out by traffic affecting.
Accompanying drawing explanation
Fig. 1 is the online data moving method process flow diagram that in a kind of network platform, application is upgraded described in the embodiment of the present application;
Fig. 2 is the schematic diagram of application to database access in three phases described in the embodiment of the present application;
Fig. 3 is the schematic diagram of application to database access in the first stage of upgrading described in the application's preferred embodiment;
Fig. 4 is the schematic diagram of application to database access in the subordinate phase of upgrading described in the application's preferred embodiment;
Fig. 5 is the schematic diagram of application to database access in the phase III of upgrading described in the application's preferred embodiment;
Fig. 6 is the online data moving apparatus structural drawing that in a kind of network platform, application is upgraded described in the embodiment of the present application.
Embodiment
For the above-mentioned purpose, the feature and advantage that make the application can become apparent more, below in conjunction with the drawings and specific embodiments, the application is described in further detail.
When user uses computing machine, software usually can upgrade, and adopts redaction replace old version.Application platform in network is also so, in order to provide better service, the application in platform to tend to increase new function, improve old function etc. to user, now will produce redaction application.Redaction application needs to debug to not having after mistake, formally on-line running, and redaction application need to be tried out in the network platform, could find wrong, modification mistake finally to complete debugging.In order not affect the execution of business in platform, can move redaction application and legacy version application simultaneously, a business can be carried out in redaction application, also can in legacy version application, carry out.
While upgrading application in the network platform, need to move online data.If adopt method be in advance by the Data Migration in legacy data storehouse in new database, then when new, legacy version application move jointly, new database is still accessed in redaction application, but, during legacy version application access legacy data storehouse, forbid the write operation to legacy data storehouse, i.e. legacy version application only can read data, can not write data, and then unlatching new database is synchronous to the increment in legacy data storehouse.Like this, in business is carried out, the change of data just only can occur in new database, and by increment synchronously can guarantee newly, data consistent in legacy data storehouse.
But the problem that this method exists is, owing to having forbidden that legacy version apply the write operation to legacy data storehouse, will cause the business in legacy version is applied to be carried out unsuccessfully.
Therefore, the application proposes the online data moving method that in a kind of network platform, application is upgraded, the renewal of applying stage by stage, and new, legacy version application can conduct interviews to database, there will not be the problem of service fail.
With reference to Fig. 1, provided the online data moving method process flow diagram that in a kind of network platform, application is upgraded described in the embodiment of the present application.
With reference to Fig. 2, provided described in the embodiment of the present application the schematic diagram of application to database access in three phases.
Step 101, the first stage of renewal is moved redaction application and legacy version application simultaneously, and redaction application in service and legacy version application conduct interviews to legacy data storehouse;
When in system, application is upgraded, existence is simultaneously new, legacy version is applied and new, legacy data storehouse, the renewal that therefore can divide three phases to apply.
The first stage of upgrading, as shown in a in Fig. 2, in the first stage of upgrading, had both been moved redaction application in system, move again legacy version application.In service, legacy version application access legacy data storehouse, the same access of redaction application legacy data storehouse, wherein, described legacy data storehouse is the database of legacy version application in the network platform.
In above-mentioned operational process, can detect redaction application and whether have problems, if having problems, can revise, then rerun, until finish the first stage of upgrading.
Step 102, finish the first stage of upgrading, data full dose in legacy data storehouse is synchronized in new database, and enter the subordinate phase of renewal, move redaction application and legacy version application simultaneously, redaction application in service conducts interviews to new database, and legacy version application conducts interviews to legacy data storehouse;
After the first stage that finishes to upgrade, because redaction application in the subordinate phase of upgrading can be accessed new database, therefore before entering the subordinate phase of renewal, can first the data full dose in legacy data storehouse be synchronized in new database, make to preserve the Various types of data in system in new database, while preventing redaction application access, may occur failed problem.
Then can enter the subordinate phase of renewal, as shown in b in Fig. 2.Now system had both been moved redaction application in being equally, move again legacy version application, and when the subordinate phase of upgrading, legacy version application still conducts interviews to legacy data storehouse, but now different from the first stage of upgrading, redaction application is now that new database is conducted interviews.Wherein, described new database is the database of redaction application in the network platform.
In the subordinate phase of upgrading, can detect equally redaction application and whether have problems, if having problems, can revise, then rerun, until finish the subordinate phase of upgrading.
Step 103, finishes the subordinate phase of renewal, and enters the phase III of renewal, moves redaction application and legacy version application simultaneously, and redaction application in service and legacy version application conduct interviews to new database;
After the subordinate phase that finishes to upgrade, can enter the phase III of renewal, as shown in c in Fig. 2.In system, both move redaction application, moved again legacy version application.In the phase III of upgrading, redaction application still conducts interviews to new database, but now different from the subordinate phase of upgrading, and legacy version application conducts interviews to new database.
In the phase III of upgrading, confirm that new application is no problem, complete and just can finish phase III of upgrading after debugging.
Step 104, the phase III of renewal, while finishing, operation redaction was applied, and redaction application in service conducts interviews to new database.
After the phase III of upgrading finishes, complete the renewal of application, redaction application can formally be reached the standard grade, and can in system, only move redaction application, and redaction application conducts interviews to new data.
In sum, the embodiment of the present application is applied while upgrading in the network platform, the renewal that divides three phases to apply, in every one-phase, all move redaction application and legacy version application simultaneously, but different phase is new, the database difference of legacy version application access, can be access legacy data storehouse or new database, can be also access legacy data storehouse and new database.When new, legacy version application access database, can not limit, can not lock table handling, therefore there will not be the failure problem of application access database, can guarantee the normal execution of business.
In the embodiment of the present application, described access can comprise read operation and write operation.In the first stage of upgrading, redaction application and legacy version application are carried out read operation and write operation to legacy data storehouse; In the subordinate phase of upgrading, redaction application is carried out read operation and write operation to new database, and legacy version application is carried out read operation and write operation to legacy data storehouse; In the phase III of upgrading, redaction application and legacy version application are carried out read operation and write operation to new database.The phase III of upgrading, while finishing, operation redaction was applied, and redaction application in service is carried out read operation and write operation to new database.
Described read operation applies read data from database, and described write operation is for application is by data write into Databasce.
With reference to Fig. 3, provided the schematic diagram of application to database access in the first stage of upgrading described in the application's preferred embodiment.
Application issue refers to newly and is applied in system and moves, and legacy version was applied in system and moved before application issue the first stage of therefore upgrading, and legacy version application is that read operation and write operation are carried out in legacy data storehouse.
Before application issue, the data source in system is legacy data storehouse, and the first stage of upgrading needs new database when application is issued, and therefore can in system, increase new database is data source.
During application issue, redaction application and legacy version application move simultaneously in system, and now, redaction application and legacy version application are all carried out read operation and write operation to legacy data storehouse.When redaction application is failed to the read operation in legacy data storehouse, new database is carried out to read operation.
After application issue, read operation and write operation are carried out in redaction application legacy data storehouse, when redaction application is failed to the read operation in legacy data storehouse, new database is carried out to read operation, thereby can guarantee reading out data, and traffic affecting is not normally carried out.
In the first stage of upgrading, if redaction application existing problems detected after issue, need debugging, can in system, carry out rolling back action, the system of being about to is returned to the state before application issue, due to before application issue and new in issue, legacy version application all read operation and write operation are carried out in legacy data storehouse, be the data of preserving the business of redaction application and legacy version application execution during issue in legacy data storehouse, therefore in rolling back action, only need application to carry out rollback, do not need database to carry out rollback.
In the first stage of upgrading, do not need to carry out the migration of data, whether the link that can detect redaction application and new database in this process is normal, and data whether have been write then in detection new database, confirming that redaction application is connected with new database normally, and after countless certificates write in new database, can finish the first stage of upgrading.
With reference to Fig. 4, provided the schematic diagram of application to database access in the subordinate phase of upgrading described in the application's preferred embodiment.
After finishing the first stage of upgrading, before entering the subordinate phase of renewal, the data full dose in legacy data storehouse can be synchronized in new database, will be synchronized in new database with regard to all data in database.And, in order to increase the hit rate of historical data, guarantee that data can not make mistakes, open legacy data storehouse synchronous to the increment of new database, business can timing or real-time being synchronized in new database with regard to the data in database in carrying out.
In the first stage that finishes to upgrade, to entering in the time period of subordinate phase of renewal, redaction out of service is applied, and what in system, move is legacy version application.
Before entering the subordinate phase of renewal, can be new database by the database update of redaction application access.Be that the subordinate phase that redaction is applied in renewal is carried out read operation and write operation to new database.
In the subordinate phase of upgrading, apply before issue, move legacy version application in system, now legacy version application is carried out read operation and write operation to legacy data storehouse, if when legacy version application is failed to the read operation in legacy data storehouse, new database is carried out to read operation.
In the embodiment of the present application, described read operation unsuccessfully can be understood as business datum and inquires about unsuccessfully.In as discussed above, the read operation failure of legacy version application to legacy data storehouse, be that legacy version is applied in legacy data storehouse and does not inquire data, now can carry out read operation again in new database, in new database, inquire about these data, thereby make can read data in new, legacy data storehouse, guarantee the normal execution of business.
During application issue, in system, move legacy version application and redaction application simultaneously, wherein, legacy version application is carried out read operation and write operation to legacy data storehouse, redaction application is carried out read operation and write operation to new database, but, when legacy version application is failed to the read operation in legacy data storehouse, new database is carried out to read operation; When redaction application is failed to the read operation of new database, read operation is carried out in legacy data storehouse.Thereby by the method, can guarantee the successful execution of read operation, can not cause business.
Can configure the database that first carries out read operation is default database, after carry out read operation database be standby database, in the subordinate phase of upgrading, for legacy version application, legacy data storehouse is default database, new database is standby database; For redaction application, new database is default database, and legacy data storehouse is standby database.Wherein, if service needed is returned to the data that read in 3s, in the time of can being configured to not read data from default database in 1s, transfer reading out data from standby database to.Therefore, the application is reading out data fast, avoids traffic affecting to carry out.
In prior art, because write operation is not carried out in legacy data storehouse, just need to carry out from new database to legacy data storehouse increment when synchronous, the time of Data Migration is long, also in the time of will causing from legacy data storehouse read data, need the long time just can get result, relatively lose time.And the embodiment of the present application is by above-mentioned method, can address this problem well, can not cause waste of time, and guarantee the execution of business, meet the demand of business.
In actual treatment, by said method data query, to read operation new, legacy data storehouse, can in 10 milliseconds, complete, processing speed is very fast, execution that can supporting business, for example, method described in the embodiment of the present application is applied in the payment platform of ecommerce, the payment data of inquiring user fast, the probability of minimizing malformed queries, meets business for the requirement of obtaining fast and accurately data.
After application issue, redaction application is carried out read operation and write operation to new database, when redaction application is failed to the read operation of new database, read operation is carried out in legacy data storehouse.
In the subordinate phase of upgrading, if redaction application existing problems detected after issue, need debugging, can in system, carry out rolling back action, the system of being about to is returned to the state before application issue, because legacy version application before application issue and in issue is all carried out read operation and write operation to legacy data storehouse, in legacy data storehouse, preserves the data of the business that legacy version application is carried out during issue, therefore in rolling back action, only need application to carry out rollback, do not need database to carry out rollback.
In the subordinate phase of upgrading, after issue, can detect redaction application and whether write operation carried out in legacy data storehouse, and whether detecting redaction, to apply read operation and write operation to new database normal.Confirming that redaction application is normal to the access of new database, i.e. read operation and write operation are normal, and redaction application to legacy data storehouse without write operation after, can finish the subordinate phase of upgrading.
With reference to Fig. 5, provided the schematic diagram of application to database access in the phase III of upgrading described in the application's preferred embodiment.
In the subordinate phase that finishes to upgrade, to entering in the time period of phase III trial run of renewal, redaction out of service is applied, and what in system, move is legacy version application.
Before entering the phase III of renewal, can be new database by the database update of legacy version application access, i.e. legacy version application is carried out read operation and write operation to new database.
In the phase III of upgrading, apply before issue, move legacy version application in system, now legacy version application is carried out read operation and write operation to new database, when legacy version application is failed to the read operation of new database, read operation is carried out in legacy data storehouse.
Apply in issue, legacy version application and redaction application are all carried out read operation and write operation to new database, when legacy version application is failed to the read operation of new database, read operation are carried out in legacy data storehouse.Equally, by the method reading out data fast, guarantee the normal execution of business.
After application issue, redaction application is all carried out read operation and write operation to new database.
In the subordinate phase of upgrading, if redaction application existing problems detected after issue, need debugging, can in system, carry out rolling back action, the system of being about to is returned to the state before application issue, because legacy version application before application issue and in issue is all carried out read operation and write operation to new database, in new database, preserves the data of the business that legacy version application is carried out during issue, therefore in rolling back action, only need application to carry out rollback, do not need database to carry out rollback.
In the subordinate phase of upgrading, whether to legacy data storehouse do not have read operation and write operation, and detection redaction applies and whether legacy data storehouse exists link if after issue, can detect redaction application.Confirming that new application does not have read operation and write operation to legacy data storehouse, and redaction application and legacy data storehouse without link after, finish phase III of renewal.
After the phase III of upgrading finishes, after confirming that redaction application is no problem, can carry out the processing of rolling off the production line in legacy data storehouse, soon in the data source of system, delete legacy data storehouse, during this time, need to carry out data backup, the operations such as the tables of data rename in legacy data storehouse, then continue to observe a period of time, and confirmation redaction is applied in system to be moved after no problem, can commencement of commercial operation redaction apply, finish legacy version and be applied in the operation in system.
In sum, in prior art because write operation is not carried out in legacy data storehouse, just need to carry out from new database to legacy data storehouse increment when synchronous, the time of Data Migration is long, also in the time of will causing from legacy data storehouse read data, need the long time just can get result, relatively lose time.And in the embodiment of the present application, in the first stage redaction of upgrading, apply carrying out read operation in new, legacy data storehouse; In the subordinate phase of upgrading, new, legacy version application can be carried out read operation to new, legacy data storehouse; In the phase III legacy version application of upgrading, to new, legacy data storehouse, can carry out read operation.By said method, even if make the Data Migration time long, when application read data when failure from a database, also can from another database, read, thereby can read fast data, can not carry out by traffic affecting.
With reference to Fig. 6, provided the online data moving apparatus structural drawing that in a kind of network platform, application is upgraded described in the embodiment of the present application.
Accordingly, the application also provides the online data moving apparatus that in a kind of network platform, application is upgraded, and comprising: the first operation module 11, the second operation module 12, the 3rd operation module 13 and redaction operation module 14, wherein:
The first operation module 11 is moved redaction application and legacy version application for the first stage of upgrading simultaneously, and redaction application in service and legacy version are applied legacy data storehouse is conducted interviews, and described legacy data storehouse is the database that in the network platform, legacy version is applied;
The second operation module 12, for the first stage that finishes to upgrade, and enter the subordinate phase of renewal, move redaction application and legacy version application simultaneously, redaction application in service conducts interviews to new database, legacy version application conducts interviews to legacy data storehouse, and wherein, described new database is the database of redaction application in the network platform;
The 3rd operation module 13, for the subordinate phase that finishes to upgrade, and enters the phase III of renewal, moves redaction application and legacy version application simultaneously, and redaction application in service and legacy version application conduct interviews to new database;
Redaction operation module 14, while finishing for the phase III of upgrading, the application of operation redaction, redaction application in service conducts interviews to new database.
Preferably, described access comprises read operation and write operation.
Preferably, described the first operation module 11, also during to the read operation failure in legacy data storehouse, carries out read operation to new database for redaction application.
Preferably, the second operation module 12, also, for after the first stage that finishes to upgrade, before entering the subordinate phase of renewal, the data full dose in legacy data storehouse is synchronized in new database, and it is synchronous to open the increment that arrives new database in legacy data storehouse.
Preferably, described the second operation module 12, also during to the read operation failure in legacy data storehouse, carries out read operation to new database for legacy version application; When redaction application is failed to the read operation of new database, read operation is carried out in legacy data storehouse.
Preferably, described the 3rd operation module 13, also during to the read operation failure of new database, carries out read operation to legacy data storehouse for legacy version application.
Preferably, confirm that redaction application is connected normally with new database, and after countless certificates write in new database, finish the first stage of upgrading.
Preferably, described the second operation module 12,, for before entering the subordinate phase of renewal, is also new database by the database update of redaction application access.
Preferably, confirm that redaction application is normal to the access of new database, and redaction application to legacy data storehouse without write operation after, finish the subordinate phase of upgrading.
Preferably, described the 3rd operation module 13,, for before entering the phase III of renewal, is also new database by the database update of legacy version application access.
Preferably, confirm newly apply legacy data storehouse without read operation and write operation, and redaction application and legacy data storehouse be without after linking the phase III of end renewal.
Preferably, the first stage of upgrading in end is to entering in the time period of subordinate phase of renewal, and in the time period of trying out to the phase III that enters renewal in the subordinate phase that finishes to upgrade, redaction out of service is applied.
For system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
Each embodiment in this instructions all adopts the mode of going forward one by one to describe, and each embodiment stresses is and the difference of other embodiment, between each embodiment identical similar part mutually referring to.
Those skilled in the art should understand, the application's embodiment can be provided as method, system or computer program.Therefore, the application can adopt complete hardware implementation example, completely implement software example or the form in conjunction with the embodiment of software and hardware aspect.And the application can adopt the form at one or more upper computer programs of implementing of computer-usable storage medium (including but not limited to magnetic disk memory, CD-ROM, optical memory etc.) that wherein include computer usable program code.
Although described the application's preferred embodiment, once those skilled in the art obtain the basic creative concept of cicada, can make other change and modification to these embodiment.So claims are intended to be interpreted as comprising preferred embodiment and fall into all changes and the modification of the application's scope.
The application is with reference to describing according to process flow diagram and/or the block scheme of the method for the embodiment of the present application, equipment (system) and computer program.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or block scheme and/or square frame and process flow diagram and/or block scheme and/or the combination of square frame.Can provide these computer program instructions to the processor of multi-purpose computer, special purpose computer, Embedded Processor or other programmable data processing device to produce a machine, the instruction that makes to carry out by the processor of computing machine or other programmable data processing device produces the device for realizing the function of specifying at flow process of process flow diagram or multiple flow process and/or square frame of block scheme or multiple square frame.
These computer program instructions also can be stored in energy vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work, the instruction that makes to be stored in this computer-readable memory produces the manufacture that comprises command device, and this command device is realized the function of specifying in flow process of process flow diagram or multiple flow process and/or square frame of block scheme or multiple square frame.
These computer program instructions also can be loaded in computing machine or other programmable data processing device, make to carry out sequence of operations step to produce computer implemented processing on computing machine or other programmable devices, thereby the instruction of carrying out is provided for realizing the step of the function of specifying in flow process of process flow diagram or multiple flow process and/or square frame of block scheme or multiple square frame on computing machine or other programmable devices.
Finally, also it should be noted that, in this article, relational terms such as the first and second grades is only used for an entity or operation to separate with another entity or operational zone, and not necessarily requires or imply and between these entities or operation, have the relation of any this reality or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thereby the process, method, commodity or the equipment that make to comprise a series of key elements not only comprise those key elements, but also comprise other key elements of clearly not listing, or be also included as the intrinsic key element of this process, method, commodity or equipment.The in the situation that of more restrictions not, the key element being limited by statement " comprising ... ", and be not precluded within process, method, commodity or the equipment that comprises described key element and also have other identical element.
The online data moving method device that in a kind of network platform above the application being provided, application is upgraded, be described in detail, applied principle and the embodiment of specific case to the application herein and set forth, the explanation of above embodiment is just for helping to understand the application's method and core concept thereof; , for one of ordinary skill in the art, according to the application's thought, all will change in specific embodiments and applications, in sum, this description should not be construed as the restriction to the application meanwhile.

Claims (13)

1. the online data moving method that in the network platform, application is upgraded, is characterized in that, comprising:
The first stage of upgrading is moved redaction application and legacy version application simultaneously, and redaction application in service and legacy version application conduct interviews to legacy data storehouse, and described legacy data storehouse is the database of legacy version application in the network platform;
Finish the first stage of upgrading, data full dose in legacy data storehouse is synchronized in new database, and enter the subordinate phase of renewal, move redaction application and legacy version application simultaneously, redaction application in service conducts interviews to new database, legacy version application conducts interviews to legacy data storehouse, and wherein, described new database is the database of redaction application in the network platform;
Finish the subordinate phase of upgrading, and enter the phase III of renewal, move redaction application and legacy version application simultaneously, redaction application in service and legacy version application conduct interviews to new database;
The phase III of upgrading, while finishing, operation redaction was applied, and redaction application in service conducts interviews to new database.
2. method according to claim 1, is characterized in that, described access comprises read operation and write operation.
3. method according to claim 2, is characterized in that, the first stage of renewal also comprises:
When redaction application is failed to the read operation in legacy data storehouse, new database is carried out to read operation.
4. method according to claim 1, is characterized in that, after the first stage that finishes to upgrade, before entering the subordinate phase of renewal, also comprises:
Open legacy data storehouse synchronous to the increment of new database.
5. method according to claim 4, is characterized in that, the subordinate phase of renewal also comprises:
When legacy version application is failed to the read operation in legacy data storehouse, new database is carried out to read operation;
When redaction application is failed to the read operation of new database, read operation is carried out in legacy data storehouse.
6. method according to claim 2, is characterized in that, the phase III of renewal also comprises:
When legacy version application is failed to the read operation of new database, read operation is carried out in legacy data storehouse.
7. method according to claim 1, is characterized in that, confirms that redaction application is connected normally with new database, and after countless certificates write in new database, finishes the first stage of upgrading.
8. method according to claim 7, is characterized in that, before entering the subordinate phase of renewal, also comprises: by the database update of redaction application access, be new database.
9. method according to claim 1, is characterized in that, confirms that redaction application is normal to the access of new database, and redaction application to legacy data storehouse without write operation after, finish the subordinate phase of upgrading.
10. method according to claim 9, is characterized in that, before entering the phase III of renewal, also comprises: by the database update of legacy version application access, be new database.
11. methods according to claim 1, is characterized in that, confirm newly apply legacy data storehouse without read operation and write operation, and redaction application and legacy data storehouse are without after linking the phase III of end renewal.
12. methods according to claim 1, is characterized in that, also comprise:
The first stage of upgrading in end is to entering in the time period of subordinate phase of renewal, and in the time period of trying out to the phase III that enters renewal in the subordinate phase that finishes to upgrade, redaction out of service is applied.
The online data moving apparatus that in 13. 1 kinds of network platforms, application is upgraded, is characterized in that, comprising:
The first operation module is moved redaction application and legacy version application for the first stage of upgrading simultaneously, and redaction application in service and legacy version are applied legacy data storehouse is conducted interviews, and described legacy data storehouse is the database that in the network platform, legacy version is applied;
The second operation module, for the first stage that finishes to upgrade, and enter the subordinate phase of renewal, move redaction application and legacy version application simultaneously, redaction application in service conducts interviews to new database, legacy version application conducts interviews to legacy data storehouse, and wherein, described new database is the database of redaction application in the network platform;
The 3rd operation module, for the subordinate phase that finishes to upgrade, and enters the phase III of renewal, moves redaction application and legacy version application simultaneously, and redaction application in service and legacy version application conduct interviews to new database;
Redaction operation module, while finishing for the phase III of upgrading, the application of operation redaction, redaction application in service conducts interviews to new database.
CN201210392891.0A 2012-10-16 2012-10-16 Using the online data moving method and device of renewal in a kind of network platform Active CN103729204B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210392891.0A CN103729204B (en) 2012-10-16 2012-10-16 Using the online data moving method and device of renewal in a kind of network platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210392891.0A CN103729204B (en) 2012-10-16 2012-10-16 Using the online data moving method and device of renewal in a kind of network platform

Publications (2)

Publication Number Publication Date
CN103729204A true CN103729204A (en) 2014-04-16
CN103729204B CN103729204B (en) 2017-11-24

Family

ID=50453290

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210392891.0A Active CN103729204B (en) 2012-10-16 2012-10-16 Using the online data moving method and device of renewal in a kind of network platform

Country Status (1)

Country Link
CN (1) CN103729204B (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105278962A (en) * 2015-11-04 2016-01-27 北京星网锐捷网络技术有限公司 Applications, hot deployment method of database and device
CN106874341A (en) * 2016-12-23 2017-06-20 航天星图科技(北京)有限公司 A kind of database synchronization method
CN107066294A (en) * 2017-03-17 2017-08-18 深圳市邦华电子有限公司 One kind application installation method, device and a kind of intelligent terminal
CN107273139A (en) * 2017-07-05 2017-10-20 努比亚技术有限公司 A kind of method for updating system, equipment and computer-readable recording medium
CN107357866A (en) * 2017-07-01 2017-11-17 广东电网有限责任公司信息中心 A kind of production domesticization moving method of information system for power enterprise middleware, database
CN108874828A (en) * 2017-05-12 2018-11-23 北京京东尚科信息技术有限公司 The method and apparatus of Data Migration
CN109656908A (en) * 2018-11-30 2019-04-19 广州品唯软件有限公司 A kind of online moving method of database, electronic equipment and storage medium
CN109829016A (en) * 2019-01-25 2019-05-31 网宿科技股份有限公司 A kind of method of data synchronization and device
CN109863474A (en) * 2016-09-23 2019-06-07 维萨国际服务协会 Update migratory system and method
CN110083364A (en) * 2018-01-25 2019-08-02 西门子股份公司 It is related to the dispositions method of mode altering in the system of database
CN110494849A (en) * 2017-03-31 2019-11-22 甲骨文国际公司 For determining the successful system and method for cross-platform migration
CN110795118A (en) * 2019-09-11 2020-02-14 烽火通信科技股份有限公司 Cloud platform upgrading tool and upgrading method
CN111427889A (en) * 2020-03-23 2020-07-17 北京三体云时代科技有限公司 Method and device for upgrading database table and server
CN111506592A (en) * 2020-04-21 2020-08-07 腾讯科技(深圳)有限公司 Method and device for upgrading database
CN112395267A (en) * 2020-10-23 2021-02-23 四川新网银行股份有限公司 Non-stop service user data migration switching method
CN112596667A (en) * 2019-10-01 2021-04-02 阿里巴巴集团控股有限公司 High throughput method and system for organizing NAND blocks and placing data for random writing in a solid state drive
CN112632032A (en) * 2020-12-18 2021-04-09 华人运通(上海)云计算科技有限公司 Data migration method and device, storage medium and terminal equipment
CN115473815A (en) * 2022-08-23 2022-12-13 浪潮通信信息系统有限公司 Service migration system and method based on equipment change

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6202207B1 (en) * 1998-01-28 2001-03-13 International Business Machines Corporation Method and a mechanism for synchronized updating of interoperating software
CN101102219B (en) * 2007-07-30 2010-06-23 华为技术有限公司 Software update system and software update method
EP2513786A1 (en) * 2009-12-15 2012-10-24 Telefonaktiebolaget L M Ericsson (PUBL) A method of updating versioned software using a shared cache

Cited By (25)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105278962A (en) * 2015-11-04 2016-01-27 北京星网锐捷网络技术有限公司 Applications, hot deployment method of database and device
CN109863474A (en) * 2016-09-23 2019-06-07 维萨国际服务协会 Update migratory system and method
CN109863474B (en) * 2016-09-23 2024-01-09 维萨国际服务协会 Update migration system and method
CN106874341A (en) * 2016-12-23 2017-06-20 航天星图科技(北京)有限公司 A kind of database synchronization method
CN106874341B (en) * 2016-12-23 2022-04-05 中科星图股份有限公司 Database synchronization method
CN107066294A (en) * 2017-03-17 2017-08-18 深圳市邦华电子有限公司 One kind application installation method, device and a kind of intelligent terminal
CN110494849A (en) * 2017-03-31 2019-11-22 甲骨文国际公司 For determining the successful system and method for cross-platform migration
CN108874828A (en) * 2017-05-12 2018-11-23 北京京东尚科信息技术有限公司 The method and apparatus of Data Migration
CN107357866B (en) * 2017-07-01 2020-12-22 广东电网有限责任公司信息中心 Localization migration method for middleware and database of electric power enterprise information system
CN107357866A (en) * 2017-07-01 2017-11-17 广东电网有限责任公司信息中心 A kind of production domesticization moving method of information system for power enterprise middleware, database
CN107273139A (en) * 2017-07-05 2017-10-20 努比亚技术有限公司 A kind of method for updating system, equipment and computer-readable recording medium
CN110083364A (en) * 2018-01-25 2019-08-02 西门子股份公司 It is related to the dispositions method of mode altering in the system of database
CN110083364B (en) * 2018-01-25 2024-03-08 西门子股份公司 Deployment method involving mode changes in a database system
CN109656908A (en) * 2018-11-30 2019-04-19 广州品唯软件有限公司 A kind of online moving method of database, electronic equipment and storage medium
CN109829016A (en) * 2019-01-25 2019-05-31 网宿科技股份有限公司 A kind of method of data synchronization and device
CN110795118A (en) * 2019-09-11 2020-02-14 烽火通信科技股份有限公司 Cloud platform upgrading tool and upgrading method
CN112596667A (en) * 2019-10-01 2021-04-02 阿里巴巴集团控股有限公司 High throughput method and system for organizing NAND blocks and placing data for random writing in a solid state drive
CN111427889A (en) * 2020-03-23 2020-07-17 北京三体云时代科技有限公司 Method and device for upgrading database table and server
CN111506592A (en) * 2020-04-21 2020-08-07 腾讯科技(深圳)有限公司 Method and device for upgrading database
CN111506592B (en) * 2020-04-21 2023-12-26 腾讯云计算(长沙)有限责任公司 Database upgrading method and device
CN112395267A (en) * 2020-10-23 2021-02-23 四川新网银行股份有限公司 Non-stop service user data migration switching method
CN112395267B (en) * 2020-10-23 2023-06-13 四川新网银行股份有限公司 Method for switching data migration of continuous service user
CN112632032A (en) * 2020-12-18 2021-04-09 华人运通(上海)云计算科技有限公司 Data migration method and device, storage medium and terminal equipment
CN115473815A (en) * 2022-08-23 2022-12-13 浪潮通信信息系统有限公司 Service migration system and method based on equipment change
CN115473815B (en) * 2022-08-23 2024-01-19 浪潮通信信息系统有限公司 Service migration system and method based on equipment change

Also Published As

Publication number Publication date
CN103729204B (en) 2017-11-24

Similar Documents

Publication Publication Date Title
CN103729204A (en) Data on-line migration method and device for updating applications in network platform
US8935205B2 (en) System and method of performing snapshot isolation in distributed databases
US9389905B2 (en) System and method for supporting read-only optimization in a transactional middleware environment
KR102072726B1 (en) Systems and methods for supporting inline delegation of middle-tier transaction logs to database
US20180081956A1 (en) Method for automatically synchronizing multi-source heterogeneous data resources
US20070118572A1 (en) Detecting changes in data
EP2891994A1 (en) Method for achieving automatic synchronization of multisource heterogeneous data resources
US11334422B2 (en) System and method for data redistribution in a database
CN102103642B (en) Data-erasure method based on OLTP, system and graphic data base server
CN103390041A (en) Method and system for providing data service based on middleware
US8499298B2 (en) Multiprocessing transaction recovery manager
US20210286799A1 (en) Automated transaction engine
CN102521007B (en) Network management system object concurrency editing method based on affair scheduling
CN103729247A (en) Data acquisition request processing method and system and server
CN102722579A (en) Bisynchronous method for internal database of cluster memory system
CN102200944A (en) Test environment cloning method and system for enterprise resource planning (ERP) system
CN104423982A (en) Request processing method and device
US20150178122A1 (en) Method and system for providing a high-availability application
CN106250501A (en) Report processing method and reporting system
CN109254960B (en) Method and device for migrating mass data of database
CN102193989B (en) Graphic database-based online transaction processing system and data insertion method
CN109614442A (en) Data synchronous data listing maintenance, device, storage medium and electronic equipment
CN115495436A (en) Database upgrading method and device
CN109635040B (en) Real-time data migration method and device and storage medium
CN107153699B (en) Method and device for dynamically expanding cluster server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20191211

Address after: P.O. Box 31119, grand exhibition hall, hibiscus street, 802 West Bay Road, Grand Cayman, Cayman Islands

Patentee after: Innovative advanced technology Co., Ltd

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Patentee before: Alibaba Group Holding Co., Ltd.