Skip to main content

Changing the sort order/charset In ASE

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

Comments

  1. Correction required at
    3 run the sqlloc.rs
    with the command
    srvbuildres -S(servername) -U(username) -P(password) -r sqlloc.rs

    It should be sqllocres -r sqlloc.rs

    ReplyDelete

Post a Comment

Popular posts from this blog

Replication Server Quick Ref Guide

Replication Server Guide : • Replication Server Commands • ASE commands and system stored procedures • ASE RSSD stored procedures • RSSD tables • Replication Server System Functions • Troubleshooting Tips Abbreviations Some abbreviations which are used in this Quick Reference Guide: ASE Adaptive Server Enterprise DSI DataServer Interface - RS thread for a connection to a replicate database DIST Distributor - RS thread per primary database LTM Log Transfer Manager; synonym for RepAgent RS, RepServer Replication Server RepAgent Replication Agent (in primary dataserver) RepDef Replication Definition RSI Replication Server Interface - RS thread related to a route to another RepServer RSM Replication Server Manager (a DBA tool normally used in combination with Sybase Central) RSSD Replication Server System Database SQM Stable Queue Manager - RS thread managing a queue SQT Stable Queue Manager - RS thread assembling transactions Replication Server Commands The following commands can only be ...

Interesting Notes on ASE

Some hidden things about ASE Different States of SLEEP When all processes are shown as SLEEPING by sp_who except the one, which issued the sp_who command, how can a user tell the difference between hangings versus running processes? Definitions In pre-4.9.2 SQL Servers, the output of sp_who could be difficult to interpret. Processes showed only one type of SLEEP status, "sleeping". In System 10, and 4.9.2 Rollup 2115 and above, sp_who shows four types of sleep along with the other possible statuses: Value Meaning Infected The server erred with a stack trace, and the process got an error that would normally kill it. The process is infected instead of killed. Background This process is in the background recv sleep The process is waiting for input from the client Send sleep The process is waiting for a write to the client to complete alarm sleep The process is waiting for an alarm (usually means the process is waiting for a wait for command to complete). Lock sleep The process i...

How to set data cache,procedure cahe in ASE

1> sp_cacheconfig "default data cache","1G" 2> go Msg 10879, Level 16, State 1: Server 'SPICE_BIAPPS', Procedure 'sp_cacheconfig', Line 1167: The current 'max memory' value '58368', is not sufficient to change the size of cache 'default data cache' to '1G' (1048576 KB). 'max memory' should be greater than 'total logical memory' '579786' required for the configuration. (return status = 1) 1> sp_configure "max memory" 2> go Parameter Name Default Memory Used Config Value Run Value Unit Type ------------------------------ ----------- ----------- ------------ ------------ -------------------- ---------- max memory 58368 116736 58368 58368 memory pages(2k) dynamic (1 row affected) (return status = 0) 1> sp_configure "max memory","1G" 2>...