使用securecrt登陸rhel,編碼utf8,訪問sybase問題

發表於2012-05-27
linux下用命令isql -Usa -P登陸sybase出現編碼zh_CN.UTF-8不存在在檔案下doesn't exist in your /home/sybase/locales/locales.dat

  The context allocation routine failed when it tried to load localization files!!

  One or more following problems may caused the failure

  Your sybase home directory is /home/sybase. Check the environment variable SYBASE if it is not the one you want!

  Using locale name "zh_CN.UTF-8" defined in environment variable LANG

  Locale name "zh_CN.UTF-8" doesn't exist in your /home/sybase/locales/locales.dat file

  An error occurred when attempting to allocate localization-related structures.

  [sybase@fox5-2 ~]$ which locales.dat

  /usr/bin/which: no locales.dat in (/home/sybase/ASE-12_5/bin:/home/sybase/ASE-12_5/install:/home/sybase/OCS-12_5/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/opt/real/RealPlayer:/home/sybase/bin)

  解決方法:/home/sybase/locales目錄下開啟locales.dat檔案,在[linux]下面新增一行locale = zh_CN.UTF-8, chinese, utf8[@more@]

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24870090/viewspace-1058356/,如需轉載,請註明出處,否則將追究法律責任。

相關文章