It is crucial to the operation of Sybase products that the system environment variables be set correctly. The following list describes the Sybase environment variables that are set by the Redhat Package Manager (RPM). RPM also generates a file that you can execute if you need to reset environment variables for any reason.
Environment variables are set in the user’s environment either interactively or by including them in the user’s .login and .cshrc files (for C shell) or .profile file (for Bourne shell).
You can set environment variables by running the SYBASE.csh or SYBASE.sh script file.
From a Bourne, enter:
. SYBASE.sh
From a C shell, enter:
source SYBASE.csh
The script file does not set jConnect or Java utility environment variables. See the product documentation http://www.sybase.com/support/manuals.
The environment variables are:
DSLISTEN – Defines the name Adaptive Server uses to listen for client connections if there is no name provided on the command line during start-up. If DSLISTEN is not set, and there is no name provided during start-up, the Adaptive Server name defaults to the server name given at installation.
DSQUERY – Defines the Adaptive Server name that client programs try to connect to if an Adaptive Server is not specified by name during a connection attempt. If DSQUERY is not set, and you do not supply the Adaptive Server name, clients attempt to connect to the server name provided during installation.
SYBASE – Defines the path of the Sybase installation directory. The installation program sets up the variable SYBASE to point to the release directory specified during installation.
SYBASE_ASE – Defines the installation directory of Adaptive Server components.
SYBASE_OCS – Defines the installation directory of Open Client.
SYBASE_ FTS – Defines the directory for the enhanced full-text search components. The enhanced full-text search engine must be licensed before you can use it, and it is only installed if you selected the “full” or “customized” installation option.
SYBASE_SYSAM – Points to the license-management software directory.
LM_LICENSE_FILE – Points to the license.dat file in the $SYBASE/$SYBASE_SYSAM/licenses (%SYBASE%\%SYBASE_SYSAM%\licenses on Windows) directory.
PATH – Specifies which directory path to search for executables.The Sybase executables are located in the installed component’s /bin directory.
When using the source files: SYBASE.csh or SYBASE.sh, the following paths are added to the beginning of the PATH environment variable:
$SYBASE/$SYBASE_ASE/bin:$SYBASE/$SYBASE_OCS/bin: $SYBASE/$SYBASE_FTS/bin:$SYBASE/$SYBASE_SYSAM/bin: $SYBASE/shared/jre-1_2/bin
For instructions on setting jConnect environment variables, see the documentation for jConnect.