5 tmp and tmpdir, 6 tns_admin, Tmp and tmpdir – Oracle B32100-01 User Manual

Page 44: Tns_admin

Advertising
background image

Environment Variables

2-20

Oracle Application Server Installation Guide

2.8.5 TMP and TMPDIR

The installer uses a temporary directory for swap space. The installer checks for the
TMP and TMPDIR environment variables to locate the temporary directory. If this
environment variable does not exist, the installer uses the /tmp directory.

If you want the installer to use a temporary directory other than /tmp, set the TMP
and TMPDIR environment variables to the full path of an alternate directory. The
oracle

user must have right permission for this directory and the directory must

meet the requirements listed in

Table 2–2

.

Example (C shell):

% setenv TMP /tmp2

% setenv TMPDIR /tmp2

Example (Bourne or Korn shell):

$ TMP=/tmp2; export TMP

$ TMPDIR=/tmp2; export TMPDIR

If you do not set this environment variable, and the default directory does not have
enough space, then the installer displays an error message that says the environment
variable is not set. You can either set the environment variable to point to a different
directory or free up enough space in the default directory. In either case, you have to
restart the installation.

2.8.6 TNS_ADMIN

This section describes two requirements:

The TNS_ADMIN environment variable must not be set. If set, it can cause errors
during installation.

Section F.3.14, "Database Configuration Assistant (DBCA)

Failures"

shows such an error.

The /etc and the /var/opt/oracle directories must not contain a
tnsnames.ora

file.

These requirements are necessary to prevent conflicts between the Net configuration
files for different Oracle products.

If you need to set TNS_ADMIN or if you have the tnsnames.ora file in /etc or
/var/opt/oracle

, do the following steps before installing Oracle Application

Server.

1.

If you have the tnsnames.ora file in /etc or /var/opt/oracle, move the file
from these directories to a different directory. Alternatively, you can rename the
file.

2.

Make sure the TNS_ADMIN environment variable is not set.

Example (C shell):

% unsetenv TNS_ADMIN

Example (Bourne or Korn shell):

$ unset TNS_ADMIN

After installation, you can merge the contents of the newly created tnsnames.ora
file with your existing tnsnames.ora file.

Advertising