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

Install OMA

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

Basic configuration requirements
Procedure
Quickly assess an SQL file
Runtime environment for the replay component

Basic configuration requirements

OMA requires a Java 21 runtime environment.

OMA is delivered as a release package. Decompress it to use it. The name and download URL of the release package vary by product. The compatibility assessment engine is packaged as oceanbase-compat-engine.jar. For the structure of the performance assessment package, see Performance assessment product form.

Procedure

After decompressing the release package, run the following command to view the complete parameter description for compatibility assessment:

java -jar oceanbase-compat-engine.jar compat --help

Quickly assess an SQL file

Prepare an UTF-8 SQL file, for example, /data/oma/input.sql, and run the following command:

java -jar oceanbase-compat-engine.jar compat \
  --mode full \
  --task-name sql_demo \
  --type file \
  --source-type oracle \
  --source-format sql \
  --source /data/oma/input.sql \
  --target oceanbase-oracle \
  --target-ob-version 4.4.2 \
  --report-lang zh \
  --output /data/oma/reports/sql-demo.html

Replace the path with your actual input file and a writable output location. The command will sequentially collect data, perform the assessment, and generate a report. After completion, view the HTML report at the path specified in the command-line output.

The default task database is data/compat_engine.db in the current working directory, and the default log file is logs/oma.log. When performing phased operations on the same task, you must use the same SQLite database.

Runtime environment for the replay component

The performance assessment program is delivered as oma.jar. Run the JAR directly without relying on the Bash packaging script; Java 21 is also required. After placing the delivered JAR (the artifact name may include a version number, such as oma-5.0.0.jar; the following commands will refer to it uniformly as oma.jar) in your working directory, use the following command to verify that the program is available:

java -Xmx2g -jar oma.jar analyze --help
java -Xmx2g -jar oma.jar replay --help
java -Xmx2g -jar oma.jar replay --version

-Xmx2g is an example maximum heap size. Adjust it based on log scale and concurrency requirements. JVM parameters go before -jar; running java directly does not automatically read JAVA_OPTS. You must obtain the plugin JARs separately for parsing plugin formats such as TiDB General Log, Oracle WCR, and tcpdump, and explicitly specify them using --plugins-dir <actual-plugin-directory>. The main JAR does not include plugins by default.

For log formats, parameters, and statistical metrics, see Performance assessment overview.

Previous topic

Application scenarios
Last

Next topic

Overview
Next
on this page
Basic configuration requirements
Procedure
Quickly assess an SQL file
Runtime environment for the replay component