iT邦幫忙

第 12 屆 iThome 鐵人賽

DAY 9
0
自我挑戰組

30天初探 Amazon Web Services系列 第 9

[Day9] AWS Database Migration Service (DMS)

  • 分享至 

  • xImage
  •  

DMS: 可協助快速將資料庫轉移到DMS所資源的DB,來源資料庫轉移期間能夠維持所有功能的運作,將倚賴資料庫之應用程式的停機時間降到最低。
支援同質轉移(oracle to oracle),也支援不同資料庫的異質移轉(oracle to AWS XXX)。
https://docs.aws.amazon.com/zh_tw/dms/latest/sbs/DMS-SBS-Welcome.html

要使用DMS前提須有 sourceDB & targetDB、VPC、*two subnet
https://ithelp.ithome.com.tw/upload/images/20200923/201306831wiF3kfHLB.png


Step1. Replication instances --> Create replication instance
Instance class: 執行個體類別
Allocate storage: 給複寫執行個體的儲存空間
Multi: 異地同步備援
https://ithelp.ithome.com.tw/upload/images/20200923/20130683VtAyRbyMe3.png
https://ithelp.ithome.com.tw/upload/images/20200923/20130683xeQS3bgjCU.png


Step2. Create AWS DMS source and target
However, you can only test connectivity after the replication instance has been create, because the replication instance is used in the connection.
https://ithelp.ithome.com.tw/upload/images/20200923/20130683lsdGjWfebF.png

Source --- oracle
Redshift cannot be source

*建完務必要做連線測試


Step3. Create Task

Replication instance 複寫執行個體
Source & Target database endpoint

Migration type:
Migrate existing data (now use this one)
Migrate existing data and replicate ongoing changes (The source database should have CDC, comparison with target database) Replicate data changes only (CDC)
https://ithelp.ithome.com.tw/upload/images/20200923/20130683MGHBeMOLI3.png

*Target table preparation mode
Drop tables on target : 刪除所有資料(table)從新建置,這會連Schema憶起刪掉,會讓原先用SCT轉的資料消逝
Truncate : 刪除資料,但保留table & Schema ,故選取此方法
https://ithelp.ithome.com.tw/upload/images/20200923/20130683JYyqvxJQLi.png

Table mappings可選擇 Guided UI & JSON editor
如是Guided UI,下方可以直接操作,選取要的Schema,輸入要轉的table
https://ithelp.ithome.com.tw/upload/images/20200923/20130683nNBrA6w1Ek.png

以下可用塞選條件,一些簡單的轉換、哪些欄位不要轉、排除不要的資料
https://ithelp.ithome.com.tw/upload/images/20200923/20130683SAyRixu6Hg.png

基本上不會動進階設定
https://ithelp.ithome.com.tw/upload/images/20200923/20130683bXmzWqoOg1.png

Task 完成,即啟動Task,完成後請檢察target database
https://ithelp.ithome.com.tw/upload/images/20200923/20130683TJbZ1mxsVK.png


上一篇
[Day8] AWS CloudWatch
下一篇
[Day10] AWS Schema Conversion Tool (SCT)
系列文
30天初探 Amazon Web Services30
圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言