3 Installing the Required Components

This chapter describes the procedure for installing all required components prior to installing RUEI. The installation of the RUEI software itself is described in Chapter 4, "Installing the RUEI Software".

Note:

It is assumed throughout this guide that the installation is performed as the root user, unless indicated otherwise.

Mounting the Enterprise DVD

If the Enterprise Linux DVD is mounted automatically, the content is located in the directory /media/Enterprise Linux dvd 20090908 (the date depends on the downloaded version of the DVD). If the DVD is not automatically mounted, use the following commands to mount it:

mkdir -p /mnt/dvd
mount /dev/dvd /mnt/dvd

Note:

In the rest of this chapter it is assumed the Linux operating system DVD is mounted on /mnt/dvd.

Installing All Requirements Using a Yum Repository (Alternative)

As an alternative to manual installation, you can use a Yum repository to install the required RPMs. This requires a working Yum repository. For information on Yum repositories, see http://linux.duke.edu/projects/yum/. Install the necessary Oracle database packages using the following commands:

Installing and Configuring the Oracle Database

This section describes the procedure for installing the Oracle database. This section can be skipped if you preparing a Reporter server with a remote database or a Collector system. Continue with the installation procedure at Chapter 4, "Installing the RUEI Software".

The Oracle database's maximum memory usage is set by the MEMORY_TARGET parameter. By default, this is set to 40% of the available server RAM. For example, in a system with 16 GB RAM, it is set to approximately 6.4 GB. Note that if extra RAM is added to the server system to increase performance, it is not made available to the Oracle database until the MEMORY_TARGET parameter is manually increased.

Configuring the Oracle User's Environment

Add or edit the umask setting in the ~/.bash_profile file to the following:

umask 022

Make the setting active for the current shell by issuing the following command:

. ./.bash_profile

Set the ORACLE_BASE environment variable to define the location of the root of the Oracle directory tree:

export ORACLE_BASE=/u01/app/oracle

Unzip the Oracle database installation zip file. This creates the directory database. Then, run the graphical installer (note this will not run under user root). Ensure that your X Window environment is properly set up. In addition, when logging on remotely with SSH, ensure X forwarding is enabled. Use the following commands:

Run the two scripts indicated in Figure 3-3. They should be run in a terminal window as root. You will receive output similar to the following:

/u01/app/oraInventory/orainstRoot.sh Changing permissions of /u01/app/oraInventory to 770.Changing groupname of /u01/app/oraInventory to oinstall.The execution of the script is complete
Finished product-specific root actions.

The second script generates the following output:

/u01/app/oracle/product/11.1.0/db_1/root.sh
Running Oracle 11g root.sh script...
The following environment variables are set as:
ORACLE_OWNER= oracle
ORACLE_HOME= /u01/app/oracle/product/11.1.0/db_1
Enter the full pathname of the local bin directory: [/usr/local/bin]:
Copying dbhome to /usr/local/bin ...
Copying oraenv to /usr/local/bin ...
Copying coraenv to /usr/local/bin ...
Creating /etc/oratab file...
Entries will be added to the /etc/oratab file as needed by
Database Configuration Assistant when a database is created
Finished running generic part of root.sh script.
Now product-specific root actions will be performed.

On completion of each script, return the dialog shown in Figure 3-3, and click OK. In the main installer screen, verify that the message "The installation of Oracle database 11g was successful" appears. Click Exit, and confirm by clicking Yes.

Creating an Oracle init Script File

Logon as the root user.

Create an /etc/init.d/oracledb script file to start and stop the Oracle database. An example of this initialization script is available in the RUEI installation zip file (/root/RUEI/extra/oracledb) explained in Chapter 4, "Installing the RUEI Software". Note that you will need to modify the settings for the ORACLE_BASE and ORACLE_HOME environment variables shown above if you selected a different installation directory for the Oracle database.

Make the script file executable and use it to start the Oracle database with the following commands: