Create Connection
This article explains how to set up the connection between
Before you begin the migration procedure, you need to upload the
JDBC driver
Download the JDBC Driver
Download the JDBC driver from the Teradata JDBC driver download site. Make sure that you download the correct version of the JDBC driver for the Teradata version.
Install the Driver
In Exasol 8, drivers must be uploaded to BucketFS. By default, the database is configured to use the following path for all JDBC drivers:
/buckets/bfsdefault/default/drivers/jdbc/
The default
bucket is available on port 2581 by default. Ensure that traffic on this port has been enabled in your network settings.
For more information about BucketFS, see the BucketFS section.
Create a Configuration File
The following examples contain placeholders that are styled as Bash variables, for example: $NODE_IP
. Replace the placeholders with your own values.
Create a configuration file settings.cfg
that specifies the configuration parameters for your driver, using the following format:
-
Replace
$MY_DRIVERNAME
with a unique name of your choice. This name is used in thedriver
clause in an IMPORT or EXPORT statement. -
Replace
$PREFIX
with the required URL prefix for the JDBC driver. The prefix can be found on the driver manufacturer's website. -
Do not modify the
FETCHSIZE
orINSERTSIZE
parameters unless instructed to by Exasol support. -
Make sure that the last line ends with a line feed (LF) character, as there must be an empty line at the end of the file.
Security Manager
Some drivers require additional permissions to run correctly. In these cases, you may receive an error message pointing to permission problems in the IMPORT statement. To disable the security manager, add the line NOSECURITY=YES
to the settings.cfg file. The security manager is enabled by default.
Disabling the security manager can reduce the security of your system. Only add NOSECURITY=YES
if the driver cannot run with the security manager enabled.
Examples
The following example is a settings.cfg file for the Exasol JDBC driver:
Upload the configuration file
Upload the settings.cfg file and the driver *.jar files to the specified bucket path on one of the database nodes.
The following examples use curl on a Linux terminal. You can also use other interfaces and languages to execute curl commands.
The option --insecure
or -k
tells curl to bypass the TLS certificate check. This option allows you to connect to a HTTPS server that does not have a valid certificate. Only use this option if certificate verification is not possible and you trust the server.
Examples:
Create and test the connection
- Open a SQL client and create the connection from Exasol to Teradata:
- Test the connection by performing a small dummy import: