Managing Drivers
The Java Database Connectivity (JDBC) API provides programmatic access to relational databases. Using the JDBC API, applications can execute SQL statements and retrieve results. Before connecting CDM to a relational database, you need to upload a driver.
Prerequisites
- A cluster has been created.
- You have downloaded one of the drivers listed in Table 1.
- (Optional) An SFTP link has been created by referring to Link to an FTP or SFTP Server and the corresponding driver has been uploaded to the offline file server.
How Do I Obtain a Driver?
Different types of relational databases need to adapt to different drivers. Download one of the drivers listed in Table 1 based on the preset driver name on the Driver Management page.
| Relational Database Type | Driver Name | How to Obtain | Recommended Version |
|---|---|---|---|
| MYSQL MYCAT DM | https://downloads.mysql.com/archives/c-j/ | 5.1.48. The driver of the 8.x version is not supported. |
| Oracle | ORACLE_6 ORACLE_7 ORACLE_8 | https://www.oracle.com/database/technologies/appdev/jdbc-downloads.html | Oracle 12c or later (recommended version: ojdbc8) |
| POSTGRESQL | https://jdbc.postgresql.org/download.html | 42.1.4 |
| IBM Db2 | DB2 | https://www.ibm.com/support/pages/db2-jdbc-driver-versions-and-downloads | - |
| SQLServer | https://docs.microsoft.com/en-us/sql/connect/jdbc/download-microsoft-jdbc-driver-for-sql-server?view=sql-server-ver15 | - |
Drivers for GaussDB and SAP HANA databases have been loaded to the system. You do not need to upload the drivers again.
Procedure
- Log in to the DGC console, select a DGC instance, and click Access.
On the displayed page, click the Workspaces tab. In the workspace list, locate the required workspace.
- Click Data Integration of the corresponding workspace.
The Data Integration page is displayed.
- Choose Cloud Data Migration. The Cluster Management page is displayed. Choose Job Management > Link Management > Diver Management. The Driver Management page is displayed.Figure 1 Uploading a driver
- Upload the driver using either of the following methods:
Click Upload in the Operation column and select a local driver.
Alternatively, click Copy from SFTP in the Operation column and configure the SFTP link name and driver file path.
Last Article: Creating Links
Next Article: Managing Cluster Configurations
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.