2.5 Configuring the oracle User's Environment
You run Oracle Universal Installer from the oracle account. However, before you start Oracle Universal Installer you must configure the environment of the oracle user.
To configure the environment, you must:
-
Set the default file mode creation mask (umask) to 022 in the shell startup file
-
Set the DISPLAY, ORACLE_BASE, and ORACLE_HOME environment variables in preparation for the Oracle Clusterware installation
You should also ensure that the PATH variable contains $ORACLE_HOME/bin before /usr/X11R6/bin
To set the oracle user's environment, follow these steps:
-
Start a new terminal session; for example, start an X terminal (
xterm). -
Enter the following command to ensure that X Window applications can display on this system:
$ xhost + hostnameThe hostname is the name of the local host.
-
If you are not already logged in to the system where you want to install the software, then log in to that system as the
oracleuser. -
If you are not logged in as the
oracleuser, then switch user tooracle:$ su - oracle -
To determine the default shell for the
oracleuser, enter the following command:$ echo $SHELL -
Open the
oracleuser's shell startup file in any text editor:Note:
On Red Hat Linux,.bash_profileis the user startup file for the Bash shell.-
Bourne shell (
sh), Bash shell (bash) or Korn shell (ksh):% vi .bash_profile -
C shell (
cshortcsh):% vi .login
-
-
Enter or edit the following line, specifying a value of 022 for the default file mode creation mask:
umask 022 -
If the
ORACLE_SID,ORACLE_HOME, orORACLE_BASEenvironment variable is set in the file, then remove the appropriate lines from the file. -
Save the file, and exit from the text editor.
-
To run the shell startup script, enter one of the following commands:
-
Bash shell on Red Hat Enterprise Linux:
$ . ./.bash_profile -
Bourne, Bash, or Korn shell:
$ . ./.profile -
C shell:
% source ./.login
-
-
If you are not installing the software on the local system, then enter a command similar to the following to direct X applications to display on the local system:
-
Bourne, Bash, or Korn shell:
$ DISPLAY=local_host:0.0 ; export DISPLAY -
C shell:
% setenv DISPLAY local_host:0.0
In this example,
local_hostis the host name or IP address of the system that you want to use to display Oracle Universal Installer (your workstation or PC). -
-
If you determined that the
/tmpdirectory has less than 400 MB of free disk space, then identify a file system with at least 400 MB of free space and set theTEMPandTMPDIRenvironment variables to specify a temporary directory on this file system:Note:
You cannot use a shared file system as the location of the temporary file directory (typically/tmp) for Oracle RAC installation. If you place/tmpon a shared file system, then the installation fails.-
Use the
df -hcommand to identify a suitable file system with sufficient free space. -
If necessary, enter commands similar to the following to create a temporary directory on the file system that you identified, and set the appropriate permissions on the directory:
$ su - root# mkdir /mount_point/tmp# chmod 775 /mount_point/tmp# exit -
Enter commands similar to the following to set the TEMP and TMPDIR environment variables:
-
Bourne, Bash, or Korn shell:
$ TEMP=/mount_point/tmp$ TMPDIR=/mount_point/tmp$ export TEMP TMPDIR -
C shell:
% setenv TEMP /mount_point/tmp% setenv TMPDIR /mount_point/tmp
-
-