Topic: New to AI
  • New to AI? Local or Cloud Models, and the Security Side — Hi all. Last part of New to AI?, and the one I care about most: where the model runs, what leaves your network, and the AI risks a DBA should know by name. No panic, no hype. Mostly old DBA rules in new clothes. Local or cloud? Local model Cloud model Where it runs Your laptop or your own server, for example with Ollama The provider's data center (ChatGPT, Claude, Gemini, Copilot ...) Your prompt Stays with you Leaves your network, including everything you pasted Quality Smaller models, fine for summaries, embeddings and simple SQL Usually much stronger on hard reasoning and long reports Hardware On a normal laptop without a GPU: small 3 to 4B models, slow but usable Nothing to run, you pay per use or per seat What to check Who can reach it on the network, and its updates The data terms: retention, training on your data, region, your company's agreement In my labs the Oracle AI setup runs qwen3:4b and nomic-embed-text locally, on a laptop with no GPU. It wor...

  • New to AI? MCP, Agents and Skills, Explained for DBAs — Hi all. Three words that show up in every AI announcement for databases now: MCP , agents and skills . Together they're how AI stops just talking about your database and starts doing things in it. Which is exactly why a DBA should understand them. MCP: one plug for every tool The Model Context Protocol is an open standard for connecting AI apps to tools and data. There are three roles: the host (the AI app, like VS Code with Copilot or Claude), an MCP client inside it, and an MCP server that offers capabilities. A server offers tools (things it can do, like "run this query"), resources (things it can read) and prompts . Under the hood it's JSON-RPC 2.0. In DBA words MCP is like a database driver standard. One protocol, many clients, many servers. And just like a driver, the MCP server connects with an account. That account is the real limit on what the AI can do, not the prompt. Agents: a model in a loop A chat answers once. An agent works towa...

  • New to AI? Text-to-SQL: When the SQL Is Right, and When It Only Looks Right — Hi all. Text-to-SQL (you'll also see NL2SQL) is the demo everyone loves: type "top 5 customers last month" and get a query, maybe even the result. Sometimes it's brilliant. Sometimes the SQL runs perfectly and answers a different question. This post is about telling those two apart. How it works The model gets two things in its context window: your question, and a description of your schema, meaning table names, column names, types and, if you have them, comments. From that it writes SQL. It doesn't see your data and it doesn't know your business words, unless you tell it. Where you'll meet it What it does Oracle Select AI You set up an AI profile with the tables it may use, then ask in SQL: SELECT AI showsql top 5 customers last month; . Other actions: runsql , explainsql , narrate , chat . Copilot in SSMS Writes and explains T-SQL in the query editor and runs queries with the permissions of your login. MCP tools An agent reads the schema t...

  • New to AI? RAG: Letting AI Answer From Your Own Docs — Hi all. Here's where vector search starts paying off. A model on its own only knows what it learned in training, and nothing about your systems. RAG (retrieval-augmented generation) fixes that: before the model answers, you retrieve the right pieces of your own documents and put them in its context window. The model answers from those, and can show where the answer came from. For DBAs that's runbooks, past incident notes, architecture docs, vendor notes. "How do we fail over the billing database?" answered from our runbook, not from a blog post somewhere. The five steps Chunk. Split the documents into pieces of a few hundred words. Too big and the search gets fuzzy; too small and the answer loses context. Embed. Turn every chunk into a vector with an embedding model (see part 3). Store. Put text, vector and metadata (source, date, owner) in a table with a vector index. Retrieve. Embed the question and fetch the top few closest chunks. Generate...

  • New to AI? Vector Search: In Your Database or in a Vector Database? — Hi all. Last time we saw what embeddings and vector indexes are. The next question comes fast, usually from an architect: "Do we need a vector database now?" Maybe. Often not. Here's what the databases we already run can do, what dedicated vector databases add, and how I'd decide. What your database already offers Database What's there Worth knowing Oracle AI Database 26ai VECTOR type, VECTOR_DISTANCE , HNSW and IVF indexes, hybrid vector indexes (text + vector), embedding and chunking in PL/SQL Included in the database, also in the Free edition. HNSW needs the vector memory pool. SQL Server 2025 VECTOR type, VECTOR_DISTANCE , AI_GENERATE_EMBEDDINGS , DiskANN vector index The vector index and VECTOR_SEARCH are preview features in SQL Server 2025. PostgreSQL The pgvector extension: vector type, distance operators, HNSW and IVFFlat An extension, not core Postgres. Most managed Postgres services ship it. MySQL VECTOR type in MySQL 9 The docs say D...

  • New to AI? Embeddings and Vectors, Explained for DBAs — Hi all. Vector search is the AI feature that landed straight inside our databases: Oracle, SQL Server 2025, PostgreSQL with pgvector. To understand it you only need two ideas, embeddings and distance . Both are simpler than they sound. An embedding is meaning, as numbers An embedding model is a small AI model that reads a piece of text and returns a fixed-length list of numbers. That list is a vector . The model I use in my lab, nomic-embed-text , returns 768 numbers for any text, a word or a whole page. The trick: texts with similar meaning get vectors that are close to each other. "Two sessions waiting on each other" lands right next to "deadlock", even though they share no words. "RMAN backup failed" lands somewhere else entirely. In DBA words LIKE '%deadlock%' finds the word. Vector search finds the meaning . It's the difference between searching your incident notes for a keyword and asking a colleague "have we seen s...

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

  • New to AI? The Big Picture for DBAs in 5 Minutes — Hi all. This is the first post of a small series called New to AI? Short posts, one topic each, written for DBAs who keep hearing the words and want the picture without a 40-minute talk. I'll link the official docs, so you can check me. Today: the big picture. What a model actually does A large language model (LLM) does one thing: it looks at the text in front of it and predicts what comes next, a little piece at a time. Those pieces are called tokens , roughly a word or part of a word. It learned that from huge amounts of text. That's why it can explain an execution plan, write a decent SQL query or sum up an alert log. What it doesn't do is look things up. It has never logged in to your database. It doesn't know your table names, your version or what happened at 02:00 last night, unless that text is in front of it. The amount of text it can read for one answer is the context window . In DBA words Think of a very well-read new colleague who has never had ...