Specifying ODBC Driver Managers on Non-Windows Machines - ODBC Driver for Teradata

ODBC Driver for Teradata® User Guide - 17.20

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
Lake
VMware
Product
ODBC Driver for Teradata
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-11-18
dita:mapPath
uqj1639470627591.ditamap
dita:ditavalPath
nkw1500504256726.ditaval
dita:id
ktb1507075385726
Product Category
Teradata Tools and Utilities

Set the library path environment variable to verify your machine uses the correct ODBC driver manager to load the driver.

macOS

For macOS machines, set the DYLD_LIBRARY_PATH environment variable to include the paths to the ODBC driver manager libraries. For example, if the libraries are installed in /usr/local/lib, run the following command to set DYLD_LIBRARY_PATH for the current user session:

export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/usr/local/lib

For information about setting an environment variable permanently, refer to the macOS shell documentation.

Linux

For Linux machines, set the LD_LIBRARY_PATH environment variable to include the paths to the ODBC driver manager libraries. For example, if the libraries are installed in /usr/local/lib, run the following command to set LD_LIBRARY_PATH for the current user session:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib

For information about setting an environment variable permanently, refer to the Linux shell documentation.

Troubleshooting

An error message occurs when the name of the library file for the driver manager is different than the default. To resolve this issue:
  1. Confirm the name of the library file used by your driver manager.
  2. In a text editor, open the teradata.teradataodbc.ini file. This file is located in [InstallDir]/lib by default.
  3. Add the following line to the end of the file, in which [DMLibFile] is the name of the library file:

    ODBCInstLib=[DMLibFile]

    You can set the environment variable TERADATAODBCINI to specify an alternative pathname for teradata.teradataodbc.ini.
  4. Save the teradata.teradataodbc.ini file.