Linux sybase執行isql報錯

longqidong發表於2012-08-22
在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/,如需轉載,請註明出處,否則將追究法律責任。

相關文章