4

我正在使用 Ubuntu,我正在尝试使用 ODBC 驱动程序将 php 连接到雪花,我在/etc/odbcinst.ini. 这是我正在使用的驱动程序信息

[ODBC Drivers]
SnowflakeDSIIDriver=Installed

[SnowflakeDSIIDriver]
APILevel=1
ConnectFunctions=YYY
Description=Snowflake DSII
Driver=path-to-"libSnowflake.so"
DriverODBCVer=03.52
SQLLevel=1
ErrorMessagesPath=path-to-folder-which-has-error-message-xml-files

我收到错误两个错误

错误1 SFRestRequestFailed could not be found in the en-US locale. Check that /en-US/SFMessages.xml exists:。

错误2 REST request to the Snowflake is failing(I got this error by checking corresponding message attached to 'SFRestRequestFailed' in SFMessages.xml):。

但我可以在 Windows 中使用相同的访问详细信息连接 Snowflake 并获取数据。

请分享您的想法以解决此问题。

谢谢

4

1 回答 1

3

ErrorMessagePath 是雪花配置。如果您使用适用于 linux 的 snowflake odbc 包,您会发现 unixodbc.snowflake.ini 或 iodbc.snowflake.ini 可以根据您使用的驱动程序管理器相应地使用。ErrorMessagePath 应在 unixodbc.snowflake.ini 或 iodbc.snowflake.ini 中设置,并且您的 SIMBAINI env var 应设置为指向这些文件之一。

于 2016-03-28T18:06:00.017 回答