环境变量
export ODBCINI=/etc/odbc.ini
export ODBCSYSINI=/etc
运行odbcinst -j
[[email protected] project]$ odbcinst -j
unixODBC 2.2.1
DRIVERS............: /etc/odbcinst.ini
SYSTEM DATA SOURCES: /etc/odbc.ini
USER DATA SOURCES..: /etc
odbc.ini和odbcinst.ini都配置了,总是提示找不到数据源,请问有谁在linux下配置过informix的ODBC访问方式,运行总包如下错误
[[email protected] project]$ isql Infdrv1 -v
[unixODBC][Driver Manager]Data source name not found, and no default driver specified
[ISQL]ERROR: Could not SQLConnect
------解决思路----------------------
你是从哪里连到数据库呢?
linux下不用设置ODBC的
------解决思路----------------------
如果是linux下配置ODBC
可参考
http://blog.csdn.net/kingmax26/article/details/6012790