Connect to Vantage using JDBC
Author: Adam Tworkiewicz
Last updated: September 8th, 2021
This quick start demonstrates how to connect to Teradata Vantage using JDBC. We will go through a sample JDBC project. The entire project is published in GitHub at https://github.com/Teradata/jdbc-sample-app.
Go to the Teradata JDBC download page and download the driver (you can choose zip or tar). The website will ask you to login (if you don’t have an account you will need to register first) and accept the license before you download the file.
Unzip the driver.
Add the driver to your local Maven repository:
mvn install:install-file \ -Dfile=terajdbc4.jar \ -DgroupId=com.teradata \ -DartifactId=terajdbc4 \ -Dversion=17.10.00.26 \ -Dpackaging=jar \ -DgeneratePom=true
Now that we have the jar in the local repository, we can reference the jar as a dependency in our Maven pom:
This step assumes that your Vantage database is available on
The project is set up. All that is left, is to load the driver, pass connection and authentication parameters and run a query:
In this quick start we have learned how to connect to Teradata Vantage using JDBC. We went through the process of installing the latest JDBC driver and later used it in a Java application with Maven as the build tool.