Hitachi

Hitachi Advanced Database Command Reference


42.3.2 Updating a synonym dictionary

A synonym is added to the synonym group registered to the synonym dictionary Dictionary1. In this example, RDB is added to the synonym group.

This example uses the following procedure to execute the adbsyndict command.

Procedure
  1. Correct the specification of the stored synonym list definition file.

  2. Check the specification of the stored dictionary creation file.

  3. Execute the adbsyndict command.

Using examples, the following subsections explain each of these steps.

Organization of this subsection

(1) Correcting the specification of the stored synonym list definition file

Example of specifying the synonym list definition file
database,data bank,DB,relational database

Legend: ↓: Line break

The synonym list definition file for the stored Dictionary1 is corrected. In this example, the underlined synonym is added.

In this example, the synonym list definition file for Dictionary1 is saved under the following file name:

(2) Checking the specification of the stored dictionary creation file

Example of specifying a dictionary creation file
Dictionary1,/home/adbmanager/dictionary1_synonym.txt,CORRECTIONRULE,database-synonym↓

Legend: ↓: Line break

Check the specification of the stored dictionary creation file. Change the comment in view of the added synonym, if necessary.

In this example, the above dictionary creation file is saved under the following file name:

(3) Executing the adbsyndict command

adbsyndict -m /home/adbmanager/dictionary1_information.txt
Explanation:

In the -m option, specify the absolute path name of the dictionary creation file you checked in (2) Checking the specification of the stored dictionary creation file.

Note
  • For the rules for specifying synonym list definition files, see Specification rules for a synonym list definition file in the HADB Setup and Operation Guide.

  • For details about the rules for specifying dictionary creation files, see Specification rules for a dictionary creation file in the HADB Setup and Operation Guide.