Chinaunix首页 | 论坛 | 博客
  • 博客访问: 92336362
  • 博文数量: 19283
  • 博客积分: 9968
  • 博客等级: 上将
  • 技术积分: 196062
  • 用 户 组: 普通用户
  • 注册时间: 2007-02-07 14:28
文章分类

全部博文(19283)

文章存档

2011年(1)

2009年(125)

2008年(19094)

2007年(63)

分类: Oracle

2008-04-06 10:43:14

作者: chiver 出自:
今天由于项目需要,需将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
阅读(147) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~