Configuring a data source is a prerequisite for creating a data migration or data verification task. This topic describes how to create a DM data source in OceanBase Migration Service (OMS).
Prerequisites
You have obtained the server address (IP or host name) and port number of the Dameng database. The default port for Dameng Database is 5236.
OMS V4.4.0 supports using a DM8 version Dameng database as a data source. Deployment architectures supported include Standalone version, Primary-standby cluster (DW), and Shared storage cluster (DSC). Distributed clusters (DMDPC, also known as DPC) are currently not supported.
You have created a Dameng database user for data migration and granted the corresponding privileges to this user. Please authorize the user based on the selected migration function: If Dameng Database serves only as the source, performs only full migration, and heartbeat is disabled, the user only needs permission to read object metadata, dynamically manage views, and access business data. If heartbeat is enabled, OMS initializes heartbeat tables in a specified existing schema. If the table does not exist, it creates the table and inserts initial records. During runtime, it reads and updates heartbeat records. Ensure the user has the necessary permissions to create tables and read/write heartbeat tables. Do not grant the write permissions required for heartbeat to all business tables. It is recommended to create a dedicated migration user for OMS; using a business user is not advised. For details on authorization statements, see the "Privileges required when Dameng Database serves as the source" section in User privileges.
Note
If Dameng Database serves as the source and incremental synchronization is selected for the task, confirm that archiving is enabled for the source and sufficient log space is configured.
Procedure
Log in to the OMS console.
In the left navigation bar, click Data Source Management.
On the Data Source Management page, click New Data Source in the upper-right corner.
In the New Data Source dialog box, select Data Source Type as Dameng.
Configure the parameters.
ParameterDescriptionData Source Identifier A combination of Chinese characters, numbers, and letters is recommended. The name must not contain spaces and cannot exceed 32 characters in length. Notice
The data source identifier must be globally unique within the OMS system.
Region Select the region to which the data source belongs from the drop-down list (which is the cm_regionparameter configured when deploying OMS).Notice
- This parameter is displayed only in multi-region scenarios.
- Ensure the mapping between data sources and regions remains consistent; otherwise, migration performance may suffer.
Deployment architecture The deployment architecture of the Dameng database. Supported architectures include Standalone version, Primary-standby cluster (DW), and Shared storage cluster (DSC). Server address list The access address for the Dameng database. Separate multiple addresses with commas (,); do not use line breaks. - When selecting Standalone version, enter one connection address in the format IP or host name:port, for example,
100.88.109.129:5236. - When selecting Primary-standby cluster (DW), the format is
IP1:5236, IP2:5236. It is recommended to enter the IP and port of the primary and standby databases so you can connect to the new primary database after a switchover. - When selecting Shared storage cluster (DSC), the format is
IP1:5236, IP2:5236. Enter the IP and port of all cluster nodes. Omitting a node will prevent the incremental synchronization timestamp from advancing.
Database Username The username of the Dameng database user used for data migration. Database password The password of the database user. DB Name (Optional) The name of the Dameng database. Note
If you configure DB Name, when the data source serves as the source, the task only supports selecting migration objects under the specified DB Name.
Remarks (Optional) Remarks for the data source, with a length not exceeding 2048 characters. Configure heartbeat data.
You can choose whether to select During incremental synchronization, allow OMS to automatically write heartbeat data to this instance to resolve high latency issues at the source when there is no business write activity. based on your business requirements. When Deployment architecture is Shared storage cluster (DSC), this option is displayed as Allow OMS to create heartbeat tables in the Dameng database and write heartbeat data periodically..
Note
Heartbeat tables are tables specifically used by OMS to assist incremental synchronization. OMS periodically updates this table across cluster nodes to advance the synchronization timestamp. Heartbeat data is not synchronized to the target as business data.If only full synchronization is performed, this authorization can be skipped. If incremental synchronization is performed, it is recommended to allow it to prevent the synchronization timestamp from stagnating and causing latency when nodes have no business writes.
Click Test Connection to verify the network connection between OMS and the Dameng database, as well as the validity of the account and password.
After the test connection passes, click Create.
What to do next
After you create a DM data source, you can use it as the source to create data migration tasks and data verification tasks. The supported links are as follows:
- DM database -> OceanBase Database in MySQL-compatible mode
- DM database -> OceanBase Database in Oracle-compatible mode
For more information, see Data migration overview.
Note
Data verification tasks for DM data sources can be created via the Create Verification Task entry on the Data Verification page, or via the Configure Verification Task entry in the upper-right corner of the data migration task details page. Testing shows that for both DM links, the Verification Type only provides Full Verification and Row Count Verification, without offering Incremental Verification. For details, see [Data verification overview](../../710.data-validation/100.what-is-data-validation.md) and [Create a data verification task](../../710.data-validation/200.new-validation-task.md).