Environment Variables

It is crucial to the operation of Sybase® products that the system environment variables are set correctly. The installer sets the environment variables automatically at the system level.

As part of the installation, the installer sets up these environment variables:

  • DSLISTEN – defines the name Adaptive Server uses to listen for client connections if no name is provided during the Adaptive Server start-up. If DSLISTEN is not set, and no name is given during the Adaptive Server 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 no Adaptive Server is specified with a command line option. If DSQUERY is not set, and you do not supply the Adaptive Server name with a command line option, clients attempt to connect to the server name given at installation.

  • SYBASE – defines the path of the Sybase installation directory. The installation program sets up SYBASE to point to the release directory specified during installation.

  • SYBASE_ASE – defines the subdirectory of the Adaptive Server components.

  • SYBASE_OCS – defines the subdirectory to which Open Client™ is set.

  • SYBASE_SYSAM – points to the license-management software directory.

  • SYBASE_TS_MODE – on Windows, Adaptive Server uses SYBASE_TS_MODE to determine if the shared memory should use a Global namespace or a session-specific Local namespace. Sybase recommends that Adaptive Server use a Global namespace to which it can attach diagnostic tools for servers you start as a service, or when connecting to the server through terminal services.

    The default mode in versions of Adaptive Server earlier than 15.7 was Local, which imposed diagnostic limitations. In Adaptive Server 15.7 and later, the default is Global.

    Setting SYBASE_TS_MODE to local starts Adaptive Server in pre- 15.7 default mode. There is no advantage in using a Local namespace and Sybase recommends that you do not do so, because it restricts shared memory access for diagnostic tools.

  • PATH – specifies which directory paths to search for executables and dynamic link libraries (DLLs). The Sybase executables are in the %SYBASE%|product_name\bin directory. The installation program appends these paths to the current PATH environment variable.

  • TEMP – defines the location used by the installation program to write files temporarily during the installation process. The installation process frees the disk space after installation is completed.

  • INCLUDE – specifies which directory to set to or append for Open Client.

  • LIB – is appended with lib directory for Open Client.

Related concepts
Start and Stop Servers