Professional Documents
Culture Documents
System configuration
License management
User provisioning
Monitoring (for example, performance, memory usage, disk usage, alert situations)
Administrators use the SAP HANA studio, to start and stop services, to monitor the system, to
configure system settings, and to manage users and authorizations. The SAP HANA studio accesses the
servers of the SAP HANA database by SQL. Developers can use the SAP HANA studio to create content
such as modeled views and stored procedures. These development artifacts are stored in the repository,
which is part of the SAP HANA database. The SAP HANA studio is developed in Java and based on the
Eclipse platform.
The SAP HANA studio presents its various tools in the form of perspectives. Database administration and
monitoring features are available primarily within the SAP HANA Administration Console perspective.
Additional perspectives include the SAP HANA Modeler perspective and the SAP HANA Development
perspective
The SAP HANA Administration Console opens. The Systems view is open by default. This view is the central access point for
performing system-specific administration and monitoring activities.
You can always change from another perspective to the SAP HANA Administration Console perspective by choosing Window--
Open Perspective--SAP HANA Administration Console or by choosing the SAP HANA Administration Console button in the
perspective switcher in the upper-right corner of the screen.
The database administration and monitoring features of the SAP HANA studio are presented in the SAP HANA Administration
Console perspective according to a default screen layout.
SAP HANA Administration Console in HANA Studio
Using this feature, you can open HANA database administration and monitoring features in HANA
Studio. By default, it opens in System View.
To open SAP HANA Administration, you can select SAP HANA Administration Console Perspective default
option. You can also access it via Administration button at the top.
Following tabs are available under SAP HANA Administration Console −
Overview
Landscape
Alerts
Performance
Volumes
Configuration
System Information
Diagnosis Files
Trace Configuration
These tabs are used to perform monitoring and administration tasks in your SAP HANA system.
View system information in the System Monitor System privilege CATALOG READ and object privilege
SELECT on the schema _SYS_STATISTICS
System Administration
Stop, start, restart system Operating system user (<sid>adm) credentials
Stop and start database services System privilege SERVICE ADMIN
Cancel operations System privilege SESSION ADMIN
Mark disk-full events as handled System privilege MONITOR ADMIN
Security Administration
2 System Administration
As a database administrator you are responsible for operational tasks related to the administration, monitoring, and maintenance
of your SAP HANA systems.
The SAP HANA Administration Console perspective of the SAP HANA studio is main tool for general system administration
and monitoring tasks.
Specific tasks related to the configuration of system components after installation (such as adding and removing hosts,
renaming systems) are performed using the SAP HANA lifecycle management tools.
The Catalog folder, which contains all activated database objects, grouped by schema
The Security folder, which contains all database users and activated roles
Prerequisites
You have the system privilege SERVICE ADMIN.
Context
You may need to stop and (re)start services in the following situations, for example:
A host in a distributed system failed and a standby host took over. However, the services of the failed host remain inactive even
after the host is reachable again. In this case, you need to restart the services manually.
Procedure
SAP HANA's configuration files contain parameters for global system configuration (global.ini), as well as the configuration of
each service in the system (for example, indexserver.ini). You can access and edit configuration files on the Configuration tab of
the Administration editor. They are stored on the server at the following default location on the server:
/hana/shared/$SID/global/hdb/custom/config.
Prerequisites
You have the system privilege INFILE ADMIN.
Procedure
While temporary license keys are automatically installed in an SAP HANA database, permanent license keys have to be
requested on the SAP Service Marketplace and applied to the individual SAP HANA database.
The global_allocation_limit parameter is used to limit the amount of memory that can be used by the database. The value is the
maximum allocation limit in MB. A missing entry or a value of 0 results in the system using the default settings. The global
allocation limit is calculated by default as follows: 90% of the first 64 GB of available physical memory on the host plus 97% of
each further GB. Or, in the case of small physical memory, physical memory minus 1 GB.
A temporary license key, which is valid for 90 days, is automatically installed with a new SAP HANA database. During this
period, you should request and apply a permanent license key.
You can request a permanent license key on the SAP Service Marketplace under Keys & Requests. Permanent license keys are
valid until the predefined expiration date. Furthermore, they specify the amount of memory licensed to the target SAP HANA
installation. Before a permanent license key expires, you should request and apply a new permanent license key. If a permanent
license key expires, a temporary license key valid for 28 days is automatically installed. During this time, you can request and
install a new permanent license key.
There are two types of permanent license key available for SAP HANA: unenforced and enforced. 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.
However, if an enforced license is installed, the system is locked down when the current memory consumption of SAP HANA
exceeds the licensed amount of memory plus some tolerance. If this happens, either SAP HANA needs to be restarted, or a new
license key that covers the amount of memory in use needs to be installed.
System Lockdown
You were using a temporary license key and the hardware key has changed.
The permanent license key has expired and you did not renew it within 28 days.
The installed license key is an enforced license key and the current memory consumption exceeds the licensed amount plus the
tolerance.
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.
Status and resource usage of all system components, for example, name server, index server, and so on
Alerts issued by the system in relation to its status, performance, and resource consumption
Disk space consumed by system processes for the various storage types (data, log, and trace)
System performance, for example, by analyzing performance indicators such as expensive statements, running threads, and load
history
The availability of an SAP HANA system is indicated by its operational status, which you can see in the Systems view, in the
System Monitor, and on the Overview tab of the Administration editor.
An SAP HANA system consists of a number of services (including Indexserver, preprocessor, nameserver, and
compilerserver). The system assumes the status of the service with the most critical status. The status of services is determined
through an SQL connection and/or the SAP start service (sapstartsrv).
Note
Data and logs can only be backed up when all services that persist data are running.
An error is also indicated if sapstartsrv cannot be reached. If this is the case but all other services are running (their status having
been determined through an SQL connection), the system itself is operational and accessible.
There are several reasons why sapstartsrv is not reachable. You should first check whether or not it is running. You can do this by
checking the connection to the Web service in a Web browser. Enter the following URL to get the Web service description
(WSDL) from the sapstartsrv of an SAP HANA system:
http://<host>:5<instance_number>13/?wsdl
If you receive an XML output that starts with definitions name="SAPControl", then the connection is working.
In many cases, sapstartsrv cannot be reached because the HTTP proxy is incorrectly configured in the SAP HANA studio. To
resolve this, from the main menu, choose Window-Preferences-Network Connections and change the value for active provider
from Native to Direct.
On the LandscapeServices tab of the Administration editor, you can see the status of the services that start when the system is
started. The initial connection to the system is established by the sapstartsrv service. If you have a multiple-host system, the
services that start depend on which components are actually installed on the instance.
Overview of SAP HANA System Components
Monitoring Host Status and Auto-Failover Configuration
The SAP HANA database supports high availability in a distributed system by providing for host auto-failover. If an active host
fails, for example, because of a hardware failure, standby hosts can take over and thus ensure the continued availability of the
database.
You can monitor the status of individual hosts on the LandscapeHosts tab.
During installation, volumes for storing data and log files are defined. These are the
directories where data and logs are stored. The default directories are:
/usr/sap/<SID>/SYS/global/hdb/data for data
/usr/sap/<SID>/SYS/global/hdb/log for logs
Each active host has exactly one sub-directory beneath these directories called mnt00001,
mnt00002, and so on. The next level in the file hierarchy is the actual volume, with one sub-
directory for each service
Monitoring Alerts
As an administrator, you actively monitor the status of the system, its services, and the consumption of system resources.
However, you are also alerted of critical situations, for example: a disk is becoming full, CPU usage is reaching a critical level, or
a server has stopped.
The statistics server, which is part of the internal monitoring infrastructure of the SAP HANA database, is continuously
collecting and evaluating information about status, performance, and resource usage from all components of the SAP HANA
database.
In addition, it performs regular checks on the collected data and when configurable threshold values are exceeded, issues alerts.
In this way, you are warned of potential problems. The priority of the alert indicates the severity of the problem and depends on
the nature of the check and configured threshold values. For example, if 90% of available disk space is used, a low priority alert
is issued; if 98% is used, a high priority alert is issued.
Current alerts are summarized on the Overview tab of the Administration editor and displayed in detail on the Alerts tab.
General information about overall system performance is available in the System Monitor and on the Overview tab of the
Administration editor. You can monitor the following fine-grained aspects of system performance on the Performance tab:
Threads
Sessions
Blocked transactions
Expensive statements
System load
Thread Monitoring
You can monitor all running threads in your system in the Administration editor on the PerformanceThreads sub-tab. It may
be useful to see, for example, how long a thread is running, or if a thread is blocked for an inexplicable length of time
Session Information
The Sessions sub-tab allows you to monitor all sessions in the current landscape. You can see the following information:
Statistics like average query runtime and the number of DML and DDL statements in a session
The operator currently being processed by an active session (Current Operator column).
Blocked transactions are transactions that are unable to be processed further because they need to acquire transactional locks
(record or table locks) that are currently held by another transaction. Transactions can also be blocked waiting for other resources
such as network or disk (database or metadata locks).
Load Monitoring
A graphical display of a range of system performance indicators is available in the Administration editor on the
PerformanceLoad sub-tab.
You can use the load graph for performance monitoring and analysis.
There are two views available on the Volumes tab for monitoring the size of volumes on disk:
Service
During the installation process, the following default directories are created as the storage locations for data and log volumes
respectively:
/usr/sap/<SID>/SYS/global/hdb/data
●
/usr/sap/SID/<SYS>/SYS/global/hdb/log
Note
These default directories are defined in the parameters basepath_datavolumes and basepath_logvolmes in the persistence section
of the global.ini file.