All Products
Search
Document Center

ApsaraDB for OceanBase:Create a DataHub data source

Last Updated:Feb 27, 2025

You must configure data sources before you create a data migration or synchronization task. This topic describes how to create a DataHub data source by using the data transmission service.

Security risks

You can choose to automatically or manually add public CIDR blocks for the data transmission service, but security risks exist. Your use of the data transmission service indicates that you have understood and acknowledged the possible security risks. You must take basic security protection measures, such as setting a complex password for your account, limiting the open port numbers of CIDR blocks, enabling authentication for communication among internal APIs, and regularly check for and limit CIDR blocks that are not required.

The data transmission service will add or delete the CIDR blocks automatically added to a whitelist or security group based on business needs and security risks. Do not use the CIDR blocks in a whitelist or security group for business needs other than the data transmission service. If you use such CIDR blocks for other business needs, the issues thus incurred are beyond the guarantee scope of the SLA of the data transmission service. For more information about how to add an IP address to a whitelist or security group for the data transmission service, see Add a whitelist.

Procedure

  1. Log on to the ApsaraDB for OceanBase console.

  2. In the left-side navigation pane, choose Data Transmission > Data Source Management.

  3. In the Data Sources section, click New Data Source in the upper-right corner.

    image.png

  4. In the New Data Source dialog box, select DataHub for Data Source Type.

  5. Configure the parameters. Select an instance type from the Instance Type drop-down list. The corresponding configuration section automatically appears.

    image.png

    Parameter

    Description

    Instance Type

    The instance type. Valid values: Alibaba Cloud DataHub Instance, Self-managed DataHub Instance in VPC, and Public Network DataHub Instance.

    Data Source Identifier

    We recommend that you set it to a combination of digits and letters. It must not contain any spaces and cannot exceed 32 characters in length.

    Cross Alibaba Cloud Account

    The data transmission service allows you to configure a task to migrate or synchronize data between instances under different Alibaba Cloud accounts.

    You can choose whether to select this option based on business needs. If you select this option, enter the Alibaba Cloud account of the target instance. If you do not have permissions on this Alibaba Cloud account, request for authorization first. For more information, see Apply for cross-account authorization.

    Important

    This parameter is not displayed when Public Network DataHub Instance is selected as the instance type.

    VPC

    Select the desired virtual private cloud (VPC) from the VPC drop-down list.

    Important

    This parameter is displayed only when you set the instance type to Self-managed DataHub Instance in VPC.

    DataHub Endpoint

    The information about the DataHub instance.

    Project

    The name of the DataHub instance.

    AccessKey

    The AccessKey ID that you created in the Resource Access Management (RAM) console for identity authentication.

    SecretKey

    The AccessKey secret that you created in the RAM console for identity authentication.

    Remarks (Optional)

    Additional information about the data source.

  6. Click Test Connection to test the network connection between the data transmission system and the source database.

  7. After the test is passed, click OK.