ITPub博客

首页 > 数据库 > 数据库开发技术 > 使用securecrt登陆rhel,编码utf8,访问sybase问题

使用securecrt登陆rhel,编码utf8,访问sybase问题

原创 数据库开发技术 作者: 时间:2012-05-27 16:53:26 0 删除 编辑
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博客 ” ,链接:https://blog.itpub.net/24870090/viewspace-1058356/ ,如需转载,请注明出处,否则将追究法律责任。

上一篇: which 的作用
请登录后发表评论 登录
全部评论
  • 博文量
    89
  • 访问量
    394812