Creating a Custom Driver Name - ODBC Driver for Teradata

ODBC Driver for Teradata® User Guide

Product
ODBC Driver for Teradata
Release Number
17.10
Published
October 2021
Language
English (United States)
Last Update
2021-11-02
dita:mapPath
wxs1608578396899.ditamap
dita:ditavalPath
nkw1500504256726.ditaval
dita:id
B035-2526
lifecycle
previous
Product Category
Teradata Tools and Utilities

A custom driver name can be created using the instdrv tool. By default, the tool is located in /Library/Application Support/teradata/client/17.10/odbc/bin/odbcinst.ini file to include more driver names.

For example, suppose the driver name Teradata is hardcoded in your application and you need to connect using the driver name Teradata rather than the default name of Teradata Database ODBC Driver 17.10. Navigate to the directory that contains the instdrv tool and execute the following command:

sudo ./instdrv -i "Teradata;Driver=/Library/Application Support/teradata/client/17.10/lib/tdata.dylib;Setup=/Library/Application Support/teradata/client/17.10/lib/TeradataODBCSetup.bundle/Contents/MacOS/TeradataODBCSetup"

Below is the resulting odbcinst.ini file with two driver names for the 17.10 driver.

The odbcinst.ini for SEN on Mac OS:

[ODBC Drivers]
Teradata Database ODBC Driver 17.10=Installed

[Teradata Database ODBC Driver 17.10]
Description=Teradata Database ODBC Driver 17.10
Driver=/Library/Application Support/teradata/client/17.10/lib/tdataodbc_sb64.dylib
Setup=/Library/Application Support/teradata/client/17.10/lib/TeradataODBCSetup.bundle/Contents/MacOS/TeradataODBCSetup