Back to section

/ HANA / Expensive Statements Trace

Expensive Statements Trace Review

Performance Monitoring Investigation — determine whether SAP HANA was collecting expensive SQL statement information for performance analysis.

T-Code / Command
Expensive Statements Trace
System
SYSTEMDB@HDB
Objective
Determine whether SAP HANA was collecting expensive SQL statement information for performance analysis.

Operational Scenario

This investigation was performed in a SAP HANA sandbox environment to simulate a routine SAP BASIS performance monitoring task. The Expensive Statements Trace configuration was reviewed to verify whether SQL statements exceeding defined execution thresholds were being collected for performance analysis. The investigation followed the same structured monitoring methodology commonly applied during performance investigations in production SAP environments.

Business Impact

Expensive statement monitoring supports performance investigations by identifying resource-intensive SQL activity. When the trace is disabled, performance troubleshooting may be limited because workload execution data is unavailable.

/ Tools Used

SAP HANA StudioPerformance MonitorTrace Configuration

/ Step-by-Step Execution

01

Initial Performance Monitoring Review

The Expensive Statements Trace was opened in SAP HANA Studio's performance monitoring view to inspect captured expensive SQL activity.

01-trace-empty.png
Operational Observation

No expensive statement records were available for review. The monitoring screen displayed Visible Rows: 0/0. Because no statement data was available, further investigation was required.

02

Root Cause Investigation — Trace Configuration

The trace configuration was reviewed to determine why no expensive statement information was available. The review focused on trace status, threshold duration, and the overall monitoring configuration.

02-trace-config.png
Operational Observation

The Expensive Statements Trace was configured as Inactive. Since statement collection depends on an active trace, no expensive statement information was available for analysis. The absence of monitoring data was determined to be a configuration-related condition rather than a database performance issue or system malfunction.

/ Technical Evidence Collected

AttributeValue
Monitoring AreaExpensive Statements Trace
Initial ResultNo expensive statement records
Visible Rows0 / 0
Trace StatusInactive
Root CauseTrace not enabled
Issue CategoryConfiguration
Database Performance IssueNot identified

/ Assessment

The initial review identified that no expensive statement records had been collected. A follow-up investigation of the trace configuration determined that the Expensive Statements Trace was configured as Inactive. Since statement collection depends on an active trace, no expensive statement information was available for analysis.

/ Project Outcome

The Expensive Statements Trace was found to be configured as Inactive during the review period. As a result, SAP HANA was not collecting SQL statements exceeding configured performance thresholds, and no expensive statement data was available for analysis. The absence of monitoring data was determined to be a configuration-related condition rather than a database performance issue or system malfunction.

/ Case Study PDF

Operational Summary

Lessons Learned
  • Performance monitoring data should be validated before beginning detailed analysis.
  • Missing monitoring data often requires configuration review.
  • Effective troubleshooting involves identifying root causes rather than stopping at initial observations.
Skills Demonstrated
SAP HANA AdministrationPerformance MonitoringMonitoring Configuration ReviewRoot Cause InvestigationSAP Basis Operations