OceanBase Migration Service (OMS) Community Edition V4.2.10-CE and later support migrating data from a MongoDB database to OceanBase Database Community Edition. This topic describes the parameters of MongoDBSource.
| Parameter | Description |
|---|---|
| retainId | Specifies whether to retain the _id field of MongoDB. The value is a BOOLEAN. The default value is true. |
| mongoIdName | Specifies the name of the ID field in OceanBase Database Community Edition to which the _id field of MongoDB is mapped. The value is a STRING. The default value is _id. |
| docAsField | Specifies whether to map the entire document to a field in OceanBase Database Community Edition. The value is a BOOLEAN. The default value is false.When you set docAsField to true, the _id field is migrated by default. In this case, you must specify mongoIdName. |
| docFieldName | Specifies the name of the field to which the entire document is mapped in OceanBase Database Community Edition. The value is a STRING. |
| enableSplitVector | Specifies whether to use the splitVector command for sharding. The value is a BOOLEAN. The default value is true.If you set this parameter to false, sharding is performed by using the skip command. |