今天由于項(xiàng)目需要,需將Mysql數(shù)據(jù)庫遷移到Oracle數(shù)據(jù)庫
準(zhǔn)備工具
1.連接Mysql 的jdbc 驅(qū)動 mysql-connector-java-5.0.4-bin.jar
2.Oracle公司開發(fā)的 SQL Developer 1.2
下面就是配置SQL Developer 1.2
配置環(huán)境
選擇Tools-Preferences -Database-Third Party JDBC Driver 點(diǎn)擊 Add Entry 添加Mysql的jdbc 驅(qū)動。
配置Mysql 和 Oracle 的連接
點(diǎn)擊Connection 右鍵選擇 New Connection 分別建立Mysql 和Oracle連接。
建立好連接后,你就可以查看你得數(shù)據(jù)庫了。
配置Repository
選擇 Migration -> Repository Management -> Create Repository 創(chuàng)建 Repository。
兩種遷移數(shù)據(jù)方式:
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.
快速遷移:
選擇你要遷移的表或數(shù)據(jù)庫,選擇Migration -> Quick Migrate
Powered by Zoundry Raven