SQL与NoSQL的连结(二)

接续前次实作.

  1. 由於资料转换需要透过一个 instance 运作, 先建立 Replication instance. 输入名称, 选择机器型别, 选择一个可用的VPC (若无就新建一个), 测试用选 Single-AZ, 勾选 Publicly accessiable, 最後按 [Create] 建立完成.
    https://ithelp.ithome.com.tw/upload/images/20211012/2009194205GsYbOk26.png

  2. 建立後确认在replication instances 有出现在清单内.
    https://ithelp.ithome.com.tw/upload/images/20211012/20091942zApoj3ZN5K.png

  3. 有了 instance 也可先对 endpoint 做测试.
    https://ithelp.ithome.com.tw/upload/images/20211012/20091942cSLLiZ5J9M.png

  4. 回到 DMS 面板, 开始建立 database migration task. 在页面上输入所有先前建立的栏位资讯.
    https://ithelp.ithome.com.tw/upload/images/20211012/20091942y2qxQUjItf.png

  5. Task settings 可以选目的地资料表的处理模式. (可选择是否需要清空)
    https://ithelp.ithome.com.tw/upload/images/20211012/20091942U4Z0lJZiNc.png

  6. 在 Table Mappings 设定内选择资料转移的规则. 此规则将转移 VM SQL 里的 testDB.dbo.Employee 表内的资料.
    https://ithelp.ithome.com.tw/upload/images/20211012/20091942CnqpWc7xoI.png

  7. 先前在 VM SQL 内建立一个有 Primary Key 的 Employee Table. 先确认内容有两笔资料.
    https://ithelp.ithome.com.tw/upload/images/20211012/20091942tCQNRmxAj0.png

  8. DynamoDB 也有一个 Employee 的表, 里面只有一笔资料.
    https://ithelp.ithome.com.tw/upload/images/20211012/200919420mTK6e44nr.png

  9. 执行 [Migration task] 等 Status 完成.
    https://ithelp.ithome.com.tw/upload/images/20211012/20091942tLYt7MnTuO.png

10.回到 DynamoDB, 由於之前的设定是 Drop Target Table, 最後只会看到从 SQL 转过来的两笔资料.
https://ithelp.ithome.com.tw/upload/images/20211012/200919421a0VLRIaAU.png


<<:  Vue.js 从零开始:Vue CLI 环境说明

>>:  【Day 27】指标的范例讲解

Python - pandas (vi) dataframe资料框之相关指令

程序码: import pandas as pd head5=pd.util.testing.mak...

Day 30 - 莫忘初衷

原来已经一个月了,想当初充满着犹豫要不要开赛,开赛後又想着会不会断赛,深知真的断赛肯定会後悔,庆幸挺...

语音服务-语音转换文字范例(translate-speech-to-text code)

今天就来继续从范例中学习吧! 首先是将语音翻译并以文字显示的translate-speech-to-...

Day 28 Easy x 2

Day 28 Easy x 2 LeetCode 100 题 待优化的两题 Guess Number...

D27. 学习基础C、C++语言

D27. 跳脱字元 跳脱字元指的是脱离原字元的意思,例如 " 原本在C++中是用来当作字串...