Hitachi

Hitachi Advanced Database Setup and Operation Guide


3.2.2 Installation

After you have set up the HADB administrator and HADB administrators group under the operating system, and have created directories for storing communication-information files, you are ready to install the HADB server.

Install the HADB server as the HADB administrator (adbmanager). If you are logged on as a superuser, log off and then log on as the HADB administrator (adbmanager).

Organization of this subsection

(1) Creating the directory for storing the installation data

Create a directory to store the HADB server installation data. The path name of the directory to be created is as follows:

As the HADB administrator (adbmanager), enter the following operating system command and press Enter:

mkdir /home/adbmanager/install

(2) Checking the created directory for storing the installation data

Enter the following operating system command to verify that the directory for storing the installation data has been created correctly by the mkdir command, and press Enter:

ls -d /home/adbmanager/install

Executing the ls command allows you to check that the directory for storing the installation data has been created correctly. The following shows an example of the execution result.

■ Execution result example
/home/adbmanager/install

If the directory shown above is displayed, the directory for storing the installation data has been created.

(3) Granting write permission to the directory that stores installation data

Grant write permission to the /home/adbmanager/install directory so that the HADB administrator can store the installation data in that directory. To do this, enter the following command and press Enter:

chmod 755 /home/adbmanager/install

Write permission has now been granted to the directory in which the installation data is to be stored.

(4) Mounting the file system CD-ROM

Allow the file system CD-ROM containing the installation command (adbinstall command) and the installation data (tar.gz file) for the HADB server to mount automatically.

If the file system CD-ROM does not mount automatically, you must mount it manually. To do so, enter the following command and press Enter:

mount /dev/cdrom /media

The underscored portion shows the name of the mount directory for the file system CD-ROM. It will vary depending on the environment.

Important

Depending on the machine being used, the directory names and file names indicated on the CD-ROM might be different from those shown above. Enter the directory name that is displayed exactly as shown when you execute the ls operating system command.

(5) Copying the installation command (adbinstall command)

Copy the HADB server installation command (adbinstall command) that is stored in the mounted file system CD-ROM to the /home/adbmanager/install directory.

Enter the following operating system command and press Enter:

cp /media/adbinstall /home/adbmanager/install

The underlined portion is the name of the mount directory for the file system CD-ROM. It varies depending on the environment.

(6) Copying the installation data (tar.gz file)

Copy to the /home/adbmanager/install directory the installation data (tar.gz file) for the HADB server that is stored on the mounted file system CD-ROM.

Enter the following operating system command and press Enter:

cp /media/hitachi_advanced_data_binder_server-$VR.tar.gz /home/adbmanager/install

The underlined portion is the name of the mount directory for the file system CD-ROM. It varies depending on the environment. $VR indicates the HADB version and release number.

(7) Checking the copied installation command (adbinstall command) and installation data (tar.gz file)

Verify that the adbinstall command and tar.gz file have been copied to the /home/adbmanager/install directory. Enter the following operating system command and press Enter:

ls /home/adbmanager/install

Executing the ls command allows you to verify that the adbinstall command and tar.gz file have been copied to the /home/adbmanager/install directory. The following shows an example of the execution result.

■ Execution result example
adbinstall hitachi_advanced_data_binder_server-$VR.tar.gz
Note:

$VR indicates the HADB version and release number.

(8) Assigning execution privileges to the installation command (adbinstall command)

Assign execution privileges to the HADB server installation command (adbinstall command) that was copied to the /home/adbmanager/install directory, so that the HADB administrator has execution privileges. Enter the following operating system command and press Enter:

chmod 777 /home/adbmanager/install/adbinstall

The execution privilege has now been assigned to the installation command (adbinstall command).

(9) Installing the HADB server

Install the HADB server by executing the HADB server installation command (adbinstall command) to which execution privileges were assigned.

Enter the following HADB command and press Enter:

/home/adbmanager/install/adbinstall -s /home/adbmanager/server
-s /home/adbmanager/server

When you use the adbinstall command to install the HADB server, specify the directory to be used as the server directory in the -s option. Here, specify the /home/adbmanager/server directory.

Executing the adbinstall command expands the installation data (tar.gz file) and stores the directories and files that comprise the HADB server in the /home/adbmanager/server directory.

Important

If you execute the adbinstall command as superuser (root) rather than as HADB administrator (adbmanager), the KFAA91558-W message is output. In this case, reply n or N to the KFAA91559-Q message that is output after the KFAA91558-W message. After that, log out, and then log in again as HADB administrator (adbmanager). Then, execute the adbinstall command as HADB administrator (adbmanager).

(10) Checking that the HADB server has been installed

Check that the HADB server has been installed correctly by entering the following operating system command and pressing Enter:

ls /home/adbmanager/server

Executing the ls command enables you to check that the HADB server has been installed. The following shows an example of the execution result.

■ Execution result example
bin  client  conf  include  lib  sample  spool

If the directory shown above is displayed, the HADB server has been installed.

(11) Related item

8.2.2 Installation procedure