ÔÚlinuxÉÏÅäÖÃunixODBCºÍFreeTDS·ÃÎÊMS SQL Server.
Ò», °²×° unixODBC
ÏÂÔØ°²×°°ü. ÔÚ RedHat °²×°¹âÅÌÉϾÍÓÐ
unixODBC-2.2.11-1.RHEL4.1.i386.rpm
unixODBC-devel-2.2.11-1.RHEL4.1.i386.rpm
unixODBC-kde-2.2.11-1.RHEL4.1.i386.rpm
°²×°
rpm -Uvh unixODBC-2.2.11-1.RHEL4.1.i386.rpm
rpm -Uvh unixODBC-devel-2.2.11-1.RHEL4.1.i386.rpm
Èç¹û°²×°ÖÐÌáʾÓжÔÆäËü°²×°°üµÄÒÀÀµ,Ôò°´ÕÕÌáʾÏÈ°²×°
ÄÄЩ°ü.
»òÕß´ÓÔ´Âë°²×° unixODBC
ÏÂÔØÔ´Â뼯
unixODBC-2.2.11.tar.gz
# tar xzf unixODBC-2.2.11.tar.gz
# cd unixODBC-2.2.11
# ./configure
# make
# make install
./configure µÄʱºòÒ²ÓпÉÄÜÌáʾÕÒ²»µ½Ä³Ð©ÒÀÀµ¿â.
ÏÂÔØÕâЩÒÀÀµ¿âµÄÔ´Âë,±àÒë,°²×°.
rpm °²×°ºÍÔ´Âë±àÒë°²×°µÄ²î±ðÔÚÓÚÅäÖÃÎļþ odbc.ini, odbcinst.ini
µÄλÖò»Í¬. Ç°ÕßΪ /etc , ºóÕßΪ /usr/local/etc
¶þ, °²×° FreeTDS
unixODBC ÌṩÁËLinux ¶ÔODBC µÄÖ§³Ö,µ«ËüÖ»ÊÇÒ»¸ö ODBCµÄ¹ÜÀíÆ÷, ÒªÁ¬½Ó
ʵ¼ÊµÄÊý¾Ý¿â»¹µÃÌṩÕâÖÖÊý¾Ý¿âµÄ ODBC Çý¶¯.
FreeTDS¾ÍÊÇLinux Ï ÓÃÓÚÁ¬½ÓMS SQL Server ºÍ Sybase µÄÃâ·ÑODBC Çý¶¯
×¢Òâ, ±ØÐëÏÈ×° unixODBC, ÔÙ×° freetds
freetds-0.64 ÊÇÄ¿Ç°µÄ×îÐÂÎȶ¨°æ.
ÏÂÔØÔ´Âë°ü freetds-stable.tgz
# tar xzf freetds-stable.tgz
# ./configure --with-unixodbc=/usr/local --with-tdsver=8.0
# make
# su
# make install
½«°²×°µ½ /usr/local ÏÂ
Èç¹û unixODBCÊÇÔ´Âë°²×°, Ôò
--with-unixodbc=/usr/local
Èç¹û unixODBCÊÇrpm°²×°, Ôò
²»ÐèÒª¸ÃÑ¡Ïî
Èý, ÅäÖà unixODBC ºÍ FreeTDS
3.1 ÏòunixODBC µÇ¼Ç FreeTDS Çý¶¯
ÐÞ¸Ä /etc/odbcinst.ini (»òÕß/usr/local/etc/odbcinst.ini)
ÔÚÎļþÖÐÌí¼Ó
=========================== /etc/odbcinst.ini ======================
# Driver from FreeTDS package
# setup from FreeTDS package
[FREETDS]
Description = ODBC of FreeTDS for MS SQL 2000
Driver = /usr/local/lib/libtdsodbc.so
Setup = /usr/local/lib/libtds.so
FileUsage = 1
===================================================================
3.2 ÔÚ FreeTDS µÄÅäÖÃÎļþÖÐÌí¼ÓÖ¸Ïò¾ßÌåÊý¾Ý¿âµÄ·ÃÎÊÐÅÏ
Ïà¹ØÎĵµ£º
ÏÂÔصØÖ·£ºhttp://submain.download.csdn.net/
Ò²¿ÉÒÔÖ±½Ó¸´ÖÆÏÂÃæµÄÄÚÈÝ£¬²¢±£´æÎļþΪ“sql.stx”¡£
#TITLE=SQL
; SQL syntax file written by BUGSoft(BUGSoft@126.com).
#DELIMITER=,(){}[]-+*%/="'~!&|<>?:;.
#QUOTATION1='
#QUOTATION2="
#LINECOMMENT=--
#COMMENTON=/*
#COMMENTOFF=*/ ......
˼·:SQLÀᄀ¿ÉÄܵIJÉÓÃÁ½¸öÒýºÅ±ÕºÏ±äÁ¿;¶Ô±äÁ¿ÖеÄÒýºÅתÒå;¶Ô²»ÄܲÉÓÃ2¸öÒýºÅ±ÕºÏµÄ±äÁ¿,ÏÈÔ¤ÏÈÅжϱäÁ¿ÀàÐÍ;
·½°¸:
1 ËùÓзÇÊýÖµÔËËã(Èç×Ö·û,¼òµ¥ÊýÖµÐ͵ȵÈ)µÄSQL±äÁ¿¶¼¼ÓÒýºÅ;
2 ËùÓзÇÊýÖµÔËËãµÄSQL±äÁ¿µÄÖµ¶¼²ÉÓÃmagic_quotes_gpc» ......
ËäÈ»ÕâÊÇÎÒÕÒµ½×îÏêϸµÄÅäÖÃÃèÊö£¬µ«Êdz¢ÊÔ»¹ÊÇûÓгɹ¦¡£
1.ÏÂÔØOracle Client Package
.
´Ó
http://www.oracle.com/technology/software/tech/oci/instantclient/htdocs/winsoft.html
ÏÂÔØ
Instant
Client Package – Basic
°ü
(
±ê×¢
:All files
required to run OCI, OCCI, and JDBC-OC ......
Ä¿µÄ£º
°ÑARM linuxµÄ½»²æ¿ª·¢»·¾³£¬kernel, filesystem,
bootloder°²×°£¬²¢ÅäÖã¬Ê¹Æä¿ÉÒÔ±àÒëbootloder, kernel, ¿ÉÒÔnfs¸üÐÂÎļþϵͳ£»
×ÊÔ´£º
´úÂë:
arm-linux-toolchains.tgz
matrix5-kernel-v5.5.tgz
vivi.tar.gz
Jflash.tgz
root-for-nfs-v5.5.tgz
¹æ»®£º
½»²æ±àÒëÆ÷×°ÔÚ£º/usr/local/
ker ......
Í·Îļþ£ºsys/socket.h
Ïà¹Ø½á¹¹Ì壺
struct sockaddr
{
unsigned short sa_family; //µØÖ·×å
char sa_data[14]; //14×Ö½ÚÐÒéµØÖ·
};
struct sockaddr_in
{
short int sin_family; //µØÖ·×å
u ......