18 Sept 2013

Set Environment Variables

List all environment variables and set env variables from command line in windows?
--------------------------------------------------------------------------------------------------------------
In command prompt give the command as set
Ex:     C:\>set  or   C:/ set | more

To set oracle path,home path or any path in windows
     c:\> set ORACLE_HOME=c:/orale/product/11.2.0/db_1/bin

To see the environment variable what we have setted
     c:\>echo %oracle_sid%

To create/set a variable permanently, use setx varname "value":
     C:\>setx FunnyCatPictures "C:\Users\Daniel\Pictures\Funny Cat Pictures"
              [Restart CMD]
    C:\>echo %FunnyCatPictures%
    C:\Users\Daniel\Pictures\Funny Cat Pictures

List all environment variables and set env variables from command line in Linux?
--------------------------------------------------------------------------------------------------------------------------
To list the current values of all environment variables, issue the command>
  root@nabdcbkp/#env      or     root@nabdcbkp/#env | more

To set oracle path,home path or any path in windows
   root@nabdcbkp/#export PWD=nagarau   or
   root@nabdcbkp/#export ORACLE_HOME=/app/oracle/product/10.2.0/bin
  root@nabdcbkp/#export ORACLE_SID=NABPROD
To see the environment variable what we have setted
   root@nabdcbkp/#echo $LOCPATH    OR  echo $oracle_sid   or echo $oracle_home
   /usr/lib/nls/loc

No comments:

Post a Comment