When I am trying to run sybase query through isql syntex it is giving below error.
Error -
"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 C:\Sybase. Check the environment variable SYBASE if it is not the one you want! Using locale name "en_US.UTF-8" defined in environment variable LANG Locale name "en_US.UTF-8" doesn't exist in your C:\Sybase\locales\locales.dat file An error occurred when attempting to allocate localization-related structures. "
I checked the environment path variable which is correct.
I found that if I run
before running isql, then isql works as expected.
If above is the output, then it means that the environmental variable is not set properly. In order to set the environment variable - go to sybase directory
and set environment variable
And then start the server.
Now go to OCS-16_0 folder
And then connect to the server.
where
It will ask for password. enter it, and it will connect to the sql shell.