OceanBase logo

OceanBase

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

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

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

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

V4.3.1Enterprise Edition

  • OMS Documentation
  • OMS Introduction
    • Overview of OMS
    • Terms
    • OMS HA
    • Principles of Store
    • Principles of Full-Import and Incr-Sync
    • Data verification principles
    • Architecture
      • Overview
      • Hierarchical functional system
      • Basic components
    • OMS Oracle full migration design and impact
    • Limitations
  • Quick Start
    • Data migration process
    • Data synchronization process
  • Deploy OMS
    • Deployment types
    • System and network requirements
    • Memory and disk requirements
    • Environment preparations
    • Deploy OMS on a single node
    • Deploy OMS on multiple nodes in a single region
    • Deploy OMS on multiple nodes in multiple regions
    • Scale out
    • Scale down deployment
    • Check the deployment
    • Deploy a time-series database (Optional)
  • OMS console
    • Log in to the OMS console
    • Overview
    • User center
      • Configure user information
      • Change your login password
      • Log out
  • Data migration
    • Overview
    • Migrate data from a MySQL database to a MySQL-compatible tenant of OceanBase Database
    • Migrate data from a MySQL-compatible tenant of OceanBase Database to a MySQL database
    • Migrate data from an Oracle database to the MySQL compatible mode of OceanBase Database
    • Migrate data from the Oracle compatible mode of OceanBase Database to an Oracle database
    • Migrate data from an Oracle database to the Oracle compatible mode of OceanBase Database
    • Migrate data from a DB2 LUW database to an Oracle-compatible tenant of OceanBase Database
    • Migrate data from an Oracle-compatible tenant of OceanBase Database to a DB2 LUW database
    • Migrate data from a DB2 LUW database to a MySQL-compatible tenant of OceanBase Database
    • Migrate data from a MySQL-compatible tenant of OceanBase Database to a DB2 LUW database
    • Migrate data between OceanBase databases of the same tenant type
    • Configure a bidirectional synchronization task
    • Migrate data from a TiDB database to a MySQL-compatible tenant of OceanBase Database
    • Migrate data from a PostgreSQL database to the Oracle compatible mode of OceanBase Database
    • Migrate data from a PostgreSQL database to the MySQL compatible mode of OceanBase Database
    • Migrate data from a PolarDB-X 1.0 database to a MySQL-compatible tenant of OceanBase Database
    • Migrate incremental data from an Oracle-compatible tenant of OceanBase Database to a MySQL database
    • Manage data migration tasks
      • View details of a data migration task
      • Rename a data migration task
      • View and modify migration objects
      • Use tags to Manage data migration tasks
      • Perform batch operations on data migration tasks
      • Download and import settings of migration objects
      • View and modify migration parameters
      • Download a conflict log file
      • Start and pause a data migration task
      • End and delete a data migration task
    • Supported DDL operations and limits for synchronization
      • Synchronize DDL operations from a MySQL database to a MySQL-compatible tenant of OceanBase Database
        • Overview of DDL synchronization from MySQL to OceanBase Database's MySQL compatible mode
        • CREATE TABLE
          • Create a table
          • Create a column
          • Create indexes or constraints
          • Create partitions
        • Data type conversion
        • ALTER TABLE
          • Modify tables
          • Operations on columns
          • Operations on constraints and indexes
          • Partition operations
        • TRUNCATE TABLE
        • RENAME TABLE
        • DROP TABLE
        • CREATE INDEX
        • DROP INDEX
        • DDL incompatibilities between a MySQL database and a MySQL-compatible tenant of OceanBase Database
          • Overview
          • Incompatibilities of the CREATE TABLE statement
            • Incompatibilities of CREATE TABLE
            • Column types that are supported to create indexes or constraints
          • Incompatibilities of the ALTER TABLE statement
            • Incompatibilities of ALTER TABLE
            • Change the type of a constrained column
            • Change the type of an unconstrained column
            • Change the length of a constrained column
            • Change the length of an unconstrained column
            • Delete a constrained column
          • Incompatibilities of DROP INDEX operations
      • Synchronize DDL operations from the MySQL compatible mode of OceanBase Database to a MySQL database
      • DDL operations for synchronizing data from an Oracle database to an Oracle-compatible tenant of OceanBase Database
        • Overview of DDL synchronization from Oracle to OceanBase Database Oracle compatible mode
        • CREATE TABLE
          • Overview for CREATE TABLE
          • Create a relational table
            • Create a relational table
            • Define columns of a relational table
          • Virtual columns
          • Regular columns
          • Create partitions
            • Overview for creating partitions
            • Partitioning
            • Subpartitioning
            • Composite partitioning
            • User-defined partitioning
            • Subpartition templates
          • Constraints
            • Overview
            • Inline constraints
            • Out-of-line constraints
        • CREATE INDEX
          • Overview
          • Oracle compatible mode
        • ALTER TABLE
          • Overview
          • Modify, drop, and add table attributes
          • Column attribute management
            • Modify, drop, and add column attributes
            • Rename a column
            • Add columns and column attributes
            • Modify column attributes
            • Drop columns
          • Modify, drop, and add constraints
          • Partition management
            • Modify, drop, and add partitions
            • Drop a partition
            • Drop a subpartition
            • Add partitions and subpartitions
            • Modify partitions
            • Drop partition data
        • DROP TABLE
        • RENAME OBJECT
        • TRUNCATE TABLE
        • DROP INDEX
        • DDL incompatibilities between an Oracle database and an Oracle-compatible tenant of OceanBase Database
          • Overview
          • Incompatibilities of CREATE TABLE
          • Incompatibilities in table modification operations
            • Incompatibilities of ALTER TABLE
            • Change the type of a constrained column
            • Change the type of an unconstrained column
            • Change the length of a constrained column
            • Change the length of an unconstrained column
      • Synchronize DDL operations from the Oracle compatible mode of OceanBase Database to an Oracle database
      • Synchronize DDL operations from a DB2 LUW database to an Oracle-compatible tenant of OceanBase Database
      • Synchronize DDL operations from the Oracle compatible mode of OceanBase Database to a DB2 LUW database
      • Synchronize DDL operations from a DB2 LUW database to a MySQL-compatible tenant of OceanBase Database
      • Synchronize DDL operations from the MySQL compatible mode of OceanBase Database to a DB2 LUW database
      • Synchronize DDL operations between MySQL-compatible tenants of OceanBase Database
      • DDL synchronization between Oracle-compatible tenants of OceanBase Database
      • DDL operations for synchronizing data from a PostgreSQL database to the MySQL compatible mode of OceanBase Database
      • DDL synchronization from PostgreSQL to OceanBase Database in Oracle compatible mode
  • Data synchronization
    • Overview
    • Synchronize data from OceanBase Database to a Kafka instance
    • Synchronize data from OceanBase Database to a RocketMQ instance
    • Synchronize data from OceanBase Database to a DataHub instance
    • Synchronize data from an ODP logical table to a physical table in a MySQL-compatible tenant of OceanBase Database
    • Synchronize data from an ODP logical table to a DataHub instance
    • Synchronize data from an IDB logical table to a MySQL-compatible tenant of OceanBase Database
    • Synchronize data from an IDB logical table to a DataHub instance
    • Synchronize data from a MySQL database to a DataHub instance
    • Synchronize data from an Oracle database to a DataHub instance
    • Manage data synchronization tasks
      • View details of a data synchronization task
      • Change the name of a data synchronization task
      • View and modify synchronization objects
      • Use tags to Manage data synchronization tasks
      • Perform batch operations on data synchronization tasks
      • Download and import the settings of synchronization objects
      • View and modify the parameter configurations of a data synchronization task
      • Start and pause a data synchronization task
      • End and delete a data synchronization task
  • Data validation
    • Overview
    • Create a data validation task
    • Manage data validation tasks
      • View details of a data validation task
      • Change the name of a data validation task
      • View and modify validation objects
      • View and modify validation parameters
      • Manage data validation tasks by using tags
      • Import validation objects
      • Start, stop, and resume a data validation task
      • Clone a data validation task
      • Delete a data validation task
  • Create and manage data sources
    • Create data sources
      • Create an OceanBase data source
        • Create a physical OceanBase data source
        • Create an ODP data source
        • Create an IDB data source
        • Create a public cloud OceanBase data source
        • Create a standalone OceanBase data source
      • Create a MySQL data source
      • Create an Oracle data source
      • Create a TiDB data source
      • Create a Kafka data source
      • Create a RocketMQ data source
      • Create a DataHub data source
      • Create a DB2 LUW data source
      • Create a PostgreSQL data source
      • Create a PolarDB-X 1.0 data source
    • Manage data sources
      • View data source information
      • Copy a data source
      • Edit a data source
      • Delete a data source
    • Create a database user
    • User privileges
    • Enable binlogs for the MySQL database
    • Minimum privileges required when an Oracle database serves as the source
  • OPS & Monitoring
    • O&M overview
    • Go to the overview page
    • Server
      • View server information
      • Update the quota
      • View server logs
      • Manage resource groups
    • Components
      • Store
        • Add a Store component
        • View details of a Store component
        • Update the configurations of a Store component
        • Start and pause a Store component
        • Delete a Store component
      • Incr-Sync
        • View details of an Incr-Sync component
        • Start and pause an Incr-Sync component
        • Migrate an Incr-Sync component
        • Update the configurations of an Incr-Sync component
        • Batch O&M
        • Delete an Incr-Sync component
      • Full-Import
        • View details of a Full-Import component
        • Pause a Full-Import component
        • Rerun and resume a Full-Import component
        • Update the configurations of a Full-Import component
        • Delete a Full-Import component
      • Full-Verification
        • View details of a Full-Verification component
        • Pause a Full-Verification component
        • Rerun and resume a Full-Verification component
        • Update the configurations of a Full-Verification component
      • Incr-Verification
        • View details of the Incr-Verification component
        • Pause an Incr-Verification component
        • Rerun and resume an Incr-Verification component
        • Update an Incr-Verification component
      • Row-Verification
        • View details of a Row-Verification component
    • O&M Task
      • View O&M tasks
      • Skip a task or subtask
      • Retry a task or subtask
    • Parameter Template
      • Overview
      • Task Template
        • Create a task template
        • View and edit task templates
        • Copy and export a task template
        • Delete a task template
      • Component Template
        • Create a component template
        • View and edit component templates
        • Copy and export a component template
        • Delete a component template
      • Component parameters
        • Store component parameters
        • Incr-Sync component parameters
        • Full-Import component parameters
        • Full-Verification component parameters
        • Incr-Verification component parameters
        • Parameters of the Row-Verification component
        • CM component parameters
        • Supervisor component parameters
  • System management
    • Permission Management
      • Overview
      • Manage users
      • Manage departments
    • Alert center
      • View task alerts
      • View system alerts
      • Manage alert settings
    • Associate with OCP
    • System parameters
      • Modify system parameters
      • Modify HA configurations
      • oblogproxy parameters
    • Manage access keys
    • Operation audit
  • Troubleshooting Guide
    • Manage OMS services
    • OMS logs
    • Component O&M
      • O&M operations for the Supervisor component
      • CLI-based O&M for the Connector component
      • O&M operations for the Store component
    • Component tuning
      • Incr-Sync/Full-Import tuning
      • Oracle store tuning
    • Set throttling
    • Store performance diagnostics
  • Reference Guide
    • Features
      • Configure DDL/DML synchronization
      • DDL synchronization scope
      • Rename databases and tables
      • Use SQL conditions to filter data
      • Set the incremental synchronization start timestamp
      • Configure matching rules for migration or synchronization objects
      • Configure matching rules for validation objects
      • Wildcard patterns supported for matching rules
      • Hidden column mechanisms
      • Instructions on schema migration
      • Create and update a heartbeat table
      • Change a topic
      • Column filtering
      • Data formats
    • API Reference
      • Overview
      • CreateProject
      • StartProject
      • StopProject
      • ResumeProject
      • ReleaseProject
      • DeleteProject
      • ListProjects
      • DescribeProject
      • DescribeProjectSteps
      • DescribeProjectStepMetric
      • DescribeProjectProgress
      • DescribeProjectComponents
      • ListProjectFullVerifyResult
      • StartProjectsByLabel
      • StopProjectsByLabel
      • CreateMysqlDataSource
      • CreateOceanBaseDataSource
      • CreateOceanBaseODPDataSource
      • CreatePolarDBDataSource
      • ListDataSource
      • CreateLabel
      • ListAllLabels
      • DeleteDataSource
      • CreateProjectModifyRecords
      • ListProjectModifyRecords
      • StopProjectModifyRecords
      • RetryProjectModifyRecords
      • CancelProjectModifyRecord
      • SubmitPreCheck
      • GetPreCheckResult
      • UpdateProjectConfig
      • Download schema conversion information
      • DownloadConflictData
      • ListConflictData
      • ResetIncrStartTimestamp
      • AdvanceProject
      • DescribeRegions
    • 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
    • SSO
      • Integrate the OIDC protocol to OMS to implement SSO
      • Integrate the SAML 2.0 protocol to OMS to implement SSO
      • Access Microsoft Entra ID using OMS SAML 2.0
    • OMS error codes
    • SQL statements for querying table objects
    • Create a trigger
    • Change the log level for a PostgreSQL database instance
    • Online DDL tools
    • Supplemental logging in Oracle databases
  • Upgrade Guide
    • Overview
    • Upgrade OMS in single-node deployment mode
    • Upgrade OMS in multi-node deployment mode
    • FAQ
  • FAQ
    • General O&M
      • How do I modify the resource quotas of an OMS container?
      • How do I troubleshoot the OMS server down issue?
      • Deploy InfluxDB for OMS
      • Increase the disk space of the OMS host
    • Task diagnostics
      • How do I troubleshoot common problems with Oracle Store?
      • How do I perform performance tuning for Oracle Store?
      • What do I do when Oracle Store reports an error at the isUpdatePK stack?
      • What do I do when a store does not have data of the timestamp requested by the downstream?
      • What do I do when OceanBase Store failed to access an OceanBase cluster through RPC?
      • How do I use LogMiner to pull data from an Oracle database?
    • OPS & monitoring
      • What are the alert rules?
    • Data synchronization
      • FAQ about synchronization to a message queue
        • What are the strategies for ensuring the message order in incremental data synchronization to Kafka
    • Data migration
      • User privileges
        • What privileges do I need to grant to a user during data migration to or from an Oracle database?
      • Full migration
        • How do I query the ID of a checker?
        • How do I query log files of the Checker component of OMS?
        • How do I query the verification result files of the Checker component of OMS?
        • What do I do if the target table does not exist?
        • What can I do when the full migration failed due to LOB fields?
        • What do I do if garbled characters cannot be written into OceanBase Database V3.1.2?
      • Incremental synchronization
        • How do I skip DDL statements?
        • How do I migrate an Oracle database object whose name exceeds 30 bytes in length?
        • How do I update whitelists and blacklists?
        • What are the application scope and limits of ETL?
    • Installation and deployment
      • How do I upgrade Store?
  • Release Note
    • Release Note
      • Version number rules
      • V4.3
        • OMS V4.3.1
        • OMS V4.3.0
      • V4.2
        • OMS V4.2.5
        • OMS V4.2.4
        • OMS V4.2.3
        • OMS V4.2.2
        • OMS V4.2.1
        • OMS V4.2.0
      • V4.1
        • OMS V4.1.0
      • V4.0
        • OMS V4.0.2
        • OMS V4.0.1
      • V3.4
        • OMS V3.4.0
      • V3.3
        • OMS V3.3.1
        • OMS V3.3.0
      • V3.2
        • OMS V3.2.2
        • OMS V3.2.1
      • V3.1
        • OMS V3.1.0
      • V2.1
        • OMS V2.1.2
        • OMS V2.1.0

Download PDF

OMS Documentation Overview of OMS Terms OMS HA Principles of Store Principles of Full-Import and Incr-Sync Data verification principles Overview Hierarchical functional system Basic components OMS Oracle full migration design and impact Limitations Data migration process Data synchronization process Deployment types System and network requirements Memory and disk requirements Environment preparations Deploy OMS on a single node Deploy OMS on multiple nodes in a single region Deploy OMS on multiple nodes in multiple regions Scale out Scale down deployment Check the deployment Deploy a time-series database (Optional) Log in to the OMS console Overview Configure user information Change your login password Log out Overview Migrate data from a MySQL database to a MySQL-compatible tenant of OceanBase Database Migrate data from a MySQL-compatible tenant of OceanBase Database to a MySQL database Migrate data from an Oracle database to the MySQL compatible mode of OceanBase Database Migrate data from the Oracle compatible mode of OceanBase Database to an Oracle database Migrate data from an Oracle database to the Oracle compatible mode of OceanBase Database Migrate data from a DB2 LUW database to an Oracle-compatible tenant of OceanBase Database Migrate data from an Oracle-compatible tenant of OceanBase Database to a DB2 LUW database Migrate data from a DB2 LUW database to a MySQL-compatible tenant of OceanBase Database Migrate data from a MySQL-compatible tenant of OceanBase Database to a DB2 LUW database Migrate data between OceanBase databases of the same tenant type Configure a bidirectional synchronization task Migrate data from a TiDB database to a MySQL-compatible tenant of OceanBase Database Migrate data from a PostgreSQL database to the Oracle compatible mode of OceanBase Database Migrate data from a PostgreSQL database to the MySQL compatible mode of OceanBase Database Migrate data from a PolarDB-X 1.0 database to a MySQL-compatible tenant of OceanBase Database Migrate incremental data from an Oracle-compatible tenant of OceanBase Database to a MySQL database View details of a data migration task Rename a data migration task View and modify migration objects Use tags to Manage data migration tasks Perform batch operations on data migration tasks Download and import settings of migration objects View and modify migration parameters Download a conflict log file Start and pause a data migration task End and delete a data migration task Synchronize DDL operations from the MySQL compatible mode of OceanBase Database to a MySQL database Synchronize DDL operations from the Oracle compatible mode of OceanBase Database to an Oracle database Synchronize DDL operations from a DB2 LUW database to an Oracle-compatible tenant of OceanBase Database Synchronize DDL operations from the Oracle compatible mode of OceanBase Database to a DB2 LUW database Synchronize DDL operations from a DB2 LUW database to a MySQL-compatible tenant of OceanBase Database Synchronize DDL operations from the MySQL compatible mode of OceanBase Database to a DB2 LUW database Synchronize DDL operations between MySQL-compatible tenants of OceanBase Database DDL synchronization between Oracle-compatible tenants of OceanBase Database DDL operations for synchronizing data from a PostgreSQL database to the MySQL compatible mode of OceanBase Database DDL synchronization from PostgreSQL to OceanBase Database in Oracle compatible mode Overview Synchronize data from OceanBase Database to a Kafka instance Synchronize data from OceanBase Database to a RocketMQ instance Synchronize data from OceanBase Database to a DataHub instance Synchronize data from an ODP logical table to a physical table in a MySQL-compatible tenant of OceanBase Database Synchronize data from an ODP logical table to a DataHub instance Synchronize data from an IDB logical table to a MySQL-compatible tenant of OceanBase Database Synchronize data from an IDB logical table to a DataHub instance Synchronize data from a MySQL database to a DataHub instance Synchronize data from an Oracle database to a DataHub instance View details of a data synchronization task Change the name of a data synchronization task View and modify synchronization objects Use tags to Manage data synchronization tasks Perform batch operations on data synchronization tasks Download and import the settings of synchronization objects View and modify the parameter configurations of a data synchronization task Start and pause a data synchronization task End and delete a data synchronization task Overview Create a data validation task View details of a data validation task Change the name of a data validation task View and modify validation objects View and modify validation parameters Manage data validation tasks by using tags Import validation objects Start, stop, and resume a data validation task Clone a data validation task Delete a data validation task Create a MySQL data source Create an Oracle data source Create a TiDB data source
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. V4.3.1
iconOceanBase Migration Service
V 4.3.1Enterprise 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.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 or synchronization objects

Last Updated:2025-11-04 07:26:31  Updated
share
What is on this page
Background information
Database-to-database wildcard rules
Wildcard rules for mapping databases to message queues
Limitations
Considerations
Configure database-to-database wildcard rules matching rules
Scenario examples
Configure matching rules for mapping databases to message queues
FAQ

folded

share

This topic describes the background information, limitations, and configuration methods of matching rules for migration/synchronization objects, and provides examples and frequently asked questions about matching rules in the scenario of database to database.

Background information

When you create a data migration or synchronization task, you need to specify the migration or synchronization objects. OMS provides three methods for you to choose from: specified objects, imported objects, and matching rules. The matching rules method allows you to write wildcard rules to specify the objects for migration or synchronization. It also supports configuring object mappings between the source and target. With simple and efficient string matching capabilities, it can significantly reduce the configuration difficulty when a large number of objects are to be migrated or synchronized. Additionally, new tables that match the specified rules can be automatically synchronized to the target through incremental DDL operations. For more information about incremental DDL operations, see Supported DDL operations and limits.

Database-to-database wildcard rules

OMS supports the following database-to-database wildcard rules and provides the descriptions.

Note

The asterisk (*) in the following table represents a wildcard.

Category Supported wildcard rule Example Description
Database and table migration *.* kd_test*.person* Migrate all tables whose names start with "person" in all databases whose names start with "kd_test" from the source to the target, without changing the database or table names.
Database and table migration *.<source table> kd_test*.person Migrate the table named "person" in all databases whose names start with "kd_test" from the source to the target, without changing the database or table names.
Database and table migration <source database>.* kd_test.person* Migrate all tables whose names start with "person" in the database named "kd_test" from the source to the target, without changing the database or table names.
Database and table migration <source database>.<source table> kd_test.person Migrate the table named "person" in the database named "kd_test" from the source to the target, without changing the database or table names.
Database and table renaming <source database>.<source table>=<target database>.<target table> kd_test.person=kd_test_new.person_new Migrate the table named "person" in the database named "kd_test" to the target, and rename the source database to kd_test_new and the source table to person_new.
Database and table renaming <source database>.*=<target database>.* kd_test.person*=kd_test_new.person* Migrate all tables whose names start with "person" in all databases whose names start with "kd_test" to the target, and rename the source database to kd_test_new, keeping the table names unchanged.
Database and table renaming *.<source table>=*.<target table> kd_test*.person=kd_test*.person_new Migrate all tables named "person" in all databases whose names start with "kd_test" to the target, and rename the source table to person_new, keeping the database names unchanged.
Multi-table aggregation <source database>.*=<target database>.<target table> kd_test.person*=kd_test.person_all Aggregate all tables whose names start with "person" in the database named "kd_test" to the table named "person_all" in the target database.
Multi-table aggregation *.<source table>=<target database>.<target table> kd_test*.person=kd_test_all.person Aggregate all tables named "person" in all databases whose names start with "kd_test" to the table named "person" in the target database named "kd_test_all".
Multi-table aggregation *.*=<target database>.<target table> kd_test*.person*=kd_test_all.person_all Aggregate all tables whose names start with "person" in all databases whose names start with "kd_test" to the table named "person_all" in the target database named "kd_test_all".
Multi-table aggregation *.*=<target database>.* kd_test*.person*=kd_test_all.person* Aggregate all tables whose names start with "person" in all databases whose names start with "kd_test" to the target database named "kd_test_all", keeping the table names unchanged.
Multi-table aggregation *.*=*.<target table> kd_test*.person*=kd_test*.person_all Aggregate all tables whose names start with "person" in all databases whose names start with "kd_test" to the table named "person_all" in the target databases whose names start with "kd_test", keeping the database names unchanged.

The wildcard rules are subject to the following requirements:

  • The names of the databases and tables at the target cannot both be wildcard expressions. For example, kd_test*.person*=kd_test*.person*.

  • If the source and target databases are both wildcard expressions, the database-level expressions must be identical, indicating database migration.

  • If the source and target tables are both wildcard expressions, the table-level expressions must be identical, indicating table migration.

  • If the name of the target database is a wildcard expression, the name of the source database must also be a wildcard expression.

  • If the name of the target table is a wildcard expression, the name of the source table must also be a wildcard expression.

Wildcard rules for mapping databases to message queues

OMS supports the following wildcard rules for mapping databases to a message queue:

Note

The asterisk (*) in the following table represents a wildcard.

Supported wildcard rule Example Description
*.*= *.*=topic Maps multiple tables in multiple databases to one topic.
*.= *.b=topic Maps multiple tables in one topic.
.*= a.*=topic Maps multiple tables in one database to one topic.
.= a.b=topic Maps one table in one database to one topic.

Limitations

  • OMS allows you to enter multiple rules, but each rule must be entered on a single line without leading or trailing spaces.

  • Migration or synchronization object rules cannot be empty, but exclusion object rules can be empty.

  • OMS does not support DDL changes during schema migration or full migration.

  • OMS does not support selecting tables whose names contain special characters (spaces, line breaks, or .|"'`()=;/&*?[][!]) as migration or synchronization objects by using multiple matching rules.

  • OMS does not support mapping tables in different databases in the target to tables in different databases in the source based on multiple matching rules. For example, a.a* = b.a* & a.b* = c.b*.

  • In the multi-table aggregation scenario, reverse increment is not supported.

    Note

    OMS only judges whether there is a aggregation scenario based on the existence of the existing databases and tables when saving or starting a data migration/data synchronization task. If the multi-table aggregation scenario newly emerges during the task execution, it will not be intercepted by OMS. This may result in the reverse increment being unable to correctly identify the database-table mapping relationship, leading to data quality issues.

  • OMS does not support the CREATE DATABASE DDL statement. If the name of a new database is included in the migration or synchronization rules, you need to manually create the database in the target before you can synchronize data in the new database.

Considerations

  • After you configure the migration/synchronization object rules and exclusion object rules, if the source table name is in the difference set between the migration/synchronization object rules and exclusion object rules, the related object can be selected.

    Note

    The difference set between two sets refers to a new set that contains all elements in the first set but not in the second set.

  • After the DDL synchronization feature is enabled, if you create a new table or modify the schema of a table by using DDL statements in the source, the related DDL statement can be synchronized from the source to the target only if the table name is in the difference set between the migration/synchronization object rules and exclusion object rules.

  • In the multi-table aggregation scenarios:

    • We recommend that you configure the mappings between the source and target databases based on matching rules.

    • We recommend that you manually create schemas in the target database. If you use OMS to create schemas, make sure to skip failed objects in the schema migration step.

    • If you select DDL synchronization for multi-table aggregation, there is a risk of accidental deletion. For example, multiple databases or tables in the source are aggregated to a single database or table in the target. In this case, if you delete a database or table in the source, the corresponding aggregated database or table in the target may also be deleted.

    • When you create a data migration task, set Full Migration > Handle Non-empty Tables in Target Database to Ignore.

      Note

      If you select Ignore, full verification will use IN mode to fetch data. This mode cannot verify whether the target contains data not in the source, and the verification performance will be degraded.

  • If a table is mapped to a new name, the renaming mapping takes precedence. For example, if both the rules a.b[0-3] and a.b[3-5]=a.c exist, the table a.b3 will be renamed to a.c.

  • When the RENAME TABLE DDL statement is being executed, if the renamed table object is not in the original matching rules or exclusion rules, it may lead to unexpected synchronization. Proceed with caution.

Configure database-to-database wildcard rules matching rules

  1. Create a data migration task and configure the task until the Select Migration Objects step.

    For more information, see Data migration tasks of the corresponding type.

  2. In the Select Migration Objects section, select Match by Rule.

  3. Enter the Object Migration Rules and Object Exclusion Rules (optional). For more information about supported matching rules, see Wildcard rules.

    Note

    If the rules you configured contain spaces, it may cause errors in the migration objects.

    When you migrate data from an Oracle database to the Oracle compatible mode of OceanBase Database:

    • If you selected Schema Migration in the Migration Type step, you can select sequences, types, tables, views, stored procedures, functions, packages, and synonyms in one or more source databases as migration objects.

      Notice

      If you selected only Schema Migration in the Migration Type step, you must select at least one migration object. If you select other migration types except Schema Migration, you must select at least one table object.

      The following objects will be migrated only if you selected Schema Migration in the Migration Type step. The migration timing for different types of objects is as follows:

      • Tables, views, stored procedures, functions, synonyms, types, and packages will be automatically migrated during schema migration.

      • The migration timing for indexes and triggers can be set in the migration options.

      • Sequences, constraints, and foreign keys will be migrated during forward switching.

    • If you did not select Schema Migration in the Migration Type step, you can select only tables in one or more databases as migration objects.

    • PL objects such as views, functions, and stored procedures cannot be renamed or set with row filter conditions.

  4. Click Verify.

    If you want to view the matching results, click Preview Objects after the validation is successful. The wildcard migration object rules and exclude object rules that you configured will be applied to tables and views. Matching Results shows the final objects, new objects, and reduced objects.

    Object Description
    Final Objects The migration objects that are finally matched by the configured matching rules.
    New Objects The migration objects added in the final match results compared with the previous configuration.
    Reduced Objects The migration objects reduced in the final match results compared with the previous configuration.

    After you use matching rules to select the migration objects, you can set filter conditions.

    1. In the Matching Results > Final panel, hover the pointer over the target table object.

    2. Click the displayed Settings.

    3. In the Settings dialog box, enter the WHERE clause of a standard SQL statement to configure row filters. After you configure the filter conditions, click Validate Syntax. For more information, see Filter data by using SQL conditions.

    4. If the syntax is valid, click OK.

      You can also view the column information of the migration object in the View Column section.

  5. Complete subsequent task configurations as prompted.

Scenario examples

  • Schema migration

    Migrate all tables starting with "test" in databases starting with "jenkins_api" from the source to the target, without changing the database or table names. The following figure shows the configuration of matching rules.

    migration-30-en

  • Database and table renaming

    Migrate all tables starting with "test" in the jenkins_my2dh_one database to the target, and rename the jenkins_my2dh_one database to jenkins_my2dh_one_new without changing the table names. The following figure shows the configuration of matching rules.

    migration-31-en

  • Multi-table aggregation

    Aggregate all tables starting with "order" in databases starting with "jenkins_api" to the order table in the jenkins_api_all database. The following figure shows the configuration of matching rules.

    migration-32-en

  • Configure exclusion rules

    Configure rules to exclude the migration of historical tables and log tables in the jenkins_api_mysql56 database. Historical tables start with "history_", and log tables end with "log". The following figure shows the configuration of matching rules.

    migration-33-en

Configure matching rules for mapping databases to message queues

When you synchronize data to DataHub, Kafka, or RocketMQ, you can configure matching rules to specify the objects to synchronize.

  1. Create a data synchronization task and configure the task settings to the Select Synchronization Objects step.

    For more information, see Data synchronization tasks.

  2. In the Select Synchronization Objects section, select Match by Rule.

    oms13-en

  3. Enter Object Synchronization Rules and Object Exclusion Rules (optional). For more information about supported matching rules, see Wildcard rules.

    The business logic for configuring matching rules varies for the three types of data synchronization tasks.

    • If the target is a DataHub instance, you can select a topic of the Tuple or BLOB type.

      • When you select Tuple as the topic type, you can only enter existing topic names, and cannot use wildcards or spaces. After you select a table, it will be mapped to a topic on a one-to-one basis.

      • When you select BLOB as the topic type, you can use one-to-many or one-to-one mapping. However, you cannot use spaces.

        If you select Schema synchronization, you can enter existing topic names or create new topics. You can only choose one mapping method to create or select topics. If you do not select Schema synchronization, you can only enter existing topic names.

    • If the target is a Kafka or RocketMQ instance, you can use one-to-many or one-to-one mapping. However, you cannot use spaces.

      If you select Schema synchronization, you can enter existing topic names or create new topics. If you do not select Schema synchronization, you can only enter existing topic names.

  4. Click Verify.

    After the configuration is verified, you can click Preview Objects to view the matching results. The Matching Results section shows the final objects, new objects, and reduced objects.

    After you specify the matching rules, you can filter objects and specify the sharding columns.

    oms14-en

    1. In the Matching Results > Final panel, hover the pointer over the target table object.

    2. Click the displayed Settings icon.

    3. In the Settings dialog box, you can perform the following operations.

      • When you synchronize an object from an OceanBase database, enter a standard SQL WHERE clause in the text box in the Row Filters section to specify the row filter condition. After you configure the row filter condition, click Validate Syntax. For more information, see Filter data by using SQL conditions.

      • Select the target sharding column from the Sharding Columns drop-down list. You can select multiple fields as the sharding column. This parameter is optional.

        By default, you can select the primary key. If the primary key is unevenly loaded, you can select a uniquely identified field with relatively balanced load as the sharding column to avoid potential performance issues. The sharding column serves the following purposes:

        • Load balancing: In the case of concurrent writes in the target, the sharding column identifies the specific thread that is used to send messages.

        • Order: To avoid the disorder that can be caused by concurrent writes, OMS ensures that messages received by users are in order when the values in the sharding column are the same. Here, order refers to the change order (the execution order of DML operations on a column).

    4. Click OK.

FAQ

  • Insufficient privileges

    Check the permissions of the source user. If the user does not have sufficient permissions, OMS may fail to display some objects, which prevents you from correctly configuring the matching rules. In this case, you need to add the objects that cannot be displayed to Object Exclusion Rules to prevent the interruption of data migration or synchronization tasks because OMS cannot find the corresponding objects.

  • Filtering out DML statements is not supported

    If you do not enable DDL synchronization, OMS allows you to select objects based on matching rules. During incremental synchronization, if a new table matches the rules, OMS will ignore the corresponding DDL statements but continue to synchronize the DML statements. This will cause the failure to write data to the target table, which can interrupt data migration or synchronization tasks. In this case, you can create a new table in the target or add the table to the blocklist.

Previous topic

Set the incremental synchronization start timestamp
Last

Next topic

Configure matching rules for validation objects
Next
What is on this page
Background information
Database-to-database wildcard rules
Wildcard rules for mapping databases to message queues
Limitations
Considerations
Configure database-to-database wildcard rules matching rules
Scenario examples
Configure matching rules for mapping databases to message queues
FAQ