Introducing Agent Safe Governance for the AI Era

Connect to Teradata with Liquibase using TD2 authentication

Last updated: June 9, 2026

Configure Liquibase to connect to Teradata using TD2 authentication. TD2 is the default Teradata authentication mechanism. It requires only a username and password with no additional LOGMECH parameters are needed.

Before you begin

  • Liquibase Secure 5.1.1+

  • Teradata JDBC driverThe Teradata JDBC driver is not included and must be downloaded from Teradata. Place the driver in the liquibase/lib directory.

Procedure

1

Configure your liquibase.properties

Add the following to your liquibase.properties file. Be sure to:

  • Replace your_changelog.xml with the path to your changelog file

  • Replace your_hostname with your Teradata server hostname

  • Replace your_database with your database name

  • Replace your_username with your Teradata username

  • Replace your_password with your Teradata password

loading

You can also configure optional BTEQ-specific properties:

# Path to BTEQ executable (default: bteq, assumes it is on PATH)
liquibase.bteq.path=bteq

# Timeout in seconds (-1 = no timeout)
liquibase.bteq.timeout=300

Environment variables

As an alternative to liquibase.properties, set these environment variables. Be sure to replace your_hostname, your_database, your_username, and your_password with your actual values.

loading
2

Create a changelog file

Create a basic changelog file to verify the connection. Be sure to:

  • Replace your_author with your name or identifier

  • Save the file using the same name you set for your_changelog.xml in Step 1

loading

loading

loading

loading
3

Verify the connection

Run the following command to confirm Liquibase can connect to your Teradata instance:

liquibase update

A successful response looks like:

Liquibase command 'update' was executed successfully.
4

Store credentials with Teradata Wallet (recommended for production)

Teradata Wallet provides encrypted credential storage so that passwords are not stored in plaintext configuration files. Create a wallet entry on the host where Liquibase runs. Be sure to:

  • Replace your_database with your Teradata database name

  • Replace your_username with your Teradata username

  • Replace your_password with your Teradata password

tdwallet add -alias your_database -logon your_username,your_password

Then reference the wallet alias in your JDBC URL. Consult the Teradata Wallet documentation for the exact URL syntax supported by your Teradata JDBC driver version.

Liquibase command 'update' was executed successfully.

Secure 5.2: Connect Liquibase with Teradata (TD2)