23.4.1 Using the system generator to register a plug-in into HiRDB

After using the system generator to construct the HiRDB system, as described in 23.3 Using the system generator to construct a HiRDB system, it is necessary to use the system generator's Plug-in Setup menu to register the plug-in into HiRDB:

To set up and register the HiRDB Text Search Plug-in into HiRDB, use the following procedure:

In simple installation, the HiRDB Text Search Plug-in (consisting of an index-type plug-in and a data-type plug-in) is registered into HiRDB.

  1. At Enter 1-10 or o-q > on the last line of the Master menu screen, enter p, then press the Enter key.
    The Plug-in Setup menu shown previously is displayed in order to set up and register the plug-in.
  2. At Enter 1-4 or s-q > on the last line of the Plug-in Setup menu, enter 1, then press the Enter key.
    The following message is displayed:

     Select Plugin for Setup
     1: Text Search Plug-in
     2: Image Search Plug-in
     3: Spatial Search Plug-in
     o: Other Plugin
     Enter 1 or o >

  3. At Enter 1 or 0 >, enter 1, then press the Enter key.
    On the screen, _phsgml,_phngram is displayed at item 1, and Assume by pdgen is displayed at items 2-4.
  4. At Enter 1-4 or s-q >, enter s, then press the Enter key.
    Plug-in setup and registration are executed.
  5. At Enter 1-4 or s-q >, enter q, then press the Enter key.
    The following message is displayed:

    Rdarea are added. You have to restart HiRDB to use the area.
    Restart now?(Y/N) >

  6. Enter Y, then press the Enter key.
    HiRDB is restarted so that the HiRDB system environment becomes effective.

Once the plug-in has been registered, there is a change in the locations of the sample files indicated in 23.1.4 Sample files provided for simple installation. Table 23-11 shows the locations of the sample files before and after plug-in registration.

Table 23-11 Locations of sample files before and after plug-in registration

Before plug-in registrationAfter plug-in registration
/opt/TSPlugin/_phsgml/sample/MAN.DTD/opt/HiRDB_P/plugin/_phsgml/sample/MAN.DTD
/opt/TSPlugin/_phsgml/sample/file01/opt/HiRDB_P/plugin/_phsgml/sample/file01
/opt/TSPlugin/_phsgml/sample/file02/opt/HiRDB_P/plugin/_phsgml/sample/file02