For changing the sort order/charset In ASE
There are two options
1>> By running the sqlloc utility for that I have given the steps below :
1.Shutdown the ASE data and backup server
2.make sqlloc.rs file in /opt/sybase/ASE-1*/init/sample*/sqlloc.rs
in that sqlloc.rs put the below values
$ cat sqlloc.rs
sybinit.release_directory: USE_DEFAULT
sqlsrv.server_name: ASE_BIAPPS
sqlsrv.sa_login: sa
sqlsrv.sa_password:
sqlsrv.default_language: USE_DEFAULT
sqlsrv.language_install_list: USE_DEFAULT
sqlsrv.language_remove_list: USE_DEFAULT
sqlsrv.default_characterset: utf8
sqlsrv.characterset_install_list: USE_DEFAULT
sqlsrv.characterset_remove_list: USE_DEFAULT
sqlsrv.sort_order: bin_utf8
# An example sqlloc resource file...
# sybinit.release_directory: USE_DEFAULT
# sqlsrv.server_name: PUT_YOUR_SERVER_NAME_HERE
# sqlsrv.sa_login: sa
# sqlsrv.sa_password:
# sqlsrv.default_language: french
# sqlsrv.language_install_list: spanish,german
# sqlsrv.language_remove_list: USE_DEFAULT
# sqlsrv.default_characterset: cp437
# sqlsrv.characterset_install_list: mac,cp850
# sqlsrv.characterset_remove_list: USE_DEFAULT
# sqlsrv.sort_order: dictionary
in above file we have change the charset by roman-8 to UTF8
3 run the sqlloc.rs
with the command
srvbuildres -S(servername) -U(username) -P(password) -r sqlloc.rs
Result: Sortorder/charset has been changed.
4.resart the ASE data server it will show you changes in sort order......
=================================================================
Option 2:
2.>By using the sp_configure Command
Use the following command to change the sort order
1> sp_configure "default sortorder id", sort_order_ID
2> go
Result : Sortorder/charset has been changed.
==========================================================================
The main Thing is Options Second is not effective so please change
sortorder by sqlloc utility...
Regards,
Amol P Ingle
There are two options
1>> By running the sqlloc utility for that I have given the steps below :
1.Shutdown the ASE data and backup server
2.make sqlloc.rs file in /opt/sybase/ASE-1*/init/sample*/sqlloc.rs
in that sqlloc.rs put the below values
$ cat sqlloc.rs
sybinit.release_directory: USE_DEFAULT
sqlsrv.server_name: ASE_BIAPPS
sqlsrv.sa_login: sa
sqlsrv.sa_password:
sqlsrv.default_language: USE_DEFAULT
sqlsrv.language_install_list: USE_DEFAULT
sqlsrv.language_remove_list: USE_DEFAULT
sqlsrv.default_characterset: utf8
sqlsrv.characterset_install_list: USE_DEFAULT
sqlsrv.characterset_remove_list: USE_DEFAULT
sqlsrv.sort_order: bin_utf8
# An example sqlloc resource file...
# sybinit.release_directory: USE_DEFAULT
# sqlsrv.server_name: PUT_YOUR_SERVER_NAME_HERE
# sqlsrv.sa_login: sa
# sqlsrv.sa_password:
# sqlsrv.default_language: french
# sqlsrv.language_install_list: spanish,german
# sqlsrv.language_remove_list: USE_DEFAULT
# sqlsrv.default_characterset: cp437
# sqlsrv.characterset_install_list: mac,cp850
# sqlsrv.characterset_remove_list: USE_DEFAULT
# sqlsrv.sort_order: dictionary
in above file we have change the charset by roman-8 to UTF8
3 run the sqlloc.rs
with the command
srvbuildres -S(servername) -U(username) -P(password) -r sqlloc.rs
Result: Sortorder/charset has been changed.
4.resart the ASE data server it will show you changes in sort order......
=================================================================
Option 2:
2.>By using the sp_configure Command
Use the following command to change the sort order
1> sp_configure "default sortorder id", sort_order_ID
2> go
Result : Sortorder/charset has been changed.
==========================================================================
The main Thing is Options Second is not effective so please change
sortorder by sqlloc utility...
Regards,
Amol P Ingle
Correction required at
ReplyDelete3 run the sqlloc.rs
with the command
srvbuildres -S(servername) -U(username) -P(password) -r sqlloc.rs
It should be sqllocres -r sqlloc.rs