Hitachi

Hitachi Advanced Database Setup and Operation Guide


3.6.1 Editing the initialization option file

This subsection explains how to use the vi command to edit the initialization option file.

A file template is available for the initialization option file. Therefore, copy and edit the file template.

The template for the initialization option file is stored in the following location:

The initialization option file created by editing the template is stored in the following location:

Organization of this subsection

(1) Editing the DB area page size

  1. Copy the initialization option file template.

    As the HADB administrator (adbmanager), enter the operating system command below and press Enter. The initialization option file template is copied.

    cp /home/adbmanager/server/sample/conf/adbinit.opt /home/adbmanager/server/conf/
  2. Open the copied initialization option file template.

    As the HADB administrator (adbmanager), enter the operating system command below and press Enter. When you execute the vi command, the initialization option file is opened in edit mode.

    vi /home/adbmanager/server/conf/adbinit.opt
  3. Edit the page size of the DB area to be created.

    Press the I key to shift to insert mode. Once you are in insert mode, use the cursor keys to move the cursor to the following operand:

    adbinitdbarea -n ADBUIDX01 -p 8

    Once you have positioned the cursor, replace 8 in the -p option (which has been set as the default value) with 4.

    ■ Input result

    adbinitdbarea -n ADBUIDX01 -p 4
  4. Finish editing the initialization option file.

    For this environment, there is no need to edit operands other than the one described above. After you have entered the page size of the DB area to be created in edit mode, press Esc to shift to command mode. Once you are in command mode, enter the following command and press Enter:

    :wq

    The content that was specified in edit mode is saved. The information necessary for creating DB areas is now set up in the initialization option file.

(2) Related item

Format of initialization options in Specification format for the adbinit command under adbinit (Initialize the Database) in the manual HADB Command Reference