ClusterEyeClusterEye
Request DemoStart free trial
Performance

An Oracle bottleneck: from waits to the SQL responsible

On the Waits tab read what the database is waiting for, find the SQL and object responsible, inspect that SQL's load and plan in Query Intelligence, and reach the finding and recommendation in SQL Tuning.

Scope

Engines
Oracle
Roles
AdminDBAViewer
ClusterEye
ClusterEye 1.6.50 and laterWritten from the product code
Prerequisites
  • The Waits and Query Intelligence tabs exist on every Oracle node, and reading them needs only a monitoring role (Admin, DBA or Viewer). If the Waits collector is only partly working, a banner appears at the top of the tab.
  • For 'Running now' and 'Blocking' in Query Intelligence the 'Active-session snapshot' under Settings → Agent Runtime Config → this agent → Collection Limits must be on; when it is off the tab says 'Currently running is empty: the active-session snapshot is off'. Count, Total, Avg and Load do not need it.
  • SQL Tuning findings come from the agent's tuning collector; if it is not running the tab shows 'Tuning collector may be disabled'. Marking a finding with 'Dismiss' or 'Mark Resolved' needs the Admin or DBA role; a Viewer can read findings.

When this guide helps

  • oracle database is slow wait events
  • which wait class is oracle spending its time in
  • oracle log file sync is high
  • oracle db file sequential read waits are high
  • which sql is causing the oracle slowdown
  • oracle top sql by wait time
  • oracle buffer busy waits which object
  • oracle wait events are causing a bottleneck

Steps

  1. Step 1: Observe → Performance Analyzer → Oracle → Waits

    Do

    On the Oracle Performance Analytics page pick the node and open the Waits tab. Choose the range you want to inspect with the 'Window' selector (the default is 15m).

    Look for

    The six tiles at the top: Wait Health (a Normal / Elevated / High / Critical badge plus a '~ normal for these hours', 'vs normal' or 'baseline learning' line), Top Wait Class (with 'Wait share' percentage), Dominant Event, Avg Wait, Total Wait, Affected Sessions (with 'Confidence'). Below them the 'Wait Timeline' and 'Wait Distribution' charts; clicking a class adds a 'filtered: <class>' tag and narrows the tables on the page to that class.

    How to read it

    Wait Health does not read one percentage; the product looks at up to five signals and takes the worst (the result never drops below the root-cause engine's own severity): the class share (cut-offs at 25%, 50%, 75%), the dominant event's average wait (cut-offs at 10, 30, 100 ms), growth within the range (last third against first third), the number of affected sessions (raises the level at 8 and 20 sessions) and, when the anomaly engine supplies it, the deviation from the learned normal (cut-offs at 2x, 3x and 5x). On a small, healthy workload one class can hold 90% and still read 'Normal'; the real fire is a class with a small share but an average wait above 100 ms, or one that is growing fast. 'Top Wait Class' skips the 'Other' class, and 'Dominant Event' is the event that accumulated the most time inside that class. The 'vs normal' line compares the range's wait load with the seasonal normal the product has learned; 'baseline learning' means the normal is not learned yet. Classes below 1% share are hidden as 'low-impact' ('show' reveals them).

  2. Step 2: Observe → Performance Analyzer → Oracle → Waits

    Do

    Stay on the same tab and scroll down: read the 'Correlation & Likely Root Cause' card, then click the dominant event's row in the 'Top wait events' table.

    Look for

    On the card the 'Related signals' tags (for example Redo throughput, Commit rate, Buffer cache hit, Physical reads, Hard parse ratio, Blocked sessions), the 'Likely root cause' sentence, the 'Confidence' bar and, at the top right, a link to the next tab. In the table Wait class, Event, Severity, 'Waits (window)', 'Time waited (ms)', 'Avg wait (ms)'. Clicking a row opens a drawer with Overview, 'Why it occurs', 'When expected', 'When problematic', 'Typical causes', 'Recommended investigation', 'Affected SQL' and 'Related findings'.

    How to read it

    The card applies fixed rules by the dominant class and cross-checks them against other collectors: for Commit or System I/O it looks at redo throughput and commit rate (more than 50 commits per second brings the 'application committing row by row' reading) and points to 'Workload → Redo'; for User I/O it looks at the buffer cache hit ratio (below 90% reads as 'undersized cache or a plan doing too much I/O', above as 'storage latency or a few heavy SQL') and points to Query Intelligence; for Concurrency it looks at the hard-parse ratio (above 10% reads as library cache / shared pool contention, below it favours hot-block / latch contention); for Application it looks at the blocked-session count and points to the blocking tree in Sessions; for Network, if storage, redo and cache are healthy, it says the latency is on the application side (many round-trips, a small fetch size). These are rule-based hints, not proof, and the confidence is deliberately capped at 97% at most. In the drawer 'Why it occurs' and 'Typical causes' come from the product's knowledge base: read them to learn what the event is; for an event not in the knowledge base you only get the class-level description.

  3. Step 3: Observe → Performance Analyzer → Oracle → Waits

    Do

    On the Waits tab look at the 'Top SQL by Wait Contribution' and 'Wait by Object' cards. If needed click the dominant class in Wait Distribution first to narrow the tables to it.

    Look for

    'Top SQL by Wait Contribution': SQL_ID, Dominant, Executions, Elapsed, 'I/O %', 'Conc %', Contribution. Clicking a row opens a drawer with Plan hash, 'CPU %', 'I/O %', 'Concurrency %', 'Application %', 'Buffer gets', 'Disk reads', SQL text and an 'Open in SQL Tuning' button. 'Wait by Object': Object, Wait class, 'Phys reads', 'Buf busy', ITL, 'Row lock', Contribution and a 'Tables →' link. The 'Session Impact' card shows the Affected / Waiting / Blocked counts with Top Programs and Top Users.

    How to read it

    The table lists the top 10 SQL by elapsed time, and the 'Contribution' bar shows the share only among the SQL listed, not within the whole database. The class filter narrows the SQL only for User I/O, Concurrency, Application and Cluster; for classes such as Commit or Network the table is not filtered. A SQL with a high 'I/O %' is a candidate for read pressure, one with a high 'Conc %' for contention. 'Wait by Object' comes from segment statistics: 'Buf busy' points at hot-block contention, ITL at transaction-slot contention and 'Row lock' at application row-lock contention (the column tips' own definitions); only the first 15 objects showing pressure are listed, and table and index names open the Object Impact drawer. As advice: these two tables are a candidate list; to confirm a SQL is the culprit use the load and plan information in the next step.

    • If you see: You want the responsible SQL's load and plan → Step 4
    • If you see: You want its finding and recommendation straight away → Step 5
  4. Step 4: Observe → Performance Analyzer → Oracle → Query Intelligence

    Do

    Open the Query Intelligence tab. Choose the range at the top right (the default is 1h; 1h to 30d), type the SQL_ID you found in the previous step into the 'sql_id / text / schema' box and click its row to open the drawer.

    Look for

    At the top the 'Workload Timeline' (average active sessions by wait group; brushing a range narrows the table to it), the 'Load', 'Running now', 'Blocking', 'Pressure', 'Regressions', 'Plan changes' and 'With findings' tiles, and the 'All SQL' table: Severity, Query, Count, 'Total time', Avg, 'CURRENTLY RUNNING' (Sessions, 'Max duration'), 'ACTIVE SESSIONS (LOAD)' (Avg, 'Wait groups'), 'Δ vs 7d'. The table's sub-tabs are All, Running, Blocking, Regressed, 'Plan changed', 'Has findings', next to 'Hide agent/system SQL'. The drawer has Overview ('Runtime Summary', metric boxes, execution plan), Breakdown, Evolution, Findings and Navigate tabs; with the context graph on there is also a Dependencies tab.

    How to read it

    'Load' is the average number of active sessions over the range (the growth of elapsed time in V$SQLSTATS divided by the window); the bar splits it into CPU, User I/O, Concurrency, Application (locks), Cluster and Other. That bar is the quickest way to find the SQL that matches the class you found on Waits: a SQL with a large share of that group in its 'Wait groups' bar owns the dominant class. 'Δ vs 7d' compares the SQL's average time per execution with its level over the previous 7 days; it is shown as a coloured chip when it moved by more than 5% and as a plain percentage otherwise. The 'Regressed' and 'Plan changed' sub-tabs lead to 'did the SQL slow down or change plan' (Plan changed: a SQL that ran more than one plan in the window). In the drawer 'Breakdown' gives the SQL's CPU, User I/O, Concurrency, Application and Cluster shares and a '<class>-bound' tag; 'Evolution' gives the history chart and the plan-change story; the plan in Overview is the plan that row ran with. If the 'Blocking' tile is non-zero a red banner appears on the page: you see who blocks whom there and behind the 'Blocking tree →' link.

    • If you see: The SQL changed plan or regressed (Plan changed / Regressed) → Step 5
  5. Step 5: Observe → Performance Analyzer → Oracle → SQL Tuning

    Do

    Open the SQL Tuning tab. In the 'Findings' card leave the 'Status' switch on 'Open'; to narrow the table to one SQL click its row in the dashboard's 'Top SQL Activity' card (a 'Filtered:' chip appears), then click the finding's row. If you came from the Query Intelligence drawer, the 'Open in SQL Tuning →' button brings you to this tab.

    Look for

    At the top the 'SQL Tuning & Object Insights' note and the dashboard; in the 'Findings' table Score, Severity, Type, Object, SQL_ID, Seen, Status and the 'Status' switch (Open, Dismissed, Resolved, All). Clicking a row opens a drawer with Overview, Evidence, SQL, Session, Plan, History, Recommendation, Analysis and Lifecycle sections; the Recommendation card carries the type, 'risk', 'effort' and 'impact' tags, a 'Copy SQL' button and the 'Before applying' notes; at the top 'Dismiss' and 'Mark Resolved'.

    How to read it

    The tab's own note is explicit: findings are derived from execution plans, segment statistics and object metadata, recommendations are 'review candidates', and ClusterEye never runs them itself. The Evidence section shows metrics such as executions, time per execution, buffer gets and disk reads; some boxes appear only if the finding carries that metric. 'Copy SQL' copies the recommended script to the clipboard; for an index that may have a job the product cannot see in plans the button is disabled and the reason is in the 'No script: …' note. Before applying a recommendation read the 'Before applying' notes; for unused or overlapping index findings also look at the 'Used by queries' card. 'Dismiss' closes one finding; for object-level findings its 'Scope' option also offers a suppression rule that closes all findings of that type on the object, and 'Mark Resolved' records that the underlying problem is fixed; both change the finding record in ClusterEye, not the database. If there are no findings the tuning collector may simply not have run yet, which is not the same as 'the workload is healthy'.

Outcome

By the end you know which wait class and event the database spends most of its time in, which SQL and object that ties to, and the candidate the product suggests for that SQL. These screens only read: ClusterEye does not create an index, pin a plan or change the SQL. With 'Copy SQL' you take the script and apply it yourself, after review, in the database. The only actions that write are 'Dismiss' and 'Mark Resolved' in SQL Tuning (Admin or DBA), and they change only the finding record in ClusterEye. To work an incoming alarm see the 'Alarm triage: finding, owning, snoozing and resolving an alarm' guide, and for last night's incidents the 'What happened last night: reading incidents and root cause on the Timeline' guide.

Incident response
Alarm triage: finding, owning, snoozing and resolving an alarm

On the Alarms page prioritise active alarms, read an alarm's detail, acknowledge and own it, snooze it or silence it with a maintenance window when needed, and close it as resolved.

Incident response
What happened last night: reading incidents and root cause on the Timeline

On the Timeline page narrow the last 24 hours by severity, read an incident's root-cause summary and story, drill into raw events and, if needed, get a plain-language account with AI Explain.

Availability and replication
When was the last good backup: backup status on SQL Server and Oracle

On SQL Server read the latest backup per database and backup type, its age and flags on Databases → Backups; on Oracle read the Recovery Readiness score, the last full backup, the archivelog backup and the recent RMAN jobs on the Operations tab.

Capacity
Capacity before the disk fills: which space, and how soon

On PostgreSQL and SQL Server read which disk and which database is filling from the Volumes, Capacity Planning and Storage screens, and on Oracle from the Tablespaces tab; learn how to read the growth rate and the 'days until full' estimate.