- Database Client Installation Guide
- Configuring Users, Groups and Environments for Oracle Database Client
- Creating Operating System Oracle Installation User Accounts
- Procedure for Configuring Oracle Software Owner Environments
Procedure for Configuring Oracle Software Owner Environments
Configure each Oracle installation owner user account environment:
- Start an X terminal session (
xterm
) on the server where you are running the installation. - Enter the following command to ensure that X Window applications can display on this system, where hostname is the fully qualified name of the local host from which you are accessing the server:
$ xhost + hostname
- If you are not logged in as the software owner user, then switch to the software owner user you are configuring. For example, with the user
grid
:$ su - grid
On systems where you cannot runsu
commands, usesudo
instead:$ sudo -u grid -s
- To determine the default shell for the user, enter the following command:
$ echo $SHELL
- Open the user's shell startup file in any text editor:
- Bash shell (
bash
):$ vi .bash_profile
- Bourne shell (
sh
) or Korn shell (ksh
):$ vi .profile
- C shell (
csh
ortcsh
):% vi .login
- Bash shell (
- 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_BASE
environment variables are set in the file, then remove these 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:
$ . ./.bash_profile
- Bourne, Bash, or Korn shell:
$ . ./.profile
- C shell:
% source ./.login
- Bash shell:
- Use the following command to check the PATH environment variable:
$ echo $PATH
Remove any Oracle environment variables. - Unset any Oracle environment variables.
If you have an existing Oracle software installation, and you are using the same user to install this installation, then unset the $ORACLE_HOME, $ORA_NLS10, and $TNS_ADMIN environment variables.
If you have set $ORA_CRS_HOME as an environment variable, then unset it before starting an installation or upgrade. Do not use $ORA_CRS_HOME as a user environment variable, except as directed by Oracle Support.
- 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:
$ export DISPLAY=local_host:0.0
- C shell:
% setenv DISPLAY local_host:0.0
In this example,local_host
is the host name or IP address of the system (your workstation, or another client) on which you want to display the installer. - Bourne, Bash, or Korn shell:
- If the
/tmp
directory has less than 1 GB of free space, then identify a file system with at least 1 GB of free space and set theTMP
andTMPDIR
environment 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 installations. If you place/tmp
on a shared file system, then the installation fails.- Use the
df -h
command 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:
$ sudo -s # mkdir /mount_point/tmp # chmod 775 /mount_point/tmp # exit
- Enter commands similar to the following to set the
TMP
andTMPDIR
environment variables:Bourne, Bash, or Korn shell:
$ TMP=/mount_point/tmp $ TMPDIR=/mount_point/tmp $ export TMP TMPDIR
C shell:
% setenv TMP /mount_point/tmp % setenv TMPDIR /mount_point/tmp
- Use the
- To verify that the environment has been set correctly, enter the following commands:
$ umask $ env | more
Verify that theumask
command displays a value of22
,022
, or0022
and that the environment variables you set in this section have the correct values.