Loading Data using Generic JDBC

This section provides you with instructions on how to connect to a database and import data using the JDBC driver. If you need further assistance, contact support.

Prerequisite

  • JDBC driver downloaded and installed
  • Exasol database running

Add JDBC Driver

Do the following to add a JDBC driver:

  1. Log in to EXAoperation user interface as an Administrator user.
  2. Select Configuration > Software and click the JDBC Drivers tab.
  3. Click Add to add the JDBC driver details.
  4. Enter the following details for the JDBC properties:
    • Driver Name: <driver name>
    • Main Class: <driverclass>
    • Prefix: <driver prefix>
    • Disable Security Manager: This is an optional field. This allows the JDBC Driver to access certificate and additional information.
    • Comment: This is an optional field.
  5. Click Add to save the settings.
  6. Select the radio button next to the driver from list of JDBC driver.
  7. Click Choose File to locate the downloaded driver and click Upload to upload the JDBC driver.

Run Statement

Run the following statement to create a connection.

CREATE OR REPLACE CONNECTION JDBC_CON1
    TO '<JDBC connection string>'
    USER 'sys'
    IDENTIFIED BY 'exasol123';

Run the following statement to test the connection.

select * from 
(
import from JDBC at JDBC_CON1
statement 'select 1'
);

Load Data

You can use the IMPORT statement to load data using the connection you created above. IMPORT supports loading data from a table or a SQL statement.