User`s guide

Built-in Variables
B-2 Oracle Database Installation and Administration Guide
When variable assignments refer to other variables, BS2000 command file
substitution syntax applies. Substitution takes place when a variable is actually
used, not when it is read from the
ORAENV
file.
For example:
ORAUID=$ORAC1120
SQLPATH=&ORAUID..RDBMS.ADMIN
assigns the value
$ORAC1120
.
RDBMS
.
ADMIN
to the variable
SQLPATH
. If
ORAUID
is
changed, then
SQLPATH
automatically reflects the new value.
The sequence of items in the
ORAENV
file is not generally significant. If an item
occurs more than once, then the last occurrence is used.
If no value is given for a variable, then the default value is used, if it exists.
B.2 Built-in Variables
The following variables are always defined, and may be referenced in other variable
assignments:
B.2.1 LOGNAME
The
LOGNAME
variable always contains the current BS2000 user ID. You cannot alter the
value of this variable by assigning a different value to it in the
ORAENV
file.
B.2.2 ORAUID
This variable specifies the BS2000 user ID where the Oracle Database programs,
installation and demonstration files are installed. The initial value is derived from the
ORALOAD
link name (the user ID part of the
ORALOAD
library name). This value is usually
correct, but if necessary, you can override it by assigning a different value to it in the
ORAENV
file.
Format:
ORAUID
=
$userid
or
ORAUID
=
/BS2/$userid
B.2.3 PGM
The
PGM
variable always contains the last part of the current
START_PROGRAM
program
name. You cannot alter the value of this variable by assigning a different value to it in
the
ORAENV
file.
B.2.4 TERM
The
TERM
variable contains the terminal type, and defaults to 'SNI9750'. This default
value is usually correct, but if necessary, you can override it by assigning a different
value to it in the
ORAENV
file.
B.2.5 TSN
The
TSN
variable contains the task sequence number of the current task. You cannot
alter the value of this variable by assigning a different value to it in the
ORAENV
file.
B.3 General Variables
The following variables are for general, day-to-day use by Oracle DBAs and users.