Using Windows Registry as a Directory Service

Create server name keys under the Registry key specified for "ditbase" in libtcl.cfg.

Prerequisites

Access both the Open Client/Open Server Configuration and the dsedit utilities.

Task

Both the SAP ASE and client applications look in the Registry for network information before searching the sql.ini file.

  1. Make sure the ocscfg.dat file is in your d:\sap\OCS-16_0\bin directory.
  2. Start the OC OS Config Utility.
    1. Select Start > Programs > SAP > Connectivity > Open Client Directory Service Editor.
    2. Select the Directory Services tab
    3. Click Add
    4. Enter REGISTRY for the DS Name.
    5. Enter LIBDREG for the Directory Service Driver or select it from the drop-down list.
    6. Enter \\machine_name:SOFTWARE\SYBASE\SERVER for the Directory Service Ditbase, where machine_name is the name of the computer that stores the network information.
    7. Click OK.
    Alternatively, you can use a text editor to add these lines to the libtcl.cfg file:
    [NT_DIRECTORY]
    REGISTRY=LIBDREG ditbase=\\machine_name:SOFTWARE\SYBASE\SERVER

    For information about using ocscfg, see the Open Client/Server Configuration Guide for Desktop Platforms.

  3. Start dsedit.
    1. Select Start > Programs > SAP > Connectivity > Open Client Directory Service Editor.
    2. Registry from the DS Name list, and click OK.
    3. Create server entries using dsedit.