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
- You have created a cluster as described in Creating a CDM Cluster.
- 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 |
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 |
Obtain ojdbc8.jar in Oracle Database 12c Release 2 (12.2.0.1) drivers. |
|
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 |
4.21.29 |
|
SQLServer |
https://docs.microsoft.com/en-us/sql/connect/jdbc/download-microsoft-jdbc-driver-for-sql-server?view=sql-server-ver15 |
4.2 |
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 CDM management console.
- In the navigation pane, choose Cluster Management. Locate the target cluster and choose . The Driver Management page is displayed.
Figure 1 Uploading a driver
- 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: Link to Hive
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.