在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
执行成功了
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/22418990/viewspace-741555/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/22418990/viewspace-741555/