标签: sybaseiq

如何在 Linux 上通过 ODBC 配置从 Sybase IQ 访问 Sybase Anywhere 的连接

我正在尝试通过 ODBC 驱动程序从 IQ16 访问 ASA16 服务器。两台服务器都安装在同一个 Linux 机器上。

我已经安装unixodbc-bin并添加了一个文件 .odbc.init 到运行数据库的用户的家中:

[mes_input]
Driver=/opt/sqlanywhere16/lib64/libdbodbc16_r.so
uid=dba
pwd=SQL
EngineName=mes_input
CommLinks=tcpip(host=127.0.0.1;port=49152)
AutoStop=no
DatabaseName=mes_input
Run Code Online (Sandbox Code Playgroud)

ASA 在那个盒子上的 49152 上运行;IQ 运行默认值 2638。

另外,我在接口文件锁定中添加了一个条目,如下所示:

mes_input
        master tcp ether myserver 49152
        query tcp ether myserver 49152
Run Code Online (Sandbox Code Playgroud)

回到 IQ,我可以通过 Sybase Central 添加远程服务器以及此框中的表。还测试连接并显示没有错误。

但是当我现在尝试通过例如从 ASA 复制一些数据时

INSERT locale_table LOCATION 'mes_input.mes_input' 'SELECT * FROM table'
Run Code Online (Sandbox Code Playgroud)

我越来越:

Connectivity libraries cannot be found (check your dynamic library
search path).  Selects from attached databases are not possible without
these libraries.  
-- (hqmlib/hqm_cpm.cxx …
Run Code Online (Sandbox Code Playgroud)

sybase odbc sybase-sql-anywhere sybaseiq

5
推荐指数
1
解决办法
2087
查看次数

标签 统计

odbc ×1

sybase ×1

sybase-sql-anywhere ×1

sybaseiq ×1