

本文属于机器翻译版本。若本译文内容与英语原文存在差异，则一律以英文原文为准。

# 使用 AWS DMS 将本地 Microsoft SQL Server 数据库迁移至 Amazon Redshift
<a name="migrate-an-on-premises-microsoft-sql-server-database-to-amazon-redshift-using-aws-dms"></a>

*Marcelo Fernandes，Amazon Web Services*

## Summary
<a name="migrate-an-on-premises-microsoft-sql-server-database-to-amazon-redshift-using-aws-dms-summary"></a>

此模式提供有关使用 AWS Data Migration Service (AWS DMS) 将本地 Microsoft SQL Server 数据库迁移到 Amazon Redshift 的指导。

## 先决条件和限制
<a name="migrate-an-on-premises-microsoft-sql-server-database-to-amazon-redshift-using-aws-dms-prereqs"></a>

**先决条件**
+ 一个有效的 Amazon Web Services account
+ 本地数据中心的源 Microsoft SQL Server 数据库
+ 已完成使用 Amazon Redshift 数据库作为 AWS DMS 目标的先决条件，如 [AWS DMS 文档](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Redshift.html#CHAP_Target.Redshift.Prerequisites)中所述

**产品版本**
+ SQL Server 2005-2019、Enterprise、Standard、Workgroup、Developer 和 Web 版本。有关支持的版本的最新列表，请参阅 AWS 文档中的[使用 Microsoft SQL Server 数据库作为 AWS DMS 的源数据库](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.SQLServer.html)。

## 架构
<a name="migrate-an-on-premises-microsoft-sql-server-database-to-amazon-redshift-using-aws-dms-architecture"></a>

**源技术堆栈**
+ 本地 Microsoft SQL Server 数据库 

**目标技术堆栈**
+ Amazon Redshift

**数据迁移架构**

 

![\[使用 AWS DMS 将本地 SQL Server 数据库迁移至 Amazon Redshift 的架构\]](http://docs.aws.amazon.com/zh_cn/prescriptive-guidance/latest/patterns/images/pattern-img/65b2be1b-740e-4d4d-99a8-f77c4ea6553d/images/3a094bf2-be31-4d83-8dd2-9dc078321055.png)


## 工具
<a name="migrate-an-on-premises-microsoft-sql-server-database-to-amazon-redshift-using-aws-dms-tools"></a>
+ [AWS DMS ](https://docs.aws.amazon.com/dms/latest/userguide/Welcome.html)是数据迁移服务，支持多种不同的源数据库和目标数据库。有关支持与 AWS DMS 一起使用的 Microsoft SQL Server 数据库版本和版本的信息，请参阅 AWS DMS 文档中[使用 Microsoft SQL Server 数据库作为 AWS DMS 的源](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.SQLServer.html)。如果 AWS DMS 不支持源数据库，则必须选择另一种方法进行数据迁移。

## 操作说明
<a name="migrate-an-on-premises-microsoft-sql-server-database-to-amazon-redshift-using-aws-dms-epics"></a>

### 计划迁移
<a name="plan-the-migration"></a>


| Task | 说明 | 所需技能 | 
| --- | --- | --- | 
| 验证源数据库和目标数据库版本和引擎。 |  | 数据库管理员 | 
| 确定目标服务器实例的硬件要求。 |  | 数据库管理员、系统管理员 | 
| 确定存储需求（存储类型和容量）。 |  | 数据库管理员、系统管理员 | 
| 根据容量、存储功能和网络功能选择正确的实例类型。 |  | 数据库管理员、系统管理员 | 
| 确定源数据库和目标数据库的网络访问安全要求。 |  | 数据库管理员、系统管理员 | 
| 确定应用程序迁移策略。 |  | 数据库管理员、应用程序所有者、系统管理员 | 

### 配置基础设施
<a name="configure-the-infrastructure"></a>


| Task | 说明 | 所需技能 | 
| --- | --- | --- | 
| 创建虚拟私有云（VPC）。 | 有关更多信息，请参阅 AWS 文档中的[在 VPC 中使用数据库实例](https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_VPC.WorkingWithRDSInstanceinaVPC.html)。 | 系统管理员 | 
| 创建安全组。 |  | 系统管理员 | 
| 配置和启动 Amazon Redshift 集群。 | 有关更多信息，请参阅 Amazon Redshift 文档中的 [创建示例 Amazon Redshift 集群](https://docs.aws.amazon.com/redshift/latest/gsg/rs-gsg-launch-sample-cluster.html)。 | 数据库管理员、系统管理员 | 

### 迁移数据
<a name="migrate-data"></a>


| Task | 说明 | 所需技能 | 
| --- | --- | --- | 
| 使用 AWS DMS 迁移来自 Microsoft SQL Server 数据库的数据。 |  | 数据库管理员 | 

### 迁移应用程序
<a name="migrate-the-application"></a>


| Task | 说明 | 所需技能 | 
| --- | --- | --- | 
| 遵循应用程序迁移策略。 |  | 数据库管理员、应用程序所有者、系统管理员 | 

### 割接
<a name="cut-over"></a>


| Task | 说明 | 所需技能 | 
| --- | --- | --- | 
| 将应用程序客户端切换至新基础设施。 |  | 数据库管理员、应用程序所有者、系统管理员 | 

### 关闭项目
<a name="close-the-project"></a>


| Task | 说明 | 所需技能 | 
| --- | --- | --- | 
| 关闭临时资源。 |  | 数据库管理员、系统管理员 | 
| 查看和验证项目文档。 |  | 数据库管理员、应用程序所有者、系统管理员 | 
| 收集关于迁移时间、手动任务与自动任务的百分比以及成本节省等指标。 |  | 数据库管理员、应用程序所有者、系统管理员 | 
| 关闭项目并提供反馈。 |  | 数据库管理员、应用程序所有者、系统管理员 | 

## 相关资源
<a name="migrate-an-on-premises-microsoft-sql-server-database-to-amazon-redshift-using-aws-dms-resources"></a>

**参考**
+ [AWS DMS 文档](https://docs.aws.amazon.com/dms/index.html)
+ [Amazon Redshift 文档](https://docs.aws.amazon.com/redshift/)
+ [Amazon Redshift 定价](https://aws.amazon.com/redshift/pricing/)

**教程和视频**
+ [AWS DMS 入门](https://aws.amazon.com/dms/getting-started/)
+ [Amazon Redshift 入门](https://docs.aws.amazon.com/redshift/latest/gsg/getting-started.html)
+ [将 Amazon Redshift 数据库作为 AWS Database Migration Service 目标](https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Target.Redshift.html)
+ [AWS DMS（视频）](https://www.youtube.com/watch?v=zb4GcjEdl8U) 