你好,游客 登录 注册 搜索
背景:
阅读新闻

Linux sybase执行isql报错

[日期:2012-09-01] 来源:Linux社区  作者:longqidong [字体:大 中 小]

在RedHat as 4上面安装完sybase 12.5.4后,初始化完毕,执行isql -Usa -P报错:

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 /opt/sybase-12.5. 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 /opt/sybase-12.5/locales/locales.dat file
An error occurred when attempting to allocate localization-related structures

这是由于LANG设置错误导致,执行export LANG=C,再次执行
isql -Usa -P
还是报错:
CT-LIBRARY error:
        ct_connect(): directory service layer: internal directory control layer error: Requested server name not found.

这是由于参数不对导致,加上参数-S执行服务器名就可以了

isql -Usa -P -Ssybase
执行成功了

linux
相关资讯       Sybase 
本文评论   查看全部评论 (1)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款
第 1 楼
* 匿名 发表于 2013/7/15 9:46:59
为什么呢?