Setting environment variables

Required environment variables are set by environment source files on UNIX and by the Sybase IQ installation on Windows.

StepsRunning UNIX environment source files

Issue the following command to set all required environment variables.

  1. For the Bourne/Korn shell:

    . $SYBASE/ASIQ-12_7/ASIQ-12_7.sh
    
  2. For the C shell:

    source $SYBASE/ASIQ-12_7/ASIQ-12_7.csh;
    rehash
    

On Windows platforms, the installation program automatically sets all environmental variables, so no changes are necessary. However, if you must set optional variables or change defaults, use one of the following procedures, as appropriate for your operating system.

StepsSetting environment variables on Windows

  1. On your desktop, right-click My Computer and select Properties from the submenu.

  2. Click the Advanced tab.

  3. Click the Environment Variables button.

    The Environment Variables dialog opens.

    1. If the environment variable does not already exist, click New and type the variable name and its value in the spaces provided; then click OK.

    2. If the variable does exist, select it from the list of System Variables or User Variables, click Edit, and make any modifications in the Variable Value field. Then click OK to capture the setting.

      NoteSee the Microsoft Windows documentation for an explanation of user variables and system variables.

StepsSetting environment variables on UNIX

  1. To check the setting for an environment variable, use:

    echo $variable-name
    

    For example, to see the setting for the $SYBASE variable:

    % echo $SYBASE
    
    /server1/users/janed/sybase
    
  2. In one of your start-up files (.cshrc, .shrc, .login), add a line that sets the variable.

    In some shells (such as sh, bash, ksh) the line is:

     VARIABLE=value;export VARIABLE
    

    In other shells (such as csh, tsch) the line is:

    setenv VARIABLE value
    

For details about variables Sybase IQ uses, see the following topics: