无忧无卤

java空间

2008年4月5日

今天由于项目需要,需将Mysql数据库迁移到Oracle数据库

准备工具

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 的连接

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

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

配置Repository

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

两种迁移数据方式:

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

Powered by Zoundry Raven

posted @ 2008-04-05 09:44 beyond 阅读(890) | 评论 (1)编辑 收藏

导航

<2008年4月>
303112345
6789101112
13141516171819
20212223242526
27282930123
45678910

统计

常用链接

留言簿(1)

随笔档案

相册

搜索

最新评论

  • 1. re: Mysql迁移到Oracle
  • 不错,看样子支持大多数数据库迁移到oracle,不知道是否支持从oracle转出?
  • --FastUnit

阅读排行榜

评论排行榜