Amazon Web Services AWS Database Migration Service User Guide

Below you will find brief information for AWS Database Migration Service. AWS Database Migration Service helps you migrate your data to and from the most widely used commercial and open-source databases – such as Oracle, PostgreSQL, Microsoft SQL Server, Amazon Redshift, Amazon Aurora, Amazon DynamoDB, Amazon S3, MariaDB, and MySQL. The service supports homogeneous migrations such as Oracle to Oracle, and also heterogeneous migrations between different database platforms, such as Oracle to MySQL or MySQL to Amazon Aurora.

PDF
Document
AWS DMS Guide: AI Chat Support & PDF Access | Manualzz

Advertisement

Advertisement

AWS Database Migration Service
User Guide
API Version API Version 2016-01-01
AWS Database Migration Service User Guide
AWS Database Migration Service: User Guide
Copyright © 2017 Amazon Web Services, Inc. and/or its affiliates. All rights reserved.
Amazon's trademarks and trade dress may not be used in connection with any product or service that is not Amazon's, in any manner
that is likely to cause confusion among customers, or in any manner that disparages or discredits Amazon. All other trademarks not
owned by Amazon are the property of their respective owners, who may or may not be affiliated with, connected to, or sponsored by
Amazon.
AWS Database Migration Service User Guide
Table of Contents
What Is AWS Database Migration Service? ............................................................................................. 1
Migration Planning ..................................................................................................................... 2
Introduction to AWS DMS ................................................................................................................... 3
Migration: A High-Level View ...................................................................................................... 3
AWS DMS Components ............................................................................................................... 4
Sources ..................................................................................................................................... 5
Targets ..................................................................................................................................... 6
Replication Instances .................................................................................................................. 7
Public and Private Replication Instances ................................................................................ 8
AWS DMS Maintenance Window .......................................................................................... 8
Setting Up a Network for Database Migration ............................................................................... 9
Network Configurations for Database Migration ..................................................................... 9
Creating a Replication Subnet Group .................................................................................. 12
Setting an Encryption Key ......................................................................................................... 13
Tagging ................................................................................................................................... 14
API ................................................................................................................................. 15
Constructing an ARN ................................................................................................................ 16
Supported DDL Statements ....................................................................................................... 18
LOB Support for Source Databases ............................................................................................. 18
Setting Up ....................................................................................................................................... 20
Sign Up for AWS ...................................................................................................................... 20
Create an IAM User .................................................................................................................. 20
Determine Requirements ........................................................................................................... 22
Getting Started ................................................................................................................................ 24
Start a Database Migration ........................................................................................................ 24
Step 1: Welcome ...................................................................................................................... 25
Step 2: Create a Replication Instance .......................................................................................... 25
Step 3: Specify Database Endpoints ............................................................................................ 28
Step 4: Create a Task ................................................................................................................ 32
Monitor Your Task .................................................................................................................... 35
Best Practices .................................................................................................................................. 37
Improving Performance ............................................................................................................. 37
Sizing a replication instance ...................................................................................................... 38
Reducing Load on Your Source Database ..................................................................................... 39
Using the Task Log ................................................................................................................... 39
Schema conversion ................................................................................................................... 39
Migrating Large Binary Objects (LOBs) ........................................................................................ 40
Ongoing Replication ................................................................................................................. 40
Changing the User/Schema for an Oracle Target .......................................................................... 40
Security ........................................................................................................................................... 42
IAM Permissions Needed to Use AWS DMS .................................................................................. 42
Creating the IAM Roles to Use With the AWS CLI and AWS DMS API ................................................ 44
Fine-grained Access Control Using Resource Names and Tags ......................................................... 47
Using Resource Names to Control Access ............................................................................. 47
Using Tags to Control Access ............................................................................................. 49
Setting an Encryption Key ......................................................................................................... 54
Network Security for AWS Database Migration Service .................................................................. 55
Using SSL With AWS Database Migration Service .......................................................................... 56
Limitations on Using SSL with AWS Database Migration Service ............................................. 57
Managing Certificates ....................................................................................................... 57
Enabling SSL for a MySQL-compatible, PostgreSQL, or SQL Server Endpoint ............................ 58
SSL Support for an Oracle Endpoint ................................................................................... 59
Changing the Database Password ............................................................................................... 63
Limits ............................................................................................................................................. 65
API Version API Version 2016-01-01
iii
AWS Database Migration Service User Guide
Limits for AWS Database Migration Service .................................................................................. 65
Sources for Data Migration ................................................................................................................ 67
Using Oracle as a Source ........................................................................................................... 68
Using Oracle LogMiner or Oracle Binary Reader for Change Data Capture (CDC) ........................ 68
Limitations on Oracle as a Source ...................................................................................... 71
Supported Compression Methods ....................................................................................... 71
User Account Privileges for Oracle as a Source ..................................................................... 71
Configuring Oracle as a Source .......................................................................................... 73
Configuring an RDS Oracle DB Instance as a Source .............................................................. 74
Using SQL Server as a Source .................................................................................................... 76
SQL Server Limitations ..................................................................................................... 76
SQL Server CDC Limitations ............................................................................................... 77
Supported Compression Methods ....................................................................................... 78
Working with Microsoft SQL Server AlwaysOn Availability Groups ........................................... 78
Configuring a Microsoft SQL Server Database as a Replication Source for AWS Database
Migration Service ............................................................................................................. 78
Using MS-Replication to Capture Data Changes in Microsoft SQL Server .................................. 79
Using MS-CDC to Capture Data Changes in Microsoft SQL Server ............................................ 79
Capturing Changes If You Can't Use MS-Replication or MS-CDC .............................................. 80
Using PostgreSQL as a Source ................................................................................................... 80
Prerequisites for PostgreSQL as a Source ............................................................................ 80
Security Requirements for PostgreSQL as a Source ............................................................... 81
Limitations on PostgreSQL as a Source ............................................................................... 81
Setting Up an Amazon RDS PostgreSQL DB Instance as a Source ............................................ 82
Removing Artifacts from a PostgreSQL Source ..................................................................... 84
Advanced Configuration Settings for PostgreSQL ................................................................. 84
Using MySQL as a Source .......................................................................................................... 85
Prerequisites for Using MySQL as a Source .......................................................................... 85
Prerequisites for Using Amazon RDS for MySQL as a Source ................................................... 87
Limitations on MySQL as a Source ...................................................................................... 87
Security Requirements for MySQL as a Source ..................................................................... 87
Configuring a MySQL Database as a Source for AWS Database Migration Service ....................... 88
Using SAP ASE as a Source ........................................................................................................ 88
Prerequisites for Using SAP ASE as a Source ........................................................................ 88
Limitations on SAP ASE as a Source ................................................................................... 88
User Account Permissions for SAP ASE as a Source ............................................................... 89
Removing the Truncation Point .......................................................................................... 89
Using MongoDB as a Source ...................................................................................................... 90
Prerequisites When Using MongoDB as a Source for AWS Database Migration Service ................ 91
Prerequisites When Using CDC with MongoDB as a Source for AWS Database Migration Service ... 91
Security Requirements When Using MongoDB as a Source for AWS Database Migration Service ... 92
Limitations When Using MongoDB as a Source for AWS Database Migration Service ................... 92
Configuration Properties When Using MongoDB as a Source for AWS Database Migration
Service ............................................................................................................................ 92
Targets for Data Migration ................................................................................................................ 94
Using Oracle as a Target ........................................................................................................... 95
Limitations on Oracle as a Target ....................................................................................... 95
User Account Privileges for Oracle as a Target ..................................................................... 96
Configuring Oracle as a Target ........................................................................................... 97
Using SQL Server as a Target .................................................................................................... 97
Limitations on Using SQL Server as a Target for AWS Database Migration Service ...................... 98
Security Requirements When Using SQL Server as a Target for AWS Database Migration Service .. 98
Using PostgreSQL as a Target .................................................................................................... 98
Limitations on Using PostgreSQL as a Target for AWS Database Migration Service ..................... 98
Security Requirements for PostgreSQL as a Target ................................................................ 98
Using MySQL as a Target .......................................................................................................... 99
Prerequisites for MySQL as a Target ................................................................................... 99
API Version API Version 2016-01-01
iv
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
/

Advertisement

Key features

  • Fully managed

  • Easy to use

  • Supports a variety of source and target databases

  • Migrates data without downtime

  • Can migrate entire databases or specific tables

  • Supports a variety of target databases, including Amazon RDS, Amazon Aurora, Amazon Redshift, and Amazon S3

Frequently asked questions

AWS Database Migration Service is a fully managed service that makes it easy to migrate databases to AWS. You can migrate your on-premises, or other cloud-based databases to AWS without downtime. You can migrate your entire database, or just specific tables, and you can choose to migrate your data to Amazon RDS, Amazon Aurora, Amazon Redshift, or Amazon S3.

AWS Database Migration Service supports a variety of source databases, including Oracle, SQL Server, PostgreSQL, MySQL, SAP ASE, and MongoDB.

AWS Database Migration Service supports a variety of target databases, including Amazon RDS, Amazon Aurora, Amazon Redshift, Amazon S3, and DynamoDB.

Key features include ease of use, support for a variety of source and target databases, migration without downtime, the ability to migrate entire databases or specific tables, and support for a variety of target databases, including Amazon RDS, Amazon Aurora, Amazon Redshift, and Amazon S3.

User questions

Z F

Linda Z.

Why did I receive the error 'failed to drop public.awsdms_changes'?

The error might be related to tables with names like 'awsdms_changes.' Verify the permissions for working with Amazon Redshift and check for tables with similar names.

D S

Jennifer D.

How to resolve the error 'cannot drop table ... because other objects depend on it'?

To drop a table with dependencies, first identify the dependent objects using database-specific tools or queries. Then, adjust these dependencies (e.g., remove foreign key constraints) before attempting to drop the table.

Q O

Robert Q.

What are the different event types related to DMS?

Sure, here are some event types related to DMS (Database Migration Service): 1. REPLICATION_TASK_STARTED: Indicates that the replication task has started. 2. REPLICATION_TASK_STOPPED: Indicates that the replication task has stopped. 3. REPLICATION_TASK_FAILED: Indicates that a replication task has failed.

Preparing document for printing…
0%