Hitachi

Hitachi Advanced Database Setup and Operation Guide


3.6.2 Creating a DB area

After you have edited the initialization option file, initialize the database and create DB areas.

Note

This section explains how to create DB areas by initializing the database. To initialize the database, you use the DB area creation command adbinit command). Use this command when you first create DB areas after installing the HADB server.

You cannot use the DB area creation command (adbinit command) to add or modify DB areas after the database has been initialized. In this situation, you use the command for adding and changing DB areas (adbmodarea command). For details about the command for adding and changing DB areas (adbmodarea command), see adbmodarea (Add and Change DB Areas) in the manual HADB Command Reference.

Organization of this subsection

(1) Executing the DB area creation command

As the HADB administrator (adbmanager), enter the HADB command below and press Enter. A DB area is automatically created.

adbinit -u ADBUSER01 -p '#HelloHADB_01' /home/adbmanager/server/conf/adbinit.opt /home/adbmanager/db
Note

If the message bash: adbinit: command not found is output during execution of the adbinit command, the environment variables that have been set might be invalid. Verify that the environment variables are set correctly based on the explanation in (2) Verifying the environment variables that were set in the .bashrc file under 3.5.1 Setting environment variables.

The following describes the options that are specified for the adbinit command:

Messages are output when DB areas are created. The following shows an example of the output messages.

■ Example of the output messages
KFAA90000-I adbinit processing started.
KFAA96201-I Database initialization started.
KFAA96204-I The DB directory "/home/adbmanager/db" is initialized.
KFAA96233-I Initialization of file "ADBUIDX01" is complete. (size = 5456 KB, information = 7fd0dc15-f7b8-45ca-a178-1a1292c80fcc)
KFAA96233-I Initialization of file "ADBUTBL01" is complete. (size = 5440 KB, information = df7978f1-9f7a-4bcf-a477-61056297a71c)
KFAA96202-I Database initialization ended. (return code = 0)
KFAA90001-I adbinit processing ended. (return code = 0)

(2) Confirming the created DB areas

To verify that DB areas were created by the adbinit command, enter the following operating system command and press Enter:

ls /home/adbmanager/db

Executing the ls command, you can verify that the directories and files have been created under the specified directory. The following shows an example of the execution result.

■ Execution result example
ADBDIC  ADBMST  ADBSTBL  ADBSYS  ADBUIDX01  ADBUTBL01  ADBWORK  ADBWRK  SPOOL

Once you have confirmed that DB areas exist, creation of DB areas is complete.

(3) Related item

■ When creating DB areas by initializing the database

The related items when using the DB area creation command (adbinit command) are as follows:

■ When adding or modifying DB areas after initializing the database

The related items when using the command for adding and changing DB areas (adbmodarea command) are as follows: