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

Object and Metadata Assessment

Last Updated:2026-11-19 09:12:21

Background Information
Scanning Scope and Privileges for Each Source
Collection Mode
Collection Scope Control
Procedure
Assessment Commands for Other Sources
View the report
Scope of support

This topic describes how to connect to the source database, collect database objects and system metadata, and then perform a compatibility assessment. For connection parameters and procedure details of each source database, see Overview of Database Assessment.

Background Information

Database assessment connects to the source database to read metadata, writes the collection results to the task database, and then assesses and generates a report based on the target schema and version. The collection content is divided into two categories:

  • Object information: Tables, indexes, views, functions, stored procedures, triggers, sequences, synonyms, DBLinks, constraints. The DDL for objects will extract embedded statements, which are included in the assessment along with the object definition.

  • System information: Version, Schema, tablespaces, sessions, locks, statistics, and role/object/system privileges.

The assessment covers object types including TABLE, INDEX, VIEW, FUNCTION, PROCEDURE, PACKAGE, SEQUENCE, TRIGGER, and TYPE. Table constraints are collected and assessed together with table DDL.

Scanning Scope and Privileges for Each Source

The supported object types are determined by the capabilities of each source. Objects not supported by a source are not included in the assessment.

Source
Scanned Objects
Account Requirements
Oracle Table, view, procedure, function, package, package body, trigger, sequence, synonym You can read the directory information and object definitions of the selected schema.
MySQL Table, view, procedure, function, and trigger View the corresponding object
MariaDB Same as MySQL Same as MySQL
PostgreSQL Tables, views, sequences, functions, procedures, triggers, indexes Can connect to the specified database and read the corresponding schema and object definitions.
TiDB Same as MySQL Same as MySQL
SQL Server Tables, views, procedures, functions, triggers, indexes, and sequences The selected database can be connected, and the object catalog and module definitions can be read.
OceanBase MySQL-compatible tenant Same as MySQL Enter the username as specified in the deployment, for example,user@tenant#cluster
OceanBase Oracle-compatible tenant Same as Oracle; this source type does not require a Service Name or SID. Same as above
Sybase ASE Tables, views, procedures, and triggers Can read directory, column information, and module definitions

For MySQL-compatible databases (MySQL, MariaDB, TiDB), it is recommended to use --database to specify the database name, and --schema can be used as an alias. For complete operations on Sybase ASE, see Sybase ASE Assessment.

Collection Mode

--collect-mode only takes effect for --type database. The default is full:

Value
Description
full Collect system and object information
object Collection Objects Only
system Collect system information only

For finer-grained control, use --collect-categories to specify comma-separated categories. Valid values:

tables, indexes, views, procedures, triggers, constraints, sequences, synonyms, dblinks, tablespaces, slowqueries, sessions, locks, statistics, privileges.

You can also use object (for objects only) or system (for system information only) as shortcut values. If not specified, full collection is performed as per --collect-mode. For large databases, it is recommended to use --collect-categories object to skip unnecessary collections such as privileges and slow queries.

Collection Scope Control

Parameter
Description
--schema Specify the schemas or databases to scan. Multiple entries are supported. The name cannot be empty.
--exclude-schema Exclude specified schemas. Multiple exclusions are supported; cannot be combined with--schemaExplicitly specified value conflicts
--include-system The system schema is included in the database assessment.
--object-type Filter Assessments by Object Type
--object-id Filter by object ID, for example,dbo.usp_ProcessOrder, which can be passed in multiple times.
--recent-sql-hours Last SQL Collection Time Window (hours), Default: 20
--recent-sql-max Maximum number of rows collected in the most recent SQL query. Default: 1,000.
--query-timeout Collection query timeout

Procedure

Taking Oracle database assessment as an example:

java -jar oceanbase-compat-engine.jar compat \
  --mode full --task-name oracle_db \
  --type database --source-type oracle \
  --host 10.10.10.1 --port 1521 --service-name ORCL \
  --username oms_user --password-env OMA_SOURCE_PASSWORD \
  --schema APPUSER \
  --collect-mode full \
  --target oceanbase-oracle --target-ob-version 4.4.2 \
  --report-lang zh --output /data/oma/reports/oracle-db.html

When executing in phases, first use --mode collect to collect data, then use the same --task-name and --db to perform the assessment and generate the report with --mode evaluate and --mode report respectively.

Assessment Commands for Other Sources

For the source without a single-column database assessment, replace --source-type and connection parameters with the following example. The example performs only object scanning (--collect-mode object). To collect database information as well, change it to full. Select the target mode according to Overview of compatibility assessment.

MariaDB:

java -jar oceanbase-compat-engine.jar compat \
  --mode full --task-name object_mariadb \
  --type database --source-type mariadb \
  --host SOURCE_HOST --port 3306 --database appdb \
  --username SOURCE_USER --password-env OMA_SOURCE_PASSWORD \
  --collect-mode object \
  --target oceanbase-mysql --target-ob-version 4.4.2 \
  --report-lang zh --output /data/oma/reports/object_mariadb.html

SQL Server (--database and --schema are specified separately):

java -jar oceanbase-compat-engine.jar compat \
  --mode full --task-name object_sqlserver \
  --type database --source-type sqlserver \
  --host SOURCE_HOST --port 1433 --database appdb --schema dbo \
  --username SOURCE_USER --password-env OMA_SOURCE_PASSWORD \
  --collect-mode object \
  --target oceanbase-oracle --target-ob-version 4.4.2 \
  --report-lang zh --output /data/oma/reports/object_sqlserver.html

OceanBase MySQL-compatible tenant:

java -jar oceanbase-compat-engine.jar compat \
  --mode full --task-name object_obmysql \
  --type database --source-type oceanbase-mysql \
  --host SOURCE_HOST --port 2883 --database appdb \
  --username 'user@tenant#cluster' --password-env OMA_SOURCE_PASSWORD \
  --collect-mode object \
  --target oceanbase-mysql --target-ob-version 4.4.2 \
  --report-lang zh --output /data/oma/reports/object_obmysql.html

OceanBase Oracle-compatible tenant:

java -jar oceanbase-compat-engine.jar compat \
  --mode full --task-name object_oboracle \
  --type database --source-type oceanbase-oracle \
  --host SOURCE_HOST --port 2883 --schema APP \
  --username 'user@tenant#cluster' --password-env OMA_SOURCE_PASSWORD \
  --collect-mode object \
  --target oceanbase-oracle --target-ob-version 4.4.2 \
  --report-lang zh --output /data/oma/reports/object_oboracle.html

View the report

The report summarizes the number of collected objects, the number of issues, and their distribution by category (syntax/structure/data type/function/keyword) and level (error/warning/information). --format json outputs machine-readable results, and --report-detail-limit controls the number of details displayed. When a task fails, first check for stage errors and logs/oma.log; if partial information collection fails, also verify whether the report is missing corresponding content.

Scope of support

  • Data dictionary views that can be read by the source database account are collected. If permissions are insufficient, the corresponding category will be missing. The report does not distinguish between "incompatible" and "not collected".

  • System categories such as slow queries, sessions, locks, and statistics are collected separately only when explicitly specified with --collect-categories.

  • --object-type can be specified multiple times, and --schema can accept a comma-separated list; if no scope is specified, it is processed according to the source scanning logic.

  • Oracle's INDEX, CONSTRAINT, and DBLINK information is collected separately. Information collection should not be directly equated with each object type having independently entered the scanning assessment.

  • The source for Sybase ASE is built-in. For details, see the source dialect list in Overview of compatibility assessment and Sybase ASE assessment.

Previous topic

Product form
Last

Next topic

Assess SQL statement compatibility
Next
on this page
Background Information
Scanning Scope and Privileges for Each Source
Collection Mode
Collection Scope Control
Procedure
Assessment Commands for Other Sources
View the report
Scope of support