A method and a device for online migration of a database
A database, data block technology, applied in the field of database online
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0028] Such as figure 1 As shown, a method for database online migration in the technical solution of the present invention includes:
[0029] S1, configure database parameters, start key processes and allocate memory for use by the target database;
[0030] S2, the source database sends the data block to the target database. For cross-operating system platform migration, the target database converts the size and bytes and writes the data block into the data file. According to the data file type configured in the target database, the data block is written into the specified data file;
[0031] S3, the target database modifies and changes the data blocks locally after the synchronization of the data blocks of the source database is completed.
[0032]In step S1, the parameters for configuring the source database and the target database specifically include the parameter migrate_block_change_trace for specifying the path and name of the source database data block change record...
Embodiment 2
[0051] Such as figure 2 As shown, in a method for database online migration in the technical solution of the present invention, the target database writes the data block into the data file specifically:
[0052] In step S201, the target database receives the data block;
[0053] In step S202, it is judged whether the operating system of the source database is consistent with the operating system of the target database, if the judgment result is yes, then execute step S203, if the judgment result is no, then execute step S204;
[0054] In step S203, the data block is directly written into the target database data file;
[0055] In step S204, the size byte conversion is performed on the data block, that is, the storage order of the size byte is converted, and after the conversion, the data block is written into the target database data file.
[0056] In steps S201, S202, S203, and S204, before the data block is synchronized, the data block sending process will send the operat...
Embodiment 3
[0059] Such as image 3 As shown, in a method for database online migration in the technical solution of the present invention, writing data blocks into a specified data file according to the data file type configured in the target database is specifically:
[0060] In step S211, the target database receives the data block;
[0061] In step S212, it is judged whether the file type configured in the source database is consistent with the file type configured in the target database, if the judgment result is yes, then step S213 is executed, if the judgment result is no, then step S214 is executed;
[0062] In step S213, directly write the data block into the data file under the file system directory specified by the target database;
[0063] In step S214, the conversion is completed according to the parameters configured in the target database and the file type, and the data file is written into the data file under the specified file system directory of the target database.
...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com