Activate your SySAM license after you install Sybase RAP on your host machine and obtain the license file.
Activating your SySAM license
Change directory to $RAP/RAPCache/, where $RAP is your Sybase RAP installation directory. The default installation directory is /opt/sybase/RAP.
Source the environment variables:
source SYBASE.sh
Login to the RAPCache server, check the SySAM license type (the default is CP), and change the type, if necessary.
To check the license type, run the stored procedure sp_lmconfig in Interactive SQL (isql) on your RAPCache server:
sp_lmconfig go
The valid license types for Sybase 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
Shut down the RAPCache server:
shutdown with nowait go
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. (See “Obtain a valid SySAM license”.)
If you use the ftp utility to transfer the license file, be sure to specify ASCII mode.
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
Run the following command to load all the licenses in the license server folder, including the new Sybase RAP license:
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.
Update the license server options file.
Change directory to <license_server_install_dir>/SYSAM-2_0/licenses on the license server.
Using a text editor, add the following entry to the file SYBASE.opt:
INCLUDE SY_RAP PROJECT RAP
If the options file SYBASE.opt does
not exist, then the sysam script (sysam
start) in the directory $RAP/RAPCache/SYSAM-2_0/bin creates
the options file. You can change the name and location of the options
file, if you explicitly set the name and location in the license file.
For full details on the options file, see the FLEXnet
Licensing End User Guide in the SySAM documentation set.
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.
Restart the RAPCache server. See “Start the RAPCache server” for more information.
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.