OceanBase
English日本語简体中文
Docs Home
Products
Integrations
Release Notes

Databases

OceanBase DatabaseOceanBase AI DatabaseOceanBase Cloud OceanSeekOceanBase Best Practices

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog ServiceOceanBase DataPilotOceanBase OAgent

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Databases

OceanBase DatabaseOceanBase AI DatabaseOceanBase Cloud OceanSeekOceanBase Best Practices

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog ServiceOceanBase DataPilotOceanBase OAgent
OceanBase DatabaseOceanBase Cloud ToolsConnectors and MiddlewareLifecycle Support Policy

OceanBase Migration Assessment

V5.0.0Enterprise Edition
  • What's New
  • Product Introduction
    • Overview
    • Application scenarios
  • Install OMA
  • Compatibility assessment
    • Overview
    • System architecture
    • Product form
    • Object and Metadata Assessment
    • Assess SQL statement compatibility
    • Sybase ASE assessment
    • Custom rules
    • Database assessment
      • Overview of Database Assessment
      • Assess an Oracle database
      • Assess a MySQL database
      • Assess a TiDB database
      • Assess a PostgreSQL database
    • SQL execution verification
    • Mapper Scan Audit
    • Special Identification and Declaration Association
  • Performance assessment
    • Standalone edition
      • Overview
      • System architecture
      • Product form
      • Assess the performance difference between an Oracle database and an OceanBase database
      • Assess the performance differences between a MySQL database and an OceanBase database
      • Assess the performance differences between different versions of OceanBase Database
      • Log parsing
      • Replay execution
      • Performance statistics and reports
  • Release Notes
    • OMA V5.0.0

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase Migration Assessment
  3. V5.0.0

System architecture

Last Updated:2026-11-27 06:14:19

Component composition
System architecture diagram
Process flow
Running mode
Source and target
Relationship with compatibility assessment
Product form

Performance assessment is performed by a standalone program, which is independent of the compatibility assessment engine. It does not use the task library or report structure of compatibility assessment. The replay link is divided into two stages: log parsing (oma-analyze) and replay execution (oma-replay), each running independently and connected through a unified event stream (CANONICAL_JSONL). Statistical reports can be regenerated offline from statistical files.

Component composition

Component
Description
Entry Run java -jar oma.jar directly. Unified scheduling via the analyze and replay subcommands is now handled internally, eliminating the need for Bash packaging scripts.
main program oma.jar (The artifact name may include a version number, such as oma-5.0.0.jar). Responsible for log parsing and playback execution.
Parsing plugin External log parsing plugins obtained separately. Register extended log formats by specifying the directory with --plugins-dir. The main JAR does not include plugins by default. If a plugin is not loaded, its corresponding format will not be recognized.
Unified Event Stream oma analyzeThe output CANONICAL_JSONL event catalog serves as the sole connection between the two phases, with one event per line.
Statistics File The replay generates a stats-<timestamp>.db (SQLite) file, which records runtime metadata, SQL execution time distribution, and failed statements.

The final deliverable is only the JAR file. Fixed directories such as bin/, config/, or examples/ do not exist. Users must prepare their own configuration and input directories:

oma.jar        # Main program, providing the analyze and replay subcommands

System architecture diagram

Process flow

Phase
Entry
Input
Product
Log Parsing oma analyze Source audit logs, slow logs, or general logs;OCEANBASE_SQL_AUDITDirect connection to source collection CANONICAL_JSONL Event Catalog
Replay Execution oma replay Event Stream and Replay Configuration (JSON) The execution result of the target database is inconsistent with the original result.stats.dbStatistics File
Statistics Report oma replay --report Existingstats.db Text, JSON, CSV, HTML reports and CSV inventory
  1. Log parsing: Converts source logs into a unified event stream, distinguishing inputs by log format. It does not connect the source or target database (except for direct connection collection). Event fields include session, sequence number, timestamp, SQL, and source time consumption.
  2. Replay execution: Submits events to the target OceanBase in their original timing sequence. Supports session order, transaction control, parameter binding, and various rate controls.
  3. Statistical report: Generates a report comparing the time consumption of the source and target. It can be regenerated offline from statistical files without restarting the replay.

Running mode

  • Two-stage independence: Parsing and replay can run independently and are connected through an event stream. They do not require the same machine or simultaneous execution.
  • Operating environment: Linux or macOS, JDK 21. Run java -Xmx2g -jar oma.jar directly. Place JVM heap parameters before -jar (e.g., -Xmx2g). java does not automatically read JAVA_OPTS.
  • Internal HTTP service: During replay, an internal HTTP service listening on port 9080 is started. The operating system must allow local listening.
  • Configuration drivers: Parsing is configured via command line or YAML/JSON; replay is configured via JSON. The search order and complete structure are described in Replay execution.
  • Installation: Delivered with the package, simply decompress and use. See Install OMA.

Source and target

  • Source: Inputs are distinguished by log format, not by database version whitelist. Built-in supports 30 formats, with additional 6 supported by plugins, covering Oracle, MySQL, mainstream cloud database audit/slow logs, TiDB, OceanBase, and middleware. For the complete list, see Performance assessment overview. Plugin formats are available only after the plugin directory is loaded.
  • Target: Always OceanBase. The tenant mode (MYSQL or ORACLE) is selected via the database.tenantMode parameter.

Relationship with compatibility assessment

Performance assessment and compatibility assessment are two independent programs with separate version numbers. They do not share entry points, parameters, configuration files, task libraries, or statistical structures. The component structure and data flow of compatibility assessment are described in Compatibility assessment system architecture.

Product form

Entry commands, package structure, and parameter entries for each stage are described in Product form.

Previous topic

Overview
Last

Next topic

Product form
Next
on this page
Component composition
System architecture diagram
Process flow
Running mode
Source and target
Relationship with compatibility assessment
Product form