Sunteți pe pagina 1din 14

About Managing SAP HANA Licenses

License keys are required to use SAP HANA Database. We can install and delete the license keys
using the SAP HANA Studio, SAP HANA HDBSQL command line tool and HANA SQL Query Editor.

HANA License Key Types

The SAP HANA database supports two kinds of license key.

I. Temporary License Key

II. Permanent License Key

Temporary License Key:

The temporary license keys are automatically installed with a new SAP HANA database
installation. It is valid for 90 days from installation date. During this period we should request in service
market place and apply permanent license key.

Permanent License Key:

The permanent license keys are valid until the predefined expiration date. It has to be requested
on the SAP Service Marketplace under Keys & Requests and applied to the individual SAP HANA
database. Furthermore they specify the amount of memory licensed to the target SAP HANA installation.

Note: Before a permanent license key expires, we should request and apply a new permanent
license key. If it is expires, a temporary license key valid for 28 days is automatically installed. During this
time, we can request and install a new permanent license key again.

There are two types of permanent license key available for SAP HANA

I. Unenforced (SWPRODUCTNAME=SAP-HANA)

II. Enforced (SWPRODUCTNAME=SAP-HANA-ENF)

Unenforced License:
If an unenforced license key is installed, the operation of SAP HANA is not affected if its memory
consumption exceeds the licensed amount of memory.

Enforced License:

If enforced license key is installed the system will be locked if memory consumption of HANA
exceeds the license amount of memory plus some tolerance. If this happens HANA has to be restarted or
a new license key should be requested, or a new license key that covers the amount of memory in use
needs to be installed.

Authorization for Licensing Management

The user required authorization of LICENSE ADMIN system privilege.

Important Points

There are a few different license models for SAP HANA depending on the business scenario
(SAP HANA Stand-alone, SAP HANA Cloud, SAP Business Suite, SAP NetWeaver Business
Warehouse or another Application on top of SAP HANA, etc.) and not all of them are based on
memory.

If anyone have license related any questions, Please Contact with your SAP Account Executive who will
gladly provide details.

Applying SAP HANA License

For example of SAP HANA License Install and delete using the SAP HANA Studio, SAP HANA
HDBSQL command line tool and HANA SQL Query Editor.

I. Installing SAP HANA License Using SAP HANA Studio

Windows: Start All Programs SAP HANA SAP HANA Studio


Right Click in left hand side to Add system

Fill the required details Host Name, Instance Number, Description and Select the Locale.

Press next to Enter the User Name and Password with LICENSE ADMIN privilege User.

Press Finish Button. The screen shows HDB, SYSTEM and License(optional) are SID, User and
Description
Right on DB1 to Property

Temporary License status Screen

License Expired status Screen


Now we can generate the HANA License in Service Market Place(http://service.sap.com/licensekey) SMP
login required.
Get the information required to request a permanent license key.

To request the first permanent license key for a newly installed SAP HANA database, you need to
provide the hardware key and the system ID. To request a subsequent permanent license key, you need
the installation number and system number of your SAP HANA database. You can get the required
information in the SAP HANA studio as follows:

I. In the Systems view, right-click the system and choose Properties License.

II. Get Hardware Key and you can use SQL to access the required information from the M_LICENSE
system view.

The below Screen shows SAP Internal License Register, But your customer place Installation Number
display instead of SAP-INTERN.

Select your system type from below list


Select your License type

Quantity of Memory

Valid Until Date and Submit

Download the txt file

Unenforced SWPRODUCTNAME=SAP-HANA This License file is Unenforced

Enforced SWPRODUCTNAME=SAP-HANA-ENF

Install License key in Hana Studio


Press Install License Key and Select the text file

Select License.txt file from directory where you downloaded file saved directory

Apply License Using SAP HANA HDBSQL command line tool


Login into sidadm in SAP Hana Database OS level

Copy License key from License.txt file and execute the command line SET SYSTEM LICENSE
<Entire License.txt file>;
Note: Before update License in command line, we should enable multiline mode on this server using this
command: \mu ON. (updated this from Kimberley Chens feedback.)

Check the License status


Apply License using SAP HANA SQL Query Editor
In SQL Editor to execute the command SET SYSTEM LICENSE <License File Location>

Delete an Existing Permanent License Key

We can delete all existing license keys in an SAP HANA database, for example, if permanent license
keys with an incorrect installation number or incorrect system number were installed on the database.

Prerequisites

You have the system privilege LICENSE ADMIN.

Uninstall the license key using one of the following options:


SAP Hana Studio

In the Systems view, right-click the system and choose Properties License.

Choose Delete License Key.

Hana SQL Console


Execute the SQL command UNSET SYSTEM LICENSE ALL

Hana HDBSQL

Execute the SQL command UNSET SYSTEM LICENSE ALL

All permanent license keys are deleted. This results in the lockdown of the database. The installation
of a new, valid permanent license key is required to unlock the database.

System Lockdown

The system goes into lockdown mode in the following situations:

1. The temporary license key has expired.

2. You were using a temporary license key and the hardware key has changed.

3. The permanent license key has expired and you did not renew it within 28 days.

4. The installed license key is an enforced license key and the current memory consumption
exceeds the licensed amount plus the tolerance.

5. You deleted all license keys installed in your database.

In lockdown mode, no queries are possible. Only a user with the system privilege LICENSE ADMIN can
connect to the database and execute license-related queries, such as, obtain previous license data, install
a new license key, and delete installed license keys. In addition, the database cannot be backed up in
lockdown mode.

SAP Note 1739427 How to request and install SAP HANA license key from SAP for more details.

https://scn.sap.com/docs/DOC-55942

S-ar putea să vă placă și