Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

SAP HANA SPS10- Administration & Monitoring

10,691 views

Published on

See what's new in SAP HANA SPS10- Administration & Monitoring

Published in: Technology

SAP HANA SPS10- Administration & Monitoring

  1. 1. 1© 2014 SAP AG or an SAP affiliate company. All rights reserved. SAP HANA SPS 10 – What’s New? Administration & Monitoring SAP HANA Product Management June, 2015 (Delta from SPS 09 to SPS 10)
  2. 2. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 3Customer Agenda SAP DB Control Center  MDC support  Registration of cloud systems SAP HANA Cockpit  Usability improvements  MDC support  Performance analysis SAP HANA Web-based Development Workbench  Trace configuration  Performance analysis SAP HANA Database  Consistency checks  Performance monitoring  Hardware and OS monitoring
  3. 3. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 4Customer Tools Overview – Status SPS10 The SAP HANA studio is both the central development environment and the main administration tool for the SAP HANA database. With SPS09 additionally a first version of the web-based tools SAP DB control center and SAP HANA cockpit was introduced for monitoring SAP HANA. These tools can also be used on mobile devices. Furthermore SAP HANA is fully integrated into SAP Solution Manager. SAP HANA SAP HANA Studio Central development environment and main administration tool for SAP HANA, based on Eclipse SAP DB Control Center & SAP HANA Cockpit Web-based tool for landscape Web-based tool to monitor monitoring of SAP databases individual SAP HANA databases SAP Solution Manager / DBA Cockpit Central tool to manage the SAP landscape, based on the SAP NetWeaver Application Server
  4. 4. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 5Customer Tools Overview – Future Plan Following SAP’s cloud strategy, SAP HANA offers web-based tools for monitoring and administration. SAP HANA cockpit follows an alert-driven guided- procedure approach. A DBA will be enabled to drill-down to the root cause of an issue. It is planned to replace the administration perspective of HANA studio with SAP DB Control Center and SAP HANA cockpit in the long term. SAP HANA SAP HANA Studio Central development environment and main administration tool for SAP HANA, based on Eclipse SAP DB Control Center & SAP HANA Cockpit Web-based tool for landscape Web-based tool to monitor & operate monitoring of SAP databases individual SAP HANA databases SAP Solution Manager / DBOS Cockpit Central tool to manage the SAP landscape, based on the SAP NetWeaver Application Server This is the current state of planning and may be changed by SAP at any time.
  5. 5. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 6Customer SAP DB Control Center and SAP HANA Cockpit Overview  SAP DB Control Center – Web-based tool for administration and monitoring of your landscape of SAP databases  SAP HANA cockpit – Web-based tool for administration and monitoring of a single SAP HANA database
  6. 6. SAP DB Control Center
  7. 7. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 8Customer SAP HANA Multitenant Database Container support Description  Ability to register one or more SAP HANA MDC environments  Monitor and manage SAP HANA MDC system and tenant databases Benefit  Customers looking to take advantage of SAP HANA MDCs to lower their total cost of ownership can monitor their landscape of tenant databases using DCC
  8. 8. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 9Customer System registration over HTTPS Description  When registering an SAP HANA system in the DCC system, the initial resource scan is now performed over HTTPS, as opposed to HTTP Benefit  Enables monitoring of an SAP HANA database landscape running in a cloud environment, such as SAP HANA Cloud Platform (HCP) and SAP HANA Enterprise Cloud (HEC)
  9. 9. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 10Customer Simplified configuration Description  Creation of a new role that consolidates the administrative roles necessary to configure DCC Benefit  Simplifies the initial DCC system configuration by reducing the number of steps required during setup
  10. 10. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 11Customer Persistence of system health history Description  Ability to store historical alert, availability, capacity, and performance health statistics for monitored systems Benefit  Enables users with capability to generate their own custom reports (for example, using SAP Lumira) based on historical alert and health data
  11. 11. SAP HANA Cockpit
  12. 12. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 14Customer SAP HANA Cockpit Usability Web-based Administration and Monitoring Tool Built following the SAP Fiori design principles  Enables monitoring on mobile devices  Focus on usability Persona-oriented design principle  Launchpad offers wide range of applications  Applications designed to offer solutions for typical DBA tasks Web-application installed as HANA auto- content  Applications can be integrated in other tools via URL redirect  Ready for cloud deployments URL of SAP HANA cockpit: http://<host>:<port>/sap/hana/admin/cockpit
  13. 13. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 15Customer SAP HANA Cockpit Usability Automatic grant of privileges  To ensure that SAP HANA cockpit can be used immediately after database creation, the database user SYSTEM is automatically granted several roles the first time the cockpit is opened with this user.  Caution: Do not use the SYSTEM user for day-to-day activities. Instead, use this user to create dedicated database users for administrative tasks and to assign privileges to these users.
  14. 14. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 16Customer SAP HANA Cockpit Usability Database Header  The name of the system or database appears in the shell bar of the launchpad. If the system has the system usage type production, this is also indicated. Context Sensitive Help  The cockpit header now also includes a help icon.  This provides easy access to the documentation for the currently opened app. Automatic Tile Refresh  The information displayed on the tiles of the SAP HANA cockpit are automatically refreshed at default intervals  Intervals vary according to the type of information displayed.  You can configure the intervals in the homepage settings.
  15. 15. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 17Customer SAP HANA Cockpit Usability Alerts  Latest Alerts has been renamed to Alerts  All Alerts has been renamed to Past Alerts  The Proposed Solution of the alerts has been extended with a link to follow-up actions or analysis apps.  A direct link to the configuration of a specific alert has been added.  It is now also possible to reset alert thresholds to default values (in the alert configuration app).
  16. 16. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 18Customer SAP HANA Cockpit Usability Manage Services  Database Status app was extended with service administration tasks (e.g. start/stop/kill service, remove service) and therefore renamed to Manage Services  Most important actions are directly available in the footer toolbar, more actions are available using the … menu.  Further improvements are – Additional icon for service status – If a service is offline, a link to the corresponding crash dump is available
  17. 17. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 19Customer SAP HANA Cockpit Usability General Information  Provides information about – system usage type, – start time of services – system version, and version history, – time of last upgrade, – platform, – system replication – and installed plug-ins
  18. 18. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 20Customer SAP HANA Cockpit SAP HANA Multitenant Database Containers: Overview Multitenant database containers are a new way to run multiple applications/scenarios on one SAP HANA system  1 system database and multiple tenant databases  Shared installation of database system software  Strong isolation features, the system database and each of the tenant databases have their own: – database users, – database catalog, – repository, – persistence, – backups, – traces and log files  Distinction between tasks performed at system level and those performed at database level  Integration with data center operation procedures *tenant database = database container Application 1 SAP HANA system Application 2 Tenant database 1* Tenant database 2 System database
  19. 19. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 21Customer SAP HANA Cockpit MDC Support SAP HANA System Administration  For multiple-container systems a new catalog is available which allows you to monitor and manage all tenant databases.  It is only available in the system database.  The following tiles are available: – Manage Databases - indicates overall system health and provides access to the Manage Databases app where you can monitor the status and resource usage of individual databases, as well as perform other administration tasks – System Alerts - indicates the number of high and medium alerts currently raised in tenant databases and provides access to the Alerts app where you can view and analyze alert details
  20. 20. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 22Customer SAP HANA Cockpit MDC Support SAP HANA Database Administration  Tiles of this catalog are used to administer an individual database – either a single-container system, a tenant database or the system database of a multiple-container system.  The following tiles are available: – Manage Services – Alerts – Used Memory – CPU Usage – Disk Usage – User Tables – Monitor Statements – Service Restarts – Number of Dumps – General Information – Configure Alerts – Manage Roles and Users – Administration Guide
  21. 21. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 23Customer SAP HANA Cockpit MDC Support Manage Databases  You monitor the overall availability, resource usage, and performance of tenant databases and the system database itself from the system database using the Manage Databases app.  If you want to examine a particular database in more detail, you can drill-down further by clicking the aspect you're interested in (for example, database name, alerts or used memory).  Further operations on a tenant database (stop, start, and delete) are available in the footer toolbar.
  22. 22. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 24Customer SAP HANA Cockpit MDC Support Manage Databases – Drill Down  If you want to examine a particular database in more detail, you can drill-down further by clicking the aspect you're interested in (for example, database name, alerts or used memory).  The corresponding applications display tenant specific information – e.g. the alerts of the selected tenant database or the load graph for the selected tenant database.
  23. 23. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 25Customer SAP HANA Cockpit MDC Support Creating a Tenant Database  You create tenant databases from the system database using the Manage Databases app.  Choose Create Tenant Database in the footer toolbar. – Enter the name of the new database and the password of the SYSTEM user. – Optional: Specify the host on which the database is to be created. – Click Create Tenant Database. – The system starts creating the database. This may take a few moments to complete.  The new tenant database is automatically added to the Manage Databases app.
  24. 24. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 26Customer SAP HANA Cockpit MDC Support System Alerts  The System Alerts tile indicates the number of high and medium alerts currently raised in tenant databases and provides access to the Alerts app where you can view and analyze alert details.  The system administrator can see only those alerts that identify situations with a potentially system-wide impact, for example, the physical memory on a host is running out.  Alerts that expose data in the tenant database (for example, table names) are not visible to the system administrator in the system database.  It may be helpful to see how alerts are configured in individual tenant databases. The system administrator cannot change the configuration.
  25. 25. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 27Customer SAP HANA Cockpit Performance Analysis User Tables  The tile shows the comparative memory utilization by host and the number of high and medium priority alerts.  Using the app you can visualize tables by size, explore the usage history of tables, and move tables to extended storage – if SAP HANA dynamic tiering is installed.  Large in-memory tables that are accessed infrequently are good candidates for extended storage, which is provided by the SAP HANA dynamic tiering option.  Tables in extended storage disappear from table analysis display.  Be aware that you need additional licenses for SAP HANA options such as SAP HANA dynamic tiering.
  26. 26. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 28Customer SAP HANA Cockpit Performance Analysis Monitor Statements  Allows to analyze the most critical statements currently running in the database.  This can help you identify the root cause of poor performance, CPU bottlenecks, or out- of-memory situations.  Contains KPIs like statement runtime, lock wait time, and cursor duration  By default, statements are listed in order of longest runtime.  You can identify the application, the application user and the database user running the statement.  You can easily identify blocking situations.  You can cancel a session – in a blocking situation either the blocking or the blocked session can be canceled.
  27. 27. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 29Customer SAP HANA Cockpit Performance Analysis Performance Monitor  Allows to visually analyze historical performance data across a range of key performance indicators.  Is opened by clicking the CPU Usage, Disk Usage, or Used Memory tile on the homepage of the SAP HANA cockpit.  Initially visualizes resource usage on the master host and master index server according to the selected tile.  You can customize the information displayed in several ways, for example: – Add additional KPIs – Add additional hosts and index servers – Increase or decrease the date range of collected data – Zoom in to a specific time
  28. 28. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 30Customer SAP HANA Cockpit System Replication System Replication  The System Replication tile is available in catalog SAP HANA System Replication  It indicates whether or not the system is part of a system replication configuration  With the System Replication app you can monitor the status of replication between the primary system and the secondary system(s).
  29. 29. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 31Customer SAP HANA Cockpit Backup Backup  Backup operations are now available in SAP HANA Cockpit  The Data Backup tile displays the status of the current data backup: – Successful, Running, Canceled, Error  By clicking the tile, the backup catalog is opened. It shows: – Time range that the backup catalog covers – Size of the backup catalog itself – Information on the last data backups (status, start time, backup type, duration, size, destination type and comment)  By clicking an entry in the catalog, detailed information on the respective backup is displayed  New backups can be created.
  30. 30. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 32Customer SAP HANA Cockpit Role Assignment Role Assignment  You can now use SAP HANA Cockpit to assign roles to a user  Roles are the standard mechanism of granting privileges to users in SAP HANA  In the Assign Roles to Users app find the user you want to edit  Then choose Edit and grant the user further roles by clicking Assign Roles and selecting the relevant roles
  31. 31. SAP HANA Web-based Development Workbench
  32. 32. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 34Customer SAP HANA Web-based Development Workbench Trace Configuration Trace Configuration  Configuration of several traces is now also available in SAP HANA Web-based development workbench: – XS application trace – SQL trace – Database trace – Plan trace  Analysis of trace files has already been available in previous versions  For configuration of other SAP HANA traces, you still have to use SAP HANA studio
  33. 33. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 35Customer SAP HANA Web-based Development Workbench Performance Analysis Performance Analysis  In the SQL editor option Run Performance Analysis -> Run Plan Analysis is available  It provides Plan Overview, Statement Statistics and Operators views like the Visualize Plan option in SAP HANA studio
  34. 34. SAP HANA Database
  35. 35. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 37Customer SAP HANA Database Consistency Check Improvements Consistency Checks  Consistency checks can now automatically be executed by the statistics service  An SQL procedure running the checks is scheduled if statistics service collector Collector_Global_Table_Consistency (ID 5047) is activated.  Set the interval for the collector using procedure CHECK_TABLE_CONSISTENCY.  The statistics service generates an alert, if alert Table Consistency (ID 83) is activated and a check detected any inconsistencies.  If the alert is activated, but the collector is inactive, an info alert is generated.  The results of the checks are logged in view _SYS_STATISTICS.GLOBAL_TABLE_CONSISTENCY
  36. 36. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 38Customer SAP HANA Database Performance Monitoring New Performance Trace  The new Performance Trace is a consolidated trace to provide insights on performance problems in a seamless way, reducing the number of traces requested from the customer  Automatic collection of execution contexts in the SAP HANA database  Trace data is integrated with plan visualizer  Trace can be activated in the SAP HANA studio: choose Edit Configuration for the Performance Trace and then select the Extended Trace option  The analysis tool, however, is only available SAP internally so far. This tool allows a slicing and dicing analysis on the performance data. It is planned to provide a web-based UI for that in a later SPS.
  37. 37. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 39Customer SAP HANA Database Performance Monitoring Expensive Statements Trace  The trace data is still written into memory, but now flushed in regular intervals to a trace file to prevent loss of data in case of a database restart – The interval can be configured in global.ini -> section expensive_statement -> trace_flush_interval (unit: # of records, default value: 10)  In addition to the runtime threshold, two new thresholds are available: – CPU time threshold  Can be configured in global.ini -> section expensive_statement -> threshold_cpu_time (unit: micro second)  CPU consumption of statements is stored in column CPU_TIME  Prerequisite: CPU time tracking needs to be activated – Memory threshold  Can be configured in global.ini -> section expensive_statement -> threshold_memory (unit: byte)  Memory consumption of statements is stored in column MEMORY_SIZE  Prerequisite: Memory tracking needs to be activated  New column PARENT_STATEMENT_ID is available in M_EXPENSIVE_STATEMENTS, which reveals parent/child relationships for nested statements.
  38. 38. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 40Customer SAP HANA Database Performance Monitoring New Statistics Counters for DML Operations  INSERT/UPDATE/DELETE/REPLACE counters are available per table: new view M_TABLE_STATISTICS  Each COUNT represents the number of statement executions for the corresponding table  A database restart will reset the statistics, the data is not persisted.
  39. 39. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 41Customer SAP HANA Database Performance Monitoring Job Progress Monitoring  View M_JOB_PROGRESS now shows detailed status of IMPORT/EXPORT operations  There is one row for each imported/exported table (containing an OBJECT_NAME) and one row for the main thread running the import/export command (not containing an OBJECT_NAME)
  40. 40. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 42Customer SAP HANA Database Performance Monitoring Memory Consumption  If statement memory tracking is enabled, new memory values are available: – Memory consumption of currently running statements can be seen in M_ACTIVE_STATEMENTS, M_PREPARED_STATEMENTS and M_CONNECTION_STATISTICS – Min, max, avg and total values are available in M_SQL_PLAN_CACHE – For stored procedures, the peak memory consumption is shown, as a stored procedure may issue several SQL statements running in parallel – If statement memory tracking is disabled, these memory columns contain value -1  Temporary objects are now tagged to identify the corresponding connection and statement and therefore enable resource monitoring for such objects: – Columns CONNECTION_ID, STATEMENT_ID, RECORD_COUNT, TABLE_SIZE were added to M_TEMPORARY_TABLES – Statement memory tracking setting is not relevant for these values
  41. 41. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 43Customer SAP HANA Database Performance Monitoring Thread Monitoring  Details about threads writing savepoints can be found in M_SERVICE_THREADS, e.g. the different phases are named: prepare savepoint, flush pages in critical phase, process critical phase, exit critical phase, etc.  The first parameter of TREXviaDBSL and TREXviaDBSLwithParameter calls is shown in the Threads view in HANA studio (and view M_SERVICE_THREADS) by default  Detailed information for TREXviaDBSL and TREXviaDBSLwithParameter calls is now also available in M_EXPENSIVE_STATEMENTS.PARAMETERS Example: STATEMENT_STRING | PARAMETERS ------------------------------------------------------------------------------------------------------------------------- CALL SYS.TREXviaDBSL(?, ?, ?) | 'asxml/olapCellSearch;obj_name=SYSTEM:0BW:BIA:BWX:RSDRVCUB2;query_id=0123456789', 'BLOB', 'BLOB'
  42. 42. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 44Customer SAP HANA Database Hardware and OS Monitoring Network Monitoring  Network monitoring statistics (e.g. TCP segment loss rate) are now available, view M_HOST_NETWORK_STATISTICS Operating System and Hardware Settings  A stored procedure (CHECK_PLATFORM) is available to check the configuration of operating system and hardware (e.g. core memory ratio or Linux kernel version) – It reads the hardware or OS properties and returns not only the value of the checked property but also a rating from 0 (no issue), to 4 (warning3) and 5 (error), and a recommended action in case an issue was detected – The checks are limited to properties that can be read by <sid>adm – Procedure GET_CHECK_ACTIONS returns the list of existing checks when invoked with check_procedure_name=’CHECK_PLATFORM’  The hardware check tool hwcct is now shipped by default  The option Collect Diagnosis Information in SAP HANA studio (full system info dump) now also includes the BIOS file
  43. 43. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 45Customer SAP HANA Database Extended Tracing Extended Tracing  The following ALTER SYSTEM statements will be traced in the service trace automatically: – Changes to parameters (INI files) – Clearing the SQL plan cache – Reclaiming version space Example (parameter change), indexserver*.trc: [39260]{302672}[84/126569] 2015-04-01 10:22:09.070061 i TraceContext TraceContext.cpp(00898) : UserName=ADMIN, ApplicationUserName=APPADMIN, ApplicationName=HDBStudio, ApplicationSource=csns.sql.editor.SQLExecuteFormEditor$2$1.run(SQLExecuteFormEditor.java:831); [39260]{302672}[84/126569] 2015-04-01 10:22:09.069423 i SQLSessionCmd Statement.cc(06084) : INI configuration is changed by 302672, client ip=<ip>, client port=<port>, query=ALTER SYSTEM ALTER CONFIGURATION ('indexserver.ini', 'SYSTEM') SET ('sql', 'sql_executors') = '20' WITH RECONFIGURE [14600]{-1}[-1/-1] 2015-04-01 10:22:11.782820 e SQLSession sm_manager.cc(00967) : Change number of TcpReceivers per port: 80 -> 20 : remove 60 [14600]{-1}[-1/-1] 2015-04-01 10:22:12.433970 e SQLSession sm_manager.cc(01072) : Now number of TcpReceivers per port became 20
  44. 44. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 47Customer SAP HANA Database SAP HANA Dynamic Tiering SAP HANA Dynamic Tiering  The option Collect Diagnosis Information in SAP HANA studio now also includes stack backtraces of the dynamic tiering service (esserver). This data is stored in file esServerInfo.txt  Additionally, new monitoring views have been introduced to provide information about connections, transactions, locks, delta memory and other status information of the dynamic tiering service: M_ES_CONNECTIONS, M_ES_TRANSACTIONS, M_ES_LOCKS, M_ES_DELTA_MEMORY, M_ES_STATUS
  45. 45. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 49Customer The information in this presentation is confidential and proprietary to SAP and may not be disclosed without the permission of SAP. This presentation is not subject to your license agreement or any other service or subscription agreement with SAP. SAP has no obligation to pursue any course of business outlined in this document or any related presentation, or to develop or release any functionality mentioned therein. This document, or any related presentation and SAP's strategy and possible future developments, products and or platforms directions and functionality are all subject to change and may be changed by SAP at any time for any reason without notice. The information in this document is not a commitment, promise or legal obligation to deliver any material, code or functionality. This document is provided without a warranty of any kind, either express or implied, including but not limited to, the implied warranties of merchantability, fitness for a particular purpose, or non-infringement. This document is for informational purposes and may not be incorporated into a contract. SAP assumes no responsibility for errors or omissions in this document, except if such damages were caused by SAP´s willful misconduct or gross negligence. All forward-looking statements are subject to various risks and uncertainties that could cause actual results to differ materially from expectations. Readers are cautioned not to place undue reliance on these forward-looking statements, which speak only as of their dates, and they should not be relied upon in making purchasing decisions. Legal disclaimer
  46. 46. © 2015 SAP SE or an SAP affiliate company. All rights reserved. 50Customer How to find SAP HANA documentation on this topic?  In addition to this learning material, you find SAP HANA documentation on SAP Help Portal knowledge center at http://help.sap.com/hana_platform.  The knowledge center is structured according to the product lifecycle: installation, security, administration, development. So you can find e.g. the SAP HANA Administration Guide in the System Administration and Maintenance section and so forth …
  47. 47. © 2015 SAP SE or an SAP affiliate company. All rights reserved. Thank you Contact information Melanie Handreck SAP HANA Product Management

×