Task 1: add start-up parameters to the NT Registry

To add Historical Server start-up parameters to the NT Registry:

  1. Start the NT Registry Editor (regedt32.exe, usually in winnt\system32).

  2. For NT 4.0, select the window named:

     \\HKEY_LOCAL_MACHINE
    

    or, for NT 3.5.1:

     \\HKEY_USER
    

    and select the appropriate user.

  3. Save or print the existing settings before proceeding. From the registry menu, select the Save Subtree As command or the Print command.

  4. In the tree view, highlight:

    \SOFTWARE\SYBASE\Server 
    
  5. From the Edit menu, choose Add Key.

  6. In the resulting dialog box, in the Key Name box, enter the name of the Historical Server you are adding.

    Leave the Class box blank.

  7. In the tree view, highlight:

    \SOFTWARE\SYBASE\Server\hsName 
    

    where hsName is the new Historical Server name.

  8. From the Edit menu, choose Add Value.

  9. In the resulting dialog box, in the Value Name box, enter:

    ServerType
    

    From the Data Type drop-down list, choose:

    REG_SZ 
    

    In the resulting String dialog box, enter:

    HISServer 
    
  10. Make sure the entry for the new Historical Server name remains highlighted.

  11. From the Edit menu, choose Add Key.

  12. In the resulting dialog box, in the Key Name box, enter:

    Parameters
    

    Leave the Class box blank.

  13. In the tree view, highlight:

    \SOFTWARE\SYBASE\Server\hsName\Parameters
    

    where hsName is the new Historical Server name.

  14. From the Edit menu, choose Add Value.

  15. In the resulting dialog box, in the Value Name box, enter:

    Arg0
    

    From the Data Type drop-down list, choose:

    REG_SZ 
    

    In the resulting String dialog box, enter:

    -ShsName
    

    where hsName is the Historical Server name you used previously.

  16. Repeat steps 13 through 15 until you have entered all of the start-up parameters for Historical Server. See “Setting Historical Server start-up parameters” for information about start-up parameters.

    At a minimum, enter the following required parameters. The order does not matter; for example, -D does not have to be Arg1.

Value name

Datatype

String

Arg0

REG_SZ

-ShsName

where:

hsName is the Historical Server name you used in step 5.

Example:

-SHS_SERVER1

Arg1

REG_SZ

-DdataDirectoryName

where:

dataDirectoryName is the full path name of an existing directory where you want to store Historical Server data. All users who will create Historical Server recording sessions must have write access to this directory.

Example:

-Dc:\SYBASE\data\hs.data

Arg2

REG_SZ

-IinstallationRootDir\ini\sql.ini

Example:

-Ic:\SYBASE\ini\sql.ini

Arg3

REG_SZ

-linstallationRootDir\install\logName

where:

logName is the file name where you want to store Historical Server error messages. The server creates the file on start-up if it does not exist.

Example:

-lc:\SYBASE\install\hs.log