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

Product form

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

Entry and subcommands
Relationship with compatibility assessment
Running examples
Configuration file
Parameter entry for each stage

Performance assessment is provided by an independent program, with command-line input as the only operation method. The official delivery includes only oma.jar. Run the JAR directly; there are no fixed directories such as bin/:

oma.jar        # Main program, provides analyze and replay subcommands

Entry and subcommands

Entry
Procedure
Feature
Parameter description
java -Xmx2g -jar oma.jar analyze Command line Log parsing and outputting a unified event stream Log analysis
java -Xmx2g -jar oma.jar replay Command line Replay Execution and Statistics Replay Execution
java -Xmx2g -jar oma.jar replay --report Command line Generate report offline from statistical files Performance statistics and reports

java -Xmx2g -jar oma.jar replay --version shows the version. Add --help to each subcommand to view the complete options.

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. For information about the entry points and parameter systems of compatibility assessment, see Product form of compatibility assessment. For installation instructions, see Install OMA.

Running examples

Parse Alibaba Cloud RDS audit logs:

java -Xmx2g -jar oma.jar analyze \
  -f RDS_SLS -s ./logs/rds-small.csv.gz \
  -o ./work/rds-canonical --shards 1 --max-threads 1

Replay (first verify the link using --dry-run):

java -Xmx2g -jar oma.jar replay -c work/dry-run.json --dry-run --output-format json
java -Xmx2g -jar oma.jar replay -c work/replay.json

For the complete procedure by scenario, see Assess the performance difference between Oracle Database and OceanBase Database, Assess the performance difference between MySQL Database and OceanBase Database, and Assess the performance difference between different versions of OceanBase Database.

Configuration file

Log parsing supports command-line parameters, or you can specify a YAML/JSON configuration file using -c. The fields correspond to the command-line options.

Replay behavior is controlled by a JSON configuration file. For the top-level groups and complete structure, see Replay execution:

Group
Function
s3 Event stream input path and format, supporting local files.file://or object storages3://、oss://
database Target OceanBase Database Connection Information, Connection Pool, and User Mapping
replay Replay pace, rate limiting, multi-process partitioning, buffering, and session lifecycle
filters SQL type, DDL, transaction, database name, and user filtering
sqlKeywordFilter Filter by SQL keywords
sqlTransform Statement preprocessing (removing hints, splitting batch statements, etc.)
sqlMapping Statement Rewrite Mapping
checkpoint Checkpoint Save Path and Interval
stats Statistics Switch, Output Directory, Data Persistence Interval, and Slow SQL Threshold

The replay configuration is searched in the following order:

  1. The path specified by -c.
  2. ./config.json in the current directory.
  3. ~/.oceanbase-replay/config.json in the user's home directory.
  4. The built-in classpath:config.json of the program.

Parameter entry for each stage

Phase
Entry
Parameter description
Log Parsing oma analyze Log analysis
Replay Execution oma replay Replay Execution
Statistics Report oma replay --report Performance statistics and reports

Previous topic

System architecture
Last

Next topic

Assess the performance difference between an Oracle database and an OceanBase database
Next
on this page
Entry and subcommands
Relationship with compatibility assessment
Running examples
Configuration file
Parameter entry for each stage