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

ODBC Driver for Teradata® User Guide

Product
ODBC Driver for Teradata
Release Number
16.20
Published
August 2020
Language
English (United States)
Last Update
2020-08-25
dita:mapPath
fxv1527114222338.ditamap
dita:ditavalPath
Audience_PDF_product_legacy_odbc_include.ditaval
dita:id
B035-2526
lifecycle
previous
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]

  4. Save the teradata.teradataodbc.ini file.