Académique Documents
Professionnel Documents
Culture Documents
Agenda
Diagnosis Mode
Overview
Landscape
Alerts
Performance
Volumes
Configuration
System Information
Diagnosis Files
Trace Configuration
More Information
1.
2.
3.
Administration editor
SQL console
Table editor
Error Log
Properties
Progress
Administration Console
SAP HANA Systems View
The SAP HANA Systems view provides you with a hierarchical view of all the SAP HANA systems managed in
the SAP HANA studio and their contents (database catalog, users, roles). This view allows you to see the status
of your systems at glance. It is also the central access point for performing system-specific administration and
monitoring activities.
From the context menu of the SAP HANA Systems view, you can access a range of both system-specific and
object-specific functions, for example:
Add system
Log On to / Log Off from system
Stop, start, restart system
Open system properties
Back up and recover the system
Import and export catalog objects
Open SQL console
Find table
Open table definition
Administration Console
System Usage Type
Display of System Usage Type
You can configure the usage type of an
SAP HANA system (for example,
production, development) during
installation with the system_usage
parameter or later by changing the system properties.
SAP HANA studio evaluates this parameter to warn users when they
are about to perform critical operations on systems with usage type
production (for example, execute SQL statements, stop or restart the
system, perform a data backup, and so on)
This does not prevent data manipulation in productive systems,
however it keeps reminding you to be careful
2
a)
b)
3. Choose Finish.
c)
3
2014 SAP AG. All rights reserved.
10
11
12
Memory
Disk
The editor can help to
analyze bottlenecks,
identify patterns, and
forecast requirements.
The editor can be
opened via the contextmenu on the specific
SAP HANA system.
13
Administration Console
Administration Editor
The Administration editor is
available in the Administration
Console perspective and is
the main tool for performing
administration and monitoring
activities. You can open the
Administration editor for a
system by simply doubleclicking the system in the SAP
HANA Systems view.
14
Administration Editor
Diagnosis Mode
Emergency Support Mode
SAP HANA studio collects
information about systems using SQL
When a system cannot be reached
by SQL or it is experiencing major
performance issues due to high load
or blocking situations, information
can instead be collected using the
connection of the SAP start service
(sapstartsrv).
The Administration editor diagnosis mode provides access to:
The operational status of all services in the system
Log and trace files
The collection of diagnosis information into a zip file
All connections, transactions, blocked transactions, and threads in the system
If necessary, you can cancel individual connections and transactions, or even
cancel all transactions.
Note: To open the Administration editor in diagnosis mode you need the
credentials of the operating system user <sid>adm.
2014 SAP AG. All rights reserved.
sapstartsrv
python
hdbcons
HANA
Indexserver
15
Administration Editor
Overview Tab
The Overview tab provides you with the most important information about a system at a glance:
System status
Memory usage
CPU usage
Disk usage
From the Overview tab, you
can navigate to more detailed
information.
16
Administration Editor
Landscape > Services Tab
The Landscape tab contains several sub-tabs.
17
Administration Editor
Landscape > Services Tab > Memory Allocation Statistics I
The new Memory Allocation Statistics editor enables you to visualize and
explore the memory allocation of every service.
In the Administration editor, choose the Landscape -> Services tab. Right-click the service whose
allocation history you want to investigate and choose Open Memory Allocation Statistics
Administration Editor
Landscape > Services Tab > Memory Allocation Statistics II
Analyze the used memory history
of the component and its allocators
by enabling the history graph
(Show Graph) and exploring the
data.
Several options are available, for
example:
To change the visualized time period, adjust
the From/To values.
To visualize the memory usage of individual
allocators over the same time period as the
selected component, simply select them in
the allocators table.
To see time-specific values, move the
mouse over the graph.
To see the visualized values in table format,
choose Show history data in a table
2014 SAP AG. All rights reserved.
19
Administration Editor
Landscape > Hosts Tab
The Hosts sub-tab provides
you with:
An overview of all the
hosts in a distributed system
Detailed information about
the auto-failover status and
configuration of hosts
20
Administration Editor
Landscape > Redistribution Tab
In a distributed system, tables and table partitions are assigned to an index server on a particular
host at their time of creation, but this assignment can be changed. In certain situations, it is even
necessary. SAP HANA supports several redistribution operations that use complex algorithms to
evaluate the current distribution and determine a better distribution depending on the situation.
The Redistribution sub-tab allows you to execute redistribution operations if you need to:
Redistribute data before removing a host from the system
Redistribute data after adding a new host to the system
Optimize current table distribution
Optimize table partitioning
Note: It is always recommended
that you save the current distribution before
executing a table redistribution operation
in case you need to restore it.
2014 SAP AG. All rights reserved.
21
Administration Editor
Landscape > System Replication Tab I
System replication is a mechanism for ensuring the high availability of an SAP HANA system. Through the
continuous replication of data from a primary to a secondary system, including in-memory loading, system
replication facilitates rapid failover in the event of a disaster. Productive operations can be resumed with minimal
downtime.
Trigger failover to the secondary system in the event of a disaster and failback once the primary system is
available again.
22
Administration Editor
Landscape > System Replication Tab II
23
Administration Editor
Landscape > System Replication Tab III
Extended system replication configuration
To offer higher levels of availability you can link
together multiple systems in a multitier system
replication landscape.
After setting up a basic system replication
scenario you add a third system to provide
another level of redundancy.
In a multitier setup the primary system is
always on tier 1, a tier 2 secondary has a
primary system as its replication source and
a tier 3 secondary has the tier 2 secondary as
its replication source.
The tier 3 secondary can now also be added
using SAP HANA studio.
On each node only those actions are provided,
which are currently possible depending on the
system status.
2014 SAP AG. All rights reserved.
24
Administration Editor
Alerts Tab I
As one of the main components of the
monitoring infrastructure of the SAP
HANA database, the statistics service
performs regular checks and issues an
alert when an alert condition is fulfilled.
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.
The summary header on the Alerts tab
shows the total number of current alerts
by priority and the corresponding list of
alerts
25
Administration Editor
Alerts Tab II
The Alerts sub-tab provides you with:
An overview of:
Specific word
Priority
Check ID
Time frame
E-mail notification
Alert thresholds
Check start times
26
Statistics Service
New implementation design as of SAP HANA SPS 07
The new statistics service design leads to performance and flexibility improvements
The statistics server is the component of the SAP HANA database that provides internal monitoring
functions. It continuously collects information about system status, performance, and resource usage, and
issues alerts in the event of problems. As of SPS 07, it is possible to switch to a new mechanism whereby
data collection and alerting are implemented through the execution of SQLScript procedures. This has the
following advantages:
The statistics server component is no longer required. By replacing the statistics server with internal procedure calls, overall
system performance is improved with reduced disk usage, memory usage, and data transfer.
The statisticsserver.ini properties file is no longer required to contain all configuration information relating to data collection and
alerting. Instead this information is contained in new tables in the _SYS_STATISTICS schema. This increases the overall
flexibility with which data collection and alerting can be configured. For example, data collectors and checks can be scheduled
more flexibly, new collectors and checks can be added more easily, and data collectors and checks can be deactivated.
For more information about how to migrate to the new mechanism after an upgrade, see SAP Note 1917938
27
Administration Editor
Performance Tab
You can monitor the following detailed aspects of system performance on the Performance tab:
Threads
Sessions*
Blocked transactions
Expensive statements*
Job progress*
Load
*The information displayed on these sub-tabs of the Performance tab is detailed and highly
customizable. To support administrators performing complex analyses, user-specific column and filter
settings are saved when the Administration editor is closed. These settings are restored the next time
the tab is opened, independent of system.
2014 SAP AG. All rights reserved.
28
Administration Editor
Performance > Threads Tab I
The Threads sub-tab allows you to monitor all running threads in your system. It may be useful to
see, for example, how long a thread is running, if a thread is blocked for an inexplicable length of
time. On the Threads sub-tab:
The Group and sort filter provides a meaningful and clear structure for thread analysis:
29
Administration Editor
Performance > Threads Tab II
On the Threads sub-tab, you can also perform the following actions:
End the operations associated
with a thread
See the full details of a thread
Jump to the related calling and
called threads, session or
blocked transaction of a thread
by right-clicking the thread
View the call stack for a specific
thread
Configure the SQL, performance
or expensive statement trace
30
Administration Editor
Performance > Sessions Tab
The Sessions sub-tab allows you to monitor all sessions in the current landscape:
Active/inactive sessions and their relation to applications
Whether a session is blocked and if so which session is blocking
The number of transactions that are blocked by a blocking session
Statistics like average query runtime and the number of DML and DDL statements in a session
31
Administration Editor
Performance > Blocked Transactions Tab
If there are blocking situations (indicated on the Threads sub-tab), you can see another
representation of the information about blocked and blocking transactions on the Blocked
Transactions sub-tab. Sort by transaction ID to see the relationship between the two views better.
32
Administration Editor
Performance > Threads, Sessions and Blocked Transactions Tab I
Easy navigation between the editors: Threads, Sessions, and Blocked Transaction
As of SPS07 it is possible to navigate between Performance Threads, Sessions and Blocked Transaction view by using the
connection ID. This functionality is reachable from the context menu from the view under Navigate To.
In the threads view it is possible to navigate from/to callee/caller by using the thread ID.
In the Sessions view it is possible to navigate to the connection which is blocking the selected connection.
The application information (name and user) which is available in the performance threads, sessions and blocked transaction
view can also be used to open a pre-configured dialog for SQL, performance and expensive statement trace.
33
Administration Editor
Performance > Threads, Sessions and Blocked Transactions Tab II
Filter to hide idle sessions, as well as sessions originating in the Administration editor or other
applications in the SAP HANA studio
As of SAP HANA SPS 07 it is possible to hide different session types from the Performance > Threads, Sessions and Blocked
Transaction view. Each option can be selected in the drop down menu Hide Sessions.
If an option is selected a new SQL statement is executed to display only the filtered rows. This filter is not only operating on
display level. When an option is selected, the database is queried again for the relevant sessions.
34
Administration Editor
Performance > SQL Plan Cache Tab I
You can use the SQL plan cache to get an insight into the workload in the system as it lists frequently executed
queries. Technically, the plan cache stores compiled execution plans of SQL statements for reuse, which gives a
performance advantage over recompilation at each invocation. For monitoring reasons, the plan cache keeps
statistics about each plan, for instance number of executions, min/max/total/average runtime, and lock/wait
statistics.
Analyzing the plan cache is very helpful as one of the first steps in performance analysis because it gives an
overview about what statements are executed in the system.
Note: Due to the nature of a cache, seldom used entries will be evicted from the plan cache.
You can view the SQL plan cache on the SQL Plan Cache sub-tab.
35
Administration Editor
Performance > SQL Plan Cache Tab II
Plan Cache: Keep Set of Parameters
The parameter set of a prepared statement is stored in monitoring view M_SQL_PLAN_CACHE_PARAMETERS to allow for
the easy re-execution of a specific query:
First parameter set is stored when the total execution time of the statement is greater than parameter
plan_cache_parameter_sum_threshold (default 1000ms).
Afterwards, the parameter values will be updated if the statements single execution time is greater than parameter
plan_cache_parameter_threshold (default 100ms) and its last captured execution time.
Parameters to enable this feature:
plan_cache_parameter_enabled: Activate/deactivate
capture of parameter values of prepared statements
plan_cache_parameter_for_lob_enabled: Activate/
deactivate capture of BLOB/CLOB/NCLOB
parameter values.
In the Admin editor of SAP HANA Studio on tab
Performance -> SQL Plan Cache the stored parameter
set is used when you choose Visualize Plan or
Prepare in SQL Console
2014 SAP AG. All rights reserved.
36
Administration Editor
Performance > Expensive Statements Trace Tab I
Expensive statements are individual SQL queries whose execution time was above a configured threshold.
Expensive statements may reduce the performance of the database. The expensive statements trace records
information about these statements for further analysis and displays them on the Expensive Statements Trace
sub-tab.
You can configure for which user, table/view or application statements should get recorded.
You can navigate between the Expensive Statements Trace and the SQL Plan Cache, displaying a specific statement in the
other view using the context menu option Navigate To
37
Administration Editor
Performance > Expensive Statements Trace Tab II
Statement Memory Tracking and Statement Memory Limitation:
38
Administration Editor
Performance > Job Progress Tab
Certain operations typically run for a long time and may consume a considerable amount of
resources, for example, delta merge operations, data compression, and delta log replays.
You can monitor the progress of these long-running transactions on the Job Progress sub-tab. You
can determine whether or not they are responsible for current high load, see how far along they are,
and when they will finish. The following information is available, for example:
39
Administration Editor
Performance > Load Tab
The Load sub-tab provides you with a
graphical display of current
performance, for example:
CPU usage
Memory consumption
Table unloads
40
Administration Editor
Volumes Tab
To ensure that the database can always be restored to its most recent committed state, you must ensure
that there is enough space on disk for data and log volumes. On the Volumes tab, you can monitor:
Disk usage
Volume size
Other disk activity statistics
There are two views available for monitoring the size of volumes on disk: service and storage type. You
can also filter by host.
41
Administration Editor
Configuration Tab
hostxxx
42
Administration Editor
System Information Tab
The System Information tab lists several predefined SQL SELECT statements on system views. These
statements provide you with easy access to important system information.
If you have compiled your own SQL statements for monitoring purposes, you can save these statements on the System
Information tab for convenient repeated execution
Alternatively, you can import multiple
statements as text or ZIP archive files
To organize large numbers of
statements meaningfully, you can
define a folder structure.
Predefined statements are stored
in the System folder.
43
Administration Editor
Diagnosis Files Tab I
Diagnosis files include log and trace files, as well as a mixture of other diagnosis, error, and
information files. In the event of problems with the SAP HANA database, you can check these
diagnosis files for errors.
On the Diagnosis Files tab, you can:
Filter the list of diagnosis files
(by keyword, host)
Display individual files
Review multiple files at the same time using
the Merge Diagnosis Files function
Delete files
Download files
Collect and download diagnosis information
44
Administration Editor
Diagnosis Files Tab II
45
Administration Editor
Trace Configuration Tab I
You can configure the following traces on the Trace Configuration tab. Different configuration options are
available for each trace.
Database trace (including user-specific and end-to-end database traces)
The database trace records information about activity in the components of the SAP HANA database. You
can use this information to analyze performance and to diagnose and debug errors. Each service of the
SAP HANA database writes to its own trace file. By default, the database trace is active with default trace
level ERROR.
SQL trace
The SQL trace collects information about all executed SQL statements and saves it as an executable
python program. This is good for recording a scenario. By default, the SQL trace is inactive.
46
Administration Editor
Trace Configuration Tab II
Performance trace
The performance trace is a performance tracing tool built into the SAP HANA database. It records
performance indicators for individual query processing steps in the database kernel. By default, the
performance trace is inactive.
Kernel profiler
The kernel profiler is a sampling profiler built into the SAP HANA database. It collects, for example,
information about frequent and/or expensive execution paths during query processing. By default, the kernel
profiler is inactive.
Note: You cannot analyze the files generated by the performance trace and the kernel profiler meaningfully in the SAP HANA studio, but instead
must use a tool capable of reading the respective output format. SAP Support has tools for evaluating these traces.
47
Administration Editor
Trace Configuration Tab III
48
Table definition
The table definition view provides you with information about the table's structure and properties (for
example, schema, type, column properties, and indexes). Detailed information relating to the table's
memory usage and size is available on the Runtime Information sub-tab.
Table content
Opening a table's content executes a SELECT statement on the table. The result set shows the
actual records in the table.
Data preview
Opening the data preview of a table allows you to analyze the content of the table in different ways.
Similarly to the table content view, this is particularly useful for analyzing system views.
50
51
52
53
54
55
SQL Console
SQL Console
Executing SQL Statements in the SAP HANA Studio
Some tasks may require you to work with SQL statements,
for example, certain administration tasks can only be
performed using SQL.
57
SQL Console
Query Analysis Features
The following functions for analyzing query
execution are available in the SQL console:
Explain plan
Visualize plan
Note: Visualize Plan is also available from the
context menu of the SQL Plan Cache and
Expensive Statements Trace sub-tabs of the
Performance tab.
58
SQL Console
Plan Visualizer I
To help you understand and analyze the execution plan of an expensive statement or an SQL
statement further, you can generate a graphical view of its plan. A graphical representation of the
query, with estimated performance, is displayed. You can then validate the estimated performance
by choosing Execute in the context menu. Another similar high-level graphic is generated with
execution time information for each of the parts.
Visualized Plan
Execution
Column Plan
59
SQL Console
Plan Visualizer II
Operator List for Plan Visualizer
The Operator List lists detailed characteristics of all operators within a current plan (visualized + executed).
It can be used to dynamically explore the operator set along user defined filters in order to pinpoint specific operators of
interest.
For example you might:
Filter all operators
consuming a certain
minimal CPU time
Then order those
operators along the
number of input rows
Further restrict the filter
to a specific operator
type (e.g. "Column
Search)
And then double-click on an operator of interest in order to check its positioning within a visualized plan
60
Security
Administration
Development
2014 SAP AG. All rights reserved.
61
Some software products marketed by SAP AG and its distributors contain proprietary software components of other software vendors.
National product specifications may vary.
These materials are provided by SAP AG and its affiliated companies ("SAP Group") for informational purposes only, without representation or warranty of any kind, and
SAP Group shall not be liable for errors or omissions with respect to the materials. The only warranties for SAP Group products and services are those that are set forth in
the express warranty statements accompanying such products and services, if any. Nothing herein should be construed as consti tuting an additional warranty.
SAP and other SAP products and services mentioned herein as well as their respective logos are trademarks or registered trademarks of SAP AG in Germany and other
countries.
Please see http://www.sap.com/corporate-en/legal/copyright/index.epx#trademark for additional trademark information and notices.
62