ASE on Linux FAQ

ÀÌ ±ÛÀº Sybase Adaptive Server on Linux¿¡ ´ëÇÑ FAQÀÔ´Ï´Ù.


ÀúÀÚ : Michael Peppler
¿ø¹® : http://www.mbay.net/~mpeppler/Linux-ASE-FAQ.html, ÃÖÁ¾ °»½ÅÀÏ 2000-03-17 07:23:26
¹ø¿ª : À±¼®Ãµ, 2000-04-06

¼­ ·Ð

Àú´Â ÀÛÀº ºÎÇÏ·®ÀÌ °É¸®´Â 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»çÀÇ ¹®ÇåµéÀº 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 ¼³Á¤¹æ¹ý¿¡ ´ëÇÑ ¼³¸íµµ ã¾Æ º¸½Ç¼ö ÀÖ½À´Ï´Ù.

À§ÀÇ Á¤º¸°¡ ¿©·¯ºÐµé²² µµ¿òÀÌ µÇ±æ ¹Ù¶ø´Ï´Ù.

¶Ç´Ù¸¥ ÁÁÀº ÂüÁ¶ ¹®ÇåÀº Sybase FAQÀÔ´Ï´Ù. ÀÌ°÷¿¡¼­´Â sybase¿¡ ´ëÇÑ ´Ù¾çÇÑ ÁÖÁ¦¿Í Á¤º¸¸¦ Á¢ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.

¸ñÂ÷


¾îµð¼­ ASE on Linux¸¦ ±¸ÇÒ ¼ö ÀÖ³ª¿ä?

http://linux.sybase.com¿¡¼­ °£´ÜÇÑ ¼³¹®¼­¿¡ ´äÇϽŠÈÄ ÃÖ½ÅÆÇÀ» ±¸ÇÏ½Ç ¼ö ÀÖ½À´Ï´Ù.

Servr Á¢¼Ó ¹æ¹ý

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·Î¼­µµ ÀÌ»ó¾øÀÌ ¿î¿ëµÉ ¼ö ÀÖ½À´Ï´Ù.

Memory ¼³Á¤ ¹æ¹ý

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"ÇàÀ» °ü½É±í°Ô º¸½Ã±â ¹Ù¶ø´Ï´Ù.

SybaseÀÇ rc scripts °ú IDENTITY °ª

ASE 11.0.3.3°ú 11.9.2¿¡¼­ Á¦°øµÇ´Â rc script´Â µ¶Àںв²¼­ stop¸í·ÉÀ» ÁÙ ¶§(¿¹, RedHat¿¡¼­´Â /etc/rc.d/init.d/sybase stop), killproc¸¦ ½á¼­ server¸¦ ¸ØÃß°Ô ÇÕ´Ï´Ù. ÀÌ´Â shutdown with nowait·Î¼­ server¿¡ ÀÛ¿ëÇϸç, ÀÌ·ÎÀÎÇÏ¿© database³»ÀÇ IDENTITY coloum¿¡ ºÎÁ¤Àû ¿µÇâÀ» ¹ÌĨ´Ï´Ù.(¿¹¸¦ µéÀÚ¸é, »ý¼ºµÈ °ªµé »çÀÌ¿¡ Å« ºó °ø°£À» ³²°ÜµÒ). À̸¦ °íÄ¡±â À§Çؼ­´Â, sybase rc scriptÀÇ stopºÎºÐÀ» ¹Ù²ÞÀ¸·Î¼­ killprocÀ» ¾²´Â ´ë½Å, syabseÀÇ shutdown±â´ÉÀ» »ç¿ëÇϵµ·Ï ÇÏ¿©¾ßÇÕ´Ï´Ù. ¾Æ·¡ÀÇ ºÎºÐÀ»
    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°¡ ¿î¿ëµÇ°í ÀÖ´Ù¸é, À̸í·É¹®À» ¿©·¯¹ø »ç¿ëÇÏ¼Å¾ß ÇÕ´Ï´Ù.
µ¶ÀÚ²²¼­´Â ¿øÇϽŴٸé, °¢ database¿¡ ´ëÇØ checkpoint¸í·ÉÀ» Ãß°¡ ÇÔÀ¸·Î½á ´ÙÀ½¹ø serverÀç±âµ¿½Ã ±âµ¿½ÃÀÇ recovery¼Óµµ¸¦ ¿Ã·ÁÁÙ¼ö ÀÖ½À´Ï´Ù.

Raw disk I/O

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Áö¿øÀº ÀØÁö ¾ÊÀ¸½Ã´õ±º¿ä. ^.^; )

sybperl on linux ¼³Ä¡

ÁÖ¿ä¹®Á¦´Â sybaseÀÇ SybaseÀÇ DB-Library¿Í -ldb and -lndbm libraries°£ÀÇ Ãæµ¹ ÀÔ´Ï´Ù. PerlÀº ÀÌµé ±âº» °ªÀ¸·Î library¿Í linkµÇ¾î ÀÖ½À´Ï´Ù. ±×·¯¹Ç·Î SybperlÀÇ Sybase::DBlib moduleÀº Á¦´ë·Î ÀÛµ¿µÇÁö ¾Ê½À´Ï´Ù.

±×·¡¼­ ¾Æ·¡¿¡ Á¦°¡ bulidÇÑ ¹æ¹ýÀ» º¸¿©µå¸³´Ï´Ù.

¿©·¯ºÐÀº ÀÌÁ¦ ÀÛµ¿µÇ´Â sybperlÀ» °¡Áö°Ô µÇ¾ú½À´Ï´Ù.

¶ÇÇÑ Sybperl FAQ¿¡¼­ À̹®Á¦¿¡ ´ëÇÑ Á¤º¸¸¦ ¾òÀ» ¼ö ÀÖÀ¸¸ç, README.linux¿¡¼­µµ ÀÐÀ¸½Ç¼ö ÀÖ½À´Ï´Ù.

Sybtcl on 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

Win NT/95/98¿¡¼­ÀÇ Á¢¼Ó¹æ¹ý

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´Â µ¿ÀÛÇϵµ·Ï ¸¸µé¼ö ¾ø¾ú½À´Ï´Ù.

Date Formats

ÀÌ ³»¿ëÀº free 11.0.3.3 ÆÇ¿¡ µé¾î ÀÖ´Â 10.0.4 verionÀÇ OpenClient¿¡ ÇØ´çµÇ´Â ³»¿ëÀÔ´Ï´Ù.)
Á¦°¡ OpenClient on LinuxÀÇ locale »ç¿ë¿¡ À־ Bug·Î ¿©°ÜÁö´Â °ÍÀÌ ÇÑ°¡Áö ÀÖ½À´Ï´Ù. ±âº»°ªÀ¸·Î, "select getdate()"¸¦ ½ÇÇàÇϸé ÀϹÝÀûÀ¸·Î ´Ù¸¥ OS¿¡¼­ ¿î¿ëµÇ´Â ASE¿¡¼­ ¹ÞÀ» ¼ö ÀÖ´Â "Jan 14 1999 7:50AM"À̶ó´Â °ª´ë½Å ´ÜÁö "01/15/99"¶ó´Â °ªÀ» ¹ÞÀ»¼ö ÀÖ½À´Ï´Ù. ÀÌ´Â /opt/sybase/locales/us_english/iso_1/common.locÈ­ÀÏÀ» °íÃļ­ ¼öÁ¤ÇÏ°í, ¼öÁ¤¹æ¹ýÀº ¾Æ·§ÁÙÀ» ÁÖ¼®¹® ó¸®Çϼ¼¿ä.
dateformat=mdy

¶Ç ´Ù¸¥ ¹æ¹ýÀº OpenClient API¸¦ ÀÌ¿ëÇÏ¿© default date converion formateÀ» ¹Ù²ãÁÖ´Â ¹æ¹ýÀÔ´Ï´Ù.(¿¹ Client Library¿¡¼­ cs_dt_info()) sybperlÀº ÀÌ ±â´ÉÀ» »ç¿ëÇÏ¿© °ªÀ» ¾ò½À´Ï´Ù.

Sybase Central on linux

Sybase 11.9.2´Â Sybase Central GUI admin toolÀÌ win32¿ëÀ¸·Î¸¸ Á¦°øµË´Ï´Ù. linux ÀÚü ½ÇÇàÈ­ÀÏÀÌ ÇÊ¿äÇϽôٸé Pascal Ginola°¡ °³¹ßÇÏ°í ÀÖ´Â GPLÀ» µû¸£´Â Like Sybase CentralÀ» »ç¿ëÇØ º¸¼¼¿ä. ÀÌ´Â http://perso.wanadoo.fr/laserquest/linux/¿¡¼­ ±¸ÇϽǼö ÀÖ½À´Ï´Ù.

tempdb¸¦ RAM disk¿¡ ¿Ã¸®´Â ¹æ¹ý

¸ÕÀú, kernel¿¡¼­ CONFIG_BLK_DEV_RAM = 1·Î ¼³Á¤ÇÏ¿© Ram disk¸¦ »ç¿ë°¡´ÉÇϵµ·Ï Çϼ¼¿ä. ÀÌ´Â /usr/src/linuxµð·ºÅ丮¿¡¼­ make menuconfig ȤÀº make xconfigµîÀ» »ç¿ëÇÏ¿© Block DevicesÇ׸ñ¿¡¼­ RAM disk support¸¦ °¡´ÉÇÏ°Ô ÇÏ¿©µµ µË´Ï´Ù. ±×¸®°í ³ª¼­ kernelÀ» ´Ù½Ã compileÇÏ¿© ÀÌ ¼³Á¤°ªÀÌ Àû¿ëµÈ kernelÀ» ¾ò½À´Ï´Ù.

Stefan Goebel´ÔÀÌ ¾Æ·¡ÀÇ ³»¿ëÀ» sybase.public.sqlserver.linux¿¡ ¿Ã·Á Áּ̽À´Ï´Ù:

file descriptorsÀÇ ÃÖ´ë°ª

CPU°¹¼ö º¸´Ù ¸¹Àº DB engineÀ» µ¹¸± ¼ö ÀÖ³ª¿ä?

FreeBSD¿¡¼­ÀÇ ¼³Ä¡¹æ¹ý

Wim ten Have´Â FreeBSD 3.3¿¡¼­ ASE 11.9.2 for LinuxÀÇ ½ÇÇà¿¡ ¼º°øÇÏ¿´½À´Ï´Ù. (1999³â10¿ù7ÀÏÀÚ ase-linux-list@isug.com¿¡¼­ ¹ßÃé)
Àú´Â 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.

Client°¡ ½ÇÇàµÇÁö ¾ÊÀ» ¶§

glibc 2.1¸¦ ±â¹ÝÀ¸·Î ÇÑ Liux ¹èÆ÷º» (¿¹ Red Hat 6.x)¿¡¼­, ÀÀ¿ë ÇÁ·Î±×·¥(sybperl's Sybase::CTlib °ú DBD::Sybase¸¦ Æ÷ÇÔÇÑ) ÇÁ·Î±×·¥ ½ÃÀÛÀÌ µÇÁö ¾ÊÀ»¼ö ÀÖ½À´Ï´Ù. ASE´Â date formatingµî°ú dataº¯È¯À» À§Çؼ­ SYBASE, LANG and LC_ALLȯ°æº¯¼ö¸¦ »ç¿ëÇÏ¿©, context allocation routineÀÌ locale ¼³Á¤À» ÀÐ¾î µéÀÔ´Ï´Ù.
locales.datÈ­ÀÏÀº ¾Æ·¡¿Í °°½À´Ï´Ù.
[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_1
SYBASE ȯ°æº¯¼ö´Â locates.datÈ­ÀÏÀ» ã´Âµ¥ »ç¿ëµÇ°í ( $SYBASE/locales/locales.date), LANGȤÀº LC_ALLȯ°æ º¯¼ö·Î locales.dat¾È¿¡¼­ ³»¿ëÀ» ã´Âµ¥ »ç¿ëµË´Ï´Ù. ÀÌ·¯ÇÑ ÀýÂ÷¸¦ °ÅÃÄ [linux]Ç׸ñÀ¸·Î ã¾Æ °£ÈÄ, locale = ´ÙÀ½ÀÇ Ã¹¹ø° ´Ü¾î°¡ LANGȤÀº LC_ALL ȯ°æ º¯¼ö¿Í °°Àº °ÍÀ» ã½À´Ï´Ù.
RedHat 6.x(±×¸®°í ¾Æ¸¶µµ ´Ù¸¥ ¹èÆ÷Æǵ鵵)Àº LC_ALLÀ» ±¹°¡¿Í ¾ð¾î¸¦ ÇÕÇÏ¿© ¼³Á¤ÇÕ´Ï´Ù. Á¦ computer¿¡¼­´Â ÀÌ °ªÀº us_EN (USA, English)·Î ¼³Á¤µË´Ï´Ù. ÀÌ °ªÀÌ localtes.dat°ª ¾È¿¡ ¾ø´Ù¸é ¹®Á¦°¡ ¹ß»ýµË´Ï´Ù.
Àú´Â Á¦ ÄÄÇ»ÅÍ¿¡¼­ ¾Æ·¡ÀÇ °ªÀ» locales.dat°ª¿¡ ³Ö¾î ÁÜÀ¸·Î½á ÀÌ·¯ÇÑ ¹®Á¦¸¦ ÇØ°áÇÏ¿´½À´Ï´Ù.
*** 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
¸¸¾à, ¿©·¯ºÐÀÇ ÀÀ¿ëÇÁ·Î±×·¥ÀÌ ½ÃÀ۵Ǹ鼭 Á×¾î ¹ö¸±¶§, ÀÌ È¯°æº¯¼ö¸¦ È®ÀÎÇÏ¿© º¸½Ã°í, ÀûÀýÈ÷ °íÃÄÁÖ¼¼¿ä.
ÀúÀÚ : Michael Peppler
¿ø¹® : http://www.mbay.net/~mpeppler/Linux-ASE-FAQ.html
¹ø¿ª : À±¼®Ãµ

Last modified: Fri Mar 17 07:23:26 PST 2000 (¿ø¹®) , 2000-04-06 (¹ø¿ª¹®)