This topic describes how to migrate data from a Db2 for LUW database to a PolarDB-X V2.0 instance by using Data Transmission Service (DTS).
Prerequisites
- The source Db2 for LUW database and the destination PolarDB-X V2.0 instance are created. For more information about the supported versions of the source
database and the destination instance, see Overview of data migration scenarios.
Note The PolarDB-X V2.0 instance is compatible with MySQL 5.7.
- The available storage space of the destination instance is larger than the total size of the data in the source database.
Precautions
Migration types
- Full data migration
DTS migrates historical data of the required objects from the source database to the destination database.
- Incremental data migration
After full data migration is completed, DTS migrates incremental data from the source database to the destination database. Incremental data migration allows you to ensure service continuity during data migration.
SQL operations that can be migrated
Operation type | SQL statements |
---|---|
DML | INSERT, UPDATE, and DELETE |
Permissions required for database accounts
Database | Full data migration | Incremental data migration | References |
---|---|---|---|
Db2 for LUW | The CONNECT and SELECT permissions | The DBADM permission | Creating group and user IDs for a Db2 database installation and Authorities overview |
PolarDB-X V2.0 | The read and write permissions on the destination database | The read and write permissions on the destination database | Manage accounts |
Preparations
If you want to implement an incremental data migration, you must enable the archive logging for the Db2 for LUW database. For more information, see Primary log archive method and Secondary log archive method.