OceanBase Database supports MySQL and Oracle connection modes.
To use the MySQL mode of OceanBase Database, you can use a database driver developed by the OceanBase team or the official MySQL connector.
To use the Oracle mode of OceanBase Database, you must use a database driver developed by the OceanBase team.
OB-ODBC
ODBC mainly consists of a driver and a driver manager. Both the OB-ODBC driver and the driver manager for connecting to OceanBase Database are developed by the OceanBase team. By using OB-ODBC, you can connect to both the MySQL mode and the Oracle mode of OceanBase Database.
For more information about the OB-ODBC driver, see OB-ODBC.
OBCI driver
The OceanBase Call Interface (OBCI) driver is developed by the OceanBase team. It is compatible with Oracle Call Interface (OCI) and is written in C. Applications developed based on OCI can be driven by OBCI and support the Oracle mode of OceanBase Database.
For more information about the OBCI driver, see OBCI.
OceanBase Connector/C
OceanBase Connector/C is an OBClient development component based on C/C++. OceanBase Connector/C supports C API libraries.
OceanBase Connector/C allows C/C++ applications to access distributed OceanBase clusters from the underlying layer. Then, the applications can perform operations such as database connection, data access, error processing, and prepared statement processing.
For more information about OceanBase Connector/C, see OceanBase Connector/C.
OceanBase Connector/J
Java Database Connectivity (JDBC) is a standard API for Java applications to access databases. A database driver adapts the JDBC API to SQL APIs of other database providers. As the JDBC driver of OceanBase Database, OceanBase Connector/J is compatible with JDBC 4.0, 4.1, and 4.2. By using OceanBase Connector/J, you can enable the MySQL and Oracle modes of OceanBase Database at the same time.
For more information about OceanBase Connector/J, see OceanBase Connector/J.