All Products
Search
Document Center

Data Transmission Service:Configure a VPC data channel task

Last Updated:Dec 26, 2025

This topic describes how to create a Data Transmission Service (DTS) instance that connects to a database using a VPC data channel.

Prerequisites

  • The database instance is deployed in a virtual private cloud (VPC).

  • You are familiar with the limits and usage notes for the VPC data channel. For more information, see Limits.

Preparations

Note

Before you configure a Data Transmission Service (DTS) instance, create two vSwitches in different zones for the virtual private cloud (VPC) where the database instance is deployed. This allows DTS to create a VPC data channel. For information about the supported regions and zones, see What is a VPC data channel?.

  1. Log on to the VPC console.

  2. In the left navigation pane, click vSwitch.

  3. Select the region where the target VPC is located.

  4. On the vSwitch page, click Create vSwitch.

  5. On the Create vSwitch page, you can configure the vSwitch.

    Set the Region, VPC, Name, Zone, and IPv4 CIDR parameters for the vSwitch. Then, click Add in the vSwitch section to add another vSwitch.

    Note
  6. You can click Create.

Create a DTS instance

Note

This section uses a data synchronization instance as an example to describe how to create a DTS instance that connects to a database using a VPC data channel.

  1. Use one of the following methods to go to the Data Synchronization page and select the region in which the data synchronization instance resides.

    DTS console

    1. Log on to the DTS console.

    2. In the left-side navigation pane, click Data Synchronization.

    3. In the upper-left corner of the page, select the region in which the data synchronization task resides.

    DMS console

    Note

    The actual operations may vary based on the mode and layout of the DMS console. For more information, see Simple mode and Customize the layout and style of the DMS console.

    1. Log on to the DMS console.

    2. In the top navigation bar, move the pointer over Data + AI and choose DTS (DTS) > Data Synchronization.

    3. From the drop-down list to the right of Data Synchronization Tasks, select the region in which the data synchronization instance resides.

  2. Click Create Task to go to the task configuration page.

  3. Configure the source and destination databases. The following table describes the parameters.

    The following table describes the main parameters for a source or destination database that connects through a VPC data channel.

    Note

    For more information about the parameters, see the configuration topics in Overview of data synchronization solutions.

    Configuration

    Description

    Access Method

    Select Express Connect, VPN Gateway, or Smart Access Gateway.

    Instance Region

    Select the region where the VPC of the database instance resides.

    Connected VPC

    Select the VPC to which the database instance belongs.

    Primary and Secondary vSwitches for VPC Data Channel

    vSwitch (Primary)

    Select the two vSwitches that you created in the Preparations section as the primary and secondary vSwitches.

    vSwitch (Secondary)

    2025-01-08_15-13-56

  4. After completing the configuration, click Test Connectivity and Proceed at the bottom of the page.

  5. In the CIDR Blocks of DTS Servers dialog box, add the whitelist to the VPC's route configuration and the corresponding database's security settings.

    Note

    For information about how to configure routes and whitelists to connect an on-premises data center to the cloud, see Connect a VPC to an on-premises data center or another cloud.

  6. Click Test Connectivity. DTS will then create network resources and test the connection.

  7. Complete the subsequent configurations as required.

    For more information, see Overview of data synchronization solutions, Overview of data migration solutions, and Overview of data subscription solutions.

FAQ

  • What do I do if a network connectivity issue occurs when I configure a VPC data channel task?

    This issue usually occurs because the database instance is not accessible from the IP addresses in the primary or secondary vSwitch. To verify the connection, log on to an ECS instance in each vSwitch and run a command such as telnet, ping, traceroute, or mtr to test connectivity to the database instance.

    DTS uses the standard Java Database Connectivity (JDBC) protocol to communicate with the database. Ensure that you can use telnet to connect to the database instance address. For example, if you use telnet to connect to a MySQL engine and the network connection is working properly, the command line returns the mysql_native_password characters, as shown in the following figure:image

  • Can I use an existing vSwitch in the VPC where the database instance is located?

    A vSwitch is usable in a zone that supports the VPC data channel, provided that the primary and standby vSwitches are in different zones.

  • How do I view the elastic network interfaces (ENIs) that DTS creates for the vSwitches?

    1. Log on to the ECS console.

    2. In the left navigation pane, choose Network & Security > ENIs.

    3. In the upper-left corner of the page, select the resource group and region where the destination resource is located.地域

    4. In the VPC/vSwitch column, find the ENI.

      Note

      The name of the ENI is **** endpoint ep-****.

  • Do I need to manually release the ENI of the VPC data channel?

    No, you do not. The ENI of the VPC data channel is automatically released 15 days after the DTS instance is released.