ÀÌ ±ÛÀº Sybase Adaptive Server on Linux¿¡ ´ëÇÑ FAQÀÔ´Ï´Ù.
Àú´Â ÀÛÀº ºÎÇÏ·®ÀÌ °É¸®´Â linux¿ë sybase¸¦ ¿î¿ëÇÏ°í ÀÖ½À´Ï´Ù. ±×·¡¼, ASE(Sybase Adaptive Server ÀÌÇÏ ASE)¿Í ¿©·¯ Á¾·ùÀÇ Linux¿ÍÀÇ »óÈ£ ¿î¿ë¹× °ü°è¿¡ ´ëÇؼ ¾Æ¹«·± Ã¥ÀÓÀÖ´Â ¸»¾¸À» µå¸± ¼ö ¾øÀ½À» ¾çÁöÇÏ¿© Áֽʽÿä. ±×·¯³ª, À̱ÛÀ» Àû¾î°¡´Â °úÁ¤ÀÌ ¾ÆÁÖ Àç¹ÌÀÖ¾úÀ¸¸ç, °¡±î¿î Èʳ¯¿¡ ÀÌ·¯ÇÑ ºÎºÐ¿¡ ´ëÇؼµµ Æ÷ÇÔÇÏ°Ô µÉ °ÍÀ̶ó »ý°¢µË´Ï´Ù. Á¦°¡ ¸¸µç ÀÛÀº FAQ°¡ µµ¿òÀÌ µÇ½Ã±æ ¹Ù¶ó¸ç, ÀÌ ±ÛÀÇ ³»¿ëÀº International Sybase User Group¿¡¼ ¿î¿ëÇÏ´Â ASE on Linux mailing list(ase-linux-list@isug.com)°ú, news://forums.sybase.com/sybase.public.sqlserver.linux newsgroup¿¡¼ ¼öÁýÇÑ ³»¿ëÀ¸·Î ÀÌ·ç¾îÁ® ÀÖ½À´Ï´Ù.
ÀÌÁß mailing list´Â Aaron RossÀÇ µµ¿òÀ¸·Î http://forum.swarthmore.edu/epigone/ase-linux-list¿¡¼ °Ë»ö°¡´ÉÇÑ ÇüÅ·Π³²°ÜÁ® ÀÖÀ¸´Ï, °ü½ÉÀÖÀ¸½Å ºÐµéÀº ã¾Æ°¡ º¸½Ã±â ¹Ù¶ø´Ï´Ù.
Henrik Fuxelius´Â ASE 11.0.3.3 on Linux¸¦ Slackware 3.6¿¡ ¼³Ä¡ÇÏ´Â °£·«ÇÑ "how to"¸¦ ÀÛ¼ºÇÏ¿´À¸¸ç, ÀÌ´Â http://www.algonet.se/~fuxen/sybase.html¿¡¼ º¸½Ç ¼ö ÀÖ½À´Ï´Ù.
ASE on Linux mailing list¿¡ Teresa Larson´ÔÀÌ ¿Ã·ÁÁֽŠ±Û¿¡¼ Sybase¿¡ °ü·ÃÇÏ¿© internet »ó¿¡¼ ÂüÁ¶ÇÒ ¸¸ÇÑ ´Ù¸¥ °÷µéÀ» ³ª¿ÇÏ¿© ÁÖ¾ú½À´Ï´Ù.
¶Ç´Ù¸¥ ÁÁÀº ÂüÁ¶ ¹®ÇåÀº Sybase FAQÀÔ´Ï´Ù. ÀÌ°÷¿¡¼´Â sybase¿¡ ´ëÇÑ ´Ù¾çÇÑ ÁÖÁ¦¿Í Á¤º¸¸¦ Á¢ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.sybase»çÀÇ ¹®ÇåµéÀº http://sybooks.sybase.com/¿¡¼ ã¾Æ º¼¼ö ÀÖ½À´Ï´Ù.
sybase¿¡ ´ëÇÑ Áú¹®À» ÇÒ ¼ö ÀÖ´Â ´Ù¸¥ °÷µéÀº ¾Æ·¡¿Í °°½À´Ï´Ù.
comp.databases.sybase - ÀÌ°÷Àº sybase¿¡ ´ëÇÑ news groupÀÔ´Ï´Ù. ÀÌ°÷Àº ¿À·§µ¿¾È ¿î¿µµÇ¾î ¿Ô°í, ÀÌ°÷¿¡¼ ¸¹Àº °æÇèÀ» °¡Áø ºÐµé°ú, °í±Þ ±â¼úÀÚµéÀÌ Âü¿© ÇÏ°í ÀÖ½À´Ï´Ù.
SYBASE-L - ÀÌ°÷Àº ¿©·¯ÇÞ µ¿¾È ¿î¿µµÇ¾î ¿Â mailing listÀÔ´Ï´Ù. comp.database.sybae¿Í ¸¶Âù°¡Áöµµ ¸¹Àº Á¤º¸¸¦ ½ÀµæÇÒ ¼ö ÀÖÀ¸¸ç, ÀÌ list¿¡ °¡ÀÔÇϱâ À§Çؼ´Â LISTSERV@UCSBVM.UCSB.EDU À¸·Î (SUBSCRIBE SYBASE-L À̸§, ¼º) Çü½ÄÀÇ°¡ÀÔ ½Åû¼¸¦ º¸³»¼¼¿ä.
http://support.sybase.com/newsgroups - ÀÌ°÷Àº sybae¿¡ ÀÇÇؼ ¿î¿ëµÇ¸ç, ÀÌ°÷Àº ¿©·¯°¡Áö ÁÖÁ¦ (¿¹¸¦ µé¸é sqlserver.general, sqlserver.administration, sqlserver.linux, sqlserver.unix, powersoft.public.jaquar.cts, powersoft.public.powerbuilder.general ...)µî¿¡ ´ëÇؼ ´Ù·ç°í ÀÖ½À´Ï´Ù. news group¿¡ Á¢¼ÓÇϱâ À§ÇÑ µ¶ÀÚºÐÀÇ web browser ¼³Á¤¹æ¹ý¿¡ ´ëÇÑ ¼³¸íµµ ã¾Æ º¸½Ç¼ö ÀÖ½À´Ï´Ù.
À§ÀÇ Á¤º¸°¡ ¿©·¯ºÐµé²² µµ¿òÀÌ µÇ±æ ¹Ù¶ø´Ï´Ù.
http://linux.sybase.com¿¡¼ °£´ÜÇÑ ¼³¹®¼¿¡ ´äÇϽŠÈÄ ÃÖ½ÅÆÇÀ» ±¸ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.
2.0.36 ¹Ì¸¸ÀÇ Ä¿³Î¿¡¼´Â TCP/IPÀÇ ¹ö±×°¡ ÀÖ¾ú°í, ÀÌ´Â 2.0.36¹öÁ¯¿¡¼ Alan Cox¿¡ ÀÇÇØ °íÃÄÁ³½À´Ï´Ù. ¸¸¾à Á¤»óÀûÀ¸·Î ¿î¿ëÇÏ·Á ÇÑ´Ù¸é, 2.0.36, 2.1.122ÀÌÈÄÀÇ kernel·Î ¿î¿ëµÇ¾î¾ß ÇÕ´Ï´Ù.
ftp://ftp.us.kernel.org¿¡¼ »õ·Î¿î kernelÀ» °¡Á®°¡½Ç¼ö ÀÖ½À´Ï´Ù. ÀÌ°÷Àº Àü¼¼°èÀÇ ¿©·¯°÷¿¡¼ mirroringµÇ°í ÀÖÀ¸¹Ç·Î, ¿©·¯ºÐÀº À§ÀÇ url¿¡¼ ±¹°¡¸í(Çѱ¹ÀÎ °æ¿ì kr, AustraliaÀÎ °æ¿ìau, ¿µ±¹ÀÎ °æ¿ìuk, FinlandÀÎ °æ¿ì fiµî)À» ¹Ù²Ù¸é, ÀÚ±¹³»ÀÇ site¿¡ Á¢¼ÓÇÒ ¼ö ÀÖ½À´Ï´Ù. http¸¦ ÅëÇؼ http://www.us.kernel.org Á¢¼ÓÇÏ´Â °Íµµ °¡´ÉÇÕ´Ï´Ù.
Server·Î ¿î¿ëµÇ´Â systemÀÇ kernelÀº upgadeµÇ¾î¾ß ÇÏÁö¸¸, client´Â ÀÌÀü¹öÁ¯ÀÇ kernel·Î¼µµ ÀÌ»ó¾øÀÌ ¿î¿ëµÉ ¼ö ÀÖ½À´Ï´Ù.
default°ªÀ¸·Î Linux kernelÀº 32megabyteÀÇ shared memoryÀÇ ÇѰ踦 °¡Áö°í ÀÖ½À´Ï´Ù. ¸¸¾à µ¶Àںв²¼ sybase¿¡ ´õ ¸¹Àº ¸Þ¸ð¸®¸¦ ÇÒ´çÇÏ·Á°í ÇÑ´Ù¸é(sybaseÀÇ sp_configure ¸í·ÉÀ» ÀÌ¿ëÇÏ¿©), ¸ÕÀú linux kernelÀÇ shared memoryÇѰ踦 ´Ã·Á¾ß ÇÕ´Ï´Ù.
2.2.xÀÌ»óÀÇ kernel¿¡¼´Â shared memoryÀÇ ¾çÀ» linux ½Ãµ¿½Ã ¾Æ·¡¿Í °°Àº ¹æ¹ýÀ¸·Î ¼³Á¤ÇÏ¿© ÁÙ¼ö ÀÖ½À´Ï´Ù.
# echo 134217728 > /proc/sys/kernel/shmmaxÀ§ÀÇ °ªÀº shared memoryÀÇ ÃÖ´ë°ªÀ» 128mb·Î ¼³Á¤ÇÑ ¿¹ÀÔ´Ï´Ù. ¿©·¯ºÐµéÀº À§ÀÇ °£´ÜÇÑ ¸í·É¹®À» ÀÌ¿ëÇÏ¿© 1gbÀÌ»óÀÇ shared memory¸¦ ¼³Á¤ÇϽǼö ÀÖÁö¸¸, Àú´Â ¾ÆÁ÷±îÁö ½ÃµµÇØ º» ¹Ù°¡ ¾ø½À´Ï´Ù. Sybase FAQÀÇ 9.25Ç×À» ÂüÁ¶ÇÏ¿© º¸¼¼¿ä, ÀÌ°÷¿¡¼ 2.2.x¹öÁ¯ÀÇ »ó¼¼ÇÑ ¸Þ¸ð¸® ¼³Á¤¹æ¹ýÀ» º¸½Ç¼ö ÀÖ½À´Ï´Ù.(¿ªÀÚ ÁÖ: ÇöÀç À§ÀÇ page´Â À§Ä¡°¡ ¿Å°Ü Á³½À´Ï´Ù. ASE FAQ·Î Á¢¼ÓÇÏ¿© ã¾Æº¸¼¼¿ä.) 2.0.xÀÇ Ä¿³Î¿¡¼´Â /usr/src/linux/include/asm/shmparam.h¸¦ ¾Æ·¡¿Í °°ÀÌ °íÃÄÁà¾ß ÇÕ´Ï´Ù.
#define SHMMAX 0x2000000 /* max shared seg size (bytes) */
¸¦ ´ÙÀ½°ú °°ÀÌ
#define SHMMAX 0x4000000 /* max shared seg size (bytes) */
À§ÀÇ ¿¹´Â share memory segmentÀÇ Å©±â¸¦ 64 MB·Î ´Ã·ÁÁØ ¿¹ÀÔ´Ï´Ù.
¶ÇÇÑ, linux´Â ±âº» °ªÀ¸·Î 64 megabyteÀÇ ram±îÁö¸¸À» ÀνÄÇÏ´Â °ÍÀ¸·Î º¸ÀÔ´Ï´Ù. 64MBÀÌ»óÀÇ ramÀ» °¡Áø °æ¿ì, lilo.confÈÀÏ¿¡ "mem="¶ó´Â °ªÀ» ³Ö¾îÁÖ°í, lilo¸¦ µ¹·ÁÁ༠linux°¡ ÀÌ°ªÀ» ¹Þ¾ÆµéÀ̵µ·Ï ÇØ¾ß ÇÕ´Ï´Ù. ÇѺв²¼ 256 MB ramÀ» °¡Áø ÀÚ½ÅÀÇ linux box¿¡¼ÀÇ lilo.conf ¼³Á¤°ªÀ» º¸³»Áּż À̸¦ ¾Æ·¡¿¡ ½Æ½À´Ï´Ù.
boot=/dev/sda3 map=/map install=/boot.b prompt timeout=50 image=/vmlinuz label=linux root=/dev/sda3 initrd=/boot/initrd-2.0.34-0.6.img append="mem=256M" read-only
append="mem=256M"ÇàÀ» °ü½É±í°Ô º¸½Ã±â ¹Ù¶ø´Ï´Ù.
stop) echo -n "Shuting down Sybase ASE configured servers: " killproc dataserver killproc backupserver killproc monserver # Add your own openserver applications. echo ;;´ÙÀ½°ú °°ÀÌ °íÃÄÁÖ¼¼¿ä.
stop) echo -n "Stopping Sybase SQL Server" $SYBASE/bin/isql -Usa -P******* -S$DSQUERY <<STOPIT shutdown SYB_BACKUP with nowait go shutdown go exit STOPIT killproc monserver # Add your own openserver applications. echo ;;¹°·Ð µ¶ÀÚ²²¼´Â isql·Î º¸³»Áö´Â password¿Í $DSQUERYºÎºÐ¸¦ °íÃÄÁÖ¼Å¾ß ÇÕ´Ï´Ù. ¶Ç´Â À̸¦ Á÷Á¢ ÀÛ¼ºÇϼŵµ ¹«¹æÇÕ´Ï´Ù. ¶ÇÇÑ, ÇϳªÀÌ»óÀÇ server°¡ ¿î¿ëµÇ°í ÀÖ´Ù¸é, À̸í·É¹®À» ¿©·¯¹ø »ç¿ëÇÏ¼Å¾ß ÇÕ´Ï´Ù.
Linux´Â ÇöÀç raw disk I/O¸¦ Á¦°øÇÏÁö ¾Ê½À´Ï´Ù. ½ÉÁö¾î´Â, µ¶Àںв²¼ file name´ë½Å device nameÀ» »ç¿ëÇÏ´õ¶óµµ I/O´Â ¿©ÀüÈ÷ kernel¿¡ ÀÇÇØ ¿ä¸®µË´Ï´Ù. ÀÌ´Â file system¿¡ ´ëÇؼ ¿©ÀüÈ÷ bufferd write¸¦ ÇÔÀ» ÀǹÌÇÕ´Ï´Ù. ÀÌ´Â ASEÀÇ ¿î¿ë¼Óµµ¸¦ ºü¸£°Ô ÇÕ´Ï´Ù¸¸, ¿©·¯°¡Áö Àç³(¿¹¸¦ µéÀÚ¸é °©ÀÛ½º·± Á¤Àüµî)¿¡ ´ëÇÑ º¹±¸¸¦ Èûµé°Ô ÇÕ´Ï´Ù. ¿Ö³ÄÇϸé, ASE´Â disk¿¡ ÀúÀåÇÏ·Á´Â ³»¿ëÀÌ ¿©ÀüÈ÷ LinuxÀÇ disk cache¿¡ ³²¾Æ ÀÖ´õ¶óµµ, À̳»¿ëÀÌ disk ½á³Ö¾î Á³´Ù°í ¿©±â±â ¶§¹®ÀÔ´Ï´Ù.
11.9.2¹öÁ¯¿¡¼´Â ¸ðµç open call¿¡ ´ëÇؼ O_SYNC flag¸¦ »ç¿ëÇÏ°í ÀÖÀ¸¸ç, ÀÌ´Â kernelÀÌ ¸ðµç data¸¦ disk¿¡ Áï½Ã ½á ³Öµµ·Ï °¿äÇÏ´Â ±â´ÉÀ» ÇÕ´Ï´Ù. ±×·¯³ª, ÀÌ·Î ÀÎÇÏ¿© I/Oµî¿¡ ÀÖ¾î¼ ¼Óµµ°¡ ¶³¾îÁöÁö¸¸, ASE·Î ÇÏ¿©±Ý disk¿¡ ½á ³Ö¾ú´Ù°í »ý°¢ÇÏ´Â ³»¿ëÀÌ, ½ÇÁ¦·Î disk¿¡ ½á³Ö¾îÁö°í, bufferµî¿¡ ³²¾Æ ÀÖÁö ¾Ê¾Æ, Á¤ÀüµîÀÇ ¹®Á¦ ¹ß»ý½Ã, º¹±¸¸¦ º¸ÀåÇØ ÁÙ¼öµµ ÀÖ½À´Ï´Ù.
¿©·¯ºÐÀº RUN_server ÈÀÏ¿¡¼ "dataaserver" ¹Ù·Î ´ÙÀ½¿¡ -T1625 traceflag¸¦ »ç¿ëÇÔÀ¸·Î½á ÀÌ ±â´ÉÀ» ²¨ ÁÙ¼öµµ ÀÖ½À´Ï´Ù. ÁÖÀÇÇÒ Á¡Àº À̸í·ÉÀº serverÀüü¿¡ ´ëÇؼ ¿µÇâÀ» ¹ÌÄ£´Ù´Â Á¡ÀÔ´Ï´Ù. ¾ÕÀ¸·Î Ãâ½ÃµÉ 12.0 ¹öÁ¯Àº °¢ deviceº°·Î ÀÌ flag¸¦ ÁöÁ¤ÇÒ ¼ö ÀÖÀ» °ÍÀÔ´Ï´Ù. ¸î¸îºÐÀº sybase device¸¦ ³õ¾ÆµÑ file system¿¡ chattr +SÀ» »ç¿ëÇÏ´Â °ÍÀ» ¾ð±ÞÇÑ ¹Ù ÀÖ½À´Ï´Ù. man page¿¡ ÀÇÇϸé chattr +S´Â filesystemÀÇ bufferingÀ» ²¨ÁÖ´Â ±â´ÉÀ̸ç, º¹±¸¼ºÀ» ³ô¿© ÁÙ¼ö ÀÖ´Ù°í ÇÕ´Ï´Ù. ÀÌ´Â °³°³ÀÇ ÈÀÏ¿¡ Àû¿ëµµ °¡´ÉÇÏ´Ù°í ÇÕ´Ï´Ù.(¿¹ chattr +S master.dat) Àú´Â ¾ÆÁ÷ À̸¦ ½ÃÇèÇØ º» ¹Ù ¾ø½À´Ï´Ù.
Àú´Â ASE on LinxÀÇ º¹±¸¿Í °ü·ÃµÈ ³»¿ë¿¡ ´ëÇÏ¿© ´©±º°¡°¡ ½ÃÇèÇØ º¸´Â °Í¿¡ ´ëÇÏ¿© Ã¥ÀÓÀÌ ¾ø½À´Ï´Ù. Çö½ÃÁ¡¿¡ ÀÖ¾î¾î, RAID¿¡ sybaseÀÇ database¸¦ ¿Ã·ÁµÎ´Â °Í°ú °°Àº hardware°üÁ¡¿¡¼ÀÇ ÇØ°á¹ýµµ ÀÖÀ» ¼ö ÀÖ½À´Ï´Ù. raw disk I/O¸¦ Linux°¡ Áö¿øÇÏ´Â °Í¿¡ ´ëÇÑ ³íÀÇ´Â ÁøÇàÁßÀÌÁö¸¸, °ð Áö¿øµÇ¸®¶ó º¸Áö´Â ¾Ê½À´Ï´Ù.(¿ªÀÚÁÖ kernel 2.4ºÎÅÍ Áö¿øµÈ´Ù´Â ³»¿ëÀ» ´Ù¸¥ °÷¿¡¼ º» ¹Ù°¡ ÀÖ½À´Ï´Ù¸¸, kernel¿¡¼ Áö¿øÇØÁشٰí ÇÏ´õ¶óµµ ASE¿¡¼ Áö¿øÇØ ÁÙÁö´Â Á¤È®È÷ ¸ð¸£°Ú½À´Ï´Ù. ´ë¿ë·® DB¸¦ È°¿ëÇϽðųª, ASEÀÇ Àü¹®°¡ ºÐµé²²¼´Â ´Ù¸¥ »ý°¢À» °¡Áö½Ã´Â ºÐµéµµ ¸¹À¸½Ã°ÚÁö¸¸, raw disk I/O¸¦ »ç¿ëÇÏ´Â °Íº¸´Ù bufferd filesystemÀÇ »ç¿ëÇÒ ¶§ÀÇ ¼Óµµ Çâ»ó¶§¹®¿¡ ±×³É ±×´ë·Î »ç¿ëÇÏ°Ú´Ù´Â ºÐµéµµ mailing list»ó¿¡¼ ¸¹ÀÌ º¸ÀÔ´Ï´Ù. ´Ü, ÀÌ°æ¿ì ÀÚÁÖ back upÀ» ÇϽðí, ¾ÈÁ¤ÀûÀÎ hardwareÁö¿øÀº ÀØÁö ¾ÊÀ¸½Ã´õ±º¿ä. ^.^; )
±×·¡¼ ¾Æ·¡¿¡ Á¦°¡ bulidÇÑ ¹æ¹ýÀ» º¸¿©µå¸³´Ï´Ù.
./Configure -ders -Dlibs="-lnsl -lgdbm -ldl -lm -lc -lposix -lcrypt"ÁÖÀÇ: ¸¸¾à, ¿©·¯ºÐÀÌ ÀÌ¹Ì ¼³Ä¡µÈ sourceµéÀ» rebuildÇϽ÷Á¸é, ¿©·¯ºÐÀº ¹Ýµå½Ã config.sh³ª Policy.sh¸¦ Áö¿ì°Å³ª À̸§À» ¹Ù²Ù¼¼¿ä.
¶ÇÇÑ Sybperl FAQ¿¡¼ À̹®Á¦¿¡ ´ëÇÑ Á¤º¸¸¦ ¾òÀ» ¼ö ÀÖÀ¸¸ç, README.linux¿¡¼µµ ÀÐÀ¸½Ç¼ö ÀÖ½À´Ï´Ù.
Sybtcl Àº Tcl/Tk°¡ ¼³Ä¡µÇ¾î ÀÖ´Ù¸é Linux»ó¿¡¼´Â ¾î·Á¿î ÀÏÀÌ ¾Æ´Õ´Ï´Ù. Tcl 8.0 ȤÀº ±× ÀÌ»óÀ» ±ÇÀåÇÕ´Ï´Ù. RedHat 5.1À̻󿡴 rpmÈÀÏ·Î Tcl/Tk 8.0ÀÌ Æ÷ÇԵǾî ÀÖ½À´Ï´Ù.
SybtclÀ» ¼³Ä¡Çϱâ À§Çؼ, Sybtcl¹èÆ÷º»À» ±¸Çؼ ¾ÐÃàÀ» Ç®°í, sybtcl-2.5/unix driectory·Î µé¾î°£ ÈÄ ¾Æ·¡ÀÇ ¸í·ÉµéÀ» ½ÇÇàÇÕ´Ï´Ù.
configure make make install
¿©·¯ºÐÀº /usr directory¿¡ ¼³Ä¡Çϱâ À§Çؼ ¹Ýµå½Ã rootÀ̾î¾ß ÇÕ´Ï´Ù.
Wisqlite¸¦ ¼³Ä¡Çϱâ À§Çؼ´Â, ./samples directory¿¡¼ 'wisqlite'ÈÀÏÀ» /usr/bin·Î º¹»çÇØ ³ÖÀ¸¼¼¿ä. /usr/bin/wisqliteÀÇ Ã¹ÁÙÀ» ¾Æ·¡¿Í °°ÀÌ ¹Ù²ß´Ï´Ù.
#!/usr/bin/wish8.0
Shaun Lipscombe°¡ ÀÛ¼ºÇÑ °£·«ÇÑ How-to¸¦ ÀÐ¾î º¸¼¼¿ä.
ÀϹÝÀûÀ¸·Î Sybase»ç´Â server ±¸¸Å½Ã windows client library¸¦
Á¦°øÇÕ´Ï´Ù. linux¿ë 11.9.2¹öÁ¯Àº PC¿ë Client tool(sybase
centralÆ÷ÇÔ)À» Æ÷ÇÔÇÏ¿©, À̸¦ ÀÌ¿ëÇÏ¿© linux server¿¡ Á¢¼ÓÇÒ ¼ö ÀÖ½À´Ï´Ù.
Àú´Â ÀÌ package¸¦ »ç¿ëÇÔ¿¡ ÀÖ¾î¼ ºÒ¹ýº¹Á¦¿Í °ü·ÃµÈ ³»¿ëÀ» 100%È®½ÇÈ÷
¸»¾¸µå¸± ¼ö ¾ø½À´Ï´Ù. ¿©·¯ºÐÀº win32 client¸¦ download¹ÞÀ» ¼ö ÀÖ½À´Ï´Ù¸¸,
ÀÌ´Â ÀÌ·ÐÀûÀ¸·Î °³¹ß ¿ëµµ·Î¸¸ »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. »ó¾÷¿ëÀ¸·Î
»ç¿ëÇÏ·Á¸é, ¼ÒÁ¤¾×À» ÁöºÒ ÇÏ¿©¾ß ÇÕ´Ï´Ù. ( Àû¾îµµ server ÀÚü¿¡ ´ëÇؼ´Â
±×·¯ÇÕ´Ï´Ù. ´Ù½Ã Çѹø ¸»¾¸µå¸®Áö¸¸, Àú´Â win32 client tool¿¡ ´ëÇÏ¿© ¾î¶²
»óȲÀÎÁö Á¤È®È÷ ¸ð¸¨´Ï´Ù. ¸¸¾à ±Ã±ÝÇϽôٸé sybase¿¡ ¹°¾î º¸½Ã±â ¹Ù¶ø´Ï´Ù.
) À̵é ÈÀÏÀº
http://linux.sybase.com¿¡¼ °¡Á® ¿À½Ç¼ö ÀÖ½À´Ï´Ù.
Geoff Winkless´ÔÀÌ À̵é library¸¦ »ç¿ëÇÏ·Á°í ÇÏ¿´Áö¸¸ ctl3d32.dllÈÀÏÀÌ
¾ø´Ù°í ¾Ë·Á¿Ô½À´Ï´Ù¸¸, ÀÌ ÈÀÏÀº ÀϹÝÀûÀ¸·Î windows¼³Ä¡ ¿î¿ëÀÚ¶ó¸é °¡Áö°í
ÀÖÀ» °ÍÀÔ´Ï´Ù.
Openlink software»ç·Î ºÎÅÍ (http://www.openlinksw.com) ODBC driver¸¦ ±¸ÇÏ½Ç ¼ö ÀÖÀ¸¸ç, MS-SQL driver¸¦ ¾Æ·¡¿Í °°ÀÌ sybase data source¿¡ ¸Â°Ô ¼³Á¤ÇÏ¿© »ç¿ëÇÏ ½Ç ¼ö ÀÖ½À´Ï´Ù. (Carol Lerche´ÔÀÌ ¾Ë·Á Áּ̽À´Ï´Ù.)
ASE on Linux¿¡ Á¢¼ÓÇϱâ À§ÇÑ MS SQL client¼³Ä¡ ¹æ¹ý
¸ÕÀú, ¸î¸î ÇÁ·Î±×·¥(¿¹¸¦ µéÀÚ¸é MS SQL isql.exeµî)Àº MS/SQLÆÇÀÇ dblib¸¦ Á÷Á¢ÀûÀ¸·Î »ç¿ëÇÏ°í, ¶Ç´Ù¸¥ ÇÁ·Î±×·¥µé(¿¹¸¦ µéÀÚ¸é Perl DBI)´Â ODBC¸¦ ÅëÇÏ¿© À̸¦ »ç¿ëÇÕ´Ï´Ù. ±×·¯¹Ç·Î, Sybase server¸¦ MS/SQL dblib client¿¡ ¸Â°Ô ¼³Á¤ÇÏ´Â °Í¿¡¼ ½ÃÀÛÇÕ´Ï´Ù.
STEP 1: SQL Server Clinet Configurateion Utiltity¸¦ ½ÇÇàÇÕ´Ï´Ù.(½ÃÀÛ ¸Þ´ºÀÇ M$ SQL server 6.5 program group¿¡ ÀÖÀ» °ÍÀÔ´Ï´Ù.)
STEP 2: 'Advanced' tabÀÇ 'server'Ä¿¡ ¿©·¯ºÐÀÇ Linux/ASE serverÀÇ ÀûÀýÇÑ À̸§À» ³Ö½À´Ï´Ù.(¿¹¸¦ µéÀÚ¸é MS2Linux) 'DLL Name' tab¿¡¼ 'TCP/IP sockets'¸¦ ¼±ÅÃÇÕ´Ï´Ù. Connextion String Ä¿¡´Â DNS À̸§°ú port¸¦ Á¢¼ÓÇÏ·Á´Â linux ASE compute¿Í ÀÌ¿¡ µé¾î ÀÖ´Â SybaseÀÇ interfaceÈÀÏ°ú °°°Ô ½á ³Ö½À´Ï´Ù. port ¹øÈ£´Â ½°Ç¥·Î DNSÀ̸§°ú ³ª´©¾î ³Ö½À´Ï´Ù.
linux-sybase.anydomain.com,2345¾î¶² Æ÷Æ®¸¦ »ç¿ëÇϰųª ¹®Á¦°¡ µÇÁö ¾ÊÁö¸¸, ASE on LinuxÀÇ interfaceÈÀÏ¿¡ »ç¿ëµÈ port ¹øÈ£¿Í °°°Ô »ç¿ëÇÏ¼Å¾ß ÇÕ´Ï´Ù.
"Add/Modify" ¹öÆ°À» ´©¸£°í, ÀÌ °ªÀ» Adcanced Client Option ÀÇ list box¿¡ ³Ö¾î ÁÝ´Ï´Ù. ÀÌ´Â registrye¿¡ HKEY_LOCAL_MACHINE->SOFTWARE->Microsoft->MSSQLServer->Client->ConnectTo ¿¡ nameÀ¸·Î ¿©·¯ºÐÀÌ ³Ö¾îÁֽŠ(¿¹ MS2Linux)¿Í °ªÀ¸·Î "DBMSSOCN,linux-sybase.anydomain.com,2345"¸¦ ³Ö¾îÁֽŠ°Í°ú °°½À´Ï´Ù.
STEP 3: (¿©±â¼ Àú´Â NT¿¡¼ÀÇ ¼³Á¤¹æ¹ýÀ» ¼³¸íÇÕ´Ï´Ù¸¸, windows 9x¿¡ ÀÖ¾î¼ user, system DSN°£¿¡ Å« Â÷ÀÌ´Â ¾ø´Ù°í »ý°¢µË´Ï´Ù.) ½ÃÀÛ¸Þ´º-¼³Á¤-Á¦¾îÆÇ-ODBC¿¡¼ user DSNȤÀº system DSNÅÇÀ» ¼±ÅÃÇÏ¿© (ÀÌ´Â ¸ðµç NT »ç¿ëÀÚ°¡ »ç¿ëÇÒ °ÍÀÎÁö ¾Æ´ÑÁö¿¡ µû¶ó ¼±ÅÃÇϼ¼¿ä) Add ¹öÆ°À» ´©¸£¼¼¿ä.
STEP 4: "Create New Data Source" window¿¡¼ "Microsoft SQL Sever"³ª "SQL Server"¸¦ ¼±ÅÃÇÏ°í Finish¸¦ ´©¸£¼¼¿ä.
STEP 5: Data Source Name°ú Desctiption¸¦ ³Ö¾îÁÖ¼¼¿ä. Server Selection Combo Box¿¡¼ pull down½ÃŲÈÄ , Step2¿¡¼ ¼³Á¤ÇÑ ¼¹ö¸¦ ¼±ÅÃÇϼ¼¿ä. Network Library¶õ¿¡ "linux-sybase.anydomain.com,2345"¿Í Network Library¶õ¿¡ DBMSSOCNȤÀº "defualt"°ªÀ» ³Ö¾îÁÖ¼¼¿ä. ´Ü "use trusted connection"Àº ¼±ÅÃÇÏ¸é ¾ÈµË´Ï´Ù. OK¸¦ ´©¸£¼¼¿ä.
STEP 6 (optionional): Options¹öÆ°¿ï ´©¸£½Ã°í, database name°ú language¿Í ´Ù¸¥ ¼³Á¤Ä¡¸¦ ³Ö¾îÁÖ¼¼¿ä. ¸ðµç °ÍÀ» ¸¶Ä¡¸é ÀÌ ÄÀº ÀØÀ¸¼Åµµ µË´Ï´Ù.
¿©±â±îÁö ¸¶Ä£ÈÄ Àß ¾ÈµÉ¶§ : database¸¦ adminÇϱ⠱â´ÉÀ» ½ÇÇà½Ã, MS SQL server¿¡¼ È®ÀåµÇ°Å³ª, ÀÌ°÷¿¡¸¸ ÀÖ´Â DDL/DML/SQLÀ» ¹ÙÅÁÀ¸·Î ¿î¿ëµÈ´Â tool°ú GUI¸¦ ÅëÇÏ¿© »ý¼ºµÈ SQL¹®Àº À߸øµÈ SQL¹®À» º¸³»ÁÙ¼ö ÀÖ½À´Ï´Ù. ¶ÇÇÑ, MS/SQL ODBC driver¸¦ÅëÇÑ Syabse »ç¿ëÀº, Perl:ODBCÀº ÀÛµ¿ÇÏÁö¸¸, Java JDBC clinent´Â µ¿ÀÛÇϵµ·Ï ¸¸µé¼ö ¾ø¾ú½À´Ï´Ù.
dateformat=mdy
¶Ç ´Ù¸¥ ¹æ¹ýÀº OpenClient API¸¦ ÀÌ¿ëÇÏ¿© default date converion formateÀ» ¹Ù²ãÁÖ´Â ¹æ¹ýÀÔ´Ï´Ù.(¿¹ Client Library¿¡¼ cs_dt_info()) sybperlÀº ÀÌ ±â´ÉÀ» »ç¿ëÇÏ¿© °ªÀ» ¾ò½À´Ï´Ù.
Stefan Goebel´ÔÀÌ ¾Æ·¡ÀÇ ³»¿ëÀ» sybase.public.sqlserver.linux¿¡ ¿Ã·Á Áּ̽À´Ï´Ù:
troll#> /sbin/mke2fs -q -m0 /dev/ram 52000 -F > /dev/null troll#> /bin/mount /dev/ram /opt/sybase/tempdb -t ext2 > /dev/null troll#> /bin/chown sybase:sybase /opt/sybase/tempdb troll#> /bin/touch /opt/sybase/tempdb/tempspace.dat troll#> /bin/chown sybase:sybase /opt/sybase/tempdb/tempspace.datÀÌÁ¦ ¿ì¸®´Â tempdb¸¦ master·Î ºÎÅÍ ÀÌ »õ·Î¿î file·Î ¿Å°Ü¾ß ÇÕ´Ï´Ù. ±×·¡¼ »õ·Î¿î sybase device¸¦ ¸¸µé°í, tempdb¸¦ ÀÌ »õ·Î¿î device·Î È®ÀåÇÕ´Ï´Ù.
1> disk init name="tempdbdev", physname="/opt/sybase/tempdb/tempspace.dat", vdevno=XX, size=26000 (XX¸¦ ÀûÀýÇÑ vdevno·Î ¹Ù²Ù¾î ³ÖÀ¸¼¼¿ä!) 2> gotempdb¸¦ master·Î ºÎÅÍ ¶¼¾î ³»±â À§ÇÏ¿©, Àú´Â Sybase FAQ, Q1.7¸¦ ÀÐ¾î º¸½Ã±æ ±ÇÇÕ´Ï´Ù.
/sbin/mke2fs -q -m0 /dev/ram 52000 -F > /dev/null echo "Mounting ramdisk to /opt/sybase/tempdb..." /bin/mount /dev/ram /opt/sybase/tempdb -t ext2 > /dev/null /bin/chown sybase:sybase /opt/sybase/tempdb echo "Touching Tempspace..." /bin/touch /opt/sybase/tempdb/tempspace.dat /bin/chown sybase:sybase /opt/sybase/tempdb/tempspace.dat case "$1" in start) echo "Initializing ramdisk..." /sbin/mke2fs -q -m0 /dev/ram 52000 -F > /dev/null echo "Mounting ramdisk to /opt/sybase/tempdb..." /bin/mount /dev/ram /opt/sybase/tempdb -t ext2 > /dev/null /bin/chown sybase:sybase /opt/sybase/tempdb echo "Touching Tempspace..." /bin/touch /opt/sybase/tempdb/tempspace.dat /bin/chown sybase:sybase /opt/sybase/tempdb/tempspace.dat stop) echo "Shutting down Sybase ASE configured servers: " /sbin/killproc ${SYBASE}/bin/dataserver /sbin/killproc ${SYBASE}/bin/backupserver echo "Dismounting ramdisk /opt/sybase/tempdb" /bin/umount /opt/sybase/tempdb
$ setenv SRV_CPUCOUNT 8 <- CPU°¹¼ö°¡ 8°³ ±îÁö Á¸ÀçÇÔ
Àú´Â Linux/ASE 11.9.2¿Í Linux/OCS 11.1.1¸¦ FreeBSD¿¡ ¼³Ä¡ÇÏ¿´½À´Ï´Ù. FreeBSD 3.3-RELEASE #1´Â Linux¿Í ½ÇÇàÈÀÏ È£È¯À» Áö¿øÇÕ´Ï´Ù. ÀÛµ¿ »óȲÀº ¾Æ·¡¿Í °°½À´Ï´Ù.% uname -a FreeBSD calera.sybase.com 3.3-RELEASE FreeBSD 3.3-RELEASE #1: Thu Sep 30 19:32:09 CEST 1999 root@calera.sybase.com:/usr/src/sys/compile/SYBASE_KERNEL i386 % ps PID TT STAT TIME COMMAND 10273 p0 Ss 0:00.10 -csh (csh) 10294 p0 R+ 0:00.00 ps 266 v0- S 35:47.04 dataserver -d./master.dat -sSYBASE % ipcs Message Queues: T ID KEY MODE OWNER GROUP Shared Memory: T ID KEY MODE OWNER GROUP m 196608 1761877794 --rw------- sybase group Semaphores: T ID KEY MODE OWNER GROUP % isql -Usa -P 1> select @@version 2> go Adaptive Server Enterprise/11.9.2/P/Linux Intel/Linux 2.2.5 i586/OPT/Wed Aug 18 10:57:21 1999*** "Linux Interl"¿ëÀ¸·Î ¹èÆ÷µÇ´Â "ASE"´Â »ó±â»óȲÀ» °í·ÁÇϰųª, ½ÃÇèµÇ°Å³ª, Áö¿øÇÏÁö ¾Ê½À´Ï´Ù. Àú´Â È£±â½É°ú ½ÃÇè, ±³À°¸ñÀûÀ¸·Î »ó±â ¼³Á¤À» ½ÃÇèÇغýÀ´Ï´Ù. ;-) -- Wim ten Have.
[linux] locale = ENGLISH, us_english, iso_1 locale = FRENCH, french, iso_1 locale = GERMAN, german, iso_1 locale = C, us_english, iso_1 locale = default, us_english, iso_1SYBASE ȯ°æº¯¼ö´Â locates.datÈÀÏÀ» ã´Âµ¥ »ç¿ëµÇ°í ( $SYBASE/locales/locales.date), LANGȤÀº LC_ALLȯ°æ º¯¼ö·Î locales.dat¾È¿¡¼ ³»¿ëÀ» ã´Âµ¥ »ç¿ëµË´Ï´Ù. ÀÌ·¯ÇÑ ÀýÂ÷¸¦ °ÅÃÄ [linux]Ç׸ñÀ¸·Î ã¾Æ °£ÈÄ, locale = ´ÙÀ½ÀÇ Ã¹¹ø° ´Ü¾î°¡ LANGȤÀº LC_ALL ȯ°æ º¯¼ö¿Í °°Àº °ÍÀ» ã½À´Ï´Ù.
*** locales.dat.orig Tue Jan 18 17:48:32 2000 --- locales.dat Thu Dec 23 10:14:39 1999 *************** *** 166,171 **** --- 166,172 ---- locale = default, us_english, iso_1 [linux] + locale = en_US, us_english, iso_1 locale = ENGLISH, us_english, iso_1 locale = FRENCH, french, iso_1 locale = GERMAN, german, iso_1¸¸¾à, ¿©·¯ºÐÀÇ ÀÀ¿ëÇÁ·Î±×·¥ÀÌ ½ÃÀÛµÇ¸é¼ Á×¾î ¹ö¸±¶§, ÀÌ È¯°æº¯¼ö¸¦ È®ÀÎÇÏ¿© º¸½Ã°í, ÀûÀýÈ÷ °íÃÄÁÖ¼¼¿ä.
Last modified: Fri Mar 17 07:23:26 PST 2000 (¿ø¹®) , 2000-04-06 (¹ø¿ª¹®)