CN103729204B - Using the online data moving method and device of renewal in a kind of network platform - Google Patents

Using the online data moving method and device of renewal in a kind of network platform Download PDF

Info

Publication number
CN103729204B
CN103729204B CN201210392891.0A CN201210392891A CN103729204B CN 103729204 B CN103729204 B CN 103729204B CN 201210392891 A CN201210392891 A CN 201210392891A CN 103729204 B CN103729204 B CN 103729204B
Authority
CN
China
Prior art keywords
database
redaction
renewal
application
stage
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.)
Active
Application number
CN201210392891.0A
Other languages
Chinese (zh)
Other versions
CN103729204A (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

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

This application provides the online data moving method and system that renewal is applied in a kind of network platform, to solve the problems, such as that business performs failure in the prior art.Described method includes:First stage of renewal runs redaction and applied and legacy version application simultaneously, and redaction is applied in operation and legacy version to old database using conducting interviews;Terminate the first stage of renewal, data full dose in old database is synchronized in new database, and enters the second stage of renewal, while runs redaction and applies and legacy version application, redaction using being conducted interviews to new database, apply and old database conducted interviews by legacy version in operation;Terminate the second stage of renewal, and enter the phase III of renewal, while run redaction and apply and legacy version application, redaction is applied in operation and legacy version to new database using conducting interviews;At the end of the phase III of renewal, redaction application is run, redaction is applied and new database is conducted interviews in operation.

Description

Using the online data moving method and device of renewal in a kind of network platform
Technical field
The application is related to data processing technique, is migrated more particularly to the online data of renewal is applied in a kind of network platform Square law device.
Background technology
When user uses computer, software can be usually updated, and legacy version is substituted using redaction.Application in network Platform is also that the application in platform often increases New function, improves old function in this way, in order to provide the user with more preferable service Deng will now produce redaction application.Redaction application needs are debugged to after without mistake, the formal on-line running of ability, and Redaction application needs the trial operation in the network platform, could find mistake, modification mistake, be finally completed debugging.For not shadow The execution of business in platform is rung, can run that redaction is applied and legacy version application, i.e. business i.e. can be in redactions simultaneously Perform in, can also be performed in legacy version application.
Using often database is also required to change during renewal in platform, i.e. new database is often carried in redaction application, Therefore when new, legacy version application is operated together in the network platform, the situation that new, old database coexists just occurs, therefore will There is the problem of online data migration.If now directly accessing new database using redaction application, legacy version application accesses old Database, it is differentiated because the business that new, legacy version is applied performs, therefore the operation to data is also what is had differences, For example, business has been finished in redaction application, and business is also being carried out in legacy version, then may now be occurred The problem of data are inconsistent.If user inquires about the state of now business, new, legacy version application will return to different data, make Into the puzzlement of user.
In order to solve the above problems, the method for use be in advance by the Data Migration in old database into new database, Then when new, legacy version application is operated together, redaction application still normally accesses new database, still, legacy version application When accessing old database, lock table handling can be carried out, that is, forbids the write operation to old database, then now legacy version application is only capable of Read data, it is impossible to write data, be then then turned on new database to the increment synchronization of old database.So, the number in business execution According to change just only occur in new database, and can ensure that the data in new, old database are consistent by increment synchronization.
But this method the problem of existing is, write operation to old database is applied due to prohibiting legacy version, will The business in legacy version is applied is caused to perform failure.
The content of the invention
The application is provided using the online data moving method and system of renewal in a kind of network platform, to solve existing skill In art, due to prohibiting legacy version using the write operation to old database, the business that may result in legacy version application performs The problem of failure.
Disclosed in order to solve the above problems, in the embodiment of the present application in a kind of network platform using the online data of renewal Moving method, including:
The first stage of renewal runs redaction and applied with legacy version application simultaneously, redaction application and legacy version in operation Conducted interviews using to old database, the old database is the database that legacy version is applied in the network platform;
Terminate the first stage of renewal, the data full dose in old database is synchronized in new database, and enter renewal Second stage, while run redaction and apply and legacy version application, in operation redaction using being conducted interviews to new database, Legacy version is applied and old database is conducted interviews, wherein, the new database is the database that redaction is applied in the network platform;
The second stage that end updates, and enter the phase III of renewal, while run redaction and answered using with legacy version With redaction is applied in operation and legacy version is applied and new database is conducted interviews;
At the end of the phase III of renewal, redaction application is run, redaction is applied and new database is visited in operation Ask.
In the embodiment of the present application, the access includes read operation and write operation.
In the embodiment of the present application, the first stage of renewal also includes:Redaction is using the read operation failure to old database When, read operation is carried out to new database.
In the embodiment of the present application, after the first stage for terminating renewal, into before the second stage of renewal, in addition to: Old database is opened to the increment synchronization of new database.
In the embodiment of the present application, the second stage of renewal also includes:Legacy version is using the read operation failure to old database When, read operation is carried out to new database;When redaction fails using the read operation to new database, reading behaviour is carried out to old database Make.
In the embodiment of the present application, the phase III of renewal also includes:Legacy version is using the read operation failure to new database When, read operation is carried out to old database.
In the embodiment of the present application, confirm that redaction is applied and connected with new database normally, and no data is write in new database After entering, terminate the first stage of renewal.
In the embodiment of the present application, into before the second stage of renewal, in addition to:The database that redaction application is accessed It is revised as new database.
In the embodiment of the present application, confirm that redaction is normal using the access to new database, and redaction is applied to old number According to storehouse without write operation after, terminate renewal second stage.
In the embodiment of the present application, into before the phase III of renewal, in addition to:The database that legacy version application is accessed It is revised as new database.
In the embodiment of the present application, confirm that redaction is applied to old database without read operation and write operation, and redaction application With old database without link after, terminate renewal phase III.
In the embodiment of the present application, in period of the first stage of renewal to the second stage for entering renewal is terminated, with And in period of the second stage of renewal to the phase III trial operation for entering renewal is terminated, redaction out of service should With.
Accordingly, also disclosed in the embodiment of the present application in a kind of network platform using the online data migration dress of renewal Put, including:
First operation module, for renewal first stage simultaneously run redaction apply and legacy version application, in operation Redaction is applied and legacy version to old database using conducting interviews, and the old database is that legacy version is applied in the network platform Database;
Second operation module, for terminating the first stage of renewal, and enters the second stage of renewal, while run new edition This application and legacy version application, redaction using being conducted interviews to new database, apply to enter old database by legacy version in operation Row accesses, wherein, the new database is the database that redaction is applied in the network platform;
3rd operation module, for terminating the second stage of renewal, and enters the phase III of renewal, while run new edition This application and legacy version application, redaction is applied in operation and legacy version is applied and new database is conducted interviews;
Redaction runs module, at the end of the phase III for renewal, runs redaction application, redaction should in operation Conducted interviews with to new database.
Compared with prior art, the embodiment of the present application includes advantages below:
First, the embodiment of the present application in the network platform using when being updated, the renewal that divides three phases to be applied, Redaction is run in each stage simultaneously to apply and legacy version application, but the number that different phase is new, legacy version application accesses It is different according to storehouse, can access old database or new database or access old database and new database.New, old Version application will not be limited when accessing database, i.e., will not carry out lock table handling, therefore be not in using access data The failure problem in storehouse, it can be ensured that the normal execution of business.
Secondly, in the prior art because old database is without write operation, it is necessary to enter from new database to old database During row increment synchronization, the time of Data Migration is long, also may result in when data are read from old database, it is necessary to long Time can just get result, compare and lose time.And in the embodiment of the present application, in the first stage redaction application pair of renewal Newly, old database can be carried out read operation;In the second stage of renewal, new, legacy version is applied can to new, old database Carry out read operation;Applied in the phase III legacy version of renewal and read operation can be carried out to new, old database.Pass through above-mentioned side Method so that, can also be from another when application reads data failure from a database even if the Data Migration time is long Read in database, so as to quickly read data, do not interfere with the execution of business.
Brief description of the drawings
Fig. 1 is using the online data moving method flow chart of renewal in a kind of network platform described in the embodiment of the present application;
Fig. 2 is that the schematic diagram to database access is applied in three phases described in the embodiment of the present application;
Fig. 3 is that the schematic diagram to database access is applied in the first stage updated described in the application preferred embodiment;
Fig. 4 is that the schematic diagram to database access is applied in the second stage updated described in the application preferred embodiment;
Fig. 5 is that the schematic diagram to database access is applied in the phase III updated described in the application preferred embodiment;
Fig. 6 is using the online data moving apparatus structure chart of renewal in a kind of network platform described in the embodiment of the present application.
Embodiment
It is below in conjunction with the accompanying drawings and specific real to enable the above-mentioned purpose of the application, feature and advantage more obvious understandable Mode is applied to be described in further detail the application.
When user uses computer, software can be usually updated, and legacy version is substituted using redaction.Application in network Platform is also that the application in platform often increases New function, improves old function in this way, in order to provide the user with more preferable service Deng will now produce redaction application.Redaction application needs are debugged to after without mistake, the formal on-line running of ability, and Redaction application needs the trial operation in the network platform, could find mistake, modification mistake, be finally completed debugging.For not shadow The execution of business in platform is rung, can run that redaction is applied and legacy version application, i.e. business i.e. can be in redactions simultaneously Perform in, can also be performed in legacy version application.
, it is necessary to be migrated online to data when more redaction is applied in the network platform.According to method be advance By the Data Migration in old database into new database, then when new, legacy version application is operated together, redaction application is still New database is so accessed, still, when legacy version application accesses old database, to forbid the write operation to old database, i.e. old edition This application is only capable of reading data, it is impossible to writes data, is then then turned on new database to the increment synchronization of old database.So, in industry The change of data is just only occurred in new database during business performs, and can be ensured in new, old database by increment synchronization Data it is consistent.
But this method the problem of existing is, write operation to old database is applied due to prohibiting legacy version, will The business in legacy version is applied is caused to perform failure.
Therefore, the application proposes to be answered stage by stage using the online data moving method of renewal in a kind of network platform Renewal, new, legacy version application can conduct interviews to database, the problem of being not in service fail.
Reference picture 1, give in a kind of network platform described in the embodiment of the present application using the online data migration side of renewal Method flow chart.
Reference picture 2, give the schematic diagram applied in three phases described in the embodiment of the present application to database access.
Step 101, the first stage of renewal runs redaction and applied with legacy version application simultaneously, redaction application in operation Applied with legacy version and old database is conducted interviews;
Using when being updated in system, while new, legacy version application and new, old database be present, therefore three can be divided The renewal that the individual stage is applied.
The first stage of renewal as shown in a in Fig. 2, in the first stage of renewal, had both run redaction application, again in system Run legacy version application.In operation, legacy version application accesses old database, and redaction application is same to access old database, wherein, The old database is the database that legacy version is applied in the network platform.
In above-mentioned running, redaction can be detected using whether there is problem, if problem be present can change, then Rerun, until terminating the first stage of renewal.
Step 102, terminate the first stage of renewal, the data full dose in old database is synchronized in new database, and Into the second stage of renewal, at the same run redaction apply and legacy version application, in operation redaction apply to new database Conduct interviews, legacy version is applied and old database is conducted interviews;
After the first stage for terminating renewal, because redaction application can access new database in the second stage of renewal, because Data full dose in old database first can be synchronized in new database by this before the second stage of renewal is entered so that The Various types of data in system is preserved in new database, the problem of being likely to occur unsuccessfully when preventing redaction application from accessing.
Then the second stage of renewal can be entered, as shown in b in Fig. 2.Both redaction is run during now system is equally Using, legacy version application is run again, and in the second stage of renewal, legacy version application still conducts interviews to old database, But now unlike the first stage of renewal, redaction application is now that new database is conducted interviews.Wherein, it is described new Database is the database that redaction is applied in the network platform.
Redaction can be equally detected in the second stage of renewal using whether there is problem, if problem be present can repair Change, then rerun, until terminating the second stage of renewal.
Step 103, terminate renewal second stage, and enter renewal phase III, while run redaction apply and Legacy version application, redaction is applied in operation and legacy version is applied and new database is conducted interviews;
After the second stage for terminating renewal, the phase III of renewal can be entered, as shown in c in Fig. 2.Both run in system Redaction application, legacy version application is run again.In the phase III of renewal, redaction application is still visited new database Ask, but now unlike the second stage of renewal, legacy version is applied and new database is conducted interviews.
In the phase III of renewal, confirm that redaction application has no problem, can just terminate the of renewal after completing debugging Three stages.
Step 104, at the end of the phase III of renewal, redaction application is run, redaction is applied to new data in operation Storehouse conducts interviews.
After the phase III of renewal terminates, the renewal of application is completed, redaction application can formally reach the standard grade, you can be Redaction application is only run in system, redaction is applied and new data is conducted interviews.
In summary, the embodiment of the present application divides what three phases were applied using when being updated in the network platform Renewal, redaction is run in each stage simultaneously and is applied and legacy version application, but different phase is new, legacy version application accesses Database it is different, can access old database or new database or access old database and new database. Newly, it will not be limited when legacy version application accesses database, i.e., will not carry out lock table handling, therefore be not in using access The failure problem of database, it can be ensured that the normal execution of business.
In the embodiment of the present application, the access can include read operation and write operation.In the first stage updated, new edition This application and legacy version are applied carries out read operation and write operation to old database;In the second stage of renewal, redaction application pair New database carries out read operation and write operation, and legacy version is applied carries out read operation and write operation to old database;The 3rd of renewal In stage, redaction is applied and legacy version is applied and carries out read operation and write operation to new database.The phase III of renewal terminates When, redaction application is run, redaction is applied in operation carries out read operation and write operation to new database.
Data are read in the read operation i.e. application from database, and the write operation is that application writes data into database.
Reference picture 3, give in the first stage updated described in the application preferred embodiment and apply to database access Schematic diagram.
Refer to that redaction application is in systems run using issue, thus the first stage updated before application is issued, it is old Version application is run in systems, and legacy version application is to carry out read operation and write operation to old database.
Before issue, the data source in system is old database, and the first stage updated is new using needs during issue Database, therefore it is data source that can increase new database in systems.
Using issue when, redaction apply and legacy version application simultaneously runs in systems, now, redaction apply and it is old Version application all carries out read operation and write operation to old database.When redaction fails using the read operation to old database, Read operation is carried out to new database.
After issue, redaction application old database carries out read operation and write operation, when redaction is applied to legacy data During the read operation failure in storehouse, read operation is carried out to new database, thereby may be ensured that reading data, traffic affecting is not held normally OK.
In the first stage of renewal, if being detected after issue there is problem, it is necessary to debug in redaction application, can be in system Middle execution rolling back action, i.e., system is returned to using the state before issue, because new, legacy version in preceding and issue is issued in application Using all read operation and write operation is carried out to old database, i.e., redaction application and old edition during issue are preserved in old database The data for the business that this application performs, therefore only need to carry out rollback to application in rolling back action, it is not necessary to database is carried out Rollback.
In the first stage of renewal, it is not necessary to carry out the migration of data, redaction application can be detected in this process Whether the link with new database is normal, and detects in new database whether be written with data then, is confirming that redaction should With being connected with new database normally, and in new database after no data write-in, the first stage of renewal can be terminated.
Reference picture 4, give in the second stage updated described in the application preferred embodiment and apply to database access Schematic diagram.
, can be by the number in old database into before the second stage of renewal after the first stage of renewal is terminated It is synchronized to according to full dose in new database, i.e., by all data syn-chronizations in old database into new database.Also, in order to increase The hit rate of historical data, it is ensured that data will not malfunction, and open old database and performed to the increment synchronization of new database, i.e. business In can timing or in real time by the data syn-chronization in old database into new database.
In period of the first stage of renewal to the second stage for entering renewal is terminated, redaction out of service should With what is run in system is legacy version application.
Into before the second stage of renewal, the database update that can access redaction application is new database.I.e. Redaction applies the second stage in renewal to carry out read operation and write operation to new database.
In the second stage of renewal, before issue, legacy version application is run in system, now legacy version is applied to old number Read operation and write operation are carried out according to storehouse, if legacy version fails using the read operation to old database, new database is read Operation.
In the embodiment of the present application, the read operation unsuccessfully can be understood as business datum inquiry failure.In as discussed above, For legacy version using the read operation failure to old database, i.e., legacy version is applied does not inquire data in old database, now may be used To carry out read operation again in new database, i.e., the data are inquired about in new database, so that in new, old database Data can be read, it is ensured that the normal execution of business.
Legacy version is run during using issue, in system simultaneously to apply and redaction application, wherein, legacy version is applied to old number Read operation and write operation are carried out according to storehouse, redaction is applied carries out read operation and write operation to new database, still, when legacy version should When being failed with the read operation to old database, read operation is carried out to new database;When redaction is using the reading behaviour to new database When failing, read operation is carried out to old database., will not be to industry so as to may insure the successful execution of read operation by this method Business causes.
The database that first progress read operation can be configured is default database, and the rear database for carrying out read operation is standby number According to storehouse, that is, in the second stage updated, for legacy version application, old database is default database, and new database is standby Database;For redaction application, new database is default database, and old database is standby database.Wherein, if business Need to return the data of reading in 3s, then when being configurable in 1s not read data from default database, switch to from Data are read in standby database.Therefore, the application can quickly read data, avoid traffic affecting from performing.
In the prior art, because old database is without write operation, it is necessary to increased from new database to old database When measuring synchronous, the time of Data Migration is long, also may result in when data are read from old database, it is necessary to the long time Result can be just got, compares and loses time.And the embodiment of the present application can solve this well and ask by above-mentioned method Topic, will not cause waste of time, and ensure the execution of business, meet the needs of business.
, i.e., can be at 10 milliseconds to new, old database read operation by above method data query in actual treatment Interior completion, processing speed is very fast, can support the execution of business, for example, the method described in the embodiment of the present application is applied In the payment platform of ecommerce, the payment data of user can be quickly inquired about, the probability of malformed queries is reduced, meets business Requirement for fast and accurately obtaining data.
After issue, redaction is applied carries out read operation and write operation to new database, when redaction is applied to new number When failing according to the read operation in storehouse, read operation is carried out to old database.
In the second stage of renewal, if being detected after issue there is problem, it is necessary to debug in redaction application, can be in system Middle execution rolling back action, i.e., system is returned to using the state before issue, because legacy version should before application issue and in issue With read operation and write operation is all carried out to old database, i.e., legacy version is using the industry performed during issue is preserved in old database The data of business, therefore only need to carry out rollback to application in rolling back action, it is not necessary to rollback is carried out to database.
It can detect whether redaction application has carried out writing behaviour to old database in the second stage of renewal, after issue Make, and whether detect redaction normal using the read operation to new database and write operation.Confirming redaction using to new The access of database is normal, i.e. read operation and write operation is normal, and redaction apply to old database without write operation after, Ke Yijie Shu Gengxin second stage.
Reference picture 5, give in the phase III updated described in the application preferred embodiment and apply to database access Schematic diagram.
In period of the second stage of renewal to the phase III trial operation for entering renewal is terminated, new edition out of service This application, what is run in system is legacy version application.
Before the phase III of renewal is entered, the database update that can access legacy version application is new database, I.e. legacy version is applied carries out read operation and write operation to new database.
In the phase III of renewal, before issue, legacy version application is run in system, now legacy version is applied to new number Read operation and write operation are carried out according to storehouse, when legacy version fails using the read operation to new database, old database is read Operation.
Using in issue, legacy version application and redaction application all carry out read operation and write operation to new database, when old When version fails using the read operation to new database, read operation is carried out to old database.Equally, can be quick by this method Reading data, ensure the normal execution of business.
After issue, redaction application all carries out read operation and write operation to new database.
In the second stage of renewal, if being detected after issue there is problem, it is necessary to debug in redaction application, can be in system Middle execution rolling back action, i.e., system is returned to using the state before issue, because legacy version should before application issue and in issue With read operation and write operation is all carried out to new database, i.e., legacy version is using the industry performed during issue is preserved in new database The data of business, therefore only need to carry out rollback to application in rolling back action, it is not necessary to rollback is carried out to database.
Can be detected in the second stage of renewal, after issue redaction application whether do not have to old database read operation and Write operation, and detect redaction and apply with old database with the presence or absence of link.Apply in confirmation redaction and do not have to old database Have a read operation and write operation, and redaction apply and old database without link after, terminate phase III of renewal.
After the phase III of renewal terminates, after confirming that redaction application has no problem, the offline of old database can be carried out Processing, i.e., will delete old database in the data source of system, during which, it is necessary to carry out data backup, the tables of data in old database Renaming etc. operates, and then continuous observation for a period of time, can be formal after confirming that redaction application runs no problem in systems Redaction application is run, terminates the operation of legacy version application in systems.
In summary, in the prior art because old database is without write operation, it is necessary to from new database to legacy data When storehouse carries out increment synchronization, the time of Data Migration is long, also may result in when data are read from old database, it is necessary to compare The long time can just get result, compare and lose time.And in the embodiment of the present application, should in the first stage redaction of renewal Read operation is can be carried out with to new, old database;In the second stage of renewal, new, legacy version is applied to new, old database all Read operation can be carried out;Applied in the phase III legacy version of renewal and read operation can be carried out to new, old database.By upper State method so that, can also be from another when application reads data failure from a database even if the Data Migration time is long Read in one database, so as to quickly read data, do not interfere with the execution of business.
Reference picture 6, give in a kind of network platform described in the embodiment of the present application using the online data migration dress of renewal Put structure chart.
Accordingly, present invention also provides the online data moving apparatus that renewal is applied in a kind of network platform, including:The One operation module 11, second runs module the 12, the 3rd and runs module 13 and redaction operation module 14, wherein:
First operation module 11, the first stage for renewal run redaction and applied and legacy version application, operation simultaneously Middle redaction is applied and legacy version to old database using conducting interviews, and the old database is legacy version application in the network platform Database;
Second operation module 12, for terminating the first stage of renewal, and enters the second stage of renewal, while runs new Version is applied and legacy version application, and redaction using being conducted interviews to new database, apply to old database by legacy version in operation Conduct interviews, wherein, the new database is the database that redaction is applied in the network platform;
3rd operation module 13, for terminating the second stage of renewal, and enters the phase III of renewal, while runs new Version is applied and legacy version application, and redaction is applied in operation and legacy version is applied and new database is conducted interviews;
Redaction runs module 14, at the end of the phase III for renewal, runs redaction application, redaction in operation Conducted interviews using to new database.
Preferably, the access includes read operation and write operation.
Preferably, it is described first operation module 11, be additionally operable to redaction using to old database read operation failure when, it is right New database carries out read operation.
Preferably, the second operation module 12, is additionally operable to after the first stage of end renewal, into the second stage of renewal Before, the data full dose in old database is synchronized in new database, and the increment for opening old database to new database is same Step.
Preferably, it is described second operation module 12, be additionally operable to legacy version using to old database read operation failure when, it is right New database carries out read operation;When redaction fails using the read operation to new database, read operation is carried out to old database.
Preferably, it is described 3rd operation module 13, be additionally operable to legacy version using to new database read operation failure when, it is right Old database carries out read operation.
Preferably, confirm that redaction is applied to connect with new database normally, and terminate in new database after no data write-in The first stage of renewal.
Preferably, the second operation module 12, is additionally operable into before the second stage of renewal, and redaction application is visited The database update asked is new database.
Preferably, confirm that redaction is normal using access to new database, and redaction is applied to old database without writing After operation, terminate the second stage of renewal.
Preferably, the 3rd operation module 13, was additionally operable into before the phase III of renewal, and legacy version application is visited The database update asked is new database.
Preferably, confirm that redaction is applied to old database without read operation and write operation, and redaction is applied and legacy data After storehouse is without link, terminate the phase III of renewal.
Preferably, in period of the first stage of renewal to the second stage for entering renewal is terminated, and terminating In the period for the phase III trial operation that the second stage of renewal updates to entrance, redaction application out of service.
For system embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related Part illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described by the way of progressive, what each embodiment stressed be with The difference of other embodiment, between each embodiment identical similar part mutually referring to.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program Product.Therefore, the application can use the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the application can use the computer for wherein including computer usable program code in one or more The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
Although having been described for the preferred embodiment of the application, those skilled in the art once know basic creation Property concept, then can make other change and modification to these embodiments.So appended claims be intended to be construed to include it is excellent Select embodiment and fall into having altered and changing for the application scope.
The application is with reference to the flow according to the method for the embodiment of the present application, equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processors of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which produces, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that counted Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Finally, it is to be noted that, herein, such as first and second or the like relational terms be used merely to by One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation Between any this actual relation or order be present.Moreover, term " comprising ", "comprising" or its any other variant meaning Covering including for nonexcludability, so that process, method, commodity or equipment including a series of elements not only include that A little key elements, but also the other element including being not expressly set out, or also include for this process, method, commodity or The intrinsic key element of equipment.In the absence of more restrictions, the key element limited by sentence "including a ...", is not arranged Except other identical element in the process including the key element, method, commodity or equipment being also present.
Above to applying the online data moving method device updated in a kind of network platform provided herein, carry out It is discussed in detail, specific case used herein is set forth to the principle and embodiment of the application, above example Explanation be only intended to help and understand the present processes and its core concept;Meanwhile for those of ordinary skill in the art, According to the thought of the application, there will be changes in specific embodiments and applications, in summary, in this specification Hold the limitation that should not be construed as to the application.

Claims (12)

1. using the online data moving method of renewal in a kind of network platform, it is characterised in that including:
First stage of renewal runs redaction and applied and legacy version application simultaneously, and redaction is applied and legacy version application in operation Old database is conducted interviews, the old database is the database that legacy version is applied in the network platform;
Terminate the first stage of renewal, the data full dose in old database is synchronized in new database, and open old database To the increment synchronization of new database, into the second stage of renewal, while run redaction and apply and legacy version application, in operation Redaction using being conducted interviews to new database, apply and old database conducted interviews by legacy version, wherein, the new database is The database that redaction is applied in the network platform;
The second stage of end renewal, and enter the phase III of renewal, while run redaction and apply and legacy version application, fortune Redaction is applied in row and legacy version is applied and new database is conducted interviews;
At the end of the phase III of renewal, redaction application is run, redaction is applied and new database is conducted interviews in operation;
Methods described also includes:In phase III each running that the first stage of renewal extremely updates, detection redaction should With with the presence or absence of problem, modify, then rerun if it problem be present, until confirming that redaction application has no problem.
2. according to the method for claim 1, it is characterised in that the access includes read operation and write operation.
3. according to the method for claim 2, it is characterised in that the first stage of renewal also includes:
When redaction fails using the read operation to old database, read operation is carried out to new database.
4. according to the method for claim 1, it is characterised in that the second stage of renewal also includes:
When legacy version fails using the read operation to old database, read operation is carried out to new database;
When redaction fails using the read operation to new database, read operation is carried out to old database.
5. according to the method for claim 2, it is characterised in that the phase III of renewal also includes:
When legacy version fails using the read operation to new database, read operation is carried out to old database.
6. according to the method for claim 1, it is characterised in that confirm that redaction is applied and connected with new database normally, and In new database after no data write-in, terminate the first stage of renewal.
7. according to the method for claim 6, it is characterised in that enter before the second stage of renewal, in addition to:By new edition The database update that this application accesses is new database.
8. according to the method for claim 1, it is characterised in that confirm that redaction is normal using the access to new database, And redaction apply to old database without write operation after, terminate renewal second stage.
9. according to the method for claim 8, it is characterised in that enter before the phase III of renewal, in addition to:By old edition The database update that this application accesses is new database.
10. according to the method for claim 1, it is characterised in that confirm redaction apply to old database without read operation and Write operation, and redaction apply and old database without link after, terminate renewal phase III.
11. according to the method for claim 1, it is characterised in that also include:
In period of the first stage of renewal to the second stage for entering renewal is terminated, and in the second-order for terminating renewal Section was arrived in the period for the phase III trial operation for entering renewal, redaction application out of service.
12. using the online data moving apparatus of renewal in a kind of network platform, it is characterised in that including:
First operation module, the first stage for renewal run redaction and applied with legacy version application simultaneously, new edition in operation Using being conducted interviews to old database, the old database is the data that legacy version is applied in the network platform for this application and legacy version Storehouse;
Second operation module, for terminating the first stage of renewal, new database is synchronized to by the data full dose in old database In, and open old database to the increment synchronization of new database, into the second stage of renewal, at the same run redaction apply and Legacy version application, redaction using being conducted interviews to new database, apply and old database conducted interviews by legacy version in operation, its In, the new database is the database that redaction is applied in the network platform;
3rd runs module, for terminating the second stage of renewal, and enters the phase III of renewal, while runs redaction and answer With with legacy version application, redaction is applied in operation and legacy version to new database using conducting interviews;
Redaction runs module, at the end of the phase III for renewal, runs redaction application, redaction application pair in operation New database conducts interviews;
Described device is additionally operable to, and in phase III each running that the first stage of renewal extremely updates, detection redaction should With with the presence or absence of problem, modify, then rerun if it problem be present, until confirming that redaction application has no problem.
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 CN103729204A (en) 2014-04-16
CN103729204B true 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)

Families Citing this family (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
US10613849B2 (en) * 2016-09-23 2020-04-07 Visa International Service Association Update migration system and method
CN106874341B (en) * 2016-12-23 2022-04-05 中科星图股份有限公司 Database synchronization method
CN107066294B (en) * 2017-03-17 2020-12-29 深圳市邦华电子有限公司 Application installation method and device and intelligent terminal
CN110494849B (en) * 2017-03-31 2023-05-26 甲骨文国际公司 System and method for determining success of cross-platform application 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
CN107273139A (en) * 2017-07-05 2017-10-20 努比亚技术有限公司 A kind of method for updating system, equipment and computer-readable recording medium
EP3518125A1 (en) * 2018-01-25 2019-07-31 Siemens Aktiengesellschaft Method for the deployment of schema changes in systems involving a database
CN109656908A (en) * 2018-11-30 2019-04-19 广州品唯软件有限公司 A kind of online moving method of database, electronic equipment and storage medium
CN109829016B (en) * 2019-01-25 2021-06-01 网宿科技股份有限公司 Data synchronization method and device
CN110795118A (en) * 2019-09-11 2020-02-14 烽火通信科技股份有限公司 Cloud platform upgrading tool and upgrading method
US11126561B2 (en) * 2019-10-01 2021-09-21 Alibaba Group Holding Limited Method and system for organizing NAND blocks and placing data to facilitate high-throughput for random writes in a solid state drive
CN111427889A (en) * 2020-03-23 2020-07-17 北京三体云时代科技有限公司 Method and device for upgrading database table and server
CN111506592B (en) * 2020-04-21 2023-12-26 腾讯云计算(长沙)有限责任公司 Database upgrading method and device
CN112395267B (en) * 2020-10-23 2023-06-13 四川新网银行股份有限公司 Method for switching data migration of continuous service user
CN112632032B (en) * 2020-12-18 2022-12-27 华人运通(上海)云计算科技有限公司 Data migration method and device, storage medium and terminal equipment
CN115473815B (en) * 2022-08-23 2024-01-19 浪潮通信信息系统有限公司 Service migration system and method based on equipment change

Citations (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
CN101102219A (en) * 2007-07-30 2008-01-09 华为技术有限公司 Software update system and software update method
CN102652306A (en) * 2009-12-15 2012-08-29 瑞典爱立信有限公司 A method of updating versioned software using a shared cache

Patent Citations (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
CN101102219A (en) * 2007-07-30 2008-01-09 华为技术有限公司 Software update system and software update method
CN102652306A (en) * 2009-12-15 2012-08-29 瑞典爱立信有限公司 A method of updating versioned software using a shared cache

Also Published As

Publication number Publication date
CN103729204A (en) 2014-04-16

Similar Documents

Publication Publication Date Title
CN103729204B (en) Using the online data moving method and device of renewal in a kind of network platform
US9251233B2 (en) Merging an out of synchronization indicator and a change recording indicator in response to a failure in consistency group formation
CN103488563B (en) Data race detection method and device for parallel programs and multi-core processing system
US20200133658A1 (en) Change governance using blockchain
CN105718570A (en) Data migration method and device used for database
US20160306864A1 (en) Method and system for data synchronization
US20150301906A1 (en) Resolving Failed Mirrored Point-in-Time Copies with Minimum Disruption
US9086969B2 (en) Establishing a useful debugging state for multithreaded computer program
CN105988798B (en) Patch processing method and device
US8554727B2 (en) Method and system of tiered quiescing
US20110078499A1 (en) Business process error handling through process instance backup and recovery
US8046413B2 (en) Automatic commutativity detection for generalized paxos
US10503601B2 (en) Method and apparatus for tracking objects in a first memory
US20140095553A1 (en) Techniques for moving data files without interrupting access
US20160196322A1 (en) Processing transactions in a synchronized replication system
CN111221800A (en) Database migration method and device, electronic equipment and storage medium
CN106802895A (en) For repair data storehouse for database data method and apparatus
CN106095619A (en) A kind of virtual machine backup method and device
US20140108874A1 (en) Detecting memory hazards in parallel computing
US20130174167A1 (en) Intelligent inclusion/exclusion automation
CN105653579A (en) Method and device for testing distributed transactions
Grov et al. Increasing consistency in multi-site data stores: Megastore-CGC and its formal analysis
US11372837B2 (en) Transaction repair
US10896096B2 (en) Temporal logical transactions
CN106802861A (en) A kind of method and apparatus for detecting RAM leakage

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

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.

TR01 Transfer of patent right