Oracle Database 11g Release 2 Real Application Clusters with SLVM/RAW on HP-UX Installation Cookbook, September 2010
8
Create the Oracle User
• Log in as the root user
• Create database groups on each node. The group ids must be unique. The id used here are just
examples, you can use any group id not used on any of the cluster nodes.
– The OSDBA group, typically dba:
bike/cycle# /usr/sbin/groupadd -g 201 dba
– The optional ORAINVENTORY group, typically oinstall; this group owns the Oracle inventory,
which is a catalog of all Oracle software installed on the system.
bike/cycle# /usr/sbin/groupadd -g 200 oinstall
• Create the Oracle software user on each node. The user id must be unique. The user id used below
is just an example, you can use any id not used on any of the cluster nodes.
bike# /usr/sbin/useradd -u 200 -g oinstall -G dba oracle
• Check User:
bike# id oracle
uid=203(oracle) gid=103(oinstall) groups=101(dba),104(oper)
• Create HOME directory for Oracle user
bike/cycle# mkdir /home/oracle
bike/cycle# chown oracle:oinstall /home/oracle
• Change Password on each node:
bike/cycle# passwd oracle
• During the installation of Oracle RAC, the Oracle database Installer needs to copy files to and
execute programs on the other nodes in the cluster. In order to allow Oracle installer to do that, you
must configure Secure Shell (SSH) to allow the execution of programs on other nodes in the cluster
without requiring password prompts.
SSH Set-up
bike/cycle$ mkdir ~/.ssh
bike/cycle$ chmod 755 ~/.ssh
bike/cycle$ /usr/bin/ssh-keygen –t rsa
Here, we leave the passphrase empty.
Your identification has been saved in
/home/oracle/.ssh/id_rsa. Your public key has been saved in
/home/oracle/.ssh/id_rsa.pub.
Next, contents of id_rsa.pub file of both nodes bike and cycle need to be put into a file called
/home/oracle/.ssh/authorized_keys on both nodes.
bike$ cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
bike$ ssh oracle@cycle cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
bike$ chmod 644 ~/.ssh/authorized_keys
bike$ scp ~/.ssh/authorized_keys cycle:~/.ssh/authorized_keys