| 階段 | 關鍵指令 | 執行身分 | 關鍵說明 |
|---|---|---|---|
| 1. 安裝 V9.5 Copy | 圖形化安裝程式 | root | **勿建立新 Instance** |
| 2. Instance 遷移 (32→64-bit) | ./db2iupdt instance_name | root | 調用 db2imigr 完成註冊變數/DBM配置/JDK/審計升級 |
| 3. 停止 V8 Instance | db2stop force && db2 terminate | Instance 擁有者 | 確保乾淨關閉 |
| 4. 執行實例遷移 | ./db2imigr db2instance | root (在 $DB2V9_DIR/instance/) | 核心遷移動作 |
| 5. 升級 DAS | ./dasmigr | root | 或刪除舊 DAS 重建新 DAS |
| 6. 遷移資料庫 | DB2 MIGRATE DATABASE alias USER user USING pwd | Instance 擁有者/SYSADM | 多 Instance 需逐一遷移所有資料庫 |
~/sqllib/db2profile 中 DB2DIR=/opt/IBM/db2/V9.5 已更新