Linux/UNIX ODBC 配置全过程总结
日期:2007年5月3日 作者: 查看:[大字体 中字体 小字体]-
#http://www.unixodbc.org/doc/ some materials about unixodbc
#http://www.easysoft.com/developer/interfaces/odbc/linux.html#unixodbc most worthy to read#Chen peng MSN:peng.ch@hotmail.com 2006-4-28
# The unixODBC source distribution is a gzipped tar file on http://www.unixodbc.org
# Uncompress it in the dir /usr/local and then untar the resultant file.gunzip unixODBC-2.2.12.tar.gz
tar -xzvf unixODBC-2.2.12.tar
./configure --prefix=/usr/local/unixODBC-2.2.12 --includedir=/usr/include --libdir=/usr/lib -bindir=/usr/bin --sysconfdir=/etc# create an ODBC driver template file and run odbcinst. filename : template_file
/*
In this case your template file must contain the Driver and Description attributes at a minimum and optionally the Setup attribute e.g.
[DRIVER_NAME]
Description = description of the ODBC driver
Driver = path_to_odbc_driver_shared_object
Setup = path_to_driver_setup_shared_objecte.g:
SkyKonnect:/ # cat /usr/local/etc/odbcinst.ini
[MySQL]
Description = ODBC for MySQL
Driver = /usr/lib/libmyodbc3.so
Setup = /usr/local/lib/libodbcmyS.so
FileUsage = 2
UsageCount = 2*/
odbcinst -f template_file -d -i
# You can list all installed ODBC drivers with:
odbcinst -s -q
/*
SkyKonnect:/usr/local/unixODBC-2.2.11/ODBCConfig # odbcinst -s -q
[myodbc3]
*/# you can locate the odbcinst.ini file used to defined drivers as below If unixODBC is already installed :
odbcinst -j
/*
SkyKonnect:/usr/local/unixODBC-2.2.11/ODBCConfig # odbcinst -j
unixODBC 2.2.11
DRIVERS............: /usr/local/etc/odbcinst.ini
SYSTEM DATA SOURCES: /usr/local/etc/odbc.ini
USER DATA SOURCES..: /root/.odbc.ini
*/ - [1] [2] [3] 下一页
-
- Linux/UNIX ODBC 配置全过程总结 相关文章:
- ·Linux/UNIX ODBC 配置全过程总结
- Linux/UNIX ODBC 配置全过程总结 相关软件
- 特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作
- 者.文章版权归文章原始作者所有.对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转
- 载的文章有版权问题请联系编辑人员,我们尽快予以更正. 转载请注明来源:http://www.hackhome.com
上一篇:硬盘保护锁
下一篇:在Solaris 10 X86上安装Oracle 10g RAC详解 (1)
精品推荐
热点TOP10
- ·图象处理中的边缘检测------canny算子
- ·EZ-USB 68013A开发指南
- ·数值计算程序大放送-特征值和特征向量
- ·ARM的嵌入式Linux移植体验之BootLoader
- ·Visual C++ ADO数据库编程入门
- ·智能手机Smartphone开发导语
- ·利用 wordXP 实现自动排班
- ·[分形]DLA团簇模型的摸拟
- ·DENX U-Boot及Linux使用手册
- ·Static和Final修饰类属性变量及初始化
- ·BPEL的异常管理
- ·看Vue 5 Esprit函数的节点与链接详情
- ·初学者全面接触学习jquery(译文)
- ·LinQ学习之旅 从整型数组中找出偶数
- ·Enterprise Library 快速入门
- ·CVS源代码库服务器建立和权限配置
- ·Visual FoxPro 9.0 SP2正式版下载
- ·VS2005控件的问题解决办法
- ·Cookie是什么?用法是怎样?与SESSION有什么区别?
- ·J2SE API读取Properties文件的六种方法
