This topic describes how to migrate data from a self-managed Oracle database to an ApsaraDB RDS for MySQL instance by using Data Transmission Service (DTS). DTS supports schema migration, full data migration, and incremental data migration. When you migrate data from a self-managed Oracle database, you can select all the supported migration types to ensure service continuity.
Prerequisites
- The source self-managed Oracle database and the destination ApsaraDB RDS for MySQL instance are created.
Note
- For more information about how to create an ApsaraDB RDS for MySQL instance, see Create an ApsaraDB RDS for MySQL instance.
- For more information about the supported versions of the source database and the destination instance, see Overview of data migration scenarios.
- The self-managed Oracle database is running in ARCHIVELOG mode. Archived log files are accessible, and a suitable retention period is set for archived log files. For more information, see Managing Archived Redo Log Files.
- Supplemental logging, including SUPPLEMENTAL_LOG_DATA_PK and SUPPLEMENTAL_LOG_DATA_UI, is enabled for the self-managed Oracle database. For more information, see Supplemental Logging.
Limits
Category | Description |
---|---|
Limits on the source database |
|
Other limits |
|
Special cases | If the destination database runs on an ApsaraDB RDS for MySQL instance, take note
of the following limits:
|
Billing
Migration type | Instance configuration fee | Internet traffic fee |
---|---|---|
Schema migration and full data migration | Free of charge. | Charged only when data is migrated from Alibaba Cloud over the Internet. For more information, see Billing overview. |
Incremental data migration | Charged. For more information, see Billing overview. |
Migration types
Migration type | Description |
---|---|
Schema migration | DTS migrates the schemas of objects to the destination database.
DTS has the following limits on schema migration for tables and indexes:
Note
Warning In this topic, the source and destination databases are heterogeneous databases. DTS
does not ensure that the schemas of the source and destination databases are consistent
after schema migration. We recommend that you evaluate the impact of data type conversion
on your business. For more information, see Data type mappings between heterogeneous databases.
|
Full data migration | DTS migrates the historical data of objects from the self-managed Oracle database to the destination database. |
Incremental data migration | DTS retrieves redo log files from the self-managed Oracle database. Then, DTS migrates
incremental data from the self-managed Oracle database to the destination database
in real time.
Incremental data migration allows data to be migrated smoothly without interrupting the services of self-managed applications during data migration. |
SQL operations that can be incrementally migrated
Operation type | SQL statement |
---|---|
DML | INSERT, UPDATE, and DELETE |
DDL |
|
Data type mappings
For more information, see Data type mappings between heterogeneous databases.
Before you begin
Log on to the self-managed Oracle database, create an account that you want to use to collect data, and then grant permissions to the account.
Database | Schema migration | Full data migration | Incremental data migration |
---|---|---|---|
Self-managed Oracle database | Permissions of the schema owner | Permissions of the schema owner | Permissions of the database administrator (DBA) |
ApsaraDB RDS for MySQL instance | Write permissions on the destination database |
To create a database account and grant permissions to the database account, perform the following operations:
-
Self-managed Oracle database: CREATE USER and GRANT
- ApsaraDB RDS for MySQL instance: Create an account on an ApsaraDB RDS for MySQL instance and Modify the permissions of a standard account on an ApsaraDB RDS for MySQL instance