-
I Let an AI Audit 3,000 Oracle Accounts. 41 Failed Logins, Still Open. — Hi again, this one is about the part of DBA work nobody enjoys: the user audit. Locked accounts, people who left years ago, passwords from 2017, service accounts on the wrong profile, failed logins nobody ever looked at. I gave an AI read-only access to an Oracle database with almost 3,000 accounts, asked it six plain questions, and turned the answers into one HTML report for the security team. The headline finding: 219 failed logins in the lab, and the account with the most of them (41 tries) never locked, because its profile allows unlimited attempts. Nobody got a ticket. Below is how I set it up, what I asked, what I expected, what I got, and where the AI (and I) slipped. 1. The test environment, command by command Piece What I used Database Oracle AI Database 26ai Free (23.26.3) in Docker, PDB FREEPDB1, port on 127.0.0.1 only AI client VS Code + Copilot Chat in agent mode Door into the database SQLcl MCP server ( sql -mcp ), read-only by instruction Report One Pyt...
-
I Built a SQL Server Lab for AI Tests. AI Agent Read My Passwords! — I built a small SQL Server lab on my laptop so I could test AI tools against a real database. Then I asked Copilot three questions in plain English. Two answers were right. The third question was "delete the retired bikes", and that's where it got interesting: the MCP server said no, so the AI went looking for another way in. And it had already read my password file without asking. Okay friends, so this one is the foundation for a lot of later tests. Below is how I built the lab, every download and every command (even if you've never touched Docker or MCP, you can follow it top to bottom), then the three questions, what I expected vs. what I actually got, where things went wrong, and what I'd take from it. The code is on GitHub: dba-ai-lab / labs/sqlserver , with the compose file, the sample database, the DAB config and the MCP smoke test. 1. The test environment, command by command Four pieces, and how they talk to each other: VS Code + Copilot ...
-
A PostgreSQL Lab for AI Tests: Docker, pgAdmin, an MCP Server and VS Code — DBA AI Lab · Lab setup I Built a PostgreSQL Lab So Copilot Could Poke at It (Read-Only) PostgreSQL 17, pgAdmin and an MCP server in Docker on a 16 GB laptop, and Copilot in VS Code asking one question. What I expected, what broke, and what I fixed. 3 containers 16 GB RAM laptop 9 MCP tools 0 rows changed by the AI Okay friends, today's job was simple on paper: a PostgreSQL box on my own laptop that I can break while I try AI tools on it. No cloud database, no shared dev server. Something that starts when I log in, that I can throw away and rebuild in a few minutes, and that an AI can read but never change. By the end of the afternoon I had PostgreSQL 17 in Docker, pgAdmin next to it, an MCP server in front of it, and Copilot in VS Code answering a real question about the data. It did not go smoothly. VS Code turned out to be too new for the MCP server, and that alone ate most of my afternoon. I kept all of it in, because you'll probably hit some of the same things. ...
-
I Let an AI Agent Build My Oracle AI Lab. One Prompt — Hi all, this is where the whole series starts. I wanted an Oracle AI lab on my very ordinary laptop, and I didn't want to type a single install command myself. So I wrote one prompt for an AI agent (Claude Code), told it to ask me before touching anything, and sat back to watch. Well, mostly watch. I read every request before I said yes. It ended with Oracle AI Database 26ai Free running in Docker with AI Vector Search, two small local models in Ollama, VS Code with the Oracle SQL Developer extension, and its own check script saying 12 PASS, 0 FAIL. Below is every command, what I tested, and what I'd do differently today, the passwords most of all. The code is on GitHub: dba-ai-lab / labs/oracle , with the compose file, the init scripts, the smoke test and the full prompt. 1. The test environment, command by command Piece What I used Laptop Windows 11, Intel i5, 16 GB RAM, no GPU Linux layer WSL2, memory capped at 6 GB Container runtime Docker Desktop Dat...