variable setting in .profile
DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: variable setting in .profile

  1. #1
    Join Date
    Jan 2001
    Posts
    157

    Question variable setting in .profile

    Can anyone tell me the purpose of this variable in the
    .profile

    $SERVER $LOGNAME $ORACLE_SID $PWD

  2. #2
    Join Date
    Jan 2001
    Posts
    642
    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
    There is always a better way to do the things.

  3. #3
    Join Date
    May 2002
    Location
    California, USA
    Posts
    175

    Thumbs up

    $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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width