tencent cloud

All product documents
Data Transfer Service
Syncing Advanced Object
Last updated: 2023-03-03 15:00:24
Syncing Advanced Object
Last updated: 2023-03-03 15:00:24

Overview

The advanced objects that can be synced with DTS include functions and procedures. The sync of advanced objects is a one-time operation: only advanced objects already in the source database before the task start can be synced, while those added to the source database after the task start will not be synced to the target database.
Note
Currently, advanced objects can be synced among MySQL, TDSQL-C for MySQL, MariaDB, and Percona.

Notes

We recommend that you do not rename tables when syncing advanced objects; otherwise, the sync may fail.
As the failure to sync advanced objects does not affect the entire sync task, the success of the entire sync task does not necessarily mean that the advanced objects are also successfully synced. Therefore, we recommend you check whether they are synced on the Sync Progress page after the sync is completed.
When procedures and functions are synced, DTS will check whether user1 corresponding to DEFINER ([DEFINER = user1]) in the source database is the same as the sync account user2, and if not, DTS will change the SQL SECURITY attribute of user1 in the target database from DEFINER to INVOKER ([INVOKER = user1]) after the sync, and set the DEFINER in the target database to the sync account user2 ([DEFINER = sync account user2]).
For cross-version sync, if the sql_mode set for the advanced objects in the source database is not supported by the target database, sql_mode will be changed to NO_AUTO_VALUE_ON_ZERO after the advanced objects are synced.
If ''' (escaping) exists in the definitions of the selected advanced objects, a MySQL limit will be encountered, which will cause the migration task to fail. We recommend you not select such advanced objects.

Directions

1. On the Set sync options and objects page in the data sync task, set the Advanced Migration Object feature. Advanced objects are selected by default. You can deselect unwanted advanced object options.

2. The advanced object check item will be added to the verification task. For more information, see Advanced Object Check.
Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback

Contact Us

Contact our sales team or business advisors to help your business.

Technical Support

Open a ticket if you're looking for further assistance. Our Ticket is 7x24 avaliable.

7x24 Phone Support
Hong Kong, China
+852 800 906 020 (Toll Free)
United States
+1 844 606 0804 (Toll Free)
United Kingdom
+44 808 196 4551 (Toll Free)
Canada
+1 888 605 7930 (Toll Free)
Australia
+61 1300 986 386 (Toll Free)
EdgeOne hotline
+852 300 80699
More local hotlines coming soon