All Products
Search
Document Center

ApsaraDB for OceanBase:Create an OceanBase data source

Last Updated:Apr 03, 2024

Before you create a data migration or synchronization project, you must create the data sources. This topic describes how to create an OceanBase data source by using the data transmission service.

Procedure

  1. Log on to the ApsaraDB for OceanBase console.

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

  3. On the Data Sources page, click New Data Source in the upper-right corner.

    image.png

  4. In the Create Data Source dialog box, use the default value OceanBase for Data Source Type. Select a value for Instance Type and configure the parameters.

    • If OceanBase Clusters is selected for Instance Type, set the following parameters.

      image.png

      Parameter

      Description

      Data Source Identifier

      The 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 data migration or synchronization project between instances under different Alibaba Cloud accounts to migrate or synchronize data across 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 destination 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.

      Cluster ID/Name

      The name of the cluster to which the OceanBase Database tenant belongs.

      Tenant Name

      The name of the OceanBase Database tenant.

      Tenant Mode

      The mode of the OceanBase Database tenant. This field is automatically populated and cannot be modified.

      Username

      The name of the OceanBase Database user.

      We recommend that you create a dedicated database user for data migration or synchronization. For more information, see Create a database user.

      Password

      The password of the OceanBase database user.

      Remarks

      Optional. Additional information about the data source.

      _OCEANBASE_INNER_DRC_USER Password

      Optional. The password of the _OCEANBASE_INNER_DRC_USER admin user. The admin user is used to migrate tables without unique keys in OceanBase Database. Note that you must create this user under the tenant where the current data source is located.

      In the Create Data Source dialog box, you can click Show next to Advanced Options to set this parameter as needed.

    • If OceanBase Database Tenant Instance is selected for Instance Type, set the following parameters.

      image.png

      Parameter

      Description

      Data Source Identifier

      The 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.

      Across Alibaba Cloud Accounts

      The data transmission service allows you to configure data migration or data synchronization projects for instances under different Alibaba Cloud accounts.

      You can choose whether to select this option based on business needs. If enable this feature, enter the Alibaba Cloud accounts. For more information, see Apply for cross-account authorization.

      Tenant Name

      The name of the OceanBase Database tenant.

      Tenant Mode

      The mode of the OceanBase Database tenant. This field is automatically populated and cannot be modified.

      Username

      The name of the OceanBase Database user. We recommend that you create a dedicated database user for data migration or synchronization. For more information, see Create a database user.

      Password

      The password of the database user.

      Remarks

      Optional. Additional information about the data source.

      _OCEANBASE_INNER_DRC_USER Password

      Optional. The password of the _OCEANBASE_INNER_DRC_USER admin user. The admin user is used to migrate tables without unique keys in OceanBase Database. Note that you must create this user under the tenant where the current data source is located.

      In the Create Data Source dialog box, you can click Show next to Advanced Options to set this parameter as needed.

    • If Self-Managed Database in VPC is selected for Instance Type, set the following parameters.

      image.png

      Parameter

      Description

      Data Source Identifier

      The 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.

      Across Alibaba Cloud Accounts

      The data transmission service allows you to configure data migration or data synchronization projects for instances under different Alibaba Cloud accounts.

      You can choose whether to select this option based on business needs. If enable this feature, enter the Alibaba Cloud accounts. For more information, see Apply for cross-account authorization.

      VPC

      The unique ID of the virtual private cloud (VPC) used by the user.

      Tenant types

      The mode of the OceanBase Database tenant, which can be MySQL or Oracle.

      Host IP Address

      The IP address of the host where the database is located.

      Port

      The port number of the host where the database is located.

      The name of the tenant.

      The name of the OceanBase Database tenant.

      Cluster Name

      The name of the cluster to which the OceanBase Database tenant belongs.

      Username

      The name of the OceanBase Database user.

      We recommend that you create a dedicated database user for data migration or synchronization. For more information, see Create a database user.

      Password

      The password of the OceanBase database user.

      Remarks

      Optional. Additional information about the data source.

      Optional. In the Create Data Source dialog box, click Show next to Advanced Options to set the parameters as needed.

      image.png

      Parameter

      Description

      Username

      The name of the Data Replication Center (DRC) user. The user reads the incremental logs of OceanBase Database and obtains database schemas. You must create the user in the sys tenant.

      Password

      The password of the DRC user.

      oblogproxy IP

      Optional. The settings of oblogproxy. oblogproxy is a proxy service for managing incremental logs of OceanBase Database. It provides project intervention and management capabilities as services to allow applications to access and manage real-time incremental logs of OceanBase Database. It also addresses the need for incremental log subscriptions in network isolation mode.

      oblogproxy Port

      _OCEANBASE_INNER_DRC_USER Password

      Optional. The password of the _OCEANBASE_INNER_DRC_USER admin user. The admin user is used to migrate tables without unique keys in OceanBase Database. Note that you must create this user under the tenant where the current data source is located.

  5. Click Test Connection to verify the network connection between the data transmission system and the data source, as well as the validity of the username and password.

  6. After the test is passed, click OK.