Activate Your SySAM License

Activate your SySAM license after you install RAP on your host machine and obtain the license file.

  1. Change to the $RAP/RAPCache/ directory, where $RAP is your RAP installation directory. The default installation directory is /opt/sybase/RAP.
  2. Source the environment variables:source SYBASE.sh.
  3. Login to the RAPCache 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 SF or DT to match your license file, run the appropriate command:
      sp_lmconfig ‘license type’, ‘SF’
      go
      or
      sp_lmconfig ‘license type’, ‘DT’
      go
  4. Shut down the RAPCache server:shutdown with nowait go.
  5. If you are running in unserved mode, copy the license file saved from SPDC to the $RAP/RAPCache/SYSAM-2_0/licenses directory on the host machine.

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

  6. If you are running in served mode, copy the license file to the directory <license_server_install_dir>/SYSAM-2_0/licenses on the license server.
    Change directory to $RAP/RAPCache/SYSAM-2_0/bin. If the license server is not running, run the following command to start the license server:
    sysam start

    If the license server has been started before the RAP license is downloaded, run the following command:

    sysam reread

    You must have at least one served license in the licenses directory $RAP/RAPCache/SYSAM-2_0/licenses, or the error “License Manager: Can’t initialize...” is reported when you attempt to start the license server.

  7. Update the license server options file.
    1. Change to the <license_server_install_dir>/SYSAM-2_0/licensesdirectory on the license server.
    2. Using a text editor, add INCLUDE SY_RAP PROJECT RAP to the file SYBASE.opt:.
    3. Change directory to <license_server_install_dir>/SYSAM-2_0/licenses on the license server.
  8. Create a sybase.lic file in the directory $RAP/RAPCache/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.
  9. Restart the RAPCache server.
Note:

To verify your license, you can run the sp_lmconfig stored procedure in Interactive SQL (isql) or check the ASE error log.

In the ASE error log, a line beginning with “Checked out license...” indicates that the license configuration is successful. If you see a “Sysam: FLEXnet Licensing error:” message, check with your Sybase representative to resolve the issue.


Created April 9, 2009. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com