Overview of basic configuration

All Open Client applications require the following basic configuration information obtained during initialization and connection:

Location of the Sybase installation directory as defined by the SYBASE environment variable.

In a heterogeneous environment that use applications built for versions 10.0.x and later, you must set the SYBASE and PATH environment variables at the command prompt.

In the following procedure, applications using the 12.5 or later products are installed in C:\SYBASE:

  1. Open a command prompt and set the SYBASE and PATH environment variables for the 12.5.1 directory. For example:

    set SYBASE=C:\SYBASE\
    
    set SYBASE_OCS=OCS-12_5
    
    set PATH=%PATH%;\%SYBASE%\%SYBASE_OCS%\bin;C:
    \%SYBASE%\%SYBASE_OCS%\dll
    
  2. Open another command prompt and set the SYBASE and PATH environment variables for the 12.5.1 directory. For example:

    set SYBASE=C:\SYBASE
    
    set SYBASE_OCS=OCS-12_5
    
    set PATH=%PATH%;C:\%SYBASE%\%SYBASE_OCS%\bin;C:
    \%SYBASE%\%SYBASE_OCS%\dll
    

Locale name

Open Client uses the values of the following POSIX environment variables as locale names (does not apply to DB-Library):

Open Client later uses this value to obtain localization information from the locales.dat file. If LC_ALL, LANG, and sLanguage are not defined, Open Client uses “default” as the locale name.

Localized message and character set files

Open Client looks in the locales.dat file for an entry whose name matches the locale name determined in the previous step. Then, it loads the localized messages and character set files specified in the locales.dat file.

Name of the target server

Open Client obtains the name of the target server from one of the following sources, in the order listed:

  1. The client application, which can provide the server name in the call to ct_connect (or dbopen)

  2. The DSQUERY environment variable, if the application does not specify the target server

  3. The default name SYBASE, if DSQUERY is not set

The network address of the target server

Open Client gets the address(es) of the target server from the directory service or from the sql.ini file:

Name of the network driver

(Does not apply to DB-Library) Open Client looks in the [DRIVERS] section for Windows of the libtcl.cfg file to determine which network driver to load.

NoteInstall only the Net-Library drivers for which you have the underlying protocols. Otherwise, you will receive error messages.

Security mechanism to be used

(Does not apply to DB-Library) If the client application requests network-based security services, Open Client looks in the [SECURITY] section for Windows of libtcl.cfg to determine which security driver to use.

Adaptive Server version 12.5 and later can store data that has different limits than data stored in previous versions. Open Client version 12.5 and later supports Adaptive Server 12.5.1 limits. If you are using Open Client and Open Server versions earlier than 12.5, they cannot process the data if you: