今天由于項目需要,需將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