Topic: SQLcl
  • SQLcl Became an MCP Server. Give It the Smallest User You Can. — Since SQLcl 25.2 (July 2025), SQLcl can run as an MCP server. In plain words: an AI assistant like Copilot in VS Code can connect to your Oracle database through SQLcl and run SQL and PL/SQL for you. SQLcl keeps the saved connections on your own machine, and the SQL Developer extension for VS Code registers it as an MCP server automatically. Oracle's own advice in the post is the line I'd underline twice: connect with database users that have only the privileges they really need. I've used this setup in my lab videos, and honestly the AI part is the easy part. The real work is the user you hand over. If the saved connection is a DBA account, the assistant is a DBA too, with all the confidence and none of the fear. A read-only user on the schemas you want to discuss is the setup I'd start with, and I'd keep an eye on what it actually runs. Read the original: Introducing MCP Server for Oracle Database (Oracle Database Blog) Oracle SQLcl 25.2 release notes This is...

  • 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...

  • You Already Speak AI: The Oracle DBA's Translation Guide — Okay friends, this one is a bit different. No benchmark, no lab scorecard today. Just a question I kept getting from other DBAs: "Where do I even start with all these AI words?" My answer: you already know most of them. You just call them something else. A prompt is a SQL statement. A context window is a memory area. A tool call is a stored procedure call. An agent is a junior DBA with a runbook. Once that clicks, the rest gets a lot less scary. On-prem Unix box or cloud, it's all the same. Here's the map, a small example, and the security part I care about most. 1. What you need to follow along Nothing new, really. Think of a slow database at 10:42. The old way: you open your own script folder, your notes, a few support notes, and you write the V$SESSION query yourself in SQL*Plus or SQLcl. Every step is yours. The new way: you type the question in plain English, a model drafts the SQL or explains the AWR section, and an agent can even run read-only que...

  • AI is Coming to the DBA World. Here's What I'm Going to Test. — For most of my career, this job looked about the same. Keep the database up. Keep it fast. Make sure last night's backup really worked. And when something breaks at three in the morning, find out why before the business wakes up. Then AI moved into town. I've been using it in my daily work for a while, and I wanted a place to test it properly, on real databases, with the mistakes left in. That's what DBA AI Lab is. The video below is the big picture. In this post I'll show you the actual lab test behind it: how I set it up, what I asked, what came back, and where it went wrong. How I built the lab Nothing fancy. It all runs on my laptop: Piece What I used Database Oracle AI Database 26ai Free (23.26.3), pluggable database FREEPDB1 Where it runs Docker Desktop on WSL2, image gvenzl/oracle-free:23.26.3 , 3 GB memory, 2 CPUs Network Port 1521 on 127.0.0.1 only, so nothing outside my laptop can reach it The AI's way in SQLcl MCP server 26.3.1 The AI...