Open SQL Part 8: Performance Analysis with ST05, SAT and SQL Monitor
Preview · a free account unlocks the full lesson
Find slow SQL with evidence: record an SQL trace in ST05, read the statement summary and explain plan, detect identical selects and missing indexes, profile with SAT, and find system-wide hotspots with the SQL Monitor (SQLM).
In this lessonShow sectionsHide sections
Visual overview
Explanation
Parts 1 through 7 of this series gave rules for writing good SQL; this part is about proving where time is actually spent, both before and after a fix, rather than guessing.
ST05, the SQL trace, records every database statement a user issues: its duration, the rows involved, and how many times it executed. To use it, activate the SQL trace in ST05 for your user (or the job's user), run the program against a small but representative selection, then deactivate and display the trace.
The views worth knowing are the statement summary (structure-identical statements grouped by SQL text, showing how often each one ran and its total time), identical selects (the same statement with the same values executed several times, which is pure waste that should be cached instead), and the explain plan (showing how the database executes the statement — whether it uses an index or falls back to a full scan); trace buffer access and RFC calls too where relevant.
Create a free account to keep reading
You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.
- Full explanation
- Code example
- Real project scenario
- Common mistakes
- Best practices
- Interview angle
One tap with Google works too. Every topic keeps its first lesson open to everyone.
Keep exploring
Interview questions on this topic
Related SAP topics
Referenced SAP objects
Reviewed reference pages for the objects this page mentions.
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.