Oracle performance monitoring without the Diagnostics Pack
Oracle performance monitoring on V$SQLSTATS and the V$ views, snapshotted by ReinDB itself: no AWR, no ASH, no Diagnostics Pack license needed. Hour-of-day baselines, regression flags and fix scripts. Works on RDS for Oracle.
Transcript
Oracle performance monitoring without the Diagnostics Pack. By default ReinDB reads only V$ and DBA_ views: no ASH, no AWR, no DBA_HIST. Here is what you still get.
This is the Databases page of the demo account. Let's test the Oracle 19c connection.
The test lists every view ReinDB reads and what it is used for: V$SQL, V$SQLSTATS, V$SQL_PLAN, V$SYSTEM_EVENT, V$SESSION...
Diagnostics Pack views: OFF, the default. ReinDB reads no ASH, AWR or DBA_HIST_* view, so no Pack license is needed.
If your site does license the Pack, one option per database turns those views on.
So where does the history come from? ReinDB reads V$SQL every hour and keeps its own history, with the plan hash of each statement.
That is enough to flag this: 20,625x slower per execution, 0.08 ms typical against 1,650 ms now.
And this: a new plan, 3409971236, never used in the last 14 days. No AWR needed.
The cause is in Watch this fix: Release 7.3 replaced the index on PAYMENTS (INVOICE_ID) with (PAID_AT, INVOICE_ID).
Meant to speed up a report. Verdict: Worse, on a new plan.
Open the statement. It runs inside SUMMIT.CLOSE_INVOICES at line 7 (from V$SQL).
Time per execution by plan: the old plan at a median of 0.08 ms, the new one at 1,650 ms.
From the catalog: no index on payments starts with invoice_id any more, so every call reads all 12.4 million rows.
The plan from V$SQL_PLAN: TABLE ACCESS FULL on SUMMIT.PAYMENTS, 380,000 buffers for one row.
The fix script builds the index ONLINE, every line commented out, with an undo. The test kit can try it as an invisible index first.
Waits come from V$SYSTEM_EVENT, measured each hour and compared with the usual for that hour of day.
db file scattered read is 28.5x its usual: full table scans, which matches the plan we just saw.
Oracle 11.2 and later, Standard or Enterprise Edition. No Diagnostics Pack needed. See it on the live demo at reindb.com.
Built on the V$ views, no pack needed
AWR and ASH belong to the Oracle Diagnostics Pack, an extra-cost option on Enterprise Edition, and not available on Standard Edition at all. ReinDB doesn't need them. It snapshots V$SQLSTATS, waits, sessions and the DBA_ views itself, every hour, and builds its own history and baselines from those snapshots. If you do license the Pack, tick it and ReinDB reads ASH and AWR too; it never assumes you have it.
It connects without an Oracle Client, with SELECT on the V$ and DBA_ views and nothing else. Oracle 19c and 26ai. Tested on Amazon RDS for Oracle.
Always confirm what your own license covers against Oracle's licensing documentation for your release and edition.
What it flags
Every hour (or every 30 or 15 minutes) ReinDB measures each statement's time and reads since the last run and compares them with the median and spread for the same hour of the day over the last 14 days. Monday 9 AM is judged against other 9 AMs, not against 3 AM, so the batch peak is normal and a real regression stands out.
- Query regressions: a statement now slower per call than its usual for the hour, sized by the extra time it costs.
- New heavy statements and execution spikes.
- Database-wide drift: load, waits and redo volume, waits and space against their usual.
- Each flag is NEW, ONGOING or RESOLVED, with the evidence on a chart and, if you mark deploys, the deploy next to it.
Ask in plain English (“load over the last 3 days”, “what flags fired this week?”) and the chart and caption come from the stored measurements.
Fix scripts a DBA can test
For the worst regressions ReinDB analyzes the statement and plan and writes a step-by-step script for change control, every line commented out and every step with its undo, for example making an index invisible before it is dropped. It never runs by itself. Deadlocks come with their tables and both statements from Oracle's trace files.
The test kits work on Oracle too: before and after runs of the index and statistics steps, with values for each bind picked from the column inside your own session and never printed.
Prove the fix, then watch it
Beside a fix script, download a test kit for its index and statistics steps: prerequisite checks, before and after runs, go live, rollback and cleanup. Compare reads the two result files and shows times, reads, plans, a results checksum and a verdict. After the change, mark the fix and ReinDB compares the statement's time and reads before and after, and flags a new plan or the regression coming back.
Hosted, on-premises or air-gapped
Use it hosted (nothing to install; ReinDB connects over TLS with a read-only user from one fixed address), on your own Linux or Windows server for databases that never leave your network, including air-gapped ones, or deployed into your own AWS or Google Cloud account. See deployment options and pricing: your first database is free, with no time limit.
Read more
- Guide: know what you're licensed to use (and what Oracle gives you for free)
- Guide: what to look for first, and the same waits under different names
- Guide: the SQL statement tuning procedure
- Guide: version notes, including Oracle 11g against 19c
Or check a database once first, with no account: the free database health check (PostgreSQL, MySQL and SQL Server; Oracle is checked in ReinDB itself).