使用Teradata模块从python连接到Teradata会导致“WSA E TimedOut”

2024-04-27 22:50:01 发布

您现在位置:Python中文网/ 问答频道 /正文

Iam试图使用Teradata模块从python连接到Teradata,但这会导致TimedOut。在

例外情况是:

(434, '[HY000] [Teradata][WSock32 DLL] (434) WSA E TimedOut: No response received when attempting to connect to the Teradata server')

有没有办法从python编码端增加超时?在

附加屏幕截图:

enter image description here


Tags: 模块tonoresponseiamdllwhen例外情况
1条回答
网友
1楼 · 发布于 2024-04-27 22:50:01

与udaExec.connect(method=“odbc”,系统=主机,用户名=用户名, password=password,LoginTimeout=60,driver=“DRIVERNAME”)作为连接:

因为登录可能需要时间,所以您正面临错误。 您需要添加一个参数LoginTimeout=60来解决这个问题。在

相关问题 更多 >