Friday, 8 June 2018

SAP HANA database license management


SAP HANA database license management

About SAP HANA database 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.


There are two types of HANA License Key.

     The SAP HANA database supports two kinds of license key.

  •                     Temporary License Key
  •                     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

  •                     Unenforced (SWPRODUCTNAME=SAP-HANA)
  •                     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.

Source from SAP Fourm.https://blogs.sap.com

HANA Database installation Librarie GCC 6.x error in Linux


Symptom

In order to run SAP applications compiled with GCC 6.x on RHEL or SLES, additional operating system software packages are required to be installed.

Please note:
 
For better readability of this SAP note - if not mentioned explicitely otherwise - "RHEL" is used as a synonym for "RHEL for SAP" and "RHEL for SAP HANA", and "SLES" is applicable for "SLES for SAP Applications" as well.

Other Terms

GCC 6.x compat-sap-c++-6 libgcc_s1 libstdc++6

Reason and Prerequisites

In order to run SAP applications which were compiled with GCC 6.x, a newer compiler version than originally delivered with RHEL 7 and SLES 12, additional runtime environment packages for GCC 6.x need to be installed before running such an SAP application. Otherwise, the SAP application no longer starts and it issues error messages such as:

/usr/lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by )
/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by )
/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.19' not found (required by )
/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by )
/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by )
/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by )

 Additional example of HANA 2 on RHEL 7.x:

SAP HANA Database installation kit detected.
Installation failed
  Checking system requirements failed
    Cannot access required library '/opt/rh/SAP/lib64/compat-sap-c++-6.so': No such file or directory
    Please install the rpm package 'compat-sap-c++-6'!
  
 Additional example of HANA 2 on SLES 12 SP1:

SAP HANA Database installation kit detected.
Installation failed
  Checking system requirements failed
    rpm package 'libgcc_s1' needs at least version 6.2. (current version = 5.2.1+r226025)
    rpm package 'libstdc++6' needs at least version 6.2. (current version = 5.2.1+r226025)
    The operating system is not ready to perform gcc 6 assemblies

Solution

In order to run SAP applications compiled with GCC 6.x on RHEL or SLES, the required compiler runtime libraries need to be installed or updated. Starting with RHEL 7 and SLES 12, the required GCC 6.x runtime is available via the normal software update repositories.

Please note: You can also operate older versions of SAP applications on this system after installing the GCC 6.x libraries. There is no need to reboot.

    RHEL 7

    The RPM package compat-sap-c++-6 needs to be installed additionally to the standard compiler runtime libraries:
    In order to be able to get access to the library customers need subscriptions for “Red Hat Enterprise Linux for SAP Solutions” or in case for non SAP HANA alternatively "Red Hat Enterprise Linux for SAP Business Applications". With this subscription you can subscribe your server to the "RHEL Server SAP" or "RHEL for SAP HANA" channel on the Red Hat Customer Portal or your local Satellite server. After subscribing a server to the channel the output of "yum repolist" must contain the following:
    rhel-x86_64-server-sap- RHEL Server SAP (v. for 64-bit )
    rhel-x86_64-server-sap-hana- RHEL Server SAP HANA (v. for 64-bit )

    Afterwards the compat-sap-c++-6 package can be installed with the following command:

    # yum install compat-sap-c++-6

    Minimum version is compat-sap-c++-6, for example:

    # rpm -q compat-sap-c++-6
    compat-sap-c++-6.el7_2.x86_64



    SLES 12

    The RPM packages libgcc_s1 and libstdc++6 need to be installed resp. updated. Please proceed as follows:

    # zypper install libgcc_s1 libstdc++6

    Minimum versions are libgcc_s1-6.2.1 and libstdc++6-6.2.1, for example:

    # rpm -q libgcc_s1 libstdc++6
    libgcc_s1-6.2.1.x86_64
    libstdc++6-6.2.1.x86_64

 
Symptom

In order to run SAP applications compiled with GCC 6.x on RHEL or SLES, additional operating system software packages are required to be installed.

Please note:
For better readability of this SAP note - if not mentioned explicitely otherwise - "RHEL" is used as a synonym for "RHEL for SAP" and "RHEL for SAP HANA", and "SLES" is applicable for "SLES for SAP Applications" as well.
Other Terms

GCC 6.x compat-sap-c++-6 libgcc_s1 libstdc++6
Reason and Prerequisites

In order to run SAP applications which were compiled with GCC 6.x, a newer compiler version than originally delivered with RHEL 7 and SLES 12, additional runtime environment packages for GCC 6.x need to be installed before running such an SAP application. Otherwise, the SAP application no longer starts and it issues error messages such as:

/usr/lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by )
/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.18' not found (required by )
/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.19' not found (required by )
/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by )
/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by )
/usr/lib64/libstdc++.so.6: version `GLIBCXX_3.4.22' not found (required by )



Additional example of HANA 2 on RHEL 7.x:

SAP HANA Database installation kit detected.
Installation failed
  Checking system requirements failed
    Cannot access required library '/opt/rh/SAP/lib64/compat-sap-c++-6.so': No such file or directory
    Please install the rpm package 'compat-sap-c++-6'!
    For more information, see SAP Note 2455582.



Additional example of HANA 2 on SLES 12 SP1:

SAP HANA Database installation kit detected.
Installation failed
  Checking system requirements failed
    rpm package 'libgcc_s1' needs at least version 6.2. (current version = 5.2.1+r226025)
    rpm package 'libstdc++6' needs at least version 6.2. (current version = 5.2.1+r226025)
    The operating system is not ready to perform gcc 6 assemblies
    For more information, see SAP Note 2455582.
Solution

In order to run SAP applications compiled with GCC 6.x on RHEL or SLES, the required compiler runtime libraries need to be installed or updated. Starting with RHEL 7 and SLES 12, the required GCC 6.x runtime is available via the normal software update repositories.

Please note: You can also operate older versions of SAP applications on this system after installing the GCC 6.x libraries. There is no need to reboot.

    RHEL 7

    The RPM package compat-sap-c++-6 needs to be installed additionally to the standard compiler runtime libraries:
    In order to be able to get access to the library customers need subscriptions for “Red Hat Enterprise Linux for SAP Solutions” or in case for non SAP HANA alternatively "Red Hat Enterprise Linux for SAP Business Applications". With this subscription you can subscribe your server to the "RHEL Server SAP" or "RHEL for SAP HANA" channel on the Red Hat Customer Portal or your local Satellite server. After subscribing a server to the channel the output of "yum repolist" must contain the following:
    rhel-x86_64-server-sap- RHEL Server SAP (v. for 64-bit )
    rhel-x86_64-server-sap-hana- RHEL Server SAP HANA (v. for 64-bit )

    Afterwards the compat-sap-c++-6 package can be installed with the following command:

    # yum install compat-sap-c++-6

    Minimum version is compat-sap-c++-6, for example:

    # rpm -q compat-sap-c++-6
    compat-sap-c++-6.el7_2.x86_64


    SLES 12

    The RPM packages libgcc_s1 and libstdc++6 need to be installed resp. updated. Please proceed as follows:

    # zypper install libgcc_s1 libstdc++6

    Minimum versions are libgcc_s1-6.2.1 and libstdc++6-6.2.1, for example:

    # rpm -q libgcc_s1 libstdc++6
    libgcc_s1-6.2.1.x86_64
    libstdc++6-6.2.1.x86_64
 
More information see SNote 2455582