New to AI? How DBAs Actually Use AI Day to Day

Hi all. In part 1 we looked at the big picture. This one is the practical part, and the question I get most: "Fine, but what do DBAs actually do with it?" Not the conference version. The everyday version, the jobs where it saves me real time, and the checks I never skip.

Short answer: AI is very good at the first pass. Reading a lot of text, drafting code, writing things up. The decision, the run on production and the final check stay with the DBA.

Where it really helps

1. Reading evidence faster. An AWR or ASH report, Query Store output, pg_stat_statements, an execution plan, an alert log, a 300-line error stack. I paste it (cleaned of names and real values) and ask: "What stands out, and what would you check next?" In a minute I have a first opinion and a list of suspects. Then I check the numbers myself, because it can misread a column or mix up two sections.

2. Drafting code. A monitoring query, a PowerShell or bash wrapper, a PL/SQL or T-SQL procedure, a regex to pull ORA- or error numbers out of a log. It writes the first draft in seconds. I review it like a pull request from a junior colleague and run it in a lab first.

3. Translating between engines. "What's the PostgreSQL version of this Oracle query?" "What's the SQL Server equivalent of pg_stat_activity?" If you look after more than one database, this one alone is worth it. It's also where it hallucinates most, so I check the view names in the docs.

4. Writing things up. Incident reports, change requests, runbook pages, the email to the application team. I give it the timeline and the facts, it gives me a clean draft, I fix the tone and the details. Good table and column comments are a nice side effect, and they help AI later too (more on that in the text-to-SQL part).

5. Routine checks with an agent. This is the newer one: an agent that runs read-only queries on its own and writes a summary. I tried it with an Oracle morning check (it got three things wrong) and a user audit of 3,000 accounts. Useful, but only with a read-only account and a DBA reading the result.

6. Building labs and test data. A Docker lab with a database, sample data and an MCP server in minutes. My Oracle AI lab came from one prompt. That's how I can test things I can't touch on production yet.

7. Learning. "Explain this new 26ai feature like I'm a SQL Server DBA." Great for a first understanding, then I read the real docs.

Old habits, made faster

The old habitWith AIWhat I still check
My folder of scripts, collected over the yearsThe folder stays, AI drafts the new ones and adapts old onesVersion, edition, every column name
Googling an error code, ten tabs openPaste the error with context: version, what changed, what I already triedThe fix against the official docs
Reading a long report top to bottomAI's first pass: the top 5 things that stand outThe numbers in the report itself
Writing the incident report at 23:00Timeline in, clean draft outFacts, times, no guessing about root cause
Manual morning checkAn agent with a read-only account writes the summaryAnything red, before I believe anything green

How to ask, so the answer is useful

A vague question gets a generic answer. What works for me is writing the prompt like a good ticket:

A prompt that works

Oracle 19c Enterprise, 2-node RAC. The nightly billing job went from 20 to 95 minutes after Saturday's patch. Below is the AWR top section and the plan of the slowest statement. What stands out? Give me read-only queries to confirm it, and tell me when you're not sure.

Engine and version, what changed, the real evidence, and what kind of answer you want. And "tell me when you're not sure" really does help.

Where I don't use it (yet)

  • No real customer data or production dumps into a cloud model. Masked samples, or a local model.
  • No DDL or DML from AI straight on production. Lab first, change process as always.
  • No AI decision on killing sessions, failing over or dropping anything. It can find the blocker; I press the button.
  • No passwords in the chat, ever.

Also good to know: tools run with your rights. Microsoft's docs for GitHub Copilot in SSMS say Copilot runs queries with the permissions of your login, and its agent mode can even change schema with your approval. If you connect as sysadmin, so does your assistant.

My rule: AI writes the first draft. The DBA signs the change.

Official reading

Next in the series: embeddings and vectors, the idea behind vector search. And tell me: what's the one DBA job you'd hand to AI first?

The New to AI? series

Part 1 was the big picture. All parts, in one place: New to AI? And if you want every AI word mapped to something DBAs already know, start with You Already Speak AI (also for SQL Server and PostgreSQL).

Comments