无法使用Teradata与数据源建立连接。缺少设置:{[DBCName]}

时间:2019-03-29 06:35:00

标签: odbc teradata unixodbc isql

我已按照官方自述文件中的说明在CentOS上安装了Teradata驱动程序。 安装驱动程序位于<div> <div class="sidenav" id="divSideNav"> <div class="logoDiv" id="divLogo"> <img src="assets/images/logoArch.png" alt="Arch Logo" class="logoSideNav"> </div> <div class="logo-navborder" id="divlogoBorder"></div> <a (click)="workClick()" class={{lnkWorkQueue}} id="lnkWorkQueue">Queue1</a> <div class="side-navbarborder" id="divWorkQueueBorder"></div> <a (click)="quickQuoteClick()" class={{lnkQuickClick}} id="lnkInitiateRow">Queue2</a> <div class="side-navbarborder" id="divInitiateRowBorder"></div> <a (click)="fullQuoteClick()" class={{lnkFullClick}} id="lnkInitiateNew">Queue3</a> <div class="side-navbarborder" id="divInitiateNewBorder"></div> <a (click)="endorsementClick()" class={{lnkRenewClick}} id="lnkEndrose">Queue4</a> <div class="side-navbarborder" id="divEndroseBorder"></div> <a (click)="renewClick()" class={{lnkLossClick}} id="lnkRenew">Queue5</a> <div class="side-navbarborder" id="divRenewBorder"></div> <a (click)="lossClick()" class={{lnkReprintClick}} id="lnkLoss">Queue6</a> <div class="side-navbarborder" id="divLossBorder"></div> <a id="lnkInf" (click)="infCenterClick()" id="lnkInfCenter" class={{lnkInfClick}}>Queue7 <img src={{arrowImageInf}}> </a> <div *ngIf="subInfCenter"> <a class="subMenu">View Form Library</a> <a class="subMenu">Classification Guide</a> <a class="subMenu">UW Guide</a> <a class="subMenu">FAQ</a> <a class="subMenu">Contact Center</a> </div> <div class="side-navbarborder" id="divInfCenterBorder"></div> <a id="lnkSup" (click)="supportClick()" id="lnkSupportr" class={{lnkSupportClick}}>Support <img src={{arrowImageSup}}> </a> <div *ngIf="support"> <a class="subMenu">View Form Library</a> <a class="subMenu">Classification Guide</a> </div> <div class="side-navbarborder" id="divSupportBorder"></div> </div> </div>

之后
/opt/teradata/client

每个文件夹都有子文件夹和文件

/ODBC_32/
/ODBC_64/

使用ODBC_64驱动程序,我将内容分别从include lib locale odbc.ini odbcinst.ini odbc.ini复制到odbcinst.ini/etc/odbc.ini文件中。

现在在/etc/odbcinst.ini

/etc/odbc.ini

[ODBC] InstallDir=/opt/teradata/client/ODBC_64 Trace=no Pooling=yes [ODBC Data Sources] Teradata_ODBC_DSN=Teradata Database ODBC Driver 16.20 [Teradata_ODBC_DSN] Description=Teradata Database ODBC Driver 16.20 Driver=/opt/teradata/client/ODBC_64/lib/tdataodbc_sb64.so DBCName=My_Teradata_Server_IP UID= PWD=

/etc/odbcinst.ini

但是,当我测试了与命令[ODBC Drivers] Teradata Database ODBC Driver 16.20=Installed [Teradata Database ODBC Driver 16.20] Description=Teradata Database ODBC Driver 16.20 Driver=/opt/teradata/client/ODBC_64/lib/tdataodbc_sb64.so CPTimeout=60 的连接时,它显示了一个错误isql -v Teradata_ODBC_DSN

如上所示,

DBCName选项已填充。为什么会出现这种错误?

1 个答案:

答案 0 :(得分:0)

您尚未将 ODBCINI 变量设置为您的 .ini 文件。
尝试以下操作,然后进行测试:

export ODBCINI=/etc/odbc.ini
echo $ODBCINI