Teradata ODBC 连接问题:ubuntu 上没有可用的版本信息(./tdxodbc64 要求)

Teradata ODBC connection issue: No version information available (required by ./tdxodbc64) on ubuntu

我们在连接到 teradata 服务器时遇到以下问题。驱动程序 v16.10 和 ubuntu v14.04.

/opt/teradata/client/16.10/bin$ ./tdxodbc64 -c SQLDriverConnect -t -S 'SERVER_IP' -u 'USERNAME' -p 'PASSWORD'

./tdxodbc64: /usr/lib/x86_64-linux-gnu/libodbcinst.so: no version information available (required by ./tdxodbc64)

./tdxodbc64: /usr/lib/x86_64-linux-gnu/libodbc.so: no version information available (required by ./tdxodbc64)

Segmentation fault (core dumped)

通过设置环境变量解决

export ODBCINI="/opt/teradata/client/16.10/odbc_64/odbc.ini" export ODBCINSTINI="/opt/teradata/client/16.10/odbc_64/odbcinst.ini" export LD_LIBRARY_PATH="/opt/teradata/client/16.10/odbc_64/lib:/opt/teradata/client/16.10/odbc_64/odbc.ini:/opt/teradata/client/16.10/odbc_64/odbcinst.ini"