The data transmission service allows you to download the settings of migration objects in a data migration project and supports automatic configuration and verification of object settings based on imported CSV files. This allows you to save project settings and configure multiple migration projects at a time in a quick manner. This feature is suitable for renaming and setting hundreds of objects at a time.
Download object settings
After you create a data migration project by specifying migration objects, you can download the settings of the objects, such as the source database name, source table name, destination database name, destination table name, column mapping, and row filter conditions of an object.
Log on to the ApsaraDB for OceanBase console.
In the left-side navigation pane, choose Data Transmission > Data Migration.
On the Data Migration page, click the name of the project whose object settings you want to download.
On the details page of the project, click the More icon in the upper-right corner, and then click Download Project Configuration.
ImportantIf you have selected the Match Rules mode to migrate objects in a migration project, you cannot download the object settings of the project.
Import object settings
The data transmission service allows you to rename databases and tables and set row filter conditions by importing CSV files. You can download a template CSV file, modify it as needed, and then import it.
If you edit the object settings in an Excel file, separate the columns with commas (,), save the file as a CSV file, and then import the CSV file.
The imported CSV file must contain the following columns: source database name, source table name, destination database name, destination table name, column mapping, and row filter condition.
Log on to the ApsaraDB for OceanBase console and purchase a data migration project.
For more information, see Purchase a data migration project.
Choose Data Transmission > Data Migration. On the page that appears, click Configure for the data migration project.
Configure the data migration project based on your business needs. On the Select Migration Objects page, select Specify Objects. In the list on the right of the Specify Migration Scope section, click Import Objects in the upper-right corner.
ImportantYou can import objects only if you have selected the Specify Objects mode.
For more information, see the topics for data migration projects of the corresponding type.
In the dialog box that appears, click OK.
Click Import CSV File in the lower part of the Import Objects dialog box, and select a local CSV file to import it.
You can also click Download CSV Template in the lower part of the dialog box to download the template. Then, configure the settings in the template as needed and click Import CSV File to import the migration objects.
Edit the CSV file as needed.
NoteYou can edit the CSV file manually or by using an SQL script. You can also click Download Project Configuration on the details page of the project to generate a CSV file.
You can enter names of databases or tables in the destination database to establish a mapping between the source and destination.
Click Validate to check whether the source objects exist and whether the row filter conditions are correct. If the verification succeeds, the number of verified tables and views is displayed.
Click OK to return to the Select Migration Objects step of the data migration project.
Complete subsequent project settings as prompted.