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