Can anyone tell me the purpose of this variable in the
.profile
$SERVER $LOGNAME $ORACLE_SID $PWD
Printable View
Can anyone tell me the purpose of this variable in the
.profile
$SERVER $LOGNAME $ORACLE_SID $PWD
You set the variables in the .profile so that you don't have to explicitly set them on your login.
$ORACLE_SID , $ORACLE_HOME, $PATH etc., will be set if you are using Oracle and if you need any other Variables set to be used then you will set $PWD etc.,
HTH.
Badrinath
$LOGNAME is a shell variable and is setup to the current OS user login
$ORACLE_SID is the SID for the Oracle instance. You have to setup this manually
$PWD is shell variable and shows the current path you are into. You can use it in the .profile file as PS1='<${LOGNAME}@${HOSTNAME}>${PWD} $ '
Hope that helps,
clio_usa - OCP 8/8i/9i DBA