Basic information
Compatibility assessment analyzes database object definitions or input SQL based on the source dialect, target mode, and version, and outputs identified issues, causes, and recommendations. You can connect to a database for object assessment, or read SQL, MyBatis, or iBATIS files. For the component structure and data flow, see System architecture.
Supported database types and versions
Supported source databases
The following table lists the source and target modes supported by compatibility assessment, along with the corresponding documentation entry for each source database. The instructions apply to object assessment, statement assessment, and full database assessment.
Source |
--source-type |
Target --target |
Documentation |
|---|---|---|---|
| Oracle | oracle |
oceanbase-oracle |
Assess an Oracle database |
| MySQL | mysql |
oceanbase-mysql |
Assess a MySQL database |
| PostgreSQL | postgresql |
oceanbase-oracle、oceanbase-mysql |
Assess a PostgreSQL database |
| SQL Server | sqlserver |
oceanbase-oracle |
Object and metadata assessment |
| TiDB | tidb |
oceanbase-mysql |
Assess a TiDB database |
| MariaDB | mariadb |
oceanbase-mysql |
Object and metadata assessment |
| Sybase ASE | sybase |
oceanbase-oracle |
Assess Sybase ASE |
| OceanBase Oracle-compatible tenant | oceanbase-oracle |
oceanbase-oracle |
Object and metadata assessment |
| OceanBase MySQL-compatible tenant | oceanbase-mysql |
oceanbase-mysql |
Object and metadata assessment |
MariaDB, SQL Server, OceanBase tenants, and Sybase ASE do not have separate chapters for full database assessment. Connection-based assessment follows the instructions in the corresponding chapter of the table above. If --port is not specified for database input, the default port of the source database is used: Oracle 1521, MySQL/MariaDB 3306, PostgreSQL 5432, SQL Server 1433, TiDB 4000, Sybase ASE 5000, OceanBase tenant 2883.
Successful connection to the source does not mean that any product or derived database is supported for assessment. The built-in list does not include entries for standalone dialects such as DB2 LUW, openGauss, DRDS, or Polar.
Source version information
File input can provide a version tag using --source-version-tag; database input automatically retrieves the corresponding version information. The following version tags are supported, but this does not indicate full certification for all real-world versions.
Source dialect |
Version tag processing |
|---|---|
| Oracle | Accepts 10g, 11g, 12c, 18c, 19c, 21c |
| MySQL | Accepts 5.6, 5.7, 8.0 |
| PostgreSQL | Handles as integer major version; file mode can also use --source-major-version |
| SQL Server | Processes year tags; internal major versions 13, 14, 15, 16 map to 2016, 2017, 2019, 2022 respectively |
| TiDB | Version tags use the tidb-<version> format, e.g., tidb-5.0 |
| MariaDB | Accepts 10.2, 10.3, 10.4, 10.5, 10.6, 10.11, 11.4, 11.8 |
| Sybase ASE | Accepts 12.5, 15.0, 15.5, 15.7, 16.0 |
| OceanBase Oracle-compatible tenant | The source compatible version tag is fixedly mapped to 11g; OceanBase's own version number is not treated as an Oracle version |
| OceanBase MySQL-compatible tenant | Reuses the version processing logic of the MySQL dialect |
Supported target databases
--target-ob-version accepts the following values, with a default of 4.4.2:
3.2.4, 4.2.1, 4.2.5, 4.3.5, 4.4.2, 4.5.0, 4.5.1, 4.6.0.
Versions must match the available options; unknown versions are not automatically downgraded to a nearby version. Selecting a target version only means the assessment entry accepts that value, not that all extension syntaxes for the corresponding database have completed compatibility confirmation. For specific verification prompts for 4.5/4.6, see Special identification and associated declarations.
Usage instructions
- For file and Mapper assessment methods, see Assess SQL statement compatibility.
- For connection-based object and metadata collection assessment, see Object and metadata assessment. For the general process and operational steps of full database assessment, see Full database assessment overview.