Go Back   TechArena Community > Software > Software Development
Become a Member!
Forgot your username/password?
Tags Active Topics RSS Search Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 07-07-2009
Member
 
Join Date: Feb 2009
Posts: 71
How to set Environment Variable Path in Linux

I am successful in setting Environment variable for JAVA which will move through Control Panel -> System -> Advance -> Environment Variables. But when i follow same way to set the PATH in Redhat Linux it does not allow me to do so is there any other way to set environment variable, please guide me. Thanks to those who helps.
Reply With Quote
  #2  
Old 07-07-2009
Member
 
Join Date: Jan 2009
Posts: 140
Re: How to set Environment Variable Path in Linux

Linux and UNIX: Make sure that the system variables include the directory where the Q replication libraries and executables are installed. The default library path is LIBPATH=SQLLIB/LIB, and the default executable path is PATH=SQLLIB/BIN in the DB2 instance home directory. If you moved the files, update your environment variables to include the new path.

AIX and DB2 Extended Server Edition: Set the EXTSHM environment variable to ON at the source and target databases on AIX, or at the source database only on DB2 Extended Server Edition (if the Q Capture program must connect to multiple database partitions), by entering the following commands:

Code:
$ export EXTSHM=ON
$ db2set DB2ENVLIST=EXTSHM
Ensure that the EXTSHM environment variable is set each time you start DB2. Do this by editing the/home/db2inst/sqllib/profile.env file and adding or modifying the line:
Quote:
DB2ENVLIST='EXTSHM'
source: IBM.COM
Reply With Quote
  #3  
Old 07-07-2009
Member
 
Join Date: Dec 2008
Posts: 161
Re: How to set Environment Variable Path in Linux

Environment variables are a set of values that can affect the way running processes will behave. It is stored in the shell's environment space.

/bin:/usr/bin:/usr/local/bin

When you enter a command, the shell looks in each of the directories specified in PATH to try to find it. If it can't find the command in any of those directories, you'll see a "Command not found" message.

/home/user/.bash_profile (~/.bash_profile)

Use text editor such as vi to modify or define new environment variable for you, If you decide to put your own programs in a bin directory under your home directory, you'll have to modify the path to include that directory, or the system will never find your programs (unless you happen to be in that directory when you enter the command).
Reply With Quote
  #4  
Old 07-07-2009
Member
 
Join Date: Oct 2008
Posts: 167
Re: How to set Environment Variable Path in Linux

Environment variables are a variable key pair stored in the shell's environment space. This would add the new directory to the existing PATH value. Always a $VARIABLE is substituted with the current value of the variable. Running programs can access the values of environment variables for configuration purposes. Examples of environment variables include:
  • PATH : Search for executable files
  • SHELL : Your current shell
Reply With Quote
Reply

  TechArena Community > Software > Software Development
Tags: , , ,



Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads for: "How to set Environment Variable Path in Linux"
Thread Thread Starter Forum Replies Last Post
environment variable lda1971 Windows Software 1 23-07-2011 01:29 AM
what does temp environment variable mean ampleandcuddly MS Office Support 1 05-10-2010 02:08 AM
Consider adjusting the pkg_config_path environment variable UbuntU-ME Operating Systems 3 30-07-2009 09:37 PM
Check the temp environment variable nehal_serpa MS Office Support 1 19-07-2008 01:10 PM
Increase the PATH environment variable limit to 2048 char on 2003 Morten Ross Windows Server Help 5 21-05-2008 01:01 AM


All times are GMT +5.5. The time now is 02:26 AM.