CN108388599A - Electronic device, Data Migration and call method and storage medium - Google Patents
Electronic device, Data Migration and call method and storage medium Download PDFInfo
- Publication number
- CN108388599A CN108388599A CN201810103384.8A CN201810103384A CN108388599A CN 108388599 A CN108388599 A CN 108388599A CN 201810103384 A CN201810103384 A CN 201810103384A CN 108388599 A CN108388599 A CN 108388599A
- Authority
- CN
- China
- Prior art keywords
- data
- migration
- memory space
- address
- database
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/22—Indexing; Data structures therefor; Storage structures
- G06F16/2282—Tablespace storage structures; Management thereof
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/21—Design, administration or maintenance of databases
- G06F16/214—Database migration support
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/23—Updating
- G06F16/2308—Concurrency control
- G06F16/2336—Pessimistic concurrency control approaches, e.g. locking or multiple versions without time stamps
Abstract
The invention discloses a kind of electronic devices, Data Migration and call method and storage medium, by the way that the data stored in source database are divided into different memory spaces according to type of service, and after the request for receiving operation system calling data, determined the data for the memory space storage for storing the calling data whether in predetermined target database according to predetermined migration species sublist, if in predetermined target database, then the Data Concurrent called is obtained from the target data to send to the operation system, if not in predetermined target database, the data of the memory space storage of the calling data are then migrated according to the migration species sublist to the target database, and it obtains the Data Concurrent called from the target data and send to the operation system.The efficiency that data call can be improved promotes the experience effect of user.
Description
Technical field
Data call field more particularly to a kind of electronic device in database of the present invention, Data Migration and call method and
Storage medium.
Background technology
With the development of data sharing technology, enterprise usually predefines one to meet growing business demand
It is a that the database (source database) of source data is provided, and the data of all types of service are stored in source database for inhomogeneity
The operation system of type is called, currently, finding the data of meet demand in order to facilitate operation system, correspondence is deposited in source database
The index file of address data memory is contained, operation system can be found by the index file of address data memory meets need
The data asked, still, the single table data stored in source database be usually all more than 1,000,000,000 ranks, it is same in multiple operation systems
When call data when, be susceptible to the risk of source database delay machine, once delay machine, which occurs, in source database will influence all business systems
System continues to call the progress of data, causes data call inefficiency, user experience ineffective.
Invention content
In view of this, a kind of electronic device of present invention proposition, Data Migration and call method and storage medium, can improve
The efficiency of data call promotes the experience effect of user.
First, to achieve the above object, the present invention proposes a kind of electronic device, the electronic device include memory and
The processor being connect with the memory, the processor is for executing the Data Migration stored on the memory and calling journey
Sequence, the Data Migration and caller realize following steps when being executed by the processor:
A1, the data stored in source database are determined according to the mapping relations between predetermined type of service and data
The source database is divided into different memory spaces, each by corresponding type of service according to determining type of service
Memory space, which corresponds to, stores a kind of data of type of service;
A2, receive operation system transmission acquisition preset kind business datum request after, from the source database
Find out memory space corresponding with the data that the preset kind business datum matches;
The initial address for the corresponding memory space of data that A3, acquisition match and end address, update are predetermined
Starting migration address in migration species sublist is the initial address of the memory space, and the end updated in the migration species sublist is moved
The end address that address is the memory space is moved, the predetermined migration species sublist includes starting migration address and end
Migration address;
A4, determine the data of memory space storage whether in predetermined target data based on the migration species sublist
Library, if the data of memory space storage are called corresponding pre- in the target database from the target database
If type service data are simultaneously back to the operation system;
If alternatively, the memory space storage data not in the target database, according to the migration species sublist
The data of memory space storage are migrated to the target database, corresponding preset kind is called from the target database
Business datum is simultaneously back to the operation system.
Further, the predetermined migration species sublist further includes the address of task status and migrating data;It is described
Based on the migration species sublist determine the memory space storage data whether the step in predetermined database includes:
It is completed if the task status is migration, it is determined that whether the data of memory space storage are in predetermined mesh
Mark database;If alternatively, the task status is in migration, whether the transition state is determined in preset time threshold
It is completed for migration, if the transition state is updated to migration in the preset time threshold and completes, it is determined that the memory space
Whether the data of storage are in predetermined target database;
If during the task status is to be migrated, it is determined that the data of memory space storage are not in predetermined data
In library.
Further, if the data of memory space storage are not in the target database, according to the migration species
Sublist migrate the memory space storage data to the step of target database include:
Update the task status be migration in, since the starting migration address by preset migration sequentially move
Move the data of memory space storage;
Real-time Monitoring Data transition process, if monitoring the Data Migration of the corresponding memory space storage of migration address
Failure, the then address for updating the migrating data are the corresponding migration address of storage data of migration failure, and update is described to appoint
Business state is that migration fails, and sends migration failure prompt message to the terminal device of predetermined operation personnel;
If monitoring, the Data Migration of memory space storage is completed, and it is that migration is completed to update the task status.
Further, further include to the memory space before the update task status is the step in migration
The Database lock of corresponding storage data setting preset kind;The update task status be step in migrating it
Afterwards, further include the Database lock for discharging the preset kind.
Further, the migration species sublist further includes time started and end time.
In addition, to achieve the above object, the present invention also proposes a kind of Data Migration and call method, the method includes:
S1, the data stored in source database are determined according to the mapping relations between predetermined type of service and data
The source database is divided into different memory spaces, each by corresponding type of service according to determining type of service
Memory space, which corresponds to, stores a kind of data of type of service;
S2, receive operation system transmission acquisition preset kind business datum request after, from the source database
Find out memory space corresponding with the data that the preset kind business datum matches;The data pair that S3, acquisition match
The initial address for the memory space answered and end address, it is to be somebody's turn to do to update the starting migration address in predetermined migration species sublist
The initial address of memory space updates in the migration species sublist and terminates the end address that migration address is the memory space,
The predetermined migration species sublist includes starting migration address and end migration address;
S4, determine the data of memory space storage whether in predetermined target data based on the migration species sublist
Library, if the data of memory space storage are called corresponding pre- in the target database from the target database
If type service data are simultaneously back to the operation system;
If alternatively, the memory space storage data not in the target database, according to the migration species sublist
The data of memory space storage are migrated to the target database, corresponding preset kind is called from the target database
Business datum is simultaneously back to the operation system.
Further, the predetermined migration species sublist further includes the address of task status and migrating data;It is described
Based on the migration species sublist determine the memory space storage data whether the step in predetermined database includes:
It is completed if the task status is migration, it is determined that whether the data of memory space storage are in predetermined mesh
Mark database;If alternatively, the task status is in migration, whether the transition state is determined in preset time threshold
It is completed for migration, if the transition state is updated to migration in the preset time threshold and completes, it is determined that the memory space
Whether the data of storage are in predetermined target database;
If during the task status is to be migrated, it is determined that the data of memory space storage are not in predetermined data
In library.
Further, if the data of memory space storage are not in the target database, according to the migration species
Sublist migrate the memory space storage data to the step of target database include:
Update the task status be migration in, since the starting migration address by preset migration sequentially move
Move the data of memory space storage;
Real-time Monitoring Data transition process, if monitoring the Data Migration of the corresponding memory space storage of migration address
Failure, the then address for updating the migrating data are the corresponding migration address of storage data of migration failure, and update is described to appoint
Business state is that migration fails, and sends migration failure prompt message to the terminal device of predetermined operation personnel;
If monitoring, the Data Migration of memory space storage is completed, and it is that migration is completed to update the task status.
Further, further include to the memory space before the update task status is the step in migration
The Database lock of corresponding storage data setting preset kind;The update task status be step in migrating it
Afterwards, further include the Database lock for discharging the preset kind.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
Storage medium is stored with Data Migration and caller, and the Data Migration and caller can be held by least one processor
Row, so that at least one processor is executed such as the step of above-mentioned Data Migration and call method.
Compared to the prior art, electronic device proposed by the invention, Data Migration and call method and storage medium lead to
It crosses the data that will be stored in source database and is divided into different memory spaces according to type of service, and receiving operation system tune
After the request of data, the data for the memory space storage for storing the calling data are determined according to predetermined migration species sublist
Whether in predetermined target database, if in predetermined target database, obtains and call from the target data
Data Concurrent send to the operation system, if not in predetermined target database, migrated according to the migration species sublist
The data of the memory space storage of the calling data obtain the data called from the target data to the target database
And it is sent to the operation system.The efficiency that data call can be improved promotes the experience effect of user.
Description of the drawings
Fig. 1 is the schematic diagram of one optional hardware structure of electronic device proposed by the present invention;
Fig. 2 is the program module schematic diagram of Data Migration and caller in one embodiment of electronic device of the present invention;
Fig. 3 is the implementing procedure figure of Data Migration and call method preferred embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific implementation mode
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not
For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work
The every other embodiment obtained is put, shall fall within the protection scope of the present invention.
It should be noted that the description for being related to " first ", " second " etc. in the present invention is used for description purposes only, and cannot
It is interpreted as indicating or implying its relative importance or implicitly indicates the quantity of indicated technical characteristic.Define as a result, " the
One ", the feature of " second " can explicitly or implicitly include at least one of the features.In addition, the skill between each embodiment
Art scheme can be combined with each other, but must can be implemented as basis with those of ordinary skill in the art, when technical solution
Will be understood that the combination of this technical solution is not present in conjunction with there is conflicting or cannot achieve when, also not the present invention claims
Protection domain within.
As shown in fig.1, being one optional hardware structure schematic diagram of electronic device proposed by the present invention.In the present embodiment,
Electronic device 10 may include, but be not limited only to, and connection memory 11, processor 12, net can be in communication with each other by communication bus 14
Network interface 13.It should be pointed out that Fig. 1 illustrates only the electronic device 10 with component 11-14, it should be understood that simultaneously
All components shown realistic are not applied, the implementation that can be substituted is more or less component.
Wherein, memory 11 includes at least a type of computer readable storage medium, computer readable storage medium
Including flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memories etc.), random access storage device (RAM), quiet
State random access storage device (SRAM), electrically erasable programmable read-only memory (EEPROM), can be compiled read-only memory (ROM)
Journey read-only memory (PROM), magnetic storage, disk, CD etc..In some embodiments, memory 11 can be electronics dress
Set 10 internal storage unit, such as the hard disk or memory of electronic device 10.In further embodiments, memory 11 can also
It is the outer packet storage device of electronic device 10, such as the plug-in type hard disk being equipped on electronic device 10, intelligent memory card (Smart
Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..Certainly, it stores
Device 11 can also both include electronic device 10 internal storage unit and also including its outer packet storage device.In the present embodiment, storage
Device 11 is installed on the operating system and types of applications software of electronic device 10, such as Data Migration and calling journey commonly used in storage
Sequence etc..In addition, memory 11 can be also used for temporarily storing the Various types of data that has exported or will export.
Processor 12 can be in some embodiments central processing unit (Central Processing Unit, CPU),
Controller, microcontroller, microprocessor or other data processing chips.Processor 12 is commonly used in control electronic device 10
Overall operation.In the present embodiment, the program code or processing data that processor 12 is used to store in run memory 11, such as
Data Migration and caller of operation etc..
Network interface 13 may include that radio network interface or wired network interface, network interface 13 are commonly used in filling in electronics
It sets and establishes communication connection between 10 and other electronic equipments.
Communication bus 14 is for realizing the communication connection between component 11-13.
Fig. 1 illustrates only the electronic device 10 with component 11-14 and Data Migration and caller, it should be understood that
Be, it is not required that implement all components shown, the implementation that can be substituted is more or less component.
Optionally, electronic device 10 can also include user interface (not shown in figure 1), and user interface may include display
Device, input unit such as keyboard, wherein user interface can also be including standard wireline interface and wireless interface etc..
Optionally, in some embodiments, display can be that light-emitting diode display, liquid crystal display, touch control type LCD are shown
Device and OLED touch device etc..Further, display is alternatively referred to as display screen or display unit, for being shown in electronic device
Information is handled in 10 and for showing visual user interface.
In one embodiment, it when the Data Migration and caller stored in memory 11 is executed by processor 12, realizes
Following operation:
The data point stored in source database are determined according to the mapping relations between predetermined type of service and data
The source database is divided into different memory spaces, Mei Gecun by not corresponding type of service according to determining type of service
It stores up space and corresponds to a kind of data of type of service of storage;
After the request of acquisition preset kind business datum for receiving operation system transmission, searched from the source database
Go out memory space corresponding with the data that the preset kind business datum matches;
In the present embodiment, the memory space is extent.
Initial address and the end address for obtaining the corresponding memory space of data to match, update predetermined migration
Starting migration address in kind sublist is the initial address of the memory space, updates the end relocation site in the migration species sublist
Location is the end address of the memory space;
In the present embodiment, the predetermined migration species sublist includes starting migration address and end relocation site
Location;
In other real-time examples of the present invention, the predetermined migration species sublist further includes task status and transport number
According to address;
Whether the data of memory space storage are determined based on the migration species sublist in predetermined target database,
If the data of memory space storage are called in predetermined target database from predetermined target database
Corresponding preset kind business datum is simultaneously back to the operation system;
If the data of memory space storage are not in predetermined target database, according to the migration species sublist
The data of memory space storage are migrated to predetermined target database, are called from predetermined target database pair
The preset kind business datum answered simultaneously is back to the operation system.
In the present embodiment, the predetermined migration species sublist further includes the address of task status and migrating data;
It is described based on the migration species sublist determine the memory space storage data whether the step in predetermined database
Including:
It is completed if the task status is migration, it is determined that whether the data of memory space storage are in predetermined mesh
Mark database;If alternatively, the task status is in migration, whether the transition state is determined in preset time threshold
It is completed for migration, if the transition state is updated to migration in the preset time threshold and completes, it is determined that the memory space
Whether the data of storage are in predetermined target database;
If during the task status is to be migrated, it is determined that the data of memory space storage are not in predetermined data
In library.
In the present embodiment, if the data of memory space storage are moved not in the target database according to
Culture transferring sublist migrate the memory space storage data to the step of target database include:
Update the task status be migration in, since the starting migration address by preset migration sequentially move
Move the data of memory space storage;
In the present embodiment, preset migration sequence is the migration address since described the starting is migrated successively to move
Address and the data for terminating to store between migration address are moved, including the data for starting migration address storage and the knot
The data of beam migration address storage;
Real-time Monitoring Data transition process, if monitoring the Data Migration of the corresponding memory space storage of migration address
Failure, the then address for updating the migrating data are the corresponding migration address of storage data of migration failure, and update is described to appoint
Business state is that migration fails, and sends migration failure prompt message to the terminal device of predetermined operation personnel;
If monitoring, the Data Migration of memory space storage is completed, and it is that migration is completed to update the task status.
Further, the migration species sublist further includes time started and end time.
Further include following steps in the update task status is the step in migration:To the memory space pair
The Database lock for the storage data setting preset kind answered, such as the database using the setting of select for update sentences
Lock.
Further include following steps after the update task status is the step in migration:It discharges described default
The Database lock of type.
By above-mentioned thing embodiment it is found that electronic device proposed by the present invention by by the data stored in source database according to
Type of service is divided into different memory spaces, and after the request for receiving operation system calling data, according to predetermined
Migration species sublist whether determine the data of the memory space storage for storing the calling data in predetermined target database,
If in predetermined target database, obtains the Data Concurrent called from the target data and send to the operation system, if
Not in predetermined target database, then the number of the memory space storage of the calling data is migrated according to the migration species sublist
It is sent to the operation system according to the target database, and from the Data Concurrent of target data acquisition calling.It can improve
The efficiency of data call promotes the experience effect of user.
Need further exist for explanation, the function that Data Migration of the invention and caller are realized according to its each section
Difference can be described with program module with the same function.It please refers to shown in Fig. 2, is that electronic device one of the present invention is implemented
The program module schematic diagram of Data Migration and caller in example.In the present embodiment, Data Migration and caller are each according to it
The difference for the function that part is realized can be divided into division module 201, searching module 202, update module 203 and call
Module 204.By above description it is found that the so-called program module of the present invention is the series of computation for referring to complete specific function
Machine program instruction section, the implementation procedure than program more suitable for description Data Migration and caller in electronic device 10.Institute
It is similar as above to state the functions or operations step that module 201-204 is realized, be not described in detail herein, illustratively, such as its
In:
Division module 201 is used to determine source database according to the mapping relations between predetermined type of service and data
The source database is divided into different deposit by the corresponding type of service of data of middle storage according to determining type of service
Space is stored up, each memory space, which corresponds to, stores a kind of data of type of service;
After searching module 202 is used to receive the request of acquisition preset kind business datum of operation system transmission, from institute
It states and finds out memory space corresponding with the data that the preset kind business datum matches in source database;
Update module 203 is used to obtain initial address and the end address of the corresponding memory space of data to match, more
Starting migration address in new predetermined migration species sublist is the initial address of the memory space, updates the migration seed
Terminate the end address that migration address is the memory space in table, the predetermined migration species sublist includes that starting migrates
Address and end migration address;
Calling module 204 is used to determine whether the data of memory space storage are true in advance based on the migration species sublist
Fixed target database, if the memory space storage data in the target database, from the target database
It calls corresponding preset kind business datum and is back to the operation system;
If alternatively, the memory space storage data not in the target database, according to the migration species sublist
The data of memory space storage are migrated to the target database, corresponding preset kind is called from the target database
Business datum is simultaneously back to the operation system.
In addition, the present invention also proposes a kind of Data Migration and call method, please refer to shown in Fig. 3, the Data Migration and
Call method includes the following steps:
Step S301 is determined in source database according to the mapping relations between predetermined type of service and data and is stored
The corresponding type of service of data, it is empty that the source database is divided by different storage according to determining type of service
Between, each memory space, which corresponds to, stores a kind of data of type of service;
Step S302, after the request of acquisition preset kind business datum for receiving operation system transmission, from the source number
According to the corresponding memory space of the data found out in library with the preset kind business datum matches;
Step S303, obtains initial address and the end address of the corresponding memory space of the data to match, and update is advance
Starting migration address in determining migration species sublist is the initial address of the memory space, is updated in the migration species sublist
Terminate migration address be the memory space end address, the predetermined migration species sublist include starting migration address with
And terminate migration address;
In the present embodiment, the predetermined migration species sublist includes starting migration address and end relocation site
Location;
In other real-time examples of the present invention, the predetermined migration species sublist further includes task status and transport number
According to address;
Whether step S304 determines the data of memory space storage in predetermined mesh based on the migration species sublist
Mark database, if the memory space storage data in the target database, from the target database call pair
The preset kind business datum answered simultaneously is back to the operation system;
If alternatively, the memory space storage data not in the target database, according to the migration species sublist
The data of memory space storage are migrated to the target database, corresponding preset kind is called from the target database
Business datum is simultaneously back to the operation system.
In the present embodiment, the predetermined migration species sublist further includes the address of task status and migrating data;
It is described based on the migration species sublist determine the memory space storage data whether the step in predetermined database
Including:
It is completed if the task status is migration, it is determined that whether the data of memory space storage are in predetermined mesh
Mark database;If alternatively, the task status is in migration, in preset time threshold described in (such as in 5 seconds) determination
Whether transition state is that migration is completed, if the transition state is updated to migration in the preset time threshold and completes, really
Whether the data of fixed memory space storage are in predetermined target database;
If during the task status is to be migrated, it is determined that the data of memory space storage are not in predetermined data
In library.
In the present embodiment, if the data of memory space storage are moved not in the target database according to
Culture transferring sublist migrate the memory space storage data to the step of target database include:
Update the task status be migration in, since the starting migration address by preset migration sequentially move
Move the data of memory space storage;
In the present embodiment, preset migration sequence is the migration address since described the starting is migrated successively to move
Address and the data for terminating to store between migration address are moved, including the data for starting migration address storage and the knot
The data of beam migration address storage;
Real-time Monitoring Data transition process, if monitoring the Data Migration of the corresponding memory space storage of migration address
Failure, the then address for updating the migrating data are the corresponding migration address of storage data of migration failure, and update is described to appoint
Business state is that migration fails, and sends migration failure prompt message to the terminal device of predetermined operation personnel;
If monitoring, the Data Migration of memory space storage is completed, and it is that migration is completed to update the task status.
Further, the migration species sublist further includes time started and end time.
Further include following steps in the update task status is the step in migration:To the memory space pair
The Database lock for the storage data setting preset kind answered, such as the database using the setting of select for update sentences
Lock.
Further include following steps after the update task status is the step in migration:It discharges described default
The Database lock of type.
By above-mentioned thing embodiment it is found that Data Migration proposed by the present invention and call method in source database by will store
Data be divided into different memory spaces according to type of service, and after receiving operation system and calling the request of data, root
Determine the data for the memory space storage for storing the calling data whether predetermined according to predetermined migration species sublist
If target database obtains the Data Concurrent called from the target data and send to this in predetermined target database
Operation system, if not migrating the storage of the calling data according to the migration species sublist in predetermined target database
The data of space storage obtain the Data Concurrent called from the target data and send to the business system to the target database
System.The efficiency that data call can be improved promotes the experience effect of user.
In addition, the present invention also proposes a kind of computer readable storage medium, stored on the computer readable storage medium
There are Data Migration and caller, following operation is realized when the Data Migration and caller are executed by processor:
The data point stored in source database are determined according to the mapping relations between predetermined type of service and data
The source database is divided into different memory spaces, Mei Gecun by not corresponding type of service according to determining type of service
It stores up space and corresponds to a kind of data of type of service of storage;
After the request of acquisition preset kind business datum for receiving operation system transmission, searched from the source database
Go out memory space corresponding with the data that the preset kind business datum matches;
Initial address and the end address for obtaining the corresponding memory space of data to match, update predetermined migration
Starting migration address in kind sublist is the initial address of the memory space, updates the end relocation site in the migration species sublist
Location is the end address of the memory space, and the predetermined migration species sublist includes starting migration address and terminates to migrate
Address;
Whether the data of memory space storage are determined based on the migration species sublist in predetermined target database,
If the data of memory space storage call corresponding default class in the target database from the target database
Type business datum is simultaneously back to the operation system;
If alternatively, the memory space storage data not in the target database, according to the migration species sublist
The data of memory space storage are migrated to the target database, corresponding preset kind is called from the target database
Business datum is simultaneously back to the operation system.
Computer readable storage medium specific implementation mode of the present invention and above-mentioned electronic device and Data Migration and calling
Each embodiment of method is essentially identical, does not make tired state herein.
The embodiments of the present invention are for illustration only, can not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal equipment (can be mobile phone, computer, clothes
Be engaged in device, air conditioner or the network equipment etc.) execute method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of electronic device, which is characterized in that the electronic device includes memory and the processing that is connect with the memory
Device, the processor is for executing the Data Migration and caller stored on the memory, the Data Migration and calling
Program realizes following steps when being executed by the processor:
A1, the data difference stored in source database is determined according to the mapping relations between predetermined type of service and data
The source database is divided into different memory spaces by corresponding type of service according to determining type of service, each to store
Space, which corresponds to, stores a kind of data of type of service;
A2, it after receiving the request for obtaining preset kind business datum that operation system is sent, is searched from the source database
Go out memory space corresponding with the data that the preset kind business datum matches;
The initial address for the corresponding memory space of data that A3, acquisition match and end address, update predetermined migration
Starting migration address in kind sublist is the initial address of the memory space, updates the end relocation site in the migration species sublist
Location is the end address of the memory space, and the predetermined migration species sublist includes starting migration address and terminates to migrate
Address;
A4, the data of memory space storage are determined based on the migration species sublist whether in predetermined target database,
If the data of memory space storage call corresponding default class in the target database from the target database
Type business datum is simultaneously back to the operation system;
If alternatively, the data of memory space storage migrate not in the target database according to the migration species sublist
The data of memory space storage call corresponding preset kind business to the target database from the target database
Data are simultaneously back to the operation system.
2. electronic device as described in claim 1, which is characterized in that the predetermined migration species sublist further includes task
The address of state and migrating data;It is described to determine the data of memory space storage whether advance based on the migration species sublist
Step in determining database includes:
It is completed if the task status is migration, it is determined that whether the data of memory space storage are in predetermined number of targets
According to library;If alternatively, the task status is in migration, determine whether the transition state is to move in preset time threshold
It moves and completes, if the transition state is updated to migration in the preset time threshold and completes, it is determined that the memory space stores
Data in predetermined target database;
If during the task status is to be migrated, it is determined that the data of memory space storage are not in predetermined database
In.
3. electronic device as described in claim 1, which is characterized in that if the data of memory space storage are not in the target
In database, then data to the step of target database that memory space storage is migrated according to the migration species sublist, wraps
It includes:
Update the task status be migration in, since the starting migration address by preset migration sequence migration be somebody's turn to do
The data of memory space storage;
Real-time Monitoring Data transition process, if monitoring, the Data Migration of the corresponding memory space storage of migration address loses
It loses, then the address for updating the migrating data is the corresponding migration address of storage data of migration failure, updates the task
State is that migration fails, and sends migration failure prompt message to the terminal device of predetermined operation personnel;
If monitoring, the Data Migration of memory space storage is completed, and it is that migration is completed to update the task status.
4. electronic device as claimed in claim 3, which is characterized in that the step in the update task status is migration
Further include the Database lock of storage data setting preset kind corresponding to the memory space before rapid;Described in the update
Task status be migration in step after, further include the Database lock for discharging the preset kind.
5. electronic device according to any one of claims 1-4, which is characterized in that the migration species sublist further includes when starting
Between and the end time.
6. a kind of Data Migration and call method, which is characterized in that described method includes following steps:
S1, the data difference stored in source database is determined according to the mapping relations between predetermined type of service and data
The source database is divided into different memory spaces by corresponding type of service according to determining type of service, each to store
Space, which corresponds to, stores a kind of data of type of service;
S2, it after receiving the request for obtaining preset kind business datum that operation system is sent, is searched from the source database
Go out memory space corresponding with the data that the preset kind business datum matches;
The initial address for the corresponding memory space of data that S3, acquisition match and end address, update predetermined migration
Starting migration address in kind sublist is the initial address of the memory space, updates the end relocation site in the migration species sublist
Location is the end address of the memory space, and the predetermined migration species sublist includes starting migration address and terminates to migrate
Address;
S4, the data of memory space storage are determined based on the migration species sublist whether in predetermined target database,
If the data of memory space storage call corresponding default class in the target database from the target database
Type business datum is simultaneously back to the operation system;
If alternatively, the data of memory space storage migrate not in the target database according to the migration species sublist
The data of memory space storage call corresponding preset kind business to the target database from the target database
Data are simultaneously back to the operation system.
7. Data Migration as claimed in claim 6 and call method, which is characterized in that the predetermined migration species sublist
It further include the address of task status and migrating data;The data that memory space storage is determined based on the migration species sublist
Whether the step in predetermined database includes:
It is completed if the task status is migration, it is determined that whether the data of memory space storage are in predetermined number of targets
According to library;If alternatively, the task status is in migration, determine whether the transition state is to move in preset time threshold
It moves and completes, if the transition state is updated to migration in the preset time threshold and completes, it is determined that the memory space stores
Data whether in predetermined target database;
If during the task status is to be migrated, it is determined that the data of memory space storage are not in predetermined database
In.
8. Data Migration as claimed in claim 7 and call method, which is characterized in that if the data of memory space storage are not
In the target database, then the data of memory space storage are migrated to the target data according to the migration species sublist
The step of library includes:
Update the task status be migration in, since the starting migration address by preset migration sequence migration be somebody's turn to do
The data of memory space storage;
Real-time Monitoring Data transition process, if monitoring, the Data Migration of the corresponding memory space storage of migration address loses
It loses, then the address for updating the migrating data is the corresponding migration address of storage data of migration failure, updates the task
State is that migration fails, and sends migration failure prompt message to the terminal device of predetermined operation personnel;
If monitoring, the Data Migration of memory space storage is completed, and it is that migration is completed to update the task status.
9. Data Migration as claimed in claim 8 and call method, which is characterized in that be in the update task status
Further include the Database lock of storage data setting preset kind corresponding to the memory space before step in migration;Institute
It states and updates after the task status be step in migrating, further include the Database lock for discharging the preset kind.
10. a kind of computer readable storage medium, the computer-readable recording medium storage has Data Migration and caller,
The Data Migration and caller can be executed by least one processor, so that at least one processor executes such as right
It is required that the step of Data Migration and call method described in any one of 6-9.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810103384.8A CN108388599B (en) | 2018-02-01 | 2018-02-01 | Electronic device, data migration and calling method and storage medium |
PCT/CN2018/089456 WO2019148722A1 (en) | 2018-02-01 | 2018-06-01 | Electronic device, data migrating and calling method and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810103384.8A CN108388599B (en) | 2018-02-01 | 2018-02-01 | Electronic device, data migration and calling method and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108388599A true CN108388599A (en) | 2018-08-10 |
CN108388599B CN108388599B (en) | 2022-08-02 |
Family
ID=63074933
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810103384.8A Active CN108388599B (en) | 2018-02-01 | 2018-02-01 | Electronic device, data migration and calling method and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN108388599B (en) |
WO (1) | WO2019148722A1 (en) |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109542870A (en) * | 2018-10-23 | 2019-03-29 | 高新兴科技集团股份有限公司 | Database data management method and system |
CN109564567A (en) * | 2018-10-17 | 2019-04-02 | 算丰科技(北京)有限公司 | Date storage method, device, electronic equipment and computer readable storage medium |
CN110059072A (en) * | 2019-03-13 | 2019-07-26 | 平安普惠企业管理有限公司 | Data Migration monitoring method, system, equipment and medium based on storing process |
WO2020082563A1 (en) * | 2018-10-25 | 2020-04-30 | 平安科技(深圳)有限公司 | Scheduled task processing method, apparatus, device, and storage medium |
CN111143364A (en) * | 2019-12-24 | 2020-05-12 | 珠海大横琴科技发展有限公司 | Data block storage method and device, electronic equipment and storage medium |
CN111274224A (en) * | 2020-01-08 | 2020-06-12 | 中国联合网络通信集团有限公司 | Data migration method and device |
CN111427868A (en) * | 2020-04-06 | 2020-07-17 | 中信银行股份有限公司 | Processing method and device for operation request in database migration and electronic equipment |
CN111430008A (en) * | 2020-02-25 | 2020-07-17 | 广州七乐康药业连锁有限公司 | Medical data processing method and medical data processing system based on cloud platform |
CN116909688A (en) * | 2023-09-14 | 2023-10-20 | 中移(苏州)软件技术有限公司 | Database calling method and device, storage medium and electronic equipment |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111723079A (en) * | 2020-06-28 | 2020-09-29 | 深圳壹账通智能科技有限公司 | Data migration method and device, computer equipment and storage medium |
CN112965665B (en) * | 2021-03-09 | 2023-09-26 | 华泰证券股份有限公司 | GP database data storage method based on SAS and SSD |
CN113392088B (en) * | 2021-06-07 | 2024-03-26 | 北京来看科技有限公司 | Data synchronization method, device, terminal and storage medium |
CN115118673B (en) * | 2022-06-28 | 2023-05-26 | 中国平安财产保险股份有限公司 | Service traffic migration method, device, equipment and computer readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102917025A (en) * | 2012-09-21 | 2013-02-06 | 江苏乐买到网络科技有限公司 | Method for business migration based on cloud computing platform |
CN103902593A (en) * | 2012-12-27 | 2014-07-02 | 中国移动通信集团河南有限公司 | Data transfer method and device |
CN104881245A (en) * | 2014-12-30 | 2015-09-02 | 北京飞杰信息技术有限公司 | Configuration method and device of storage system |
CN106030500A (en) * | 2014-04-22 | 2016-10-12 | 株式会社日立制作所 | Data migration method of storage system |
CN106874389A (en) * | 2017-01-11 | 2017-06-20 | 腾讯科技(深圳)有限公司 | The moving method and device of data |
US20170272515A1 (en) * | 2016-03-16 | 2017-09-21 | Google Inc. | Efficient live-migration of remotely accessed data |
CN107402722A (en) * | 2017-07-04 | 2017-11-28 | 杭州宏杉科技股份有限公司 | A kind of data migration method and storage device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9633033B2 (en) * | 2013-01-11 | 2017-04-25 | Commvault Systems, Inc. | High availability distributed deduplicated storage system |
CN107133244B (en) * | 2016-02-29 | 2020-04-28 | 阿里巴巴集团控股有限公司 | Method and device for testing database migration |
CN106686070B (en) * | 2016-12-13 | 2020-10-16 | 腾讯科技(深圳)有限公司 | Database data migration method, device, terminal and system |
-
2018
- 2018-02-01 CN CN201810103384.8A patent/CN108388599B/en active Active
- 2018-06-01 WO PCT/CN2018/089456 patent/WO2019148722A1/en active Application Filing
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102917025A (en) * | 2012-09-21 | 2013-02-06 | 江苏乐买到网络科技有限公司 | Method for business migration based on cloud computing platform |
CN103902593A (en) * | 2012-12-27 | 2014-07-02 | 中国移动通信集团河南有限公司 | Data transfer method and device |
CN106030500A (en) * | 2014-04-22 | 2016-10-12 | 株式会社日立制作所 | Data migration method of storage system |
CN104881245A (en) * | 2014-12-30 | 2015-09-02 | 北京飞杰信息技术有限公司 | Configuration method and device of storage system |
US20170272515A1 (en) * | 2016-03-16 | 2017-09-21 | Google Inc. | Efficient live-migration of remotely accessed data |
CN106874389A (en) * | 2017-01-11 | 2017-06-20 | 腾讯科技(深圳)有限公司 | The moving method and device of data |
CN107402722A (en) * | 2017-07-04 | 2017-11-28 | 杭州宏杉科技股份有限公司 | A kind of data migration method and storage device |
Non-Patent Citations (2)
Title |
---|
K. CHANCHIO 等: "Memory space representation for heterogeneous network process migration", 《PROCEEDINGS OF THE FIRST MERGED INTERNATIONAL PARALLEL PROCESSING SYMPOSIUM AND SYMPOSIUM ON PARALLEL AND DISTRIBUTED PROCESSING》 * |
张洪良 等: "应用系统云化迁移评估", 《电信快报》 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109564567A (en) * | 2018-10-17 | 2019-04-02 | 算丰科技(北京)有限公司 | Date storage method, device, electronic equipment and computer readable storage medium |
CN109542870A (en) * | 2018-10-23 | 2019-03-29 | 高新兴科技集团股份有限公司 | Database data management method and system |
WO2020082563A1 (en) * | 2018-10-25 | 2020-04-30 | 平安科技(深圳)有限公司 | Scheduled task processing method, apparatus, device, and storage medium |
CN110059072A (en) * | 2019-03-13 | 2019-07-26 | 平安普惠企业管理有限公司 | Data Migration monitoring method, system, equipment and medium based on storing process |
CN111143364A (en) * | 2019-12-24 | 2020-05-12 | 珠海大横琴科技发展有限公司 | Data block storage method and device, electronic equipment and storage medium |
CN111274224A (en) * | 2020-01-08 | 2020-06-12 | 中国联合网络通信集团有限公司 | Data migration method and device |
CN111274224B (en) * | 2020-01-08 | 2023-04-28 | 中国联合网络通信集团有限公司 | Data migration method and device |
CN111430008A (en) * | 2020-02-25 | 2020-07-17 | 广州七乐康药业连锁有限公司 | Medical data processing method and medical data processing system based on cloud platform |
CN111427868A (en) * | 2020-04-06 | 2020-07-17 | 中信银行股份有限公司 | Processing method and device for operation request in database migration and electronic equipment |
CN116909688A (en) * | 2023-09-14 | 2023-10-20 | 中移(苏州)软件技术有限公司 | Database calling method and device, storage medium and electronic equipment |
CN116909688B (en) * | 2023-09-14 | 2024-01-26 | 中移(苏州)软件技术有限公司 | Database calling method and device, storage medium and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN108388599B (en) | 2022-08-02 |
WO2019148722A1 (en) | 2019-08-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108388599A (en) | Electronic device, Data Migration and call method and storage medium | |
CN109492436A (en) | A kind of file verification method and relevant apparatus | |
CN108388598A (en) | Electronic device, date storage method and storage medium | |
CN106886437B (en) | Application program updating method and device | |
CN105721941A (en) | Over-the-air upgrading control method and device of cloud television | |
CN104461621B (en) | A kind of method and device of Update attribute information | |
CN108429783A (en) | Electronic device, configuration file method for pushing and storage medium | |
CN110535776B (en) | Gateway current limiting method, device, gateway, system and storage medium | |
CN112506584B (en) | Resource file loading method, device, equipment, storage medium and product | |
CN108512948B (en) | Address book updating method and device, computer equipment and storage medium | |
CN103701653B (en) | The processing method of a kind of interface hot plug configuration data and network configuration server | |
CN106649654A (en) | Data updating method and device | |
CN104978278B (en) | Data processing method and device | |
CN109271193B (en) | Data processing method, device, equipment and storage medium | |
CN108491304A (en) | Electronic device, operation system risk control method and storage medium | |
CN108255735A (en) | Associated environment test method, electronic device and computer readable storage medium | |
CN112529711B (en) | Transaction processing method and device based on block chain virtual machine multiplexing | |
CN109634140A (en) | Update method, device, unit and the computer equipment of running environment data | |
CN110609710A (en) | Android system starting speed control method, intelligent device and storage medium | |
CN109388644A (en) | A kind of data-updating method and device | |
CN106603723A (en) | Request message processing method and device | |
CN108390916B (en) | Picture downloading method and terminal | |
CN115004667B (en) | Information pushing method, device, electronic equipment and computer readable medium | |
CN106254440A (en) | The upgrade method of a kind of AP and device | |
CN111176715B (en) | Information calling method and server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |