Activating Your SySAM Adaptive Server Enterprise License

To convert your existing Adaptive Server database to use a RAP license, activate your SySAM Adaptive Server Enterprise license after you obtain the license file and install Adaptive Server on your host machine.

Prerequisites
Obtain a RAP license from SPDC or SMP.
Task
  1. Change the directory to <Adaptive Server Enterprise Installation Directory>.
  2. Source the environment variables: source SYBASE.csh or . SYBASE.sh
  3. Log in to the Adaptive Server Enterprise server.
    • To check the license type, enter:
      sp_lmconfig
      go
      The valid license types for RAP are:
      • CP (CPU license for Production)

      • DT (Development and Test, not CPU dependent)

      • SF (CPU license for Stand By Production)

    • To change the license type to match your license file, if it is different than the license type you selected when installing ASE, run the appropriate command:
      sp_lmconfig ‘license type’, 'LT'
      go
      where LT is a valid license type.
  4. Enable your Adaptive Sever Enterprise installation to use your RAP license.
    sp_lmconfig 'application type','RAP'
    go
  5. Shut down the Adaptive Server Enterprise server:
    shutdown with nowait
    go
  6. If you are running in served mode, copy the license file to <license_server_install_dir>/SYSAM-2_0/licenses on the license server.
    Sybase recommends the use of the served license model with RAP.
  7. If you are running in unserved mode, copy the license file to <Adaptive Server Enterprise Installation Directory>/SYSAM-2_0/licenses on the host machine.

    If you use the ftp utility to transfer the license file, be sure to specify ASCII mode.

  8. Change to <license_server_install_dir>/SYSAM-2_0/bin. Start the license server, if neccessary:
    sysam start

    If the license server was started before you copied the license information to <license_server_install_dir>/SYSAM-2_0/licenses run:

    sysam reread

    SySAM reloads all licenses located in <license_server_install_dir>/SYSAM-2_0/licenses.

    You must have at least one served license in <license_server_install_dir>/SYSAM-2_0/licenses, or you see “License Manager: Can’t initialize...” when you attempt to start the license server.

  9. Update the license server options file:
    1. Change to <license_server_install_dir>/SYSAM-2_0/licenses on the license server.
    2. Use a text editor to add INCLUDE SY_RAP PROJECT RAP to the file SYBASE.opt.
  10. Create a sybase.lic file in <Adaptive Server Installation Directory>/SYSAM-2_0/licenses.
    The sybase.lic file specifies the port number of the license server, so SySAM can retrieve the appropriate license. The contents of the sybase.lic file is:
    SERVER <license_server_host_name> ANY 27000 
    USE_SERVER
    where 27000 is the default port. You can use a different port number.
  11. Restart the Adaptive Server Enterprise server.
Note: To verify your license, either run the sp_lmconfig stored procedure in Interactive SQL (isql), or check the Adaptive Server error log.

In the Adaptive Server error log, a line beginning with “Checked out license...” indicates that the license configuration is successful. If you see a “Sysam: FLEXnet Licensing error:” check with your Sybase Technical Support or customer service representative to resolve the issue.

Related tasks
Obtaining Licenses