Korea FreeBSD Users Group News, Internal, Projects, Home
Software, Support, Documentation

Re:[Q] FreeBSD ¿¡¼­ MS SQL Server¸¦ ¿¬°áÇÒ ¼ö ÀÖ½À´Ï±î?



[ ³¯Â¥¼ø »öÀÎ ] [ ´ñ±Û¼ø »öÀÎ ] [ ÃÖ»óÀ§ »öÀÎ]

[ÀÌÀü ±Û] [´ÙÀ½ ±Û] [ÀÌÀü ´ñ±Û] [´ÙÀ½ ´ñ±Û]


°ÁÀº ¾ÈµÉÅÙµ¥¿©...

¾Æ·¡¿¡ ÇÔ °¡º¸¼¼¿©.

http://www.freetds.org

http://www.chilisoft.com


¸¸¾à NT(2000)/unix¿¡¼­ 

PHP¸¦ ¾²½Å´Ù¸é,

¾Æ·¡ ÇãÁ¢/³ÊÀýÇÑ ¼³¸íÀ» µ¿ºÀÇÕ´Ï´Ù.

===========================================================

http://www.freetds.org -->¿¡ °¡¼Å¼­

"freetds0.51"À» ´Ù¿î ¹ÞÀ¸¼¼¿©.

±×·± ´ÙÀ½, ¿øÇϽô µð·ºÅ丮¿¡ ¾ÐÃàÀ»

Ǫ¼¼¿©. 


º¸ÅëÀº µðÆúÆ®·Î "/usr/local/freetds"

·Î ÇÕ´Ï´Ù. ¸®´ª½º¿Í ´Þ¸®, ÇÁºñ¿¡¼­ make¸¦ 

ÇÒ¶§´Â "gmake(¾ø´Ù¸é ¼³Ä¡)"¸¦ ¾´´ä´Ï´Ù.

ÀÌÁ¦ Çѹø µé¾î°¡ º¸Á®.


Cf, ÇØ´ç SQL_SERVER¿¡ 

SQL¼­ºñ½ºÆÑ1.0 ÀÌ»óÀ» ¼³Ä¡ÇØ ³õÀ¸¼Å¾ß ÇØ¿©.

ÀÌ»ó »çÀü Áغñ ³¡!


°£´ÜÇÑ ÀÛ¾÷µð·ºÅ丮 Çѹø ¸¸µé¾î º¸Á®...

[jughead : ns1 /usr/local]# mkdir work

[jughead : ns1 /usr/local]# cd work

ÀÌÁ¦ ¹Þ¾ÆµÎ¼Ì´ø "freetds source"¸¦ "work" µð·º¿¡ ¿Å°Üº¸Á®.

[jughead : ns1 /usr/local/work]# mv /www/user/jughead/freetds-0.51 .

"ll" ¸í·ÉÀ» ÇϽñ¸, ¿Å°ÜÁ³´ÂÁö È®ÀÎÀ» ÇØº¾´Ï´Ù.
Á¦´ë·Î ¿Å°ÜÁ³À¸¸é, °è¼Ó...

[jughead : ns1 /usr/local/work]# ll
-rw-r--r--   1 root  wheel    234447 Nov 28 08:06 freetds-0.51.tgz È®ÀÎ
drwxr-xr-x   2 200   wheel      1024 Jul  8 13:49 gd1.3
-rw-r--r--   1 jug  jug     113279 Jul  8 13:28 gd1.3.tar.gz
-rw-r--r--   1 jug  jug   13075493 Jul  8 13:32 swing1_1_1.zip     

¾ÐÃàÀ» DZ´Ï´Ù.

[jughead : ns1 /usr/local/work]# tar -xvzf freetds-0.51.tgz

¸Õ°¡ ÁÖ¸£¸¤...

[jughead : ns1 /usr/local/work]# cd freetds-0.51

[jughead : ns1 /usr/local/work/freetds-0.51]# ./configure --prefix=/usr/local/freetds --with-tdsver=7.0 --enable-msdblib --enable-dbmfix --with-gnu-ld --enable-shared 

[jughead : ns1 /usr/local/work/freetds-0.51]# gmake; gmake install

ÀÌÁ¦ ¼³Ä¡´Â ³¡³µ³×¿©. ÀÌÁ¦ Á¦´ë·Î ÀνºÅçÀÌ µÇ¾ú´ÂÁö È®ÀÎÇØ º¼±î¿©?

[jughead : ns1 /usr/local/work/freetds-0.51]# cd /usr/local/freetds

[jughead : ns1 /usr/local/freetds]# ll
drwxr-xr-x  2 root  wheel   512 Nov 28 08:09 include
-rw-r--r--  1 root  wheel  1683 Nov 28 08:15 interfaces
drwxr-xr-x  2 root  wheel   512 Nov 28 08:09 lib                       

ÀÌÁ¦ ȯ°æÀ» "Configuration" ÇØÁà¾ß °Ú³×¿©.

"shell"ÀÇ Á¾·ù¿¡ µû¶ó ÂÀ ´Ù¸¨´Ï´Ù. 

¹°·Ð, 

ÀÚ½ÅÀÌ ¾²°í ÀÖ´Â shellÀ» ±âÁØ »ï¾Æ¾ß ÇÕ´Ï´Ù. 

"csh"·Î ÇØº¸Á®.

etc µð·ºÅ丮·Î À§Ä¡¸¦ ¿Å°Ü º¼±î¿©?

[jughead : ns1 /usr/local/freetds]# cd /etc

vi¸¦ ¿±´Ï´Ù.

[jughead : ns1 /etc]# vi csh.cshrc
»ðÀÔ¸ðµå: "i"
=====================================================================
# $FreeBSD: src/etc/csh.cshrc,v 1.2.2.1 1999/08/29 14:18:40 peter Exp $
#
# System-wide .cshrc file for csh(1).    

setenv SYBASE /usr/local/freetds 
setenv LD_LIBRARY_PATH $SYBASE/lib 
=====================================================================
¸í·ÉÇà ¸ðµå: "esc key"
shift colon(:)wq!

[jughead : ns1 /etc]# source csh.cshrc

[jughead : ns1 /etc]# env

¸Õ°¡ ÁÖ¸£¸¤ ³ª¿ÀÁ®? 

À§¿¡¼­ ÀÔ·ÂÇÑ °ÍÀÌ Á¦´ë·Î  ÀԷµǾî ÀÖ³ª¿©?


±×·³ ÀÌÁ¨, 

´Ô²²¼­ ¿¬°áÇϽðíÀÚ ÇÏ´Â MS_SQL¿¡ Á¢¼ÓÇϽÇ

Á¤º¸¸¦ freetds µð·º¿¡ ÀÖ´Â interfaces ÆÄÀÏ·Î ÆíÁýÇØ º¸Á®.

[jughead : ns1 /etc]# cd /usr/local/freetds

[jughead : ns1 /usr/local/freetds]# vi interfaces
====================================================================
# So putting it all together, let's say you have an NT box running a SQL Server
# named "myserver" at ip address 10.0.2.1 and we are connecting using version
# 4.2 of the protocol, your interfaces entry would look
# like this: (without the comments)
#
#myserver
#       query tcp tds4.2 10.0.2.1 1433
#
 
JDBC
        query tcp tds5.0 192.138.151.39 4444
        master tcp tds5.0 192.138.151.39 4444
 
myserver
        query tcp ether 127.0.0.1 4000
        master tcp ether 127.0.0.1 4000
 
myserver2
        query tcp ether 127.0.0.1 4001
        master tcp ether 127.0.0.1 4001

211.62.xxx.xxx (ÀÌ ºÎºÐ¿¡ ¼­¹ö À̸§À̳ª IP ADDR¸¦ ±âÀÔ)
        query tcp tds7.0 211.62.xxx.xxx 1433 (¿©±â "1433"Àº MS_SQL¿¡¼­
        master tcp tds7.0 211.62.xxx.xxx 1433 »ç¿ëÇÏ´Â µðÆúÆ®Æ÷Æ®!)
==================================================================
ÀúÀåÇÏ°í ³ª¿À¼¼¿©. ÀÌ»ó ³¡!!!




-------------------------------------------------
DreamWiz Free Mail @ http://www.dreamwiz.com/
DreamSearch Click the world!!! http://search.dreamwiz.com/


--
To Unsubscribe: send mail to majordomo@kr.FreeBSD.org
with "unsubscribe questions" in the BODY of the message



[ ³¯Â¥¼ø »öÀÎ ] [ ´ñ±Û¼ø »öÀÎ ] [ ÃÖ»óÀ§ »öÀÎ]

Copyright © 1998-2005 Korea FreeBSD Users Group.
All rights reserved. webmaster at kr.FreeBSD.org
$Date: 2002/03/26 13:29:57 $
Powered by FreeBSD