Setting ODBCINI - ODBC Driver for Teradata

ODBC Driver for Teradata® User Guide

Product
ODBC Driver for Teradata
Release Number
17.00
Published
June 2020
Language
English (United States)
Last Update
2020-08-22
dita:mapPath
xbl1544831938754.ditamap
dita:ditavalPath
nkw1500504256726.ditaval
dita:id
B035-2526
lifecycle
previous
Product Category
Teradata Tools and Utilities

The default location of the odbc.ini file is as follows:

Operating System Default Location
UNIX/Linux $HOME/.odbc.ini (dot odbc.ini)
Apple macOS $HOME/Library/ODBC/odbc.ini

The directory (or directories) where ODBC Driver for Teradata is installed, contain a sample odbc.ini file. This sample contains a basic template of odbc.ini and sample DSN called testdsn. You can use this sample as a reference, or update and copy it to the default location.

Location of sample odbc.ini:

Operating System Location
UNIX/Linux (32-bit applications) <install dir>/teradata/client/ODBC_32/odbc.ini
UNIX/Linux (64-bit applications) <install dir>/teradata/client/ODBC_64/odbc.ini
Apple macOS (32-bit and 64-bit applications) /Library/Application Support/Teradata/Client/ODBC/ odbc.ini

Optionally, ODBCINI environment variable may point to the odbc.ini file present in non-default location.

For example, to use odbc.ini present in /usr/dev/odbc.ini:

export ODBCINI=/usr/dev/odbc.ini