<p>看起来您的客户机找不到<code>Teradata</code>服务器,这就是您看到<code>DBCName</code>丢失错误的原因。这应该是Teradata服务器的“系统名”(即<code>TDServProdA</code>)。在</p>
<p>有几件事可以试试:</p>
<ol>
<li><p>{cd4}如果你试图用一个COP}标记直接连接到你的主机名。<a href="https://pypi.org/project/teradatasql/#COPDiscovery" rel="nofollow noreferrer">More info</a></p></li>
<li><p>尝试更新本地系统上的<code>hosts</code>文件。来自文档:</p></li>
</ol>
<blockquote>
<p>Modifying the hosts File </p>
<p>If your site does not use DNS, you must define the IP address and the
Teradata Database name to use in the system hosts file on the
computer.</p>
<ol>
<li>Locate the hosts file on the computer. This file is typically located in the following folder: %SystemRoot%\system32\drivers\etc</li>
<li>Open the file with a text editor, such as Notepad.</li>
<li><p>Add the following entry to the file: xxx.xx.xxx.xxx sssCOP1 where xxx.xx.xxx.xxx is the IP address and where sss is the Teradata
Database name. </p></li>
<li><p>Save the hosts file.</p></li>
</ol>
</blockquote>
<p><a href="https://docs.teradata.com/reader/5Z2iFFSaZfr3ZIGLbxnIHg/0J1SO9KwkTwgAwdqlIwxcA" rel="nofollow noreferrer">Link 1</a><br/>
<a href="https://docs.teradata.com/reader/5Z2iFFSaZfr3ZIGLbxnIHg/0J1SO9KwkTwgAwdqlIwxcA" rel="nofollow noreferrer">Link 2</a></p>