Hitachi

Hitachi Advanced Database Setup and Operation Guide


11.16.5 Adding synonyms

This subsection describes how to add synonyms to a synonym dictionary.

Example:

Synonyms are added to a synonym group registered in synonym dictionary Dictionary1. In this example, relational database and RDB are added.

Procedure:

  1. Modify the contents specified in the saved synonym list definition file.

    <Contents specified in the synonym list definition file>

    database,data bank,DB,relational database,RDB↓
    application server,AP server↓

    Legend: ↓: Line feed

    Modify the saved synonym list definition file for Dictionary1. In this example, the underlined synonyms are added.

    Important

    Keep specifying the synonym groups that have no change as they were. In the preceding example, keep specifying the second line (the line that contains "application server") as it was. If you do not specify the second line in the preceding example, the synonym group on the line that contains "application server" will be deleted.

    This example assumes that the synonym list definition file for Dictionary1 is saved with the following file name:

    • /home/adbmanager/dictionary1_synonym.txt

  2. Check the contents specified in the saved dictionary creation file.

    <Contents specified in the dictionary creation file>

    Dictionary1,/home/adbmanager/dictionary1_synonym.txt,CORRECTIONRULE,terms related to DB and AP server↓

    Legend: ↓: Line feed

    Check the contents specified in the saved dictionary creation file for Dictionary1. If you need to modify the comment due to addition of synonyms, modify the comment.

    This example assumes that the dictionary creation file is saved with the following file name:

    • /home/adbmanager/dictionary1_information.txt

  3. Check the free space of the directory for storing the synonym dictionary file.

    For details about how to check the free space, see 11.16.12 Checking the free space required for the directory for storing synonym dictionary files.

  4. Execute the adbsyndict command to update the synonym dictionary.

    adbsyndict -m /home/adbmanager/dictionary1_information.txt

    For the -m option, specify the name of the absolute path to the dictionary creation file that you checked in step 2.

  5. Make a backup of the directory for storing synonym dictionary files.

    If you update a synonym dictionary, the relevant synonym dictionary files are updated. In case a failure occurs in a synonym dictionary file, make a backup of the directory for storing synonym dictionary files. If a failure occurs in a synonym dictionary file when you have not made a backup, you need to re-create the synonym dictionary file by using the adbsyndict command.

    The directory for storing synonym dictionary files is the directory specified for the adb_syndict_storage_path operand in the server definition.

Note