Manual Process

The manual process to change the sort order is:

  1. Do the following steps first:

  2. If you do not already know the file name for the sort order you want to load, go to “How to Find a Sort Order File Name”.

  3. Load the sort order or additional character set you want into syscharsets. Refer to “How to Load a Sort Order or Additional Character Set” for instructions.

  4. Determine the value for sort order ID if you plan to change the sort order. Refer to “How to Find a Sort Order ID” for instructions.

  5. Determine the value for character set ID if you plan to change the default character set. Refer to “How to Find a Character Set ID” for instructions.

  6. If you planned to change the default character set, do it now. Refer to “How to Change the Default Character Set” for instructions.

  7. If you planned to change the sort order, do it now. Refer to “How to Change the Sort Order” for instructions.

  8. Before proceeding, make sure no one is actively using Adaptive Server.

  9. Shut down Adaptive Server.

  10. Restart Adaptive Server. If you changed the sort order, Adaptive Server will make a number of changes at this time. Refer to “Recovery After Reconfiguration” in the System Administration Guide for details about what Adaptive Server does during this database recovery. Look at the Adaptive Server error log to make sure no problems have occurred.

  11. When Adaptive Server has finished the changes related to the changed sort order, it automatically shuts down.

  12. Restart Adaptive Server.

  13. Confirm the change by running sp_helpsort or looking at the end of the error log.

    For example:

    1> sp_helpsort
    2> go
    

    Sort Order Description
    ------------------------------------------------------------------- 
    Character Set = 1, iso_1
          ISO 8859-1 (Latin-1) - Western European 8-bit character set. 
    Sort Order = 50, bin_iso_1 
          Binary sort order for the ISO 8859/1 character set (iso_1).
    Characters, in Order
    ------------------------------------------------------------------- 
         ! " # $ % & ' ( ) * + , - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? 
         @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ] ^ _ 
          ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~
         á â ã ä å æ ç è é ê ë ì í î ï d ñ ò ó ô õ ö / ø ù ú û ü y p 
        .
        .
    

    
    

  14. If the sort order did not change:

  15. Refer to “If You Changed the Sort Order or Default Character Set” in the System Administration Guide and do the steps described there. It is very important that you do these steps to guarantee the integrity of your data.

You are now finished changing your sort order or default character set.

The following procedures are referenced in this “Manual Process”section.