Sybase Technical Library - Product Manuals Home
[Search Forms] [Previous Section with Hits] [Next Section with Hits] [Clear Search] Expand Search

Chapter 5 Customizing

Localization for Adaptive Server [Table of Contents] Chapter 7 Adding Optional

Functionality to Adaptive Server

Configuring Adaptive Server for UNIX Platforms

[-] Chapter 6 Licensing Adaptive Server Features

Chapter 6

Licensing Adaptive Server Features

This chapter describes how to add new licenses to existing servers using Sybase Software Asset Management (SySAM).

What is SySAM?

SySAM is a licensing mechanism that:

Adaptive Server 11.9.3 uses SySAM to license optional features.

Adaptive Server features licensed through SySAM

Table 6-1 describes the Adaptive Server features that are licensed using SySAM.

Licensed Adaptive Server features

Feature name

License name

Description

Adaptive Server

ASE_SERVER

The basic Adaptive Server Enterprise product, without optional features.

High Availability

ASE_HA

Adaptive Server failover capabilities for high availability environments.

Distributed Transaction Management

ASE_DTM

Distributed transaction management features, including the Adaptive Server version 11.9.3 XA interface.

Java in Adaptive Server

ASE_JAVA

Java and XML classes in Adaptive Server databases.

Advanced Security Mechanisms

ASE_ASM

Network-based authentication and encryption using DCE and CyberSafe.

How does SySAM work?

SySAM "checks out" licensed features to users, and checks them back in when they are no longer needed. The basic components of SySAM are:

Adaptive Server check-out procedure

When you boot Adaptive Server 12.0, it looks for a license file named $SYBASE/$SYBASE_SYSAM/licenses/license.dat. If the file does not exist, Adaptive Server looks for the file specified in the environment variable LM_LICENSE_FILE.

The license file contains a pointer to the SySAM software, or to a remote machine on which SySAM is running. SySAM consists of two daemons--the license management daemon, lmgrd, and the SYBASE daemon--and utilities to manage licensing activities, lmutil. The daemons handle requests to check in or check out licensed features, as shown in Figure 6-1 .

Figure 6-1: SySAM componentsraster

Using information in the license file, Adaptive Server connects to SySAM and attempts to check out a license for the basic Adaptive Server product, ASE_SERVER. If the ASE_SERVER license is checked out successfully, Adaptive Server continues to boot and attempts to check out any optional features enabled in server_name.cfg.

If Adaptive Server is configured to use optional features, such as distributed transaction management or high availability, it attempts to check out licenses for those features during the boot-up process. If a license is unavailable for an optional feature, Adaptive Server still starts, but the feature cannot be used.

Types of SySAM systems

You can arrange the basic components of SySAM for a single standalone Adaptive Server, or for a collection of servers on a network.

Standalone system

In standalone systems, SySAM components reside on the same computer that runs Adaptive Server. Standalone SySAM systems can license either Adaptive Server alone or Adaptive Server with optional features.

Standalone system with no optional features

In a standalone installation where no optional Adaptive Server features are used, you do not need to run the asset management software. See Figure 6-2 . In this system, the license file contains all license information for ASE_SERVER. Adaptive Server obtains the basic license from the local license file and does not attempt to contact the license daemon software. No optional features can be used in this configuration.

Figure 6-2: Standalone system without optional featuresraster

Standalone system with optional features

In a standalone system where you have licensed optional Adaptive Server features, all of the SySAM components shown in Figure 6-1 reside on a single machine. The license file points directly to the asset management software, which runs on the same machine as Adaptive Server.

Network system

In a network system, a single machine called the primary network node runs SySAM. The software on the primary network node handles check in/check out requests from all other Adaptive Server instances in the system, as shown in Figure 6-3 .

Figure 6-3: Network systemraster

In a network system, the license files for remote Adaptive Server installations contain only pointers to the primary network node. Servers check out individual licenses using the license files and asset management software that reside on the primary network node.

Setting up Adaptive Server with SySAM

The steps required to enable SySAM to track the functionality of Adaptive Server depend on the type of asset management system you want to use and on the Adaptive Server features you have purchased. Table 6-2 guides you through the setup process.

Steps for setting up Adaptive Server for use with SySAM

If you want to use:

And you have purchased:

See:

Standalone asset management

  • Adaptive Server basic product, but

  • No additional licensed features

Enabling SySAM software

  • Adaptive Server basic product, and

  • One or more licensed Adaptive Server features

Enabling SySAM software and Starting SySAM

Network asset management

  • Adaptive Server basic product, with or without additional, licensed features

Enabling SySAM software and Starting SySAM

Enabling SySAM software

SySAM is installed with Adaptive Server.

If you licensed the Sybase Adaptive Server and other registered components when you installed them, SySAM is already enabled.

You must manually enable SySAM if:

Starting SySAM

If you are using a networked software asset management system, you must run the software on the primary network node before installing additional servers.

If you did not use SySAM to license Sybase server products during the unload process, use one of the following methods to start the asset management software manually:

Verifying that SySAM is running

When the lmgrd daemon starts, it automatically starts up the SYBASE daemon.

To verify that the license management software is running on the system, enter:

$SYBASE/SYSAM-1_0/bin/lmutil  lmstat -c

Make sure that both lmgrd and SYBASE are running before you continue the installation or start Adaptive Server.

Adding servers in a network asset management system

To prepare for installing additional Adaptive Servers with SySAM in a network asset management system:

Install the additional servers as instructed in the Adaptive Server installation documentation.

Adding a license for an existing server

If you did not license Adaptive Server at the time of installation, you can add a license for it.

To add a license for a basic Adaptive Server installation:

Adding licences for new features after installation

After completing the initial installation of Adaptive Server, if you install additional components that require licenses, you need to update the license information.

To add additional licenses:

Starting Adaptive Server with optional features

When you start Adaptive Server, it automatically tries to check out a license for itself (ASE_SERVER) and a license for each enabled optional feature.

You enable or disable optional features by using sp_configure. Table 6-3 lists the configuration parameters used to enable optional features.

Configuration parameters for optional features

Feature

License name

Configuration parameters

High Availability

ASE_HA

enable HA

Distributed Transaction Management

ASE_DTM

enable xact coordination

enable DTM

You must enable both xact coordination and DTM to use coordination services.

Java in Adaptive Server

ASE_JAVA

enable java

Advanced Security Mechanisms

(This feature is only available on Sun Solaris.)

ASE_ASM

use security services

By default, the configuration parameters for optional features are set to 0 (off). To enable an optional feature, use sp_configure to set its configuration parameter to 1, and reboot Adaptive Server. During the boot sequence, Adaptive Server attempts to check out licenses for all enabled features.

For information about configuring Adaptive Server as a companion server in a high availability system, see Using Sybase Failover in a High Availability System.

For information about configuring Adaptive Server with distributed transaction management, see Using Adaptive Server Distributed Transaction Management Features.

For information about configuring the other optional features, see Chapter 7, "Adding Optional Functionality to Adaptive Server" .

Troubleshooting SySAM

When you boot Adaptive Server, problems acquiring licenses or contacting the asset management software appear in the Adaptive Server error log file, $SYBASE/$SYBASE_ASE/$SYBASE_SYSAM/log/lmgrd.log.

Table 6-4 describes the SySAM error messages and suggests ways to correct common problems.

SySAM error messages

Message

Description

Action

Use license file filename.

This message identifies the license file that Adaptive Server uses.

This is a normal start-up message; no action is required.

Feature feature_name is

not licensed.

There is no license available for the specified optional feature.

You must purchase and install a valid license for the feature before it can be used. For information, see the installation guide for your platform.

There is no valid

license for ASE server product. Server is booting with all the optional

features disabled.

Adaptive Server cannot find a valid license file, or it cannot contact the asset management software to check out an ASE_SERVER license.

When Adaptive Server cannot check out an ASE_SERVER license, the server boots but does not enable any optional features.

If you have purchased an ASE_SERVER license, make sure it has been installed. Also, make sure the license file exists and has been defined in LM_LICENSE_FILE.

License manager initialization fails.

The asset management software did not initialize.

See "Starting SySAM" .

Feature feature_name is

over drafted n times.

All licenses for the specified feature have already been checked out by other servers.

Adaptive Server enables the optional feature, even though all available licenses have been used by other servers. Contact your authorized Sybase reseller to purchase an additional license for the feature.

Warning: ASE_DTM

does not have a valid license and therefore is not initialized.

Warning: ASE_HA does not have a

valid license and therefore is not initialized.

Warning: there is no valid license for

ASE_ASM and therefore feature ASM is not initialized.

Warning: there is no valid license for

ASE_JAVA and therefore feature JAVA is not initialized.

There is no license available for the configured feature.

Adaptive Server does not enable the optional feature until it can obtain a valid license. Purchase and install a license for the feature. Contact your authorized Sybase reseller.

Authorization code input error

When you purchase licenses for Adaptive Server optional features, you are issued a Sybase Software Asset Management Certificate that includes the following information for each product:

SySAM builds the license file, license.dat, from this information. It appends new licenses to the end of the file.

The authorization code is case sensitive. If you make a mistake while entering the authorization code, correct it by accessing the license file with an ASCII text editor, making the necessary changes, and saving the file. The file is located in $SYBASE/$SYBASE_SYSAM/licenses/license.dat.

Warning!

Tampering with any portion of the license file other than the authorization code invalidates the license.

The format of a license file entry is:

INCREMENT ASE_FEATURE SYBASE nn.n license_type nnnn nnnnnnnnnnnn SN=nnnnn OVERDRAFT=nnnnn ck=nnnnn

where:

Here is a sample license file:

SERVER server1 ANY 4100
 
VENDOR  SYBASE $SYBASE/$SYBASE_SYSAM/bin/SYBASEUSE_SERVER
 
INCREMENT  ASE_SERVER SYBASE 12.0 PERMANENT 1000 123456789123 SN=10001  OVERDRAFT=10000 ck=0
 
INCREMENT  ASE_JAVA SYBASE 12.0 PERMANENT 1000 123456789123 SN=10001  OVERDRAFT=10000 ck=0
 
INCREMENT  ASE_DTM SYBASE 12.0 PERMANENT 1000 123456789123 SN=10001  OVERDRAFT=10000 ck=0
 
INCREMENT  ASE_HA SYBASE 12.0 PERMANENT 1000 123456789123 SN=10001  OVERDRAFT=10000 ck=0


Changing the localization

configuration [Table of Contents] Chapter 7 Adding Optional

Functionality to Adaptive Server