The current version includes a built-in Sybase ASE source, which can be used as the source for compatibility assessment. The assessment target is OceanBase Oracle compatible mode.
Features
The assessment target is OceanBase Oracle compatible mode. The default source port is 5000, and a database name is required. The --source-version-tag accepts 12.5, 15.0, 15.5, 15.7, and 16.0.
Database scanning enumerates tables, views, procedures, and triggers from the system catalog. For a complete list of source-target combinations and version tags, see Overview of compatibility assessment.
Prerequisites
- JDK 21 is installed and
oceanbase-compat-engine.jaris obtained. For details, see Install OMA. - The running machine can access the source
5000(or actual listening) port. - The assessment account must have permissions to read the corresponding system directories, column information, and module definitions.
- A variable for storing the source database password has been set in the process environment. Below,
OMA_SOURCE_PASSWORDis used as an example.
Usage
java -jar oceanbase-compat-engine.jar compat \
--mode full --task-name sybase_demo \
--type database --source-type sybase \
--host SOURCE_HOST --port 5000 --database appdb --schema dbo \
--username SOURCE_USER --password-env OMA_SOURCE_PASSWORD \
--collect-mode full \
--target oceanbase-oracle --target-ob-version 4.4.2 \
--report-lang zh --output /data/oma/reports/sybase-demo.html
Replace the example host, username, database name, and schema with actual values. For collection mode and scope control parameters, see Object and metadata assessment.
View results
Open the HTML report specified by --output to view objects and issues. The read database information is displayed according to the actual collection results.
You can also use --source-type sybase to assess SQL files. For file scanning scope, see Assess SQL statement compatibility.