此篇文章给大家介绍一个使用pyodbc连接到 InterSystems IRIS数据库的示例,详情如下:
InterSystems IRIS 安装在Redhat 操作系统中,使用pyodbc在Mac操作系统中连接到Redhat 操作系统中InterSystems IRIS数据库。
pip install pyodbc
brew update
brew install unixodbc
odbcinst -i -d -f pyodbc_wheel/mac/odbcinst.ini
pyodbc_wheel/mac/odbcinst.iniodbcinst -i -s -h -f odbc.ini_unixODBCtemplate
odbcinst -i -s -l -f pyodbc_wheel/mac/odbcinst.ini
[InterSystems ODBC]
Description=InterSystems ODBC
Driver=pyodbc_wheel/mac/libirisodbc35.so
Setup=pyodbc_wheel/mac/libirisodbc35.so
UsageCount=1
ip: 192.168.157.XX
port: 51773
namespace: USER
username: user
password: pwd