Setting | Description |
Initialize Synchronization | Initial Schema Synchronization, Initial Full Data Synchronization, and Initial Incremental Data Synchronization are selected by default. After the precheck is complete, DTS synchronizes the schemas and data of objects from the source instance to the destination instance. The schemas and data are the basis for subsequent incremental synchronization. |
Processing Mode In Existed Target Table | Pre-check and Intercept: checks whether the destination database contains tables that have the same names as tables in the source database. If the destination database does not contain tables that have the same names as tables in the source database, the precheck is passed. Otherwise, an error is returned during precheck and the data synchronization task cannot be started. Note If the source and destination databases contain identical table names and the tables in the destination database cannot be deleted or renamed, you can use the object name mapping feature to rename the tables that are synchronized to the destination database. For more information, see Rename an object to be synchronized. Ignore Errors and Proceed: skips the precheck for identical table names in the source and destination databases. Warning If you select Ignore Errors and Proceed, data inconsistency may occur and your business may be exposed to potential risks. If the source and destination databases have the same schema, DTS does not synchronize data records that have the same primary keys as data records in the destination database. If the source and destination databases have different schemas, initial data synchronization may fail. In this case, only part of columns are synchronized, or the data synchronization task fails.
|
Merge Multi Tables | Yes: In online transaction processing (OLTP) scenarios, sharding is implemented to speed up the response to business tables. However, AnalyticDB for PostgreSQL allows you to store a large amount of data in a single table and makes your SQL queries more efficient. You can merge multiple source tables that have the same schema into a single destination table. This feature allows you to synchronize data from multiple tables in the source database to a single table in AnalyticDB for PostgreSQL. Note After you select multiple tables from the source database, you must change the names of these tables to the name of the destination table in AnalyticDB for PostgreSQL. To do this, you can use the object name mapping feature. For more information about how to use this feature, see Rename an object to be synchronized. You must add a column named __dts_data_source to the destination table in AnalyticDB for PostgreSQL. This column is used to record the data source. The data type of this column is TEXT. DTS writes column values in the following format: <Data synchronization instance ID>:<Source database name>.<Source schema name>.<Source table name> . Such column values allow DTS to identify each source table. For example, dts********:dtstestdata.testschema.customer1 indicates that the source table is customer1. If you set this parameter to Yes, all the selected source tables in the task are merged into a destination table. If you do not need to merge specific source tables, you can create a separate data synchronization task for these tables.
No: the default value.
|
Select the operation types | Select the types of operations that you want to synchronize based on your business requirements. All operation types are selected by default. |
Select the objects to be synchronized | Select one or more objects from the Available section and click the icon to add the objects to the Selected section. In this scenario, data synchronization is performed between heterogeneous databases. Therefore, the objects to synchronize are tables, and other objects such as views, triggers, and stored procedures are not synchronized to the destination database. Note By default, after an object is synchronized to the destination instance, the name of the object remains unchanged. You can use the object name mapping feature to rename the objects that are synchronized to the destination instance. For more information, see Rename an object to be synchronized. If you set the Merge Multi Tables parameter to Yes, you must change the names of the selected tables to the name of the destination table in the AnalyticDB for PostgreSQL instance. To do this, you can use the object name mapping feature.
|
Add quotation marks to the target object | Specify whether you need to enclose object names in quotation marks. If you select Yes and the following conditions are met, DTS encloses object names in single quotation marks (') or double quotation marks (") during schema synchronization and incremental data synchronization. The business environment of the source database is case-sensitive, and the database name contains both uppercase and lowercase letters. A source table name does not start with a letter and contains characters other than letters, digits, and special characters. Note A source table name can contain only the following special characters: underscores (_), number signs (#), and dollar signs ($). The names of the schemas, tables, or columns that you want to synchronize are keywords, reserved keywords, or invalid characters in the destination database.
Note If you select Yes, after DTS synchronizes data to the destination database, you must specify the object name in quotation marks to query the object. |
Rename Databases and Tables | You can use the object name mapping feature to rename the objects that are synchronized to the destination instance. For more information, see Object name mapping. |
Retry Time for Failed Connections | By default, if DTS fails to connect to the source or destination database, DTS retries within the next 720 minutes (12 hours). You can specify the retry time based on your needs. If DTS reconnects to the source and destination databases within the specified time, DTS resumes the data synchronization task. Otherwise, the data synchronization task fails. Note When DTS retries a connection, you are charged for the DTS instance. We recommend that you specify the retry time based on your business needs. You can also release the DTS instance at your earliest opportunity after the source and destination instances are released. |