Hitachi

Hitachi Advanced Database Setup and Operation Guide


11.16.6 Deleting synonyms

This subsection describes how to delete synonyms from a synonym dictionary.

Example:

A synonym registered in synonym dictionary Dictionary1 is deleted. In this example, synonym data bank is deleted.

Procedure:

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

    <Contents specified in the synonym list definition file before change>

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

    <Contents specified in the synonym list definition file after change>

    database,DB↓
    application server,AP server↓

    Legend: ↓: Line feed

    Modify the saved synonym list definition file for Dictionary1. In this example, synonym data bank is deleted.

    Important

    Keep specifying unchanged synonym groups 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. If you need to modify the comment due to deletion 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 the 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