如何将MySQL数据库迁移到Oracle数据库

本文介绍如何使用SQL Developer 1.2将MySQL数据库迁移到Oracle。首先需要安装MySQL的JDBC驱动并配置到SQL Developer中,然后通过创建连接来访问MySQL和Oracle数据库。接着创建Repository并采用两种方式迁移数据:一种是快速迁移,另一种则是逐步完成数据捕获、转换、DDL生成和运行等步骤。

需要准备的工具:

1.连接Mysql 的jdbc 驱动 mysql-connector-java-5.0.4-bin.jar

2.Oracle公司开发的SQL Developer 1.2

下面就是配置SQL Developer 1.2

配置环境:

选择Tools-Preferences -Database-Third Party JDBC Driver 点击 Add Entry 添加Mysql的jdbc 驱动。

如何将MySQL数据库迁移到Oracle数据库
Database-Third Party JDBC Driver

配置MySQL和Oracle的连接

点击Connection 右键选择 New Connection 分别建立Mysql 和Oracle连接。

建立好连接后,你就可以查看你得数据库了。

配置Repository

选择 Migration -> Repository Management -> Create Repository 创建 Repository。

如何将MySQL数据库迁移到Oracle数据库
创建 Repository

两种迁移数据的方式:

如何将MySQL数据库迁移到Oracle数据库
两种迁移数据的方式

1. Capture the source database or tables

2. Convert the captured database or tables

3. Generate DDL for the new Oracle schema objects

4. Run the generated DDL script to create the new user and objects

5. Copy any data from the source database to the new database,select Migration->Migration Data select a converted model.

快速迁移:

选择你要迁移的表或数据库,选择Migration -> Quick Migrate

如何将MySQL数据库迁移到Oracle数据库
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值