OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Migration Service

V3.3.1Community Edition

  • Product updates
  • Product Introduction
    • What is OMS Community Edition?
    • Architecture
      • Overview
      • Hierarchical functional system
      • Basic components
    • Limits
    • Terms
  • Deployment Guide
    • Overview
    • System requirements
    • Resource configuration specifications
    • Prepare the environment
    • Deploy a time-series database (Optional)
    • Deploy OMS Community Edition on a single node
    • Deploy OMS Community Edition on multiple nodes in a single region
    • Deploy OMS Community Edition on multiple nodes in multiple regions
    • Check the deployment
    • Scale out OMS Community Edition
  • User Guide
    • OMS Community Edition console
      • Log on to the OMS Community Edition console
      • Overview
      • User center
        • Configure user information
        • Change your logon password
        • Log off
    • Users and privileges
      • Create a database user
      • User privileges
      • Enable binlogs for the MySQL database
    • Manage data sources
      • Add a data source
        • Add an OceanBase Community Edition data source
        • Add a MySQL data source
        • Add a TiDB data source
        • Add a Kafka data source
        • Add a RocketMQ data source
      • View data source information
      • Copy a data source
      • Edit a data source
      • Delete a data source
    • Data migration
      • Overview
      • Supported DDL operations for incremental migration and limits
      • Create a data migration project
        • Create a project to migrate data from a MySQL database to OceanBase database Community Edition
        • Create a project to migrate data from OceanBase database Community Edition to a MySQL database
        • Migrate data within OceanBase database Community Edition
        • Create an active-active disaster recovery project in OceanBase database Community Edition
        • Create a project to migrate data from a TiDB database to OceanBase database Community Edition
      • Manage data migration projects
        • View details of a data migration project
        • Start, pause, and resume a data migration project
        • # Release a data migration project
        • Delete a data migration project
        • Use tags to manage data migration projects
        • Download and import the settings of migration objects
      • Configure matching rules for migration objects
    • Data synchronization
      • Overview
      • Data formats
      • Create a data synchronization project
        • Create a project to synchronize data from an OceanBase database Community Edition to a Kafka instance
        • Create a project to synchronize data from an OceanBase database Community Edition to a RocketMQ instance
      • Manage data synchronization projects
        • View details of a data synchronization project
        • Start, pause, and resume a data synchronization project
        • Release and delete a data synchronization project
        • Use tags to manage data synchronization projects
        • Download and import the settings of synchronization objects
    • OPS & Monitoring
      • Go to the overview page
      • Server
        • View server information
        • Update the quota
        • View server logs
        • Paths of component logs
      • Components
        • Store
          • Create a store
          • View details of a store
          • Update the configurations of a store
          • Start and pause a store
          • Destroy a store
        • Connector
          • View details about a connector
          • Start and pause a connector
          • Migrate a connector
          • Update the configurations of a connector
          • Batch O&M
          • Delete a connector
        • JDBCWriter
          • View details of a JDBCWriter
          • Start and pause a JDBCWriter
          • Migrate a JDBCWriter
          • Update the configurations of a JDBCWriter
          • Batch O&M
          • Delete a JDBCWriter
        • Checker
          • View details of a checker
          • Start and pause a checker
          • Rerun and recover a checker
          • Update the configurations of a checker
          • Delete a checker
      • O&M ticket
        • View details of an O&M ticket
        • Skip a ticket or sub-ticket
        • Retry a ticket or sub-ticket
      • Component parameters
        • Store parameters
          • Parameters of a MySQL store
          • Parameters of an OceanBase store
        • Connector parameters
          • Parameters of a destination RocketMQ instance
          • Parameters of a DataflowSink instance
          • Parameters of a destination Kafka instance
          • Parameters of a source database in full migration
          • Parameters for intermediate-layer synchronization
        • JDBCWriter parameters
        • Checker parameters
    • System management
      • User management
      • Alert center
        • View project alerts
        • View system alerts
        • Manage alert settings
      • Associate with OCP
      • System Parameters
        • Modify system parameters
        • Modify HA configurations
  • Alert Reference
    • oms_host_down
    • oms_host_down_migrate_resource
    • oms_host_threshold
    • oms_migration_failed
    • oms_migration_delay
    • oms_sync_failed
    • oms_sync_status_inconsistent
    • oms_sync_delay
  • API Reference
    • Obtain the status of a migration project
    • Obtain the status of a synchronization project
  • Upgrade Guide
    • Overview
    • Upgrade OMS Community Edition in single-node deployment mode
    • Upgrade OMS Community Edition in multi-node deployment mode
    • FAQ

Download PDF

Product updates What is OMS Community Edition? Overview Hierarchical functional system Basic components Limits Terms Overview System requirements Resource configuration specifications Prepare the environment Deploy a time-series database (Optional) Deploy OMS Community Edition on a single node Deploy OMS Community Edition on multiple nodes in a single region Deploy OMS Community Edition on multiple nodes in multiple regions Check the deployment Scale out OMS Community Edition Log on to the OMS Community Edition console Overview Create a database user User privileges Enable binlogs for the MySQL database View data source information Copy a data source Edit a data source Delete a data source Overview Supported DDL operations for incremental migration and limits Configure matching rules for migration objects Overview Data formats Go to the overview page User management Associate with OCP oms_host_down oms_host_down_migrate_resource oms_host_threshold oms_migration_failed oms_migration_delay oms_sync_failed oms_sync_status_inconsistent oms_sync_delay Obtain the status of a migration project Obtain the status of a synchronization project Overview Upgrade OMS Community Edition in single-node deployment mode Upgrade OMS Community Edition in multi-node deployment mode FAQ
OceanBase logo

The Unified Distributed Database for the AI Era.

Follow Us
Products
OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
Resources
DocsBlogLive DemosTraining & Certification
Company
About OceanBaseTrust CenterLegalPartnerContact Us
Follow Us

© OceanBase 2026. All rights reserved

Cloud Service AgreementPrivacy PolicySecurity
Contact Us
Document Feedback
  1. Documentation Center
  2. OceanBase Migration Service
  3. V3.3.1
iconOceanBase Migration Service
V 3.3.1Community Edition
Enterprise Edition
  • V 4.3.2
  • V 4.3.1
  • V 4.3.0
  • V 4.2.5
  • V 4.2.4
  • V 4.2.3
  • V 4.0.2
  • V 3.4.0
Community Edition
  • V 4.2.13
  • V 4.2.12
  • V 4.2.11
  • V 4.2.10
  • V 4.2.9
  • V 4.2.8
  • V 4.2.7
  • V 4.2.6
  • V 4.2.5
  • V 4.2.4
  • V 4.2.3
  • V 4.2.1
  • V 4.2.0
  • V 4.0.0
  • V 3.3.1

Configure matching rules for migration objects

Last Updated:2026-04-14 07:41:13  Updated
share
What is on this page
Background
Limits
Configure the matching rule
Wildcard rules
Asterisk (*)
Question mark (?)
Square brackets ([])
An exclamation point in square brackets ([!])

folded

share

This topic describes the background, limits, and configuration method of matching rules for migration objects, as well as the wildcard rules supported by OceanBase Migration Service (OMS) Community Edition.

Background

When you create a data migration project, you specify specific data migration objects. Since OMS Community Edition supports the synchronization of incremental DDL statements, if a new table is created in the source database during migration, the data in this table cannot be migrated because this table is not among the specified data migration objects.

A wildcard is a short text that represents a group of paths. You can use a wildcard as an elementary regular expression. When you create a data migration project, you can configure data migration objects based on wildcard rules. For more information, see the Wildcard rules section in this topic.

OMS allows you to configure the migration object rule and object exclusion rule for all types of data migration projects. These rules apply in all stages of a data migration project. You can modify these rules only before the project starts.

Notice:

If you select DDL for Schema Change when creating a data migration project, you must configure the data migration objects based on wildcard rules.

When you create a data migration project, the following features are supported:

  • You can specify the migration objects based on wildcard rules.

  • You can edit and verify matching rules, and preview matched objects.

  • If objects are changed, differences between the preview before and after the change are displayed.

  • You can configure database name mappings and table name mappings based on wildcard rules.

Limits

  • You must specify the migration object rule for tables.

  • If you configure multiple schemas in a rule to match one type of objects, reverse incremental synchronization is not supported.

  • If multi-table aggregation and synchronization is enabled, reverse incremental synchronization is not supported.

  • If DML filtering is enabled, full data verification is not supported.

  • You cannot perform DDL operations on the source database during the period between schema migration and full migration.

  • You can specify the table to match the migration object rule and object exclusion rule, but DDL operations cannot be synchronized.

  • You cannot change the name of a table that matches the object exclusion rule to a name that does not match the object exclusion rule by using a DDL operation.

  • If you use gh-ost to synchronize DDL operations for incremental migration from a MySQL database to a MySQL tenant of OceanBase Database, set Object Exclusion Rule to {database_name}.*_ghc.

Configure the matching rule

  1. Create a migration project.

    1. Log on to the OMS console.

    2. In the left-side navigation pane, click Data Migration .

    3. On the Data Migration page, click Create Migration Project in the upper-right corner.

  2. On the Select Source and Destination page, specify related parameters. For more information, see the procedure for creating a data migration project of the corresponding type.

    Parameter Description
    Migration Project Name It can contain Chinese characters, digits, and letters but must not exceed 64 characters in length.
    Tag Click the field and select a tag from the drop-down list. You can also click Manage Tags to create, modify, or delete tags. For more information, see Use tags to manage data migration projects.
    Source Select a created source data source.
    Destination Select a created destination data source.
  3. Click Next.

  4. (Optional) Click OK in the dialog box that appears.

  5. On the Select Migration Type page, configure the parameters.

  6. (Optional) Click Next.

  7. Click Next. On the Select Objects page, specify the required information.

    1. Specify Migration Type for the data migration project as needed.

    2. Select the migration objects.

      You can select one of the following two modes: Specify Objects and Match Rules . This section describes how to configure a matching rule.

      1. Select Match Rules.

      2. In the Specify Migration Scope section, specify the migration object migration rule in the Migration Object Rule field and object exclusion rule in the Object Exclusion Rule field. The Object Exclusion Rule field is optional. For more information about supported matching rules, see the Wildcard rules section in this topic.

        Notice

        If you use gh-ost to synchronize DDL operations for incremental migration from a MySQL database to a MySQL tenant of OceanBase Database, Object Exclusion Rule is required. Set it to {database_name}.*_ghc.

        Pay attention to the privilege settings of the source database user. If you do not grant all required privileges to the migration user, some objects are not displayed in the frontend by OMS, and you cannot correctly configure matching rules. In this case, you need to add these objects to Object Exclusion Rule to prevent the data migration project from being interrupted because OMS cannot find the target objects.

        After you specify the migration object rule and object exclusion rule, you can view the migratable objects and matching results on the right side. The matching results are displayed on the Final Objects, New Object, and Removed Objects tabs. The migration object rule and object exclusion rule based on wildcard rules apply to tables and views.

        You can also rename an object. Specifically, on the Final Objects tab, hover the pointer over the target object, click Rename , enter the new name, and click OK to rename the target object.

      3. Click Verify and Preview Objects .

  8. After the verification succeeds, click Next .

  9. On the Migration Options page, specify related parameters. For more information, see the procedure for creating a data migration project of the corresponding type.

  10. Click Precheck to start a precheck on the data migration project.

  11. Click Start Task to start tasks of the project such as schema migration and full migration.

Wildcard rules

Regular expressions are supported in wildcard rules. "*" is used to replace ".*" in a regular expression. The wildcard rules supported by OMS include "*", "?", "[]", and "[!]". Each rule occupies a single row and spaces are not allowed before and after a rule.

After you configure the migration object migration rule and object exclusion rule, a new table in the source database can be synchronized by OMS in real time if the table name matches the migration object rule but does not match the object exclusion rule.

The rules to include or exclude migration objects are case-sensitive. Case inconsistency between a migration rule and the object name causes mismatch of objects.

Asterisk (*)

You can use an asterisk to match a string of characters in any length, or a null character. You can also use an asterisk to select all objects in a database or schema. For example, if you set a <Schema>.* rule in the Migration Object Rule field, the Matching Result tab in the right-side panel shows all tables and views in the specified schema.

You can set rules in the Object Exclusion Rule field to exclude the objects that do not need to be migrated, and then click Verify . After the verification is completed, click Preview Object . Then you can view the excluded objects in Matching Result .

Question mark (?)

You can use a question mark to match a single character. To match more than one character, use multiple question marks. You can also use a question mark to select the objects in a database or schema that meet specified conditions. For example, if you set a <Schema>.t? rule in the Migration Object Rule field, the Matching Result tab in the right-side panel shows tables and views that conform to the format in the specified schema.

Notice:

You cannot use a question mark to match a null character. In other words, the place held by the question mark must have a character.

You can set rules in the Object Exclusion Rule field to exclude the objects that do not need to be migrated, and then click Verify . After the verification is completed, click Preview Object . Then you can view the excluded objects in Matching Result .

Square brackets ([])

You can use a pair of square brackets to include any characters that must be matched, or use [start-end] to match a continuous range. For example, if you set a <Schema>.[]* rule in the Migration Object Rule field, the Matching Result tab in the right-side panel shows tables and views that conform to the format in the specified schema.

You can set rules in the Object Exclusion Rule field to exclude the objects that do not need to be migrated, and then click Verify . After the verification is completed, click Preview Object . Then you can view the excluded objects in Matching Result .

An exclamation point in square brackets ([!])

You can use this wildcard to match any non-null characters that are not included in the square brackets, or use [!start-end] to indicate a continuous range. For example, if you set a <Schema>.[!]* rule in the Migration Object Rule field, the Matching Result tab in the right-side panel shows tables and views that conform to the format in the specified schema.

You can set rules in the Object Exclusion Rule field to exclude the objects that do not need to be migrated, and then click Verify . After the verification is completed, click Preview Object . Then you can view the excluded objects in Matching Result.

Previous topic

Download and import the settings of migration objects
Last

Next topic

Overview
Next
What is on this page
Background
Limits
Configure the matching rule
Wildcard rules
Asterisk (*)
Question mark (?)
Square brackets ([])
An exclamation point in square brackets ([!])