header
stringlengths
12
160
content
stringlengths
15
265k
## 1 SAP HANA Troubleshooting and Performance Analysis Guide
## 1 SAP HANA Troubleshooting and Performance Analysis Guide With SAP HANA, you can analyze data at incredible speeds, for example, with scans of 1 billion rows per second per core and join performance of 10 million rows per second. However, such results are only possible if the system is monitored and performance issu...
## 2 Analyzing Generic Symptoms
## 2 Analyzing Generic Symptoms The purpose of this section of the document is to help you to find the probable root cause of some generic problems and refer you to more detailed sections of the SAP HANA Troubleshooting and Performance Analysis Guide to proceed with your analysis. Performance issues may be difficult to...
## 2.1 Using the SQL Statement Collection for Analysis and Health Checks
## 2.1 Using the SQL Statement Collection for Analysis and Health Checks A collection of predefined customizable statements is available for checking the database. An extensive SQL statement collection is available for analyzing the SAP HANA database, this can be used to examine specific problems or for routine monitor...
## 2.2 Handling SQL Errors
## 2.2 Handling SQL Errors Errors generated when executing SQL statements are identified by a code number which may be helpful to find an explanation and solution to the problem. This section gives some recommended solutions to help solve problems related to SQL errors. The topic which follows 'SQL Error Reference' is ...
## 2.2.1 SQL Error Reference
## 2.2.1 SQL Error Reference The following reference table provides links to sources of troubleshooting information for many frequently occurring SQL errors. SQL Error Codes | Code | Type | Description | More information ...
## 2.3 Performance and High Resource Utilization
## 2.3 Performance and High Resource Utilization By observing the general symptoms shown by the system such as poor performance, high memory usage, paging or column store unloads we can start to narrow down the possible causes as a first step in analyzing the issue. ## High Memory Consumption You observe that the amoun...
## 2.4 Common Symptoms and Troubleshooting
## 2.4 Common Symptoms and Troubleshooting Typical symptoms and the related troubleshooting information are described in this section. System-side slow performance, slow individual statement performance, and OOM problems are issues that you might experience while using the SAP HANA database. For each section, this docu...
## 2.4.1 Slow System-wide Performance
## 2.4.1 Slow System-wide Performance Slow system-wide performance issues are problems that could be caused by excessive use of CPU, database resource locks or incorrect configuration of OS parameters. Generally, when you encounter a performance issue, you may see these symptoms in SAP HANA cockpit: - Continually high...
## 2.4.1.1 HANA System-wide Performance Analysis
## 2.4.1.1 HANA System-wide Performance Analysis This topic describes solutions for both current and former system performance problems. ## Analysis of Current Performance Problems Before taking any other action while the problem is present it is of utmost importance to capture a few HANA runtime environment (RTE) dump...
## 2.4.1.2 System Appears to Hang with no new Connections and no Response from the SAP HANA Database
## 2.4.1.2 System Appears to Hang with no new Connections and no Response from the SAP HANA Database In cases where logs cannot be written, all DML statement will fall into wait status. This can lead to a failure of opening new connections because the system internally executes DML statements during the process. Typica...
## 2.4.1.3 System Appears to Hang with High System CPU Usage
## 2.4.1.3 System Appears to Hang with High System CPU Usage The SAP HANA database is an in-memory database and by its nature it consumes large amounts of memory. Some performance issues of SAP HANA can be caused by the operating system's memory management features. For this case, you can see high usage of SYSTEM CPU t...
## 2.4.1.4 Slower Response with High User CPU Usage
## 2.4.1.4 Slower Response with High User CPU Usage The performance may degrade with increased usage of the CPU and applications. Root cause: Not many executor threads but high CPU in a few nodes and a few tables accessed Required Action: In an SAP Business Warehouse system, check for non-even partitioning of huge colu...
## 2.4.2 Slow Individual SQL Statements
## 2.4.2 Slow Individual SQL Statements This section looks at the causes of slow individual SQL statements although there is no significant performance issue on system level and the associated troubleshooting steps. If the following doesn't help to resolve the problem, see Getting Support . In this case, to analyze fu...
## 2.4.2.1 A Statement is Sometimes Slow and Sometimes Fast
## 2.4.2.1 A Statement is Sometimes Slow and Sometimes Fast There are a number of things to check when you experience inconsistent query execution time. Check the following possibilities: Root Cause: Same query shows different execution plans according to the HANA SQL Plan Cache. Required Action: Analyze the difference...
## 2.4.2.2 A Statement is Slower After an Upgrade
## 2.4.2.2 A Statement is Slower After an Upgrade After upgrade, the query execution time can be different because of changes in the query execution plan. Root cause: After an upgrade, a query can have a different plan, which leads to a different execution time. Required Action: If you have an instance running on an ol...
## 2.4.2.3 A Query on Multiple Nodes Can Be Slower
## 2.4.2.3 A Query on Multiple Nodes Can Be Slower In distributed systems, query execution can be routed to other nodes for better performance. However, there is a chance of having slow performance in the case where the network used for transferring intermediate results generated during query execution is slow or where...
## 2.4.2.4 Slow Select for all Entries (FAE) Query
## 2.4.2.4 Slow Select for all Entries (FAE) Query There are a number of points to check if you have performance issues with SELECT FOR ALL ENTRIES (FAE) from an ABAP query. For FAE on SAP HANA, please generally refer to SAP Note 1662726 - Optimization of select with FOR ALL ENTRIES on SAP HANA database . Root cause: I...
## 2.4.2.5 All Statements Accessing a Specific Table are Slow
## 2.4.2.5 All Statements Accessing a Specific Table are Slow In case queries run on specific tables are slow, check if there are too many versions. Root cause: If there are too many versions of single records, accessing the table can be slow. In this case, the number of system-wide MVCC versions is in acceptable range...
## 2.4.3 Frequent Out of Memory (OOM)
## 2.4.3 Frequent Out of Memory (OOM) If Out Of Memory situations happen frequently, it can also lead to performance drop by unloading tables or shrinking memory jobs. First check Memory Problems and SAP KBA 1999997 - FAQ: SAP HANA Memory as they provide information on SAP HANA memory and its problems. This section in...
## 2.4.3.1 Out of Memory Caused by Sudden Increased Memory Usage
## 2.4.3.1 Out of Memory Caused by Sudden Increased Memory Usage Check the memory consumption of statements in the event of OOMs caused by suddenly increased memory usage. Root cause : Huge intermediate results during query processing. Required Actions: Enable memory tracking by setting the following parameters to on i...
## 2.4.3.2 Out of Memory Caused by Continuously Increased Memory Usage
## 2.4.3.2 Out of Memory Caused by Continuously Increased Memory Usage Check if many statements trigger an Out Of Memory in a system where used memory is continuously increased. Root cause: Commit/rollback within stored procedure can lead to memory leakages. Do not use exec('commit') or exec('rollback') within a stored...
## 2.4.3.3 Out of Memory While High Usage Of Column Store Components' Allocators
## 2.4.3.3 Out of Memory While High Usage Of Column Store Components' Allocators If a system is undersized, Out Of Memory (OOM) can happen frequently. Root cause: Undersized memory ## Required Action: 1. Check top allocators in [MEMORY_OOM] section of OOM dump to see whether they are for column store components as desc...
## 2.4.3.4 Out of Memory Caused by Large Memory Usage of Statistics Server
## 2.4.3.4 Out of Memory Caused by Large Memory Usage of Statistics Server This case can happen if the majority of memory used by the statisticsserver is due to many alerts or undersized memory. Root cause: Due to big STATISTICS_ALERTS_BASE table size, an OOM can occur. Required Action: Check table size of _SYS_STATIST...
## 2.4.3.5 Out of Memory Occurs due to High Usage of Shared Memory
## 2.4.3.5 Out of Memory Occurs due to High Usage of Shared Memory Shared memory is space where system information and row store tables are stored. Check the following if the used amount of shared memory is high. Root cause: Severely fragmented row store tables ## Required action: 1. Check whether SHARED_MEMORY in [MEM...
## 2.4.4 Table Consistency Check
## 2.4.4 Table Consistency Check This section gives basic information for solving problems related to the Table Consistency Check. The table consistency check is a procedure available in the SAP HANA database that performs a range of consistency check actions on database tables. It can be run from the command line or ...
## 3 Root Causes and Solutions
## 3 Root Causes and Solutions This section provides detailed information on the root causes of problems and their solutions. System alerts are a good indicator for the underlying problem. The SAP Notes you will be directed to are a source of background information, explanations, alternative options, FAQs or useful SQL...
## 3.1 Memory Problems
## 3.1 Memory Problems This section discusses the analysis steps that are required to identify and resolve memory related issues in the SAP HANA database. For general information on SAP HANA memory management see the SAP HANA Academy video SAP HANA Memory Management which discusses the memory concept and comments on th...
## 3.1.1 Memory Information in SAP HANA Cockpit
## 3.1.1 Memory Information in SAP HANA Cockpit There are a number of sources of information in SAP HANA cockpit that can assist you in understanding memory utilization. - Open the Manage Services page from the Overall Database Status tile for high-level information about physical memory, allocation limit, and used me...
## 3.1.2 Memory Information from Logs and Traces
## 3.1.2 Memory Information from Logs and Traces In case of critical memory issues you can often find more detailed information in logs and trace files. - Try to identify memory-related errors in the alert trace files in the SAP HANA database explorer (accessible via the View trace and diagnostic files link). Search f...
## 3.1.3 Memory Information from SQL Commands
## 3.1.3 Memory Information from SQL Commands There are a number of ways to analyze memory usage based on pre-defined and modifiable SQL queries. The Statement Library of SAP HANA database explorer provides a set of tabular views to display the memory consumption of loaded tables based on pre-defined SQL queries: - Th...
## 3.1.4 Memory Information from Other Tools
## 3.1.4 Memory Information from Other Tools Other tools are also available to analyze high memory consumption and out-of-memory situations. A number of SAP Notes and 'How-to' documents are available to provide help with some of the most common questions and difficulties related to memory. The tool hdbcons provides ex...
## 3.1.5 Root Causes of Memory Problems
## 3.1.5 Root Causes of Memory Problems Once you have completed your initial analysis, you have the information required to start the next phase of your analysis. Based on the results from the analysis approaches you are now able to answer the following questions: - Is it a permanent or a sporadic problem? - Is the me...
## 3.1.5.1 Significant External Memory Consumption
## 3.1.5.1 Significant External Memory Consumption If the database resident memory of all SAP HANA databases on the same host is significantly smaller than the total resident memory, you have to check which processes outside of the SAP HANA databases are responsible for the additional memory requirements. Typical memor...
## 3.1.5.2 Space Consumed by Large Tables
## 3.1.5.2 Space Consumed by Large Tables If particularly large tables consume significant amounts of space in the row store or column store, you should check if the amount of data can be reduced. The following references will be helpful: - SAP Note 2388483 - How To: Data Management for Technical Tables describes archi...
## 3.1.5.3 Internal Columns in the Column Store
## 3.1.5.3 Internal Columns in the Column Store For several reasons, SAP HANA creates internal columns in the column store. Some column store tables are automatically loaded into memory. ## Internal Columns You may be able to optimize or remove internal columns in order to reduce memory usage. In some situations a clea...
## 3.1.5.4 Memory Leaks
## 3.1.5.4 Memory Leaks A memory leak is a memory area (typically a heap allocator) that grows over time without any apparent reason. If you have identified a suspicious area, proceed as follows: - Check for SAP Notes that describe the memory leak and provide a solution. - Check if the problem is reproducible with a re...
## 3.1.5.5 Large Heap Areas
## 3.1.5.5 Large Heap Areas Some heap areas can be larger than necessary without being a memory leak. SAP Note 1840954 - Alerts Related to HANA Memory Consumption contains an overview of heap allocators with a potentially large memory consumption and possible resolutions. Refer also to SAP Note 1999997 - FAQ: SAP HANA ...
## 3.1.5.6 Expensive SQL Statements
## 3.1.5.6 Expensive SQL Statements SQL statements processing a high amount of data or using inefficient processing strategies can be responsible for increased memory requirements. See SQL Statement Analysis for information on how to analyze expensive SQL statements during times of peak memory requirements. ## Related ...
## 3.1.5.7 Memory Consumption Related to Transactional Problems
## 3.1.5.7 Memory Consumption Related to Transactional Problems High memory consumption can be caused by problems with transactions. In some cases, high memory consumption is caused by wait situations, which can have different reasons: - Long-running or unclosed cursors, - Blocked transactions, - Hanging threads. As on...
## 3.1.5.8 Used Space Much Smaller than Allocated Space
## 3.1.5.8 Used Space Much Smaller than Allocated Space In order to optimize performance by minimizing the memory management overhead or due to fragmentation, SAP HANA may allocate additional memory rather than reusing free space within the already allocated memory. This can lead to undesired effects that the SAP HANA ...
## 3.1.5.9 Fragmentation
## 3.1.5.9 Fragmentation Fragmentation effects are responsible for inefficiently used memory. They can occur in different areas. In order to minimize fragmentation of row store tables you can proceed as follows: - If the fragmentation of row store tables in the shared memory segments of indexserver processes reaches 30...
## 3.1.5.10 Large Memory LOBs
## 3.1.5.10 Large Memory LOBs LOB (Large Object) columns can be responsible for significant memory allocation in the row store and column store if they are defined as memory LOBs. To check for memory LOBs and switch to hybrid LOBs see SAP Note 1994962 - Activation of Hybrid LOBs in SAP HANA . ## Related Information ``...
## 3.1.5.11 Large Delta Store
## 3.1.5.11 Large Delta Store The delta store can allocate a significant portion of the column store memory. You can identify the current size of the delta store by running the SQL command: HANA_Tables_ColumnStore_Overview ( SAP Note 1969700 - SQL Statement Collection for SAP HANA ). If the delta store size is larger ...
## 3.1.5.12 Undersized SAP HANA Memory
## 3.1.5.12 Undersized SAP HANA Memory If a detailed analysis of the SAP HANA memory consumption didn't reveal any root cause of increased memory requirements, it is possible that the available memory is not sufficient for the current utilization of the SAP HANA database. In this case you should perform a sizing verif...
## 3.1.5.13 Setting a Memory Limit for SQL Statements
## 3.1.5.13 Setting a Memory Limit for SQL Statements You can set a statement memory limit to prevent single statements from consuming too much memory. ## Prerequisites To apply these settings you must have the system privilege INIFILE ADMIN. For these options, enable_tracking and memory_tracking must first be enabled...
## 3.2 CPU Related Root Causes and Solutions
## 3.2 CPU Related Root Causes and Solutions This section covers the troubleshooting of high CPU consumption on the system. A constantly high CPU consumption will lead to a considerably slower system as no more requests can be processed. From an end user perspective, the application behaves slowly, is unresponsive or c...
## 3.2.1 Indicators of CPU Related Issues
## 3.2.1 Indicators of CPU Related Issues CPU related issues are indicated by alerts issued or in views in the SAP HANA cockpit. The following alerts may indicate CPU resource problems: - Host CPU Usage (Alert 5) - Most recent savepoint operation (Alert 28) - Savepoint duration (Alert 54) You notice very high CPU cons...
## 3.2.2 Analysis of CPU Related Issues
## 3.2.2 Analysis of CPU Related Issues This section describes how to analyze high CPU consumption using tools in the SAP HANA cockpit and the command line. When analyzing high CPU consumption, you need to distinguish between the CPU resources consumed by HANA itself and by other, non-SAP HANA processes on the host. W...
## 3.2.3 Resolving CPU Related Issues
## 3.2.3 Resolving CPU Related Issues The first priority in resolving CPU related issues is to return the system to a normal operating state, which may complicate identifying the root cause. ## Immediate Remedial Action Issue resolution should aim to bring the system back to a functional state by stopping the operatio...
## 3.2.4 Retrospective Analysis of CPU Related Issues
## 3.2.4 Retrospective Analysis of CPU Related Issues There are a number of options available to analyze what the root cause of an issue was after it has been resolved. A retrospective analysis of high CPU consumption should start by checking the Performance Monitor and the Alerts tile in SAP HANA cockpit. Using the a...
## 3.2.5 Controlling Parallel Execution of SQL Statements
## 3.2.5 Controlling Parallel Execution of SQL Statements You can apply ini file settings to control the two thread pools SqlExecutor and JobExecutor that control the parallelism of statement execution. ##  Caution The settings described here should only be modified when other tuning techniques like remodeling, repar...
## 3.2.6 Apply NUMA Node Affinity Settings
## 3.2.6 Apply NUMA Node Affinity Settings If the physical hardware on a host is shared between several processes, you can use CPU affinity settings to assign a set of logical cores to a specific SAP HANA process. These settings are coarse-grained and apply on the OS and process-level. ## Prerequisites You can use the...
## 3.2.7 Basic NUMA Analysis
## 3.2.7 Basic NUMA Analysis In this section we present a basic workflow for analyzing performance issues, especially on large scale-up systems running SAP HANA. ## Introduction Server machines with many CPU cores which are packed in multiple sockets today follow a Non-Uniform Memory Architecture (NUMA). A NUMA node c...
## 3.2.7.1 Collect System Information
## 3.2.7.1 Collect System Information The initial step is to collect information about the system and its topology. Basic system information may be needed to identify available features in SAP HANA. In the SAP HANA Cockpit, the tile Database Information provides the initial information. This information is also accessi...
## 3.2.7.2 Examine the Workload
## 3.2.7.2 Examine the Workload We can now examine the workload in detail including: CPU utilization, table distribution and the plan cache. The system information you have collected helps to understand the system behavior given a workload of interest. For the illustration given here we run the TPC-H workload including...
## 3.2.7.3 Tuning for Better NUMA Behavior
## 3.2.7.3 Tuning for Better NUMA Behavior This section shows the performance benefits which can be achieved by partitioning tables. One option to distribute the contention for memory accesses and potentially also CPU consumption across more NUMA nodes is to partition tables. By default, SAP HANA would calculate the NU...
## 3.3 Disk Related Root Causes and Solutions
## 3.3 Disk Related Root Causes and Solutions This section discusses issues related to hard disks and lack of free space. ## Low Disk Space This problem is usually reported by alert 2 which is triggered whenever one of the disk volumes used for data, log, backup or trace files reaches a critical size. Use the following...
## 3.3.1 Reclaiming Disk Space
## 3.3.1 Reclaiming Disk Space Defragmentation of data volumes must be carried out as a routine housekeeping operation to recover disk space or in response to a disk full event. ## Automatic Housekeeping in SAP HANA 2.0 SPS 06 A housekeeping job was introduced in SAP HANA 2.0 SPS 06 in the automatic data volume manage...
## 3.3.2 Analyze and Resolve Internal Disk-Full Event (Alert 30)
## 3.3.2 Analyze and Resolve Internal Disk-Full Event (Alert 30) When it is no longer possible to write to one of the disk volumes used for data, log, backup or trace files, the database is suspended, an internal event is triggered, and alert 30 is generated. A disk-full event must be resolved before the database can ...
## 3.4 I/O Related Root Causes and Solutions
## 3.4 I/O Related Root Causes and Solutions This section covers troubleshooting of I/O performance problems. Although SAP HANA is an in-memory database, I/O still plays a critical role for the performance of the system. From an end user perspective, an application or the system as a whole runs slowly, is unresponsive ...
## 3.4.1 Analyzing I/O Throughput and Latency
## 3.4.1 Analyzing I/O Throughput and Latency When analyzing I/O, the focus is on throughput and latency (time taken). A set of system views (with names beginning m_VOLUME_IO_*) is available to help you analyze throughput and examples are given here to illustrate how they can be used. You can use the following example...
## 3.4.2 Savepoint Performance
## 3.4.2 Savepoint Performance To perform a savepoint write operation SAP HANA needs to take a global database lock. Two phases of this operation, the 'critical phase' and the 'wait for lock' phase can be monitored and optimized if necessary. ## Global Database Lock: Critical Phase Savepoints are used to implement bac...
## 3.5 Configuration Parameter Issues
## 3.5 Configuration Parameter Issues The SAP HANA database creates alerts if it detects an incorrect setting for any of the most critical configuration parameters. The following table lists the monitored parameters and related alerts. Alerts related to configuration | Alert ID | Alert Name ...
## 3.5.1 Issues with Configuration Parameter log_mode (Alert 33)
## 3.5.1 Issues with Configuration Parameter log_mode (Alert 33) Alert 33 is raised whenever the write mode to the database log is not set correctly for use in production. ## Context To ensure point-in-time recovery of the database the log_mode parameter must be set to 'normal' and a data backup is required. The follo...
## 3.6 Backup And Recovery
## 3.6 Backup And Recovery This section discusses issues related to backup and recovery and how to troubleshoot them. ## Back and Recovery: Resources For detailed information on how to perform a backup or recovery of an SAP HANA database please refer to section SAP HANA Database Backup and Recovery of the SAP HANA Admi...
## 3.7 Delta Merge
## 3.7 Delta Merge This section covers troubleshooting of delta merge problems. The column store uses efficient compression algorithms to keep relevant application data in memory. Write operations on the compressed data are costly as they require reorganizing the storage structure and recalculating the compression. The...
## 3.7.1 Inactive Delta Merge
## 3.7.1 Inactive Delta Merge In case the delta merge is set to inactive, Alert 10 Delta merge (mergedog) configuration is raised. In a production system this alert needs to be handled with very high priority in order to avoid performance issues. ## Context Whenever issues with delta merge are suspected, this alert sh...
## 3.7.1.1 Retrospective Analysis of Inactive Delta Merge
## 3.7.1.1 Retrospective Analysis of Inactive Delta Merge Retrospective analysis of the root cause of the parameter change that led to the configuration alert requires the activation of an audit policy in SAP HANA that tracks configuration changes. Other sources of information are external tools (for example, SAP Solut...
## 3.7.2 Indicator for Large Delta Storage of Column Store Tables
## 3.7.2 Indicator for Large Delta Storage of Column Store Tables If the delta storage of a table gets too large, read operations on the table will slow down. This usually results in degraded performance of queries reading from the affected table. When the delta storage of a table gets too large, the Alert Size of del...
## 3.7.2.1 Analyze Large Delta Storage of Column Store Tables
## 3.7.2.1 Analyze Large Delta Storage of Column Store Tables Analyze and interpret issues related to delta storage with help from alerts in SAP HANA cockpit. ## Procedure 1. If an alert was raised, go to the Alerts tile in the SAP HANA cockpit, click Show all and filter for "delta storage". Check if the alert is raise...
## 3.7.3 Failed Delta Merge
## 3.7.3 Failed Delta Merge If many cases are identified where auto merge has failed, the error codes need to be analyzed in more detail. Note that the merge only failed if SUCCESS is not TRUE. In any other case the error code describes a non-critical condition during a successful merge. To analyze the error codes, yo...
## 3.7.4 Delta Storage Optimization
## 3.7.4 Delta Storage Optimization Table partitioning allows you to optimize the size of tables in memory and their memory consumption as each partition has its own delta storage. The memory consumption of a table in memory during a merge operation depends on the number of records, the number and memory size of colum...
## 3.8 Post-Installation Problems with Web IDE
## 3.8 Post-Installation Problems with Web IDE This section identifies some common post-installation issues which you may encounter when working with WebIDE. ## Logging in to Space Enablement UI | Issue: | Logging into space enablement UI gives a 'Forbidden' error. ...
## 3.9 Troubleshooting BW on HANA
## 3.9 Troubleshooting BW on HANA This section identifies some of the common problem areas for users of Business Warehouse on HANA and points to existing information sources which will help to resolve the issues. ## Documentation All public documentation related to BW on HANA can be found in the SAP Help Portal on the ...
## 3.10 Troubleshooting Multi-Dimensional Services Queries
## 3.10 Troubleshooting Multi-Dimensional Services Queries This section describes how to execute, capture and analyze InA queries for SAP Analytics Cloud (SAC) HANA Multi-Dimensional Service. ## Introduction SAP Analytics Cloud's query language is called InA (Information Access). InA queries are executed using HANA Mul...
## 3.11 License Issues
## 3.11 License Issues This section covers license-related issues. ## Related Information System Locked Due to Missing, Expired, or Invalid License [page 154] License Problem Identification and Analysis [page 154] Resolution of License Issues [page 155]
## 3.11.1 System Locked Due to Missing, Expired, or Invalid License
## 3.11.1 System Locked Due to Missing, Expired, or Invalid License New installations of SAP HANA are equipped with a temporary license that expires after 90 days. To keep the system functional after this period, you have to install a permanent license. Improper licensing may lead to a lockdown of your SAP HANA system...
## 3.11.2 License Problem Identification and Analysis
## 3.11.2 License Problem Identification and Analysis The first signs of problems related to licensing will be visible by Alert 31 or Alert 44 being issued. You can check your current license using the SAP HANA cockpit: Choose the Manage system licenses link on the Overview page. Alternatively, you can retrieve the sa...
## 3.11.3 Resolution of License Issues
## 3.11.3 Resolution of License Issues If your license becomes invalid, you need to install a new license. You can install a new license either in the SAP HANA cockpit or using SQL. ##  Note To install a license key, you need the LICENSE ADMIN system privilege. You install a license key with the following SQL stateme...
## 3.12 Security-Related Issues
## 3.12 Security-Related Issues This section looks at issues related to authorization and authentication. ## Related Information Troubleshooting Authorization Problems [page 156] Troubleshooting Problems with User Name/Password Authentication [page 162] Troubleshooting Problems with User Authentication and SSO [page 16...
## 3.12.1 Troubleshooting Authorization Problems
## 3.12.1 Troubleshooting Authorization Problems SAP HANA implements its authorization concept based on the entities user, privilege, and role. ## General Analysis The system view EFFECTIVE_PRIVILEGES is useful for checking the privileges of a specific user. It includes information about all privileges granted to a sp...
## 3.12.1.1 Troubleshoot the Display of Unrestricted or Incorrect Results for a View Secured with Analytic Privileges
## 3.12.1.1 Troubleshoot the Display of Unrestricted or Incorrect Results for a View Secured with Analytic Privileges If a user has unrestricted access to a view or sees results that he should not, even though he has been granted an analytic privilege, you need to determine which privileges have been granted to the us...
## 3.12.1.2 Troubleshoot the Error "Insufficient privilege: Not authorized" Although User Has Analytic Privileges
## 3.12.1.2 Troubleshoot the Error "Insufficient privilege: Not authorized" Although User Has Analytic Privileges Even if a user has the correct analytic privileges for a view, he still may receive the error Insufficient privilege: Not authorized if there is an issue with privileges at another level. ## Prerequisites ...
## 3.12.1.3 Troubleshoot the Error "Invalidated View" During SELECT Statement Execution
## 3.12.1.3 Troubleshoot the Error "Invalidated View" During SELECT Statement Execution A user may receive the error Invalidated view when executing a SELECT statement against a view that was activated from the repository. Additionally, the data preview for an activated view may not show any data. ## Prerequisites To ...
## 3.12.2 Troubleshooting Problems with User Name/Password Authentication
## 3.12.2 Troubleshooting Problems with User Name/Password Authentication Common problems with regards to authentication are related to incorrect or expired passwords. User administrators can change users' passwords on the Edit User monitor in the Cockpit Manager of the SAP HANA cockpit. For more information about man...
## 3.12.2.1 Resetting the Password for the SYSTEM User
## 3.12.2.1 Resetting the Password for the SYSTEM User If the password of the SYSTEM user is irretrievably lost, it can be reset. Follow the procedure as described in the SAP HANA Administration Guide . ##  Note If you can log on as SYSTEM and you want to change the password, do not use the emergency reset procedure....
## 3.12.2.2 Troubleshoot the Error "User is locked"
## 3.12.2.2 Troubleshoot the Error "User is locked" A user receives the error User is locked after too many failed log on attempts. ## Prerequisites You have system privilege USER ADMIN. ## Context An example of this error might look like: Error "user is locked; try again later: lock time is 1440 minutes; user is lock...
## 3.12.3 Troubleshooting Problems with User Authentication and SSO
## 3.12.3 Troubleshooting Problems with User Authentication and SSO Authentication problems manifest themselves as failed user logon. In many cases, the reason for the failure will not be clear to the user. You need to analyze the database trace to determine the cause of the problem. For security reasons, no informati...
## 3.12.3.1 Kerberos-Related Authentication Issues
## 3.12.3.1 Kerberos-Related Authentication Issues ## GSS API Errors Kerberos authentication is implemented in the SAP HANA database using the Generic Security Services Application Program Interface (GSS API). Since GSS API is an internet standard (RFC 4121), all Kerberosrelated errors are traced under the authenticat...
## 3.12.3.2 SAML Authentication
## 3.12.3.2 SAML Authentication ## User cannot connect with SAML assertion If a user cannot connect to SAP HANA with a SAML assertion, the issuer and subject distinguished names (DNs) in the SAML assertion do not match those configured in the identity provider. Investigate which issuer and subject DNs were used in the...
## 3.13 Transactional Problems
## 3.13 Transactional Problems This section covers troubleshooting of transaction problems. Symptoms seen from an end user perspective may include an application running sluggishly, or not responding or even seeming to hang. These problems may be caused by issues with uncommitted transactions, long-lived cursors blocki...
## 3.13.1 Blocked Transactions
## 3.13.1 Blocked Transactions Blocked transactions are write transactions that are unable to be further processed because they need to acquire transactional locks (record or table locks) which are currently held by another write transaction. This section focuses on blocking caused by transaction locks though transact...
## 3.13.1.1 Using Scripts to Analyze Blocked Transactions
## 3.13.1.1 Using Scripts to Analyze Blocked Transactions You can use scripts to analyze the issues underlying blocked transactions. Modify the time range analyzed by the script, then use it to identify the lock owner, get information on the lock wait hierarchy, or analyze thread activity on the database at the time o...
## 3.13.1.2 Identify and Assess Blocked Transaction Issues
## 3.13.1.2 Identify and Assess Blocked Transaction Issues The first signs of blocked transactions may be poor application response or alerts 49 or 59 are raised. The initial indicators of blocked transactions are often given by: - Users reporting bad application responsiveness - Alert 49 - Long-running blocking situa...
## 3.13.1.3 Single or Few Transactions are Blocked
## 3.13.1.3 Single or Few Transactions are Blocked If you identified only a single or a few blocking transactions, there is likely an issue on application side. ## Check the Application A usual pattern is a flaw in the application coding that does not commit a write transaction. Such a transaction will be a blocker fo...
## 3.13.1.4 Many Transactions are Blocked
## 3.13.1.4 Many Transactions are Blocked In the case that a large number of transactions are blocked, the troubleshooting should take a slightly different approach. First you need to determine whether there is a single or few blocking transactions that block a large amount of other transactions. For this, open the Bl...
## 3.13.1.5 Troubleshooting Blocked Transaction Issues that Occurred in the Past
## 3.13.1.5 Troubleshooting Blocked Transaction Issues that Occurred in the Past Finding the root cause of blocked transaction situations that occurred in the past and which you have resolved is more difficult than troubleshooting issues that are currently happening. Tools such as the Performance Monitor , system view...
## 3.13.2 Multiversion Concurrency Control (MVCC) Issues
## 3.13.2 Multiversion Concurrency Control (MVCC) Issues In this section you will learn how to troubleshoot issues arising from MVCC. Multiversion Concurrency Control (MVCC) is a concept that ensures transactional data consistency by isolating transactions that are accessing the same data at the same time. To do so, m...
## 3.13.2.1 Row Store Tables
## 3.13.2.1 Row Store Tables Garbage collection is triggered after a transaction is committed and also periodically (every hour by default). A transaction that is currently committing can be identified in the Threads tile (see System Performance Analysis ). The Thread Type will be 'SqlExecutor' and the Thread Method '...
## 3.13.2.2 MVCC Problem Identification
## 3.13.2.2 MVCC Problem Identification You can check for a number of indicators of MVCC problems. Problems with a high number of active versions can be identified by: - users reporting an increase of response times - the indexserver trace containing "There are too many un-collected versions. The transaction blocks th...