CN104573122A - Oracle database migration tool for migrating from AIX platform to K-UX platform - Google Patents
Oracle database migration tool for migrating from AIX platform to K-UX platform Download PDFInfo
- Publication number
- CN104573122A CN104573122A CN201510065707.5A CN201510065707A CN104573122A CN 104573122 A CN104573122 A CN 104573122A CN 201510065707 A CN201510065707 A CN 201510065707A CN 104573122 A CN104573122 A CN 104573122A
- Authority
- CN
- China
- Prior art keywords
- migration
- module
- platform
- database
- information
- 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 OR CALCULATING; 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
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
本发明特别涉及一种从AIX平台向K-UX平台迁移的Oracle数据库迁移工具。该从AIX平台向K-UX平台迁移的Oracle数据库迁移工具,所述迁移工具的软件架构基于JAVA平台,分为源端与目标端,其中AIX平台为源端,K-UX平台为目标端,通过以太网实现源端与目标端通信。该从AIX平台向K-UX平台迁移的Oracle数据库迁移工具,结构简单合理,实现了Oracle数据库从AIX平台向K-UX平台的迁移,极大地降低了数据库迁移难度,减少了工作量,缩短了工作时间,提高了工作效率。
The invention particularly relates to an Oracle database migration tool for migrating from an AIX platform to a K-UX platform. The Oracle database migration tool for migrating from the AIX platform to the K-UX platform, the software architecture of the migration tool is based on the JAVA platform, and is divided into a source end and a target end, wherein the AIX platform is the source end, and the K-UX platform is the target end. The source and target communicate through Ethernet. The Oracle database migration tool for migrating from the AIX platform to the K-UX platform has a simple and reasonable structure, which realizes the migration of the Oracle database from the AIX platform to the K-UX platform, greatly reduces the difficulty of database migration, reduces the workload, and shortens the Working hours, improve work efficiency.
Description
技术领域 technical field
本发明涉及数据库的跨平台迁移技术领域,特别涉及一种从AIX平台向K-UX平台迁移的Oracle数据库迁移工具。 The invention relates to the technical field of cross-platform migration of databases, in particular to an Oracle database migration tool for migrating from an AIX platform to a K-UX platform.
背景技术 Background technique
高端服务器承载着行业的核心应用,广泛应用在金融、电信、能源、交通等关键应用领域,其运行直接关系到社会、经济的正常运转。长期以来,由于缺乏高端服务器设计和制造能力,我国高端服务器市场一直为国外厂商把持,其中惠普长期占据20%以上的国内市场。在科技部“十一五”863计划的支持下,相关部门、科研单位积极配合,浪潮已成功研制了32路高端容错计算机系统,可用度达到99.999%,系统联机事务处理能力达到世界先进水平。为提高信息化建设重大装备的自主可控性,越来越多的信息系统倾向于使用自主产品。因此,在未来较长的一段时间内,国内的IT系统建设面临着国产化的变革,具体的信息系统建设与实施层面,体现为越来越多的跨平台迁移工作,其中有相当的迁移工作是从AIX平台至浪潮K-UX平台。 High-end servers carry the core applications of the industry and are widely used in key application fields such as finance, telecommunications, energy, and transportation. Their operation is directly related to the normal operation of society and the economy. For a long time, due to the lack of high-end server design and manufacturing capabilities, my country's high-end server market has been dominated by foreign manufacturers, of which HP has long occupied more than 20% of the domestic market. With the support of the "Eleventh Five-Year" 863 plan of the Ministry of Science and Technology, and the active cooperation of relevant departments and scientific research units, Inspur has successfully developed a 32-channel high-end fault-tolerant computer system, with an availability of 99.999%, and the system's online transaction processing capacity has reached the world's advanced level. In order to improve the independent controllability of major equipment for information construction, more and more information systems tend to use independent products. Therefore, for a relatively long period of time in the future, domestic IT system construction will face localization changes. The specific level of information system construction and implementation is reflected in more and more cross-platform migration work, including considerable migration work It is from the AIX platform to the Inspur K-UX platform.
数据库是IT系统的核心软件,数据库迁移也是IT系统建设中极为重要的一部分。由于异构服务器平台的CPU指令集差异、操作系统差异以及编译器差异,使得数据库跨平台迁移难度高,工作量大。如何降低移植难度,减少工作量,是数据库跨平台迁移需要解决的关键问题。 Database is the core software of IT system, and database migration is also an extremely important part of IT system construction. Due to differences in CPU instruction sets, operating systems, and compilers of heterogeneous server platforms, cross-platform migration of databases is difficult and requires a lot of work. How to reduce the difficulty of transplantation and reduce the workload is the key problem to be solved in database cross-platform migration.
发明内容 Contents of the invention
本发明为了弥补现有技术的缺陷,提供了一种简约、高效的从AIX平台向K-UX平台迁移的Oracle数据库迁移工具。 In order to make up for the defects of the prior art, the present invention provides a simple and efficient Oracle database migration tool for migrating from the AIX platform to the K-UX platform.
本发明是通过如下技术方案实现的: The present invention is achieved through the following technical solutions:
一种从AIX平台向K-UX平台迁移的Oracle数据库迁移工具,其特征在于:所述迁移工具的软件架构基于JAVA平台,分为源端与目标端,其中AIX平台为源端,K-UX平台为目标端,通过以太网实现源端与目标端通信;所述源端和目标端对各自所在平台环境进行扫描,根据扫描结果与迁移算法,生成迁移评估报告与迁移方案建议;根据用户对迁移方案建议的筛选和迁移算法生成迁移向导,通过迁移向导对用户的提示与指导,实现Oracle数据库数据从其他服务器平台至K-UX平台的跨平台跨版本半自动迁移。 A kind of Oracle database migration tool that migrates to K-UX platform from AIX platform, it is characterized in that: the software framework of described migration tool is based on JAVA platform, is divided into source end and target end, wherein AIX platform is source end, K-UX The platform is the target end, and the communication between the source end and the target end is realized through Ethernet; the source end and the target end scan their respective platform environments, and generate migration evaluation reports and migration plan suggestions according to the scanning results and migration algorithms; The screening and migration algorithm suggested by the migration plan generates a migration wizard. Through the migration wizard's prompts and guidance to users, the cross-platform and cross-version semi-automatic migration of Oracle database data from other server platforms to the K-UX platform is realized.
所述源端包含通信模块a(1)、分析模块a(2)、备份模块(3)与控制台模块a(4),所述目标端包括通信模块b(5)、分析模块b(6)、恢复模块(7)与控制台模块b(8);所述控制台模块(4,8)用于实现人机交互,控制台模块(4,8)第一通信端口与通信模块(1,5)第一通信端口相连,控制台模块(4,8)第二通信端口与分析模块(2,6)第一通信端口相连,控制台模块a(4)第三通信端口与备份模块(3)相连,控制台模块b(8)第三通信端口与恢复模块(7)相连,通信模块(1,5)第二通信端口与分析模块(2,6)第二通信端口相连,通信模块a(1)第三通信端口与备份模块(3)第二通信端口相连,通信模块b(5)第三通信端口与恢复模块(7)第二通信端口相连,源端通信模块a(1)第四通信端口与目标端通信模块b(5)第四端口通过以太网相连;所述通信模块(1,5)将分析模块a(2)、备份模块(3)和控制台模块a(4)的信息与分析模块b(6)、恢复模块(7)和控制台模块b(8)的信息通过以太网实现交互,实现源端与目标端通信与控制。 The source end includes communication module a (1), analysis module a (2), backup module (3) and console module a (4), and the target end includes communication module b (5), analysis module b (6 ), a recovery module (7) and a console module b (8); the console module (4, 8) is used to realize human-computer interaction, and the first communication port of the console module (4, 8) and the communication module (1 , 5) The first communication port is connected, the second communication port of the console module (4, 8) is connected to the first communication port of the analysis module (2, 6), the third communication port of the console module a (4) is connected to the backup module ( 3) connected, the third communication port of the console module b (8) is connected to the recovery module (7), the second communication port of the communication module (1, 5) is connected to the second communication port of the analysis module (2, 6), the communication module a(1) The third communication port is connected to the second communication port of the backup module (3), communication module b(5) The third communication port is connected to the second communication port of the recovery module (7), the source communication module a(1) The fourth communication port is connected to the fourth port of the target end communication module b (5) via Ethernet; the communication module (1, 5) connects the analysis module a (2), the backup module (3) and the console module a (4 ) and the information of the analysis module b (6), the recovery module (7) and the console module b (8) interact through the Ethernet to realize the communication and control between the source end and the target end.
所述分析模块a(2)收集源端平台信息与数据库信息,分析模块a(2)通过通信模块a(1)接收分析模块b(6)收集的目标端平台信息,对比源端平台信息与目标端平台信息,得出源端、目标端平台差异分析表输出至控制台模块a(4);分析模块根据平台差异分析表、收集的源端数据库信息以及迁移算法,制定迁移方案输出至控制台模块(1),根据控制台模块a(4)反馈的人工干预信息,生成迁移向导指导迁移;分析模块a(2)将源端平台信息、源端数据库信息、平台差异分析表、迁移方案、迁移向导发送至通信模块a(1);所述分析模块b(6)收集目标端平台信息与已恢复的数据库信息;分析模块b(6)通过通信模块b(5)接收源端分析模块a(2)收集的源端数据库信息,对比源端数据库信息与目标端已恢复的数据库信息,得出源端数据库、目标端数据库一致性检查表输出至控制台模块b(8);分析模块b(6)将目标端平台信息、目标端数据库信息、数据库一致性检查表、发送至通信模块b(5)。 The analysis module a (2) collects source platform information and database information, and the analysis module a (2) receives the target platform information collected by the analysis module b (6) through the communication module a (1), and compares the source platform information with the Based on the target platform information, the source and target platform difference analysis table is output to the console module a (4); the analysis module formulates a migration plan based on the platform difference analysis table, the collected source database information and the migration algorithm, and outputs it to the control panel The platform module (1) generates a migration wizard to guide the migration according to the manual intervention information fed back by the console module a (4); the analysis module a (2) integrates the source platform information, source database information, platform difference analysis table, and migration plan , the migration wizard sends to the communication module a (1); the analysis module b (6) collects the target platform information and the restored database information; the analysis module b (6) receives the source analysis module through the communication module b (5) a(2) Collect the source database information, compare the source database information with the target database information, get the source database, target database consistency checklist output to the console module b (8); analysis module b(6) Send the target-side platform information, target-side database information, and database consistency checklist to communication module b(5).
所述平台信息包括处理器架构信息、指令集信息、字节序信息、编译器信息、操作系统信息、系统变量信息及文件系统信息,所述数据库信息及已恢复的数据库信息包括数据库版本信息、数据量信息、表信息、索引信息、存储过程信息、用户信息、日志信息。 The platform information includes processor architecture information, instruction set information, byte order information, compiler information, operating system information, system variable information and file system information, and the database information and restored database information include database version information, Data volume information, table information, index information, stored procedure information, user information, and log information.
所述备份模块(3)根据迁移向导、迁移算法及控制台模块a(4)发送的人工干预信息执行源端Oracle数据库备份操作,并反馈每步操作的结果至控制台模块a(4)与通信模块a(1);所述恢复模块(7)根据迁移向导、迁移算法及控制台模块b(8)发送的人工干预信息执行源端Oracle数据库恢复操作,并反馈每步操作的结果至控制台模块b(8)与通信模块b(5)。 The backup module (3) executes the source Oracle database backup operation according to the migration wizard, the migration algorithm, and the manual intervention information sent by the console module a (4), and feeds back the results of each step of the operation to the console module a (4) and The communication module a (1); the recovery module (7) executes the source-end Oracle database recovery operation according to the migration wizard, the migration algorithm, and the manual intervention information sent by the console module b (8), and feeds back the results of each step of the operation to the control Station module b (8) and communication module b (5).
所述迁移算法包括迁移向导生成算法、导入/导出备份恢复算法、XTTS备份恢复算法和数据泵备份恢复算法。 The migration algorithm includes a migration wizard generation algorithm, an import/export backup recovery algorithm, an XTTS backup recovery algorithm, and a data pump backup recovery algorithm.
所述迁移向导生成算法步骤如下: The algorithm steps for generating the migration wizard are as follows:
1)制定源端、目标端平台差异分析表的格式以及各差异对应的迁移方案建议; 1) Formulate the format of the source-end and target-end platform difference analysis table and the migration proposal corresponding to each difference;
2)当源端数据库版本为Oracle 9i时,则使用导入/导出备份恢复算法进行迁移; 2) When the source database version is Oracle 9i, use the import/export backup recovery algorithm for migration;
3)当源端数据库版本为Oracle 10g或Oracle 11g时,则根据不同的数据量和时间窗口选择不同的迁移方法和不同的转储文件传输建议; 3) When the source database version is Oracle 10g or Oracle 11g, select different migration methods and different dump file transfer suggestions according to different data volumes and time windows;
当数据量<1T,时间窗口为8h~12h时,采用XTTS备份恢复算法执行数据迁移,并采用FTP传输或NFS中转服务器的方式移动数据文件; When the amount of data is <1T and the time window is 8h~12h, use the XTTS backup recovery algorithm to perform data migration, and use FTP transmission or NFS transfer server to move data files;
当数据量<1T,时间窗口为12h~48h时,采用数据泵备份恢复算法执行数据迁移; When the amount of data is less than 1T and the time window is 12h~48h, the data pump backup and recovery algorithm is used to perform data migration;
当数据量1T~5T,时间窗口为8h~24h时,采用XTTS备份恢复算法执行数据迁移,并采用FTP传输或NFS中转服务器的方式移动数据文件; When the amount of data is 1T~5T, and the time window is 8h~24h, use the XTTS backup recovery algorithm to perform data migration, and use FTP transmission or NFS transfer server to move data files;
当数据量1T~5T,时间窗口为24h~48h时,采用数据泵备份恢复算法执行数据迁移; When the data volume is 1T~5T and the time window is 24h~48h, the data pump backup and recovery algorithm is used to perform data migration;
当数据量5T~10T,时间窗口为8h~48h时,采用XTTS备份恢复算法执行数据迁移,并采用NFS中转服务器或存储重新挂载的方式移动数据文件; When the data volume is 5T~10T, and the time window is 8h~48h, use the XTTS backup recovery algorithm to perform data migration, and use NFS transfer server or storage remount to move data files;
当数据量>10T,时间窗口为8h~48h时,采用XTTS备份恢复算法执行数据迁移,并采用存储重新挂载的方式移动数据文件; When the amount of data is >10T and the time window is 8h~48h, the XTTS backup and recovery algorithm is used to perform data migration, and the data files are moved by means of storage remounting;
5)根据表信息、用户信息、存储过程信息预估迁移时间,包括数据库备份时间、转储文件传输时间、数据库恢复时间; 5) Estimate migration time based on table information, user information, and stored process information, including database backup time, dump file transfer time, and database recovery time;
6)分析模块a(2)根据以上信息生成迁移方案建议,并将迁移方案建议发送至控制台模块a(4)和通信模块a(1); 6) The analysis module a (2) generates a migration proposal based on the above information, and sends the migration proposal to the console module a (4) and the communication module a (1);
7)最后根据用户对迁移方案建议的决策,生成迁移向导。 7) Finally, a migration wizard is generated according to the user's decision on the migration proposal.
所述导入/导出备份恢复算法步骤如下: The steps of the import/export backup recovery algorithm are as follows:
1)备份模块(3)执行源端用户数据库一致性检查; 1) The backup module (3) executes the consistency check of the user database at the source end;
2)备份模块(3)备份源端数据库,生成转储文件,反馈结果; 2) Backup module (3) Back up the source database, generate dump files, and feedback the results;
3)提示用户传输转储文件; 3) Prompt the user to transfer the dump file;
4)用户通过源端控制台模块a(4)或目标端控制台模块b(8)确认转储文件传输完毕; 4) The user confirms that the transfer of the dump file is completed through the source console module a (4) or the target console module b (8);
5)恢复模块(7)在目标端导入用户库,并反馈结果; 5) The recovery module (7) imports the user library on the target side and feeds back the results;
6)恢复模块(7)在目标数据库执行一致性检查,反馈检查结果。 6) The recovery module (7) performs a consistency check on the target database and feeds back the check result.
所述XTTS备份恢复算法步骤如下: The steps of the XTTS backup recovery algorithm are as follows:
1)创建目标数据库 1) Create the target database
采用DBCA的方式使用源库创建时生成的模板创建目标数据库,以此创建出的目标库与源库各项参数是相同的,减少了后续目标库优化等手工干涉; Using the DBCA method to create the target database using the template generated when the source database was created, the parameters of the created target database and the source database are the same, reducing manual intervention such as subsequent target database optimization;
2)环境验证 2) Environmental verification
验证源数据库和目标数据库各个选项,包括:系统平台、字节序、字符集、时区版本、监听器、TNS; Verify the various options of the source database and the target database, including: system platform, byte order, character set, time zone version, listener, TNS;
3)初始化,生成迁移脚本,修改目标库系统默认表空间; 3) Initialize, generate migration scripts, and modify the default tablespace of the target database system;
4)删除目标数据库用户表空间; 4) Delete the target database user tablespace;
5)创建映射用户; 5) Create a mapping user;
6)导出源数据库元数据库; 6) Export the source database metabase;
7)用户表空间自包含检查; 7) User tablespace self-contained check;
8)变更源数据库用户表空间状态; 8) Change the status of the source database user table space;
9)导出源数据库用户表空间元数据; 9) Export source database user table space metadata;
10)采用FTP传输的方式,NFS做中间服务器的方式或存储重新挂载的方式移动元数据文件和新格式的数据文件; 10) Use FTP transmission, NFS as an intermediate server or storage remounting to move metadata files and data files in a new format;
11)转换源数据库数据文件字节序; 11) Convert the byte order of the source database data file;
12)导入源数据库用户表空间元数据; 12) Import source database user table space metadata;
13)还原目标数据库用户表空间状态; 13) Restore the state of the target database user table space;
14)导入源数据库元数据; 14) Import source database metadata;
15)目标数据库后续处理,包括还原系统默认表空间和无效对象编译; 15) Subsequent processing of the target database, including restoring the system default tablespace and compiling invalid objects;
16)还原源数据库用户表空间状态。 16) Restore the state of the source database user table space.
所述数据泵备份恢复算法步骤如下: The steps of the data pump backup recovery algorithm are as follows:
1)在源数据库导出数据到dump文件; 1) Export data to a dump file in the source database;
2)移动dump文件到目标库; 2) Move the dump file to the target library;
3)导入dump文件中数据到目标库。 3) Import the data in the dump file to the target library.
本发明的有益效果是:该从AIX平台向K-UX平台迁移的Oracle数据库迁移工具,结构简单合理,实现了Oracle数据库从AIX平台向K-UX平台的迁移,极大地降低了数据库迁移难度,减少了工作量,缩短了工作时间,提高了工作效率。 The beneficial effect of the present invention is: this Oracle database migration tool that migrates from AIX platform to K-UX platform, structure is simple and reasonable, has realized the migration of Oracle database from AIX platform to K-UX platform, has greatly reduced database migration difficulty, The workload is reduced, the working hours are shortened, and the work efficiency is improved.
附图说明 Description of drawings
附图1为发明Oracle数据库迁移工具架构示意图。 Accompanying drawing 1 is the schematic diagram of the architecture of the invention Oracle database migration tool.
具体实施方式 Detailed ways
下面结合附图对本发明进行详细的说明。 The present invention will be described in detail below in conjunction with the accompanying drawings.
该从AIX平台向K-UX平台迁移的Oracle数据库迁移工具,其软件架构基于JAVA平台,分为源端与目标端,其中AIX平台为源端,K-UX平台为目标端,通过以太网实现源端与目标端通信;所述源端和目标端对各自所在平台环境进行扫描,根据扫描结果与迁移算法,生成迁移评估报告与迁移方案建议;根据用户对迁移方案建议的筛选和迁移算法生成迁移向导,通过迁移向导对用户的提示与指导,实现Oracle数据库数据从其他服务器平台至K-UX平台的跨平台跨版本半自动迁移。 The Oracle database migration tool for migrating from the AIX platform to the K-UX platform, its software architecture is based on the JAVA platform, which is divided into a source end and a target end, where the AIX platform is the source end, and the K-UX platform is the target end, which is realized through Ethernet The source end communicates with the target end; the source end and the target end scan their respective platform environments, and generate a migration assessment report and a migration plan suggestion based on the scanning results and migration algorithm; generate a migration plan based on the user's selection of the migration plan suggestion and a migration algorithm Migration wizard, through the migration wizard's prompts and guidance to users, realizes the cross-platform and cross-version semi-automatic migration of Oracle database data from other server platforms to the K-UX platform.
所述源端包含通信模块a(1)、分析模块a(2)、备份模块(3)与控制台模块a(4),所述目标端包括通信模块b(5)、分析模块b(6)、恢复模块(7)与控制台模块b(8);所述控制台模块(4,8)用于实现人机交互,控制台模块(4,8)第一通信端口与通信模块(1,5)第一通信端口相连,控制台模块(4,8)第二通信端口与分析模块(2,6)第一通信端口相连,控制台模块a(4)第三通信端口与备份模块(3)相连,控制台模块b(8)第三通信端口与恢复模块(7)相连,通信模块(1,5)第二通信端口与分析模块(2,6)第二通信端口相连,通信模块a(1)第三通信端口与备份模块(3)第二通信端口相连,通信模块b(5)第三通信端口与恢复模块(7)第二通信端口相连,源端通信模块a(1)第四通信端口与目标端通信模块b(5)第四端口通过以太网相连;所述通信模块(1,5)将分析模块a(2)、备份模块(3)和控制台模块a(4)的信息与分析模块b(6)、恢复模块(7)和控制台模块b(8)的信息通过以太网实现交互,实现源端与目标端通信与控制。 The source end includes communication module a (1), analysis module a (2), backup module (3) and console module a (4), and the target end includes communication module b (5), analysis module b (6 ), a recovery module (7) and a console module b (8); the console module (4, 8) is used to realize human-computer interaction, and the first communication port of the console module (4, 8) and the communication module (1 , 5) The first communication port is connected, the second communication port of the console module (4, 8) is connected to the first communication port of the analysis module (2, 6), the third communication port of the console module a (4) is connected to the backup module ( 3) connected, the third communication port of the console module b (8) is connected to the recovery module (7), the second communication port of the communication module (1, 5) is connected to the second communication port of the analysis module (2, 6), the communication module a(1) The third communication port is connected to the second communication port of the backup module (3), communication module b(5) The third communication port is connected to the second communication port of the recovery module (7), the source communication module a(1) The fourth communication port is connected to the fourth port of the target end communication module b (5) via Ethernet; the communication module (1, 5) connects the analysis module a (2), the backup module (3) and the console module a (4 ) and the information of the analysis module b (6), the recovery module (7) and the console module b (8) interact through the Ethernet to realize the communication and control between the source end and the target end.
所述分析模块a(2)收集源端平台信息与数据库信息,分析模块a(2)通过通信模块a(1)接收分析模块b(6)收集的目标端平台信息,对比源端平台信息与目标端平台信息,得出源端、目标端平台差异分析表输出至控制台模块a(4);分析模块根据平台差异分析表、收集的源端数据库信息以及迁移算法,制定迁移方案输出至控制台模块(1),根据控制台模块a(4)反馈的人工干预信息,生成迁移向导指导迁移;分析模块a(2)将源端平台信息、源端数据库信息、平台差异分析表、迁移方案、迁移向导发送至通信模块a(1);所述分析模块b(6)收集目标端平台信息与已恢复的数据库信息;分析模块b(6)通过通信模块b(5)接收源端分析模块a(2)收集的源端数据库信息,对比源端数据库信息与目标端已恢复的数据库信息,得出源端数据库、目标端数据库一致性检查表输出至控制台模块b(8);分析模块b(6)将目标端平台信息、目标端数据库信息、数据库一致性检查表、发送至通信模块b(5)。 The analysis module a (2) collects source platform information and database information, and the analysis module a (2) receives the target platform information collected by the analysis module b (6) through the communication module a (1), and compares the source platform information with the Based on the target platform information, the source and target platform difference analysis table is output to the console module a (4); the analysis module formulates a migration plan based on the platform difference analysis table, the collected source database information and the migration algorithm, and outputs it to the control panel The platform module (1) generates a migration wizard to guide the migration according to the manual intervention information fed back by the console module a (4); the analysis module a (2) integrates the source platform information, source database information, platform difference analysis table, and migration plan , the migration wizard sends to the communication module a (1); the analysis module b (6) collects the target platform information and the restored database information; the analysis module b (6) receives the source analysis module through the communication module b (5) a(2) Collect the source database information, compare the source database information with the target database information, get the source database, target database consistency checklist output to the console module b (8); analysis module b(6) Send the target-side platform information, target-side database information, and database consistency checklist to communication module b(5).
所述平台信息包括处理器架构信息、指令集信息、字节序信息、编译器信息、操作系统信息、系统变量信息及文件系统信息,所述数据库信息及已恢复的数据库信息包括数据库版本信息、数据量信息、表信息、索引信息、存储过程信息、用户信息、日志信息。 The platform information includes processor architecture information, instruction set information, byte order information, compiler information, operating system information, system variable information and file system information, and the database information and restored database information include database version information, Data volume information, table information, index information, stored procedure information, user information, and log information.
所述备份模块(3)根据迁移向导、迁移算法及控制台模块a(4)发送的人工干预信息执行源端Oracle数据库备份操作,并反馈每步操作的结果至控制台模块a(4)与通信模块a(1);所述恢复模块(7)根据迁移向导、迁移算法及控制台模块b(8)发送的人工干预信息执行源端Oracle数据库恢复操作,并反馈每步操作的结果至控制台模块b(8)与通信模块b(5)。 The backup module (3) executes the source Oracle database backup operation according to the migration wizard, the migration algorithm, and the manual intervention information sent by the console module a (4), and feeds back the results of each step of the operation to the console module a (4) and The communication module a (1); the recovery module (7) executes the source-end Oracle database recovery operation according to the migration wizard, the migration algorithm, and the manual intervention information sent by the console module b (8), and feeds back the results of each step of the operation to the control Station module b (8) and communication module b (5).
所述迁移算法包括迁移向导生成算法、导入/导出备份恢复算法、XTTS备份恢复算法和数据泵备份恢复算法。 The migration algorithm includes a migration wizard generation algorithm, an import/export backup recovery algorithm, an XTTS backup recovery algorithm, and a data pump backup recovery algorithm.
所述迁移向导生成算法步骤如下: The algorithm steps for generating the migration wizard are as follows:
1)制定源端、目标端平台差异分析表的格式以及各差异对应的迁移方案建议; 1) Formulate the format of the source-end and target-end platform difference analysis table and the migration proposal corresponding to each difference;
2)当源端数据库版本为Oracle 9i时,则使用导入/导出备份恢复算法进行迁移; 2) When the source database version is Oracle 9i, use the import/export backup recovery algorithm for migration;
3)当源端数据库版本为Oracle 10g或Oracle 11g时,则根据不同的数据量和时间窗口选择不同的迁移方法和不同的转储文件传输建议; 3) When the source database version is Oracle 10g or Oracle 11g, select different migration methods and different dump file transfer suggestions according to different data volumes and time windows;
当数据量<1T,时间窗口为8h~12h时,采用XTTS备份恢复算法执行数据迁移,并采用FTP传输或NFS中转服务器的方式移动数据文件; When the amount of data is <1T and the time window is 8h~12h, use the XTTS backup recovery algorithm to perform data migration, and use FTP transmission or NFS transfer server to move data files;
当数据量<1T,时间窗口为12h~48h时,采用数据泵备份恢复算法执行数据迁移; When the amount of data is less than 1T and the time window is 12h~48h, the data pump backup and recovery algorithm is used to perform data migration;
当数据量1T~5T,时间窗口为8h~24h时,采用XTTS备份恢复算法执行数据迁移,并采用FTP传输或NFS中转服务器的方式移动数据文件; When the amount of data is 1T~5T, and the time window is 8h~24h, use the XTTS backup recovery algorithm to perform data migration, and use FTP transmission or NFS transfer server to move data files;
当数据量1T~5T,时间窗口为24h~48h时,采用数据泵备份恢复算法执行数据迁移; When the data volume is 1T~5T and the time window is 24h~48h, the data pump backup and recovery algorithm is used to perform data migration;
当数据量5T~10T,时间窗口为8h~48h时,采用XTTS备份恢复算法执行数据迁移,并采用NFS中转服务器或存储重新挂载的方式移动数据文件; When the data volume is 5T~10T, and the time window is 8h~48h, use the XTTS backup recovery algorithm to perform data migration, and use NFS transfer server or storage remount to move data files;
当数据量>10T,时间窗口为8h~48h时,采用XTTS备份恢复算法执行数据迁移,并采用存储重新挂载的方式移动数据文件; When the amount of data is >10T and the time window is 8h~48h, the XTTS backup and recovery algorithm is used to perform data migration, and the data files are moved by means of storage remounting;
5)根据表信息、用户信息、存储过程信息预估迁移时间,包括数据库备份时间、转储文件传输时间、数据库恢复时间; 5) Estimate migration time based on table information, user information, and stored process information, including database backup time, dump file transfer time, and database recovery time;
6)分析模块a(2)根据以上信息生成迁移方案建议,并将迁移方案建议发送至控制台模块a(4)和通信模块a(1); 6) The analysis module a (2) generates a migration proposal based on the above information, and sends the migration proposal to the console module a (4) and the communication module a (1);
7)最后根据用户对迁移方案建议的决策,生成迁移向导。 7) Finally, a migration wizard is generated according to the user's decision on the migration proposal.
所述导入/导出备份恢复算法步骤如下: The steps of the import/export backup recovery algorithm are as follows:
1)备份模块(3)执行源端用户数据库一致性检查; 1) The backup module (3) executes the consistency check of the user database at the source end;
2)备份模块(3)备份源端数据库,生成转储文件,反馈结果; 2) Backup module (3) Back up the source database, generate dump files, and feedback the results;
3)提示用户传输转储文件; 3) Prompt the user to transfer the dump file;
4)用户通过源端控制台模块a(4)或目标端控制台模块b(8)确认转储文件传输完毕; 4) The user confirms that the transfer of the dump file is completed through the source console module a (4) or the target console module b (8);
5)恢复模块(7)在目标端导入用户库,并反馈结果; 5) The recovery module (7) imports the user library on the target side and feeds back the results;
6)恢复模块(7)在目标数据库执行一致性检查,反馈检查结果。 6) The recovery module (7) performs a consistency check on the target database and feeds back the check result.
所述XTTS备份恢复算法步骤如下: The steps of the XTTS backup recovery algorithm are as follows:
1)创建目标数据库 1) Create the target database
采用DBCA的方式使用源库创建时生成的模板创建目标数据库,以此创建出的目标库与源库各项参数是相同的,减少了后续目标库优化等手工干涉; Using the DBCA method to create the target database using the template generated when the source database was created, the parameters of the created target database and the source database are the same, reducing manual intervention such as subsequent target database optimization;
2)环境验证 2) Environmental verification
验证源数据库和目标数据库各个选项,包括:系统平台、字节序、字符集、时区版本、监听器、TNS; Verify the various options of the source database and the target database, including: system platform, byte order, character set, time zone version, listener, TNS;
3)初始化,生成迁移脚本,修改目标库系统默认表空间; 3) Initialize, generate migration scripts, and modify the default tablespace of the target database system;
4)删除目标数据库用户表空间; 4) Delete the target database user tablespace;
5)创建映射用户; 5) Create a mapping user;
6)导出源数据库元数据库; 6) Export the source database metabase;
7)用户表空间自包含检查; 7) User tablespace self-contained check;
8)变更源数据库用户表空间状态; 8) Change the status of the source database user table space;
9)导出源数据库用户表空间元数据; 9) Export source database user table space metadata;
10)采用FTP传输的方式,NFS做中间服务器的方式或存储重新挂载的方式移动元数据文件和新格式的数据文件; 10) Use FTP transmission, NFS as an intermediate server or storage remounting to move metadata files and data files in a new format;
11)转换源数据库数据文件字节序; 11) Convert the byte order of the source database data file;
12)导入源数据库用户表空间元数据; 12) Import source database user table space metadata;
13)还原目标数据库用户表空间状态; 13) Restore the state of the target database user table space;
14)导入源数据库元数据; 14) Import source database metadata;
15)目标数据库后续处理,包括还原系统默认表空间和无效对象编译; 15) Subsequent processing of the target database, including restoring the system default tablespace and compiling invalid objects;
16)还原源数据库用户表空间状态。 16) Restore the state of the source database user table space.
所述数据泵备份恢复算法步骤如下: The steps of the data pump backup recovery algorithm are as follows:
1)在源数据库导出数据到dump文件,从Oracle 11g迁移到Oracle 10g时,在导出时,需要制定参数version,如从11g迁移到Oracle 10.2.0.1.0,导出语句为: 1) Export data from the source database to a dump file. When migrating from Oracle 11g to Oracle 10g, you need to specify the parameter version when exporting. For example, when migrating from 11g to Oracle 10.2.0.1.0, the export statement is:
EXPDP USERID='test/testorcl as sysdba' schemas=test directory=DATA_PUMP_DIR dumpfile=test.dmp logfile=test.log version=10.2.0.1.0 EXPDP USERID='test/testorcl as sysdba' schemas=test directory=DATA_PUMP_DIR dumpfile=test.dmp logfile=test.log version=10.2.0.1.0
2)移动dump文件到目标库; 2) Move the dump file to the target library;
3)导入dump文件中数据到目标库。 3) Import the data in the dump file to the target library.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510065707.5A CN104573122B (en) | 2015-02-09 | 2015-02-09 | Oracle database migration tool for migrating from AIX platform to K-UX platform |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510065707.5A CN104573122B (en) | 2015-02-09 | 2015-02-09 | Oracle database migration tool for migrating from AIX platform to K-UX platform |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104573122A true CN104573122A (en) | 2015-04-29 |
CN104573122B CN104573122B (en) | 2017-10-13 |
Family
ID=53089184
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510065707.5A Active CN104573122B (en) | 2015-02-09 | 2015-02-09 | Oracle database migration tool for migrating from AIX platform to K-UX platform |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104573122B (en) |
Cited By (16)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104899333A (en) * | 2015-06-24 | 2015-09-09 | 浪潮(北京)电子信息产业有限公司 | Cross-platform migrating method and system for Oracle database |
CN105095506A (en) * | 2015-08-31 | 2015-11-25 | 浪潮(北京)电子信息产业有限公司 | Sybase database migration method and system |
CN105095507A (en) * | 2015-08-31 | 2015-11-25 | 浪潮(北京)电子信息产业有限公司 | DB2 database migration method, device and system |
CN105095505A (en) * | 2015-08-31 | 2015-11-25 | 浪潮(北京)电子信息产业有限公司 | HP-UK platform-to-K-UX platform database migration method and apparatus |
CN105138603A (en) * | 2015-08-07 | 2015-12-09 | 浪潮电子信息产业股份有限公司 | Oracle database migration tool for migrating from HPUX platform to KUX platform |
CN105550258A (en) * | 2015-12-09 | 2016-05-04 | 浪潮电子信息产业股份有限公司 | DB2 database migration tool for migration between platforms |
CN106484842A (en) * | 2016-09-29 | 2017-03-08 | 郑州云海信息技术有限公司 | A kind of method that oracle database changes character set |
CN106777345A (en) * | 2017-01-16 | 2017-05-31 | 山东浪潮商用系统有限公司 | A kind of data pick-up loading method based on mass data migration |
CN108763419A (en) * | 2018-05-24 | 2018-11-06 | 郑州云海信息技术有限公司 | A kind of method, apparatus and computer storage media of migration process |
CN108848154A (en) * | 2018-06-08 | 2018-11-20 | 珠海市微半导体有限公司 | A kind of method of mobile terminal Overpassing Platform by Using |
CN108959470A (en) * | 2018-06-20 | 2018-12-07 | 郑州云海信息技术有限公司 | A kind of database data cross-platform migration method and device |
CN109033186A (en) * | 2018-06-27 | 2018-12-18 | 东软集团股份有限公司 | Data consistency detection, device, storage medium and electronic equipment |
CN109165260A (en) * | 2018-09-25 | 2019-01-08 | 安徽信息工程学院 | Method of data transfer based on ORACLE data basd link |
CN109299072A (en) * | 2018-10-16 | 2019-02-01 | 郑州云海信息技术有限公司 | A method and device for online database migration |
CN110019138A (en) * | 2017-12-29 | 2019-07-16 | 中国移动通信集团公司 | A kind of transmission table space Autonomic Migration Framework method and system based on Zabbix |
CN115905167A (en) * | 2022-11-10 | 2023-04-04 | 上海威固信息技术股份有限公司 | Intelligent data storage method and system capable of rapidly migrating data |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US11853327B2 (en) | 2020-10-14 | 2023-12-26 | International Business Machines Corporation | Seamlessly containerizing a database |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6996589B1 (en) * | 2002-01-16 | 2006-02-07 | Convergys Cmg Utah, Inc. | System and method for database conversion |
CN101266606A (en) * | 2007-03-15 | 2008-09-17 | 阿里巴巴公司 | On-line data migration method based on Oracle database |
CN101650744A (en) * | 2009-09-16 | 2010-02-17 | 中兴通讯股份有限公司 | System and method for processing great data amount based on transport tablespace |
CN102262662A (en) * | 2011-07-22 | 2011-11-30 | 浪潮(北京)电子信息产业有限公司 | System, device and method for realizing database data migration in heterogeneous platform |
CN103440273A (en) * | 2013-08-06 | 2013-12-11 | 北京航空航天大学 | Data cross-platform migration method and device |
-
2015
- 2015-02-09 CN CN201510065707.5A patent/CN104573122B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6996589B1 (en) * | 2002-01-16 | 2006-02-07 | Convergys Cmg Utah, Inc. | System and method for database conversion |
CN101266606A (en) * | 2007-03-15 | 2008-09-17 | 阿里巴巴公司 | On-line data migration method based on Oracle database |
CN101650744A (en) * | 2009-09-16 | 2010-02-17 | 中兴通讯股份有限公司 | System and method for processing great data amount based on transport tablespace |
CN102262662A (en) * | 2011-07-22 | 2011-11-30 | 浪潮(北京)电子信息产业有限公司 | System, device and method for realizing database data migration in heterogeneous platform |
CN103440273A (en) * | 2013-08-06 | 2013-12-11 | 北京航空航天大学 | Data cross-platform migration method and device |
Non-Patent Citations (2)
Title |
---|
吴伟平: ""GBase数据库迁移系统的设计与实现", 《中国优秀博硕士学位论文全文数据库 (硕士) 信息科技辑》 * |
陈新: ""ORACLE数据库跨平台迁移的方法"", 《医学信息》 * |
Cited By (20)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104899333A (en) * | 2015-06-24 | 2015-09-09 | 浪潮(北京)电子信息产业有限公司 | Cross-platform migrating method and system for Oracle database |
CN105138603A (en) * | 2015-08-07 | 2015-12-09 | 浪潮电子信息产业股份有限公司 | Oracle database migration tool for migrating from HPUX platform to KUX platform |
CN105095506A (en) * | 2015-08-31 | 2015-11-25 | 浪潮(北京)电子信息产业有限公司 | Sybase database migration method and system |
CN105095507A (en) * | 2015-08-31 | 2015-11-25 | 浪潮(北京)电子信息产业有限公司 | DB2 database migration method, device and system |
CN105095505A (en) * | 2015-08-31 | 2015-11-25 | 浪潮(北京)电子信息产业有限公司 | HP-UK platform-to-K-UX platform database migration method and apparatus |
CN105550258A (en) * | 2015-12-09 | 2016-05-04 | 浪潮电子信息产业股份有限公司 | DB2 database migration tool for migration between platforms |
CN106484842A (en) * | 2016-09-29 | 2017-03-08 | 郑州云海信息技术有限公司 | A kind of method that oracle database changes character set |
CN106777345B (en) * | 2017-01-16 | 2020-07-28 | 浪潮软件科技有限公司 | Data extraction loading method based on mass data migration |
CN106777345A (en) * | 2017-01-16 | 2017-05-31 | 山东浪潮商用系统有限公司 | A kind of data pick-up loading method based on mass data migration |
CN110019138A (en) * | 2017-12-29 | 2019-07-16 | 中国移动通信集团公司 | A kind of transmission table space Autonomic Migration Framework method and system based on Zabbix |
CN108763419A (en) * | 2018-05-24 | 2018-11-06 | 郑州云海信息技术有限公司 | A kind of method, apparatus and computer storage media of migration process |
CN108848154A (en) * | 2018-06-08 | 2018-11-20 | 珠海市微半导体有限公司 | A kind of method of mobile terminal Overpassing Platform by Using |
CN108959470A (en) * | 2018-06-20 | 2018-12-07 | 郑州云海信息技术有限公司 | A kind of database data cross-platform migration method and device |
CN109033186A (en) * | 2018-06-27 | 2018-12-18 | 东软集团股份有限公司 | Data consistency detection, device, storage medium and electronic equipment |
CN109033186B (en) * | 2018-06-27 | 2020-11-27 | 东软集团股份有限公司 | Data consistency detection method and device, storage medium and electronic equipment |
CN109165260A (en) * | 2018-09-25 | 2019-01-08 | 安徽信息工程学院 | Method of data transfer based on ORACLE data basd link |
CN109299072A (en) * | 2018-10-16 | 2019-02-01 | 郑州云海信息技术有限公司 | A method and device for online database migration |
CN109299072B (en) * | 2018-10-16 | 2022-06-10 | 郑州云海信息技术有限公司 | Method and device for online migration of database |
CN115905167A (en) * | 2022-11-10 | 2023-04-04 | 上海威固信息技术股份有限公司 | Intelligent data storage method and system capable of rapidly migrating data |
CN115905167B (en) * | 2022-11-10 | 2023-11-21 | 上海威固信息技术股份有限公司 | Intelligent data storage method and system capable of rapidly migrating data |
Also Published As
Publication number | Publication date |
---|---|
CN104573122B (en) | 2017-10-13 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104573122B (en) | Oracle database migration tool for migrating from AIX platform to K-UX platform | |
CN105138603A (en) | Oracle database migration tool for migrating from HPUX platform to KUX platform | |
CN104899333A (en) | Cross-platform migrating method and system for Oracle database | |
CN104573121A (en) | DB2 database migration tool for migrating from AIX platform to K-UX platform | |
CN108959470A (en) | A kind of database data cross-platform migration method and device | |
CN102693302B (en) | Quick file comparison method, system and client side | |
CN109933416B (en) | Application data migration method and device and storage medium | |
CN104573123A (en) | Sybase database migration tool for migrating from AIX platform to K-UX platform | |
US9009173B2 (en) | Using views of subsets of nodes of a schema to generate data transformation jobs to transform input files in first data formats to output files in second data formats | |
CN104899332A (en) | Cross-platform migrating method and system for Sybase database | |
CN104111996A (en) | Health insurance outpatient clinic big data extraction system and method based on hadoop platform | |
CN102929783A (en) | Data storage method, device and system | |
CN104572895A (en) | MPP (Massively Parallel Processor) database and Hadoop cluster data intercommunication method, tool and realization method | |
CN107122238B (en) | Efficient iterative Mechanism Design method based on Hadoop cloud Computational frame | |
CN112860812B (en) | Method and device for non-invasively determining data field level association relation in big data | |
KR101357135B1 (en) | Apparatus for Collecting Log Information | |
CN115022312A (en) | Implementation method, device, electronic device and storage medium of multi-smart contract engine | |
CN102508916B (en) | File fingerprint analyzing method for massive data | |
CN107391606A (en) | Log processing method and device based on Storm | |
Lewis et al. | I/o in machine learning applications on hpc systems: A 360-degree survey | |
CN111427867B (en) | Model persistence method based on hybrid storage | |
He et al. | The high-activity parallel implementation of data preprocessing based on MapReduce | |
CN105095507A (en) | DB2 database migration method, device and system | |
CN104932982A (en) | Message access memory compiling method and related apparatus | |
CN105095506A (en) | Sybase database migration method and system |
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 |