OceanBase implements its Java Database Connectivity (JDBC) driver that enables Java programs to send SQL statements to MySQL and Oracle tenants in OceanBase Database. OceanBase JDBC exposes SQL data types and STORED PROCEDURE objects to Java programs to ensure fast access to SQL data.
The OceanBase JDBC driver is named as "oceanbase-client-[version No.].jar". You can contact OceanBase technical support to get the driver.
Note
- Class name of OceanBase Database Driver V1.0.x: com.alipay.oceanbase.obproxy.mysql.jdbc.Driver.
- The class name of OceanBase Database Driver V1.1.0 and later is changed to "com.alipay.oceanbase.jdbc.Driver". The original class name is retained. But we recommend that you use a different name.
- The class name of OceanBase Database Driver V2.x and later is changed to "com.oceanbase.jdbc.Driver".