| Red Hat Docs > Manuals > Cluster Suite/GFS Manuals > |
| Red Hat GFS: Installing and Configuring Oracle9i RAC with GFS 6.0 | ||
|---|---|---|
| Prev | Chapter 3. Installing and Configuring Oracle9i RAC | Next |
To prepare the Oracle nodes, follow these steps:
At each node, create the oracle group. For example:
# groupadd dba -g 501 |
Make the oracle user's home directory. For example:
# mkdir -p /home/oracle |
At each node, create the oracle user. Make sure that the oracle user primary group is the dba group. For example:
# useradd -c "Oracle Software Owner" -g dba -u 101 -m -d /home/oracle -s /bin/bash oracle |
![]() | Note |
|---|---|
All text on the preceding lines should appear as one continuous line. It has been broken up because of print limitations. |
Change ownership of /home/oracle to oracle.dba. For example:
# chown oracle.dba /home/oracle |
Grant unlimited ulimit to oracle.
Make sure that oracle:dba owns the following mount points and quorum pool devices:
/dev/raw/raw1
/dev/raw/raw2
/mnt/oracle_base
/mnt/oraundo
/mnt/oraindex
/mnt/oradata
Adjust kernel parameters to the values shown in Table 3-1.
![]() | Note |
|---|---|
The kernel parameter values are for the example cluster in this manual and may be different for your environment. |
| Kernel Parameter | Setting |
|---|---|
| fs.aio-max-size | 1048576 |
| fs.aio-max-nr | 1048576 |
| net.ipv4.ip_local_port_range | 1024 65000 |
| net.ipv4.ip_forward | 0 |
| shmmax | 2147483648 |
| shmmni | 4096 |
| semmsl | 250 |
| semmns | 32000 |
| semopm | 100 |
| semmni | 128 |
Table 3-1. Kernel Parameter Values
Specify the kernel parameters by modifying the /etc/sysctl.conf file according to Example 3-1. Specifying the parameters in the sysctl.conf file causes the parameters to be set upon reboot.
# Kernel sysctl configuration file for Red Hat Linux # # For binary values, 0 is disabled, 1 is enabled. See sysctl(8) and # sysctl.conf(5) for more details. fs.aio-max-size = 1048576 fs.file-max = 327680 fs.aio-max-nr = 1048576 net.ipv4.ip_local_port_range = 1024 65000 net.ipv4.ip_forward = 0 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 |
Example 3-1. Kernel Parameters
After modifying the sysctl.conf file, set the parameters with the sysctl -p command as follows:
# sysctl -p fs.aio-max-size = 1048576 fs.file-max = 327680 fs.aio-max-nr = 1048576 net.ipv4.ip_local_port_range = 1024 65000 net.ipv4.ip_forward = 0 kernel.shmmax = 2147483648 kernel.shmmni = 4096 kernel.sem = 250 32000 100 128 |
Create libcwait.c.
As user oracle, in the oracle user's home directory, create a file named libcwait.c with the following contents:
#include <errno.h>
#include <sys/syscall.h>
#include <sys/types.h>
#include <sys/wait.h>
pid_t
__libc_wait (int *status)
{
int res;
asm volatile ("pushl %%ebx\n\t"
"movl %2, %%ebx\n\t"
"movl %1, %%eax\n\t"
"int $0x80\n\t"
"popl %%ebx"
: "=a" (res)
: "i" (__NR_wait4), "0" (WAIT_ANY), "c" (status), "d" (0),
"S" (0));
return res;
}
|
Compile the file in the oracle user's home directory:
# gcc -O2 -shared -o $HOME/libcwait.so -fpic $HOME/libcwait.c |
Establish environment variables for the oracle user.
Set the following Oracle environment variables (Table 3-2):
| Environment Variable | Suggested Value |
|---|---|
| ORACLE_BASE | For example: /mnt/oracle_base |
| ORACLE_HOME | For example: $ORACLE_BASE/product/920 |
| ORACLE_TERM | Xterm |
| ORA_NLS33 | $ORACLE_HOME/ocommon/nls/admin/data |
| PATH | $ORACLE_HOME/bin:/usr/bin/X11/:/usr/local/bin and any other items you require in your PATH |
| DISPLAY | ip-address:0.0 (Note: Comment out if installing remotely. Remember to use the ssh -X user@hostname command. For example, use ssh -X oracle@rac1 for the rac1 node.) |
| TMPDIR | Set a temporary directory path for TMPDIR with at least 100 MB of free space to which the OUI has write permission. |
| ORACLE_SID | Set this to what you will call your database instance. This should be a unique value on each node. |
| umask | 022 |
| LD_ASSUME_KERNEL | 2.4.19 |
| LD_LIBRARY_path | $ORACLE_HOME/lib:/usr/lib |
| LD_PRELOAD | $HOME/libcwait.so |
| LD_LIBRARY_path | $ORACLE_HOME/lib:/usr/lib |
Table 3-2. Environment Variables for the oracle User
Save the environment values listed in Table 3-2 to .bashrc, .login, or .profile for user oracle and user root. By saving the environment values to one of those files, you do not have to set the environment values each time you log in.
Create the directory /var/opt/oracle and set ownership to the user oracle if it does not exist. For example:
$ mkdir /var/opt/oracle $ chown oracle.dba /var/opt/oracle |
Proceed to Section 3.4 Installing and Configuring Oracle Components.