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.

Table 1 Drivers

Relational Database Type

Driver Name

How to Obtain

Recommended Version

  • RDS for MySQL
  • MySQL
  • DM

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)

  • RDS for PostgreSQL
  • PostgreSQL

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

-

  • RDS for SQL Server
  • Microsoft SQL Server

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

  1. 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.

  1. Click Data Integration of the corresponding workspace.

    The Data Integration page is displayed.

  2. 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
  3. 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.