Before you create a data migration task, you must configure a data source. This topic describes how to create a MongoDB data source in OceanBase Migration Service (OMS) Community Edition.
Procedure
Log in to the OMS Community Edition console.
In the left-side navigation pane, 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, set Data Source Type to MongoDB.
Configure the parameters.
Parameter Description Data Source Identifier We recommend that you use Chinese, English, and numbers to name the data source. It must not contain any spaces and cannot exceed 32 characters in length. Notice
The data source name is globally unique in OMS Community Edition.
Region Select the region where the data source resides from the drop-down list. The region is the value that you set for the cm_regionparameter when you deployed OMS Community Edition.Notice
- This parameter is displayed only when multiple regions are available.
- Make sure that the mappings between the data source and the region are consistent. Otherwise, the migration and synchronization performance can be poor.
MongoDB Address The address of the MongoDB database in the IP address:portformat.
You can configure multiple addresses for a MongoDB data source. Separate the addresses with commas (,). For example,xxx.xxx.xxx.1:2883,xxx.xxx.xxx.2:2883.Database User Name (Optional) The username of the database user for data migration. Database Password (Optional) The password of the database user for data migration. Authentication Database (Optional) The database to which the user belongs. TLS Configuration Select whether to upload CA Certificate and Client Certificate based on your business requirements. - CA Certificate (Optional): You can click Upload File to upload a pem, crt, or cer file.
- Client Certificate (Optional): You can click Upload File to upload a p12 or pfx file.
- Client Certificate Password (Optional): Enter the password of the client certificate file.
Database Properties/Values You can add database properties and property values as needed. When TLS is enabled for a MongoDB data source, you must add the corresponding configuration items. For more information, see the "Configure TLS for a MongoDB data source" section. Remarks (Optional) Remarks about the data source. Click Test Connection to verify the network connection between OMS Community Edition and the database, as well as the validity of the username and password.
After the test is successful, click OK.