Skip to content
DBA Brain
Oracle health check

An Oracle health check that runs itself and keeps the score

A health-check script run by hand says what is wrong today. DBA Brain, an open-source DBA tool, runs its checks on a schedule against every Oracle instance you list, grades each one OK, WARNING or CRITICAL against thresholds you keep in a file, alerts you when one changes, and keeps the history - so last night is a query away, for you, a report or an AI agent.

What it checks

Six kinds of checks on every instance

Availability

The instance, the CDB and every PDB it can see, Data Guard's health, the archive log destinations, the critical lines of the alert log and the ADR's incidents.

Capacity

Space in the data files, the archive log area, temporary space, the largest segments, and how close the instance is to its process limit.

Performance

Sessions, long-running queries, blocking and deadlocks, waits and their latency histogram, I/O latency, the shared pool, the library cache and the buffer cache, the top SQL by disk reads and by buffer gets.

Recoverability

How old the last backup is and how it ended, the backup jobs, why redo cannot be reused, corrupt blocks, and transactions left open that hold locks.

Security

Every account's roles and system privileges, with a warning for one holding DBA, and whether the data files are encrypted at rest (TDE).

Maintenance

Scheduler jobs that failed or ran long, invalid objects, unusable indexes and the indexes' health, statistics left old, constraints left disabled or not validated, and disabled triggers.

Graded, not dumped

A verdict per check, and the evidence only for what is wrong

Your policy, in a file

Every threshold lives in data/metric_definitions.json, kept in version control: a change is a diff and a review. One instance can take another severity for one check, or switch it off, with one command (metric-severity, metric-toggle).

Alerts that say what changed

A check that turns WARNING or CRITICAL reaches the chat its severity is routed to, one message at a time, and commands sent back are held to the person's clearance and the chat's.

History, reports, SLA

Every reading is kept: per-server metric pages, the fleet inventory and SLA pages are built from it, with a freshness gate - a number that stopped arriving is never shown as a current one.

Beside a script run by hand

The checks you would run, run for you

A health-check script is a good first look, and it stays one: it runs when someone remembers, its thresholds sit in its code, and what it found is gone when the window closes. DBA Brain runs the checks on a schedule, keeps every reading, grades each against the policy you wrote, and tells you when a grade changes. An AI agent asks db-status for the verdict instead of reading rows (Oracle MCP server).

Try it

Install, name your instances, start the daemon

The checks, the grading and the SLA work with no dbabrain key and no internet; Telegram alerts need the internet, and the HTML reports a free key (what a key is).

shell
pip install "dbabrain[oracle]"
dbabrain init
dbabrain daemon

Between the second and the third line, your Oracle instances go into data/db_instances.json and their logins into the encrypted store: the quick start, and everything else DBA Brain does.

FAQ

Questions asked first

Does it install anything on the Oracle server?

No agent and no package. DBA Brain runs on a machine of its own and asks its questions over a connection and a login you already have; the checks only read.

Which Oracle versions?

Oracle 12c through 26ai, multitenant or not; Oracle 11g with checks written for what it lacks; and Oracle 8i through a bridge with a set of its own. From 12.1 the driver connects in thin mode; an older version takes the Oracle Client in thick mode.

What about SQL Server, PostgreSQL and MySQL?

The same loop with each engine's own checks (SQL Server health check), graded against the same kind of policy; around ninety metrics across the engines.

Can someone set it up for us?

Yes - setting up DBA Brain on your servers, and Oracle work in general, are among the DBA work we do: see what we do.