Setting the ORACLE_HOSTNAME Environment Variable
Run the commands shown in this example as the Oracle user account to set the ORACLE_HOSTNAME
environment variable.
The following example shows the commands to run on the Oracle user account to set the ORACLE_HOSTNAME environment variable. In this example, the fully qualified host name is
somehost.example.com
.
Bourne, Bash or Korn Shell
$ ORACLE_HOSTNAME=somehost.example.com
$ export ORACLE_HOSTNAME
C Shell
% setenv ORACLE_HOSTNAME somehost.example.com
Parent topic: Configuring Networks for Oracle Database