Navicat is a powerful database management tool that supports connecting to various databases, including OceanBase Database in Oracle mode. This topic describes how to connect to OceanBase Database in Oracle mode by using Navicat.
Note
This topic describes how to connect to OceanBase Database in Oracle mode by using Navicat over the Oracle protocol.
Version compatibility
- Navicat Premium 16.1.9 or later supports OceanBase Enterprise Edition (Oracle mode) V3 or later
- Navicat for Oracle 16.1.9 or later supports OceanBase Enterprise Edition (Oracle mode) V3 or later
Notice
At present, the macOS version of Navicat does not support OceanBase Database (Oracle mode).
Prerequisites
- You have installed Navicat Premium 16.1.9+ or Navicat for Oracle 16.1.9+
- You have obtained the connection information of OceanBase Database, including:
- The IP address and port of the database server
- The tenant name
- The username and password
Download OceanBase JDBC driver
Visit OceanBase Download Center, and download OceanBase Connector/J under Drivers and Middleware.
After the download is complete, save the JAR file to a local directory, such as:
/path/to/oceanbase-client.jar
Configure a Navicat connection
Start Navicat and choose File > New Connection > Oracle.
On the connection settings page, specify the following parameters:
ParameterDescriptionExampleHost The IP address of the OceanBase server. 127.0.0.1 Port The port of the database. Default value: 2881. 2881 Username The username of the database. user@tenant Password The password of the database. ******** Switch to the Advanced tab:
- In the OCI Library section, select Use OCI.
- In the OCI Library Path field, select the
oci.dllfile in Windows or thelibclntsh.dylibfile in macOS.
Switch to the Driver tab:
- Select Use Custom JDBC Driver.
- Click Add and select the downloaded OceanBase JDBC driver JAR file.
- Enter
com.alipay.oceanbase.jdbc.Driverin Class Name. - Enter
jdbc:oceanbase://{host}:{port}/{database}in URL Template.
Click Test Connection to verify the connection.
Manage OceanBase Database with Navicat
After the connection is established, you can perform the following operations in the graphical user interface of Navicat:
- Browse database objects such as tables, views, and stored procedures
- Execute SQL queries
- Import and export data
- Manage database users and privileges
- Monitor database performance
