Results 1 to 4 of 4

Thread: How to set Environment Variable Path in Linux

  1. #1
    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.

  2. #2
    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:
    DB2ENVLIST='EXTSHM'
    source: IBM.COM

  3. #3
    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).

  4. #4
    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

Similar Threads

  1. environment variable
    By lda1971 in forum Windows Software
    Replies: 1
    Last Post: 23-07-2011, 01:29 AM
  2. what does temp environment variable mean
    By ampleandcuddly in forum MS Office Support
    Replies: 1
    Last Post: 05-10-2010, 02:08 AM
  3. Consider adjusting the pkg_config_path environment variable
    By UbuntU-ME in forum Operating Systems
    Replies: 3
    Last Post: 30-07-2009, 09:37 PM
  4. Check the temp environment variable
    By nehal_serpa in forum MS Office Support
    Replies: 1
    Last Post: 19-07-2008, 01:10 PM
  5. Increase the PATH environment variable limit to 2048 char on 2003
    By Morten Ross in forum Windows Server Help
    Replies: 5
    Last Post: 21-05-2008, 01:01 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,894,322.28456 seconds with 17 queries