{"id":973,"date":"2010-11-03T07:46:14","date_gmt":"2010-11-03T07:46:14","guid":{"rendered":"http:\/\/pchero21.com\/?p=973"},"modified":"2010-11-03T07:46:14","modified_gmt":"2010-11-03T07:46:14","slug":"sybase-init-script-and-locale-error","status":"publish","type":"post","link":"http:\/\/pchero21.com\/?p=973","title":{"rendered":"SYBASE &#8211; init Script and locale error"},"content":{"rendered":"<p>SYBASE \uc5d0\uc11c \ub2e4\uc74c\uc758 init \uc2a4\ud06c\ub9bd\ud2b8\ub97c \uc0ac\uc6a9\uc911 stop\uc2dc locale \uc5d0\ub7ec\uac00 \ub098\ud0c0\ub098\ub294 \uac83\uc744 \ud655\uc778\ud588\ub2e4.<\/p>\n<blockquote><p>jonathan@jonathan-laptop:\/opt\/sybase\/ASE-15_0\/install$ cat \/etc\/init.d\/sybase <br \/>#!\/bin\/sh<br \/>#<br \/># Startup script for Sybase ASE<br \/># <br \/># description: Sybase Adaptive Server Enterprise<br \/># is a SQL database server.<br \/># processname: dataserver<br \/>&nbsp; <\/p>\n<p>SYBASE=\/opt\/sybase<br \/>SERVER=JONATHANLAPTOP<br \/>LANG=ko_KR.euckr<br \/>export LANG<br \/>&nbsp; <\/p>\n<p># Source environment variables.<br \/>. $SYBASE\/SYBASE.sh<br \/>&nbsp; <\/p>\n<p># Find the name of the script<br \/>NAME=`basename $0`<br \/>&nbsp; <\/p>\n<p># For SELinux we need to use &#8216;runuser&#8217; not &#8216;su&#8217;<br \/>if [ -x \/sbin\/runuser ]<br \/>then<br \/>&nbsp; &nbsp; SU=runuser<br \/>else<br \/>&nbsp; &nbsp; SU=su<br \/>fi<br \/>&nbsp; <\/p>\n<p>start() {<br \/>&nbsp; &nbsp; SYBASE_START=$&#8221;Starting ${NAME} service: &#8220;<br \/>&nbsp; &nbsp; $SU root -c &#8220;. $SYBASE\/SYBASE.sh; $SYBASE\/$SYBASE_ASE\/install\/startserver <br \/>-f $SYBASE\/$SYBASE_ASE\/install\/RUN_${SERVER} &gt; \/dev\/null&#8221;<br \/>&nbsp; &nbsp; ret=$? <br \/>&nbsp; &nbsp; if [ $ret -eq 0 ]<br \/>&nbsp; &nbsp; then<br \/>&nbsp; &nbsp; &nbsp; &nbsp; echo &#8220;$SYBASE_START Success.&#8221;<br \/>&nbsp; &nbsp; else<br \/>&nbsp; &nbsp; &nbsp; &nbsp; echo &#8220;$SYBASE_START Failed!&#8221;<br \/>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; exit 1<br \/>&nbsp; &nbsp; fi<br \/>}<br \/>&nbsp; <\/p>\n<p>stop() {<br \/>&nbsp; &nbsp; echo -n $&#8221;Stopping ${NAME} service: &#8220;<br \/>&nbsp; &nbsp; $SU root -c &#8220;. $SYBASE\/SYBASE.sh; isql -S $SERVER -U sa -P &#8221; &lt; <br \/>$SYBASE\/$SYBASE_ASE\/upgrade\/shutdown.sql &gt; \/dev\/null&#8221;<br \/>&nbsp; &nbsp; ret=$?<br \/>&nbsp; &nbsp; if [ $ret -eq 0 ]<br \/>&nbsp; &nbsp; then<br \/>&nbsp; &nbsp; &nbsp; &nbsp; echo &#8220;Success.&#8221;<br \/>&nbsp; &nbsp; else<br \/>&nbsp; &nbsp; &nbsp; &nbsp; echo &#8220;Failed!&#8221;<br \/>&nbsp; &nbsp; &nbsp; &nbsp; exit 1<br \/>&nbsp; &nbsp; fi<br \/>}<br \/>&nbsp; <\/p>\n<p>restart() {<br \/>&nbsp; &nbsp; stop<br \/>&nbsp; &nbsp; start<br \/>}<br \/>&nbsp; <\/p>\n<p>case &#8220;$1&#8221; in<br \/>&nbsp; <\/p>\n<p>&nbsp; &nbsp; start)<br \/>&nbsp; &nbsp; &nbsp; &nbsp; start<br \/>&nbsp; &nbsp; &nbsp; &nbsp; ;;<br \/>&nbsp; &nbsp; stop)<br \/>&nbsp; &nbsp; &nbsp; &nbsp; stop<br \/>&nbsp; &nbsp; &nbsp; &nbsp; ;;<br \/>&nbsp; &nbsp; restart)<br \/>&nbsp; &nbsp; &nbsp; &nbsp; restart<br \/>&nbsp; &nbsp; &nbsp; &nbsp; ;;<br \/>&nbsp; &nbsp; *)<br \/>&nbsp; &nbsp; &nbsp; &nbsp; echo $&#8221;Usage: $0 {start|stop|restart}&#8221;<br \/>&nbsp; &nbsp; &nbsp; &nbsp; exit 1<br \/>esac<br \/>exit 0<\/p><\/blockquote>\n<p>&nbsp;\uc5d0\ub7ec\uba54\uc2dc\uc9c0\uc758 \ub0b4\uc6a9\uc740 \ub2e4\uc74c\uacfc \uac19\ub2e4.<\/p>\n<blockquote><p>jonathan@jonathan-laptop:\/opt\/sybase\/ASE-15_0\/install$ sudo \/etc\/init.d\/sybase stop<br \/>$Stopping sybase service: <\/p>\n<p>The context allocation routine failed when it tried to load localization files!!<br \/>One or more following problems may caused the failure<\/p>\n<p>Your sybase home directory is \/opt\/sybase. Check the environment variable SYBASE if it is not the one you want!<br \/>Using locale name &#8220;ko_KR.UTF-8&#8221; defined in environment variable LANG<br \/>Locale name &#8220;ko_KR.UTF-8&#8221; doesn&#8217;t exist in your \/opt\/sybase\/locales\/locales.dat file<br \/>Success.<\/p><\/blockquote>\n<p>&nbsp;\uc81c\uc77c \ub9c8\uc9c0\ub9c9 \uba54\uc2dc\uc9c0\uc5d0\ub294 Success \ub77c\uace0 \ub098\uc640\uc788\uc9c0\ub9cc ps -ef|grep sybase \uba85\ub839\uc5b4\ub85c \ud655\uc778\ud574\ubcf8 \uacb0\uacfc \ub300\ubd80\ubd84\uc758 \ud504\ub85c\uc138\uc2a4\ub4e4\uc774 \uadf8\ub300\ub85c \ub3cc\uace0\uc788\ub294 \uac83\uc744 \ud655\uc778\ud560 \uc218 \uc788\uc5c8\ub2e4.<\/p>\n<p>&nbsp;\ubb34\uc5c7\uc774 \ubb38\uc81c\uc77c\uae4c.<\/p>\n<p>&nbsp;\uc5d0\ub7ec \uba54\uc2dc\uc9c0\uc5d0\uc11c \ud574\ub2f5\uc744 \ucc3e\uc558\ub2e4. \ub0b4\uac00 \uc0ac\uc6a9\ud558\ub294 &#8220;ko_KR.UTF-8&#8221; locale\uc744 \uc815\uc758(\ucc3e\uc744 \uc218)\uc5c6\ub2e4\ub294 \uba54\uc2dc\uc9c0\uc600\ub2e4. <\/p>\n<p>&nbsp;\uba3c\uc800 \ub0b4\uac00 \uc0ac\uc6a9\ud558\ub294 \ub9ac\ub205\uc2a4\uc5d0\uc11c\uc758 \ub85c\ucf00\uc77c\uc744 \ubcc0\uacbd\ud558\ub824\uace0 \ud588\uc73c\ub098 \uc0dd\uac01\ub418\ub85c \uc798 \ub418\uc9c0 \uc54a\uc558\ub2e4. \uc65c\ub0d0\ud558\uba74 SYBASE\uc5d0\uc11c \uc5b4\ub5a4 \ub85c\ucf00\uc77c\ub4e4\uc744 \uc9c0\uc6d0\ud558\ub294\uc9c0 \uc544\uc9c1 \ubab0\ub790\uae30 \ub54c\ubb38\uc774\ub2e4.<\/p>\n<p>&nbsp;SYBASE\uc5d0\uc11c \uc9c0\uc6d0\ud558\ub294 locale \ud558\ub294 \ub85c\ucf00\uc77c\uc740 \ub2e4\uc74c\uc758 \ud30c\uc77c\uc5d0\uc11c \ucc3e\uc744 \uc218 \uc788\ub2e4.<\/p>\n<blockquote><p>\/opt\/sybase\/locales\/locales.dat<\/p><\/blockquote>\n<p>&nbsp;\ubc29\ubc95\uc740 \ub450\uac00\uc9c0\uac00 \uc788\ub2e4. SYBASE\uc5d0\uc11c \uc9c0\uc6d0\ud558\ub294 \ub85c\ucf00\uc77c\uc5d0 \ub9de\ucd94\uac70\ub098 \uc704\uc758 \ud30c\uc77c\uc5d0 \uc790\uc2e0\uc774 \uc0ac\uc6a9\ud558\ub294 \ub85c\ucf00\uc77c\uc744 \ucd94\uac00\ud558\uac70\ub098.<\/p>\n<p>&nbsp;\ud544\uc790\ub294 \ub85c\ucf00\uc77c\uc744 \ucd94\uac00\ud558\ub294 \ubc29\ubc95\uc744 \uc120\ud0dd\ud558\uc600\ub2e4.<\/p>\n<blockquote><p>\/opt\/sybase\/locales\/locales.dat<\/p><\/blockquote>\n<p>&nbsp;\ud30c\uc77c\uc744 \uc5f4\uc5b4 \uc790\uc2e0\uc758 OS\ub97c \ucc3e\uc544 \uc544\ub798\ucabd\uc5d0 \uc591\uc2dd\uc5d0 \ub9de\uac8c \ucd94\uac00\ud558\ub3c4\ub85d \ud558\uc790.<\/p>\n<blockquote><p>[linux]<br \/><span style=\"font-weight: bold;\">&nbsp; &nbsp; &nbsp; &nbsp; locale = ko_KR.UTF-8, korean, eucksc<\/span><br \/>&nbsp; &nbsp; &nbsp; &nbsp; locale = ko_KR.949, korean, cp949<br \/>&nbsp; &nbsp; &nbsp; &nbsp; locale = korean.euc, korean, eucksc<\/p><\/blockquote>\n<p>\uc704\ucabd \uad75\uac8c \ud45c\uc2dc\ud55c \ubd80\ubd84\uc774 \ud544\uc790\uac00 \ucd94\uac00\ud55c \ubd80\ubd84\uc774\ub2e4.<\/p>\n<p>\uc774\ud6c4, \uc544\ubb34\ub7f0 \uc5d0\ub7ec \uba54\uc2dc\uc9c0 \uc5c6\uc774 \uc815\uc0c1\uc801\uc73c\ub85c \uc885\ub8cc\uac00 \ub418\ub294 \uac83\uc744 \ud655\uc778\ud560 \uc218 \uc788\uc5c8\ub2e4.<\/p>\n<blockquote><p>jonathan@jonathan-laptop:\/opt\/sybase\/ASE-15_0\/install$ sudo \/etc\/init.d\/sybase stop<br \/>$Stopping sybase service: Success.<\/p><\/blockquote>\n<p>\ud14c\uc2a4\ud2b8 OS : UbuntuLinux_Desktop-10.04<\/p>\n","protected":false},"excerpt":{"rendered":"<p>SYBASE \uc5d0\uc11c \ub2e4\uc74c\uc758 init \uc2a4\ud06c\ub9bd\ud2b8\ub97c \uc0ac\uc6a9\uc911 stop\uc2dc locale \uc5d0\ub7ec\uac00 \ub098\ud0c0\ub098\ub294 \uac83\uc744 \ud655\uc778\ud588\ub2e4. jonathan@jonathan-laptop:\/opt\/sybase\/ASE-15_0\/install$ cat \/etc\/init.d\/sybase #!\/bin\/sh## Startup script for Sybase ASE# # description: Sybase Adaptive Server Enterprise# is a SQL database server.# processname: dataserver&nbsp; SYBASE=\/opt\/sybaseSERVER=JONATHANLAPTOPLANG=ko_KR.euckrexport LANG&nbsp; # Source environment variables.. &hellip; <a href=\"http:\/\/pchero21.com\/?p=973\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17],"tags":[166,241,243,369,395],"_links":{"self":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts\/973"}],"collection":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=973"}],"version-history":[{"count":0,"href":"http:\/\/pchero21.com\/index.php?rest_route=\/wp\/v2\/posts\/973\/revisions"}],"wp:attachment":[{"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=973"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=973"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/pchero21.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}