Running different versions of Open Server on Microsoft Windows

In a heterogeneous environment that uses applications built for different versions of Open Server, you must explicitly set a path for each version at the command prompt.

In the following example, applications using the 12.5.x products are installed in the d:\ocs-1251 directory and applications using the 15.5 products are installed in the d:\ocs-150 directory:

  1. To use Open Server 12.5.x, open a Command Prompt window and set the SYBASE and SYBASE_OCS environment variables to the 12.5.x directory. For example:

    set SYBASE=D:\ocs-1251
    set SYBASE_OCS=OCS-12_5
    
  2. In the same Command Prompt window, set the PATH environment variable. For example:

    • On Microsoft Windows x86 32-bit:

      set PATH=%SYBASE%\%SYBASE_OCS%\bin;%SYBASE%\%SYBASE_OCS%\dll;
      %SYBASE%\%SYBASE_OCS%\lib3p;%PATH%
      
    • On Microsoft Windows x86-64 64-bit:

      set PATH=%SYBASE%\%SYBASE_OCS%\bin;%SYBASE%\%SYBASE_OCS%\dll;
      %SYBASE%\%SYBASE_OCS%\lib3p64;%SYBASE%\%SYBASE_OCS%\lib3p;%PATH%
      
  3. To use Open Server 15.5, open another Command Prompt window and set the SYBASE and SYBASE_OCS environment variables to the 15.5 directory, for example:

    set SYBASE=D:\ocs-150
    set SYBASE_OCS=OCS-15_0
    
  4. In the same Command Prompt window, set the PATH environment variable. For example:

    • On Microsoft Windows x86 32-bit:

      set PATH=%SYBASE%\%SYBASE_OCS%\bin;%SYBASE%\%SYBASE_OCS%\dll;
      %SYBASE%\%SYBASE_OCS%\lib3p;%PATH%
      
    • On Microsoft Windows x86-64 64-bit:

      set PATH=%SYBASE%\%SYBASE_OCS%\bin;%SYBASE%\%SYBASE_OCS%\dll;
      %SYBASE%\%SYBASE_OCS%\lib3p64;%SYBASE%\%SYBASE_OCS%\lib3p;%PATH%
      

Although you must install different versions in separate directories, you can maintain a single sql.ini file by passing the address file name explicitly to each application, for example:

isql -P -Usa -Sconnect50 -ID:\ocs-150\ini\sql.ini