KCB

Krzysztof Cabaj, Senior Oracle DBA, PostgreSQL, agenci AI, Senior Oracle DBA, PostgreSQL, AI agents

W pracy agent AI pilnuje ze mną baz danych.Po pracy montuje mi filmy z gór i rejsów. At work, an AI agent helps me run databases.After work, it edits my mountain and sailing films.

Ponad 20 lat w bazach danych i operacjach IT. Na co dzień pracuję z Claude Code: buduję laboratoria Oracle i PostgreSQL, narzędzia, które trzymają agenta w ryzach, a po godzinach skrypty, które z tysiąca klipów składają film. Wszystko mierzę i pokazuję, także to, co nie wyszło. Over 20 years in databases and IT operations. I work with Claude Code every day: Oracle and PostgreSQL labs, tools that keep the agent in check, and, after hours, scripts that turn a thousand clips into a film. I measure all of it and show it, including what did not work.

Dziennik pomiarówMeasurement log

Liczby z mojej pracy. Każda ma film, w którym widać, skąd się wzięła.Numbers from my own work. Each links to the video that shows where it came from.

  1. 68 sodtworzenie bazy Oracle do punktu w czasie w laboratorium podobnym do ZDLRA.Oracle point-in-time recovery in a ZDLRA-like lab. filmvideo
  2. 2738wywołań narzędzi przez agenta w jeden tydzień. Sprawdziłem, które zatwierdziłem ja.agent tool calls in one week. I checked which ones I approved. filmvideo
  3. 59 / 059 pytań od strażnika plików, 0 kliknięć z mojej strony.59 questions from the file guard, 0 clicks from me. filmvideo
  4. 147poprawek w skillach bazodanowych napisanych przez AI, zanim mogłem im zaufać.fixes in AI-written database skills before I could trust them. filmvideo
  5. 83uwagi z audytu ustawień mojego własnego agenta.findings from an audit of my own agent setup. filmvideo
  6. +59%koszt w moim pomiarze nowego modelu „tańszego i szybszego”, choć pierwszy token przyszedł 2,8× szybciej.cost in my measurement of the new “cheaper and faster” model, even though the first token came 2.8× faster. filmvideo
  7. 1350klipów z 11 dni pod żaglami. Film zmontował skrypt w DaVinci Resolve.clips from 11 days of sailing. A script edited the film in DaVinci Resolve. filmvideo
  8. 3244 mTofana w Dolomitach: dzień po jeziorze Braies, z kamerą w kieszeni.Tofana in the Dolomites, the day after Lago di Braies, camera in my pocket. filmvideo

zgodnie z planemas plannedwyszło inaczejturned out differentlypo pracyafter work

Dwa kanały, jedna metodaTwo channels, one method

KCB Consulting

Agenci AI na prawdziwych bazach: Oracle, PostgreSQL, bezpieczeństwo agenta, seria „AI od zera”. Po polsku, ze ścieżką i napisami po angielsku. Najkrótsze wersje trafiają też na LinkedIn.AI agents on real databases: Oracle, PostgreSQL, agent safety, the “AI from Scratch” series. In Polish, with English audio and subtitles. The shortest cuts also go to LinkedIn.

Otwórz kanałOpen the channel

KCB Kris

Góry, żagle, miasta i natura z kieszonkowej kamery, kamery 360° i drona. Montaż coraz częściej robi skrypt, a ja wybieram muzykę i ujęcia.Mountains, sailing, cities and nature from a pocket camera, a 360° camera and a drone. More and more of the editing is done by a script; I pick the music and the shots.

Otwórz kanałOpen the channel

Projekty otwarteOpen projects

Wysoka dostępnośćHigh availability

  • oracle-26ai-fsfo-tac-labOracle 26ai: RAC, Active Data Guard, automatyczne przełączanie i ciągłość aplikacji na pięciu maszynach VirtualBox.Oracle 26ai: RAC, Active Data Guard, fast-start failover and application continuity on five VirtualBox machines.
  • postgres18-ha-labPostgreSQL 18 z Patroni, etcd, HAProxy i PgBouncer, odtwarzalny z Windows.PostgreSQL 18 with Patroni, etcd, HAProxy and PgBouncer, reproducible from Windows.
  • OraMonitorMonitoring baz Oracle z historią metryk i świadomością ról Data Guard.Oracle monitoring with metric history and Data Guard role awareness.

Agenci AI na bazachAI agents on databases

  • oracle-mcp-agent-tuningAgent z dostępem do Oracle 26ai przez MCP i SQLcl sam szuka i poprawia wolne zapytania.An agent with Oracle 26ai access via MCP and SQLcl finds and fixes slow queries.
  • ora26ai-pg18-migration-pocMigracja Oracle 26ai do PostgreSQL 18 prowadzona przez agenta.Agent-driven migration from Oracle 26ai to PostgreSQL 18.
  • ora26ai-vector-rag-demoWyszukiwanie po znaczeniu w całości wewnątrz bazy Oracle.Semantic search running entirely inside Oracle Database.

Pomiary PostgreSQLPostgreSQL measurements

  • pg18-io-methods-labJedna tabela 13 GB, zmienia się tylko io_method.One 13 GB table, only io_method changes.
  • pg18-aio-benchmark-mcpPostgreSQL 16 i 18; test przygotował i uruchomił agent.PostgreSQL 16 vs 18; prepared and run by an agent.

Claude Code i naukaClaude Code and learning

  • agent-under-controlStrażnicy dla Claude Code: co agent może bez pytania, a czego nie przeczyta nigdy.Guardrails for Claude Code: what the agent may do unasked, and what it can never read.
  • ai-from-scratchRepozytorium do serii „AI od zera”: komendy, pomiary, ćwiczenia.Companion repo for “AI from Scratch”: commands, measurements, exercises.

Kamera i montażCamera and editing

Sprzęt mały, żeby był zawsze w plecaku. Reszta to skrypty.Small gear, so it is always in the backpack. The rest is scripts.

DJI Osmo Pocket 4 Pro

kamera główna, w plecaku na każdy wyjazdmain camera, packed for every trip

DJI Osmo 360 II

od niedawna ujęcia 360°; wcześniej GoPro MAX (narty, Sella Ronda)360° footage since recently; before that a GoPro MAX (skiing, Sella Ronda)

DJI Air 2S

dron do ujęć z góry: rzeki, wybrzeża, przełęczedrone for aerial shots: rivers, coasts, mountain passes

DJI Osmo Pocket 3

druga kamera; nią nakręciłem Dolomitysecond camera; the Dolomites were shot on it

Filtry ND i PLND and PL filters

16 sztuk na ostre słońce, wodę i śnieg16 of them for harsh sun, water and snow

DaVinci Resolve

oś czasu, kolor i render sterowane skryptemtimeline, colour and render driven by script

Claude Code jako montażystaClaude Code as editor

z katalogu klipów robi oś, tnie do rytmu muzyki i dodaje napisyturns a folder of clips into a timeline, cuts to the beat and adds titles

Jak pracujęHow I work

  • Najpierw pomiar.Measure first. Liczba bez warunków pomiaru nic nie znaczy, więc zapisuję maszynę, wersję i plan zapytania.A number without its conditions means nothing, so I record the machine, the version and the query plan.
  • Agent dostaje tyle, ile musi.The agent gets only what it needs. Dane wrażliwe maskuję, zanim zobaczy je model. Ryzykowne kroki czekają na decyzję człowieka.Sensitive data is masked before the model sees it. Risky steps wait for a human decision.
  • Porażki też są wynikiem.Failures are results too. Pokazuję, co nie zadziałało i dlaczego.I show what did not work and why.
  • Najpierw laboratorium.Lab first. Każdy pomysł sprawdzam na własnych maszynach, zanim komukolwiek go polecę.I test every idea on my own machines before recommending it.

Napisz do mnieGet in touch

Chętnie wymienię doświadczenia z ludźmi, którzy robią podobne rzeczy albo dopiero zaczynają. Najczęściej piszą do mnie o:I am happy to swap experience with people who do similar things or are just starting. People usually write to me about:

  • agentach AI i Claude Code w pracy z bazami danych,AI agents and Claude Code in database work,
  • laboratoriach Oracle i PostgreSQL z moich repozytoriów,the Oracle and PostgreSQL labs from my repositories,
  • montażu skryptem w DaVinci Resolve i filmach z podróży,script-driven editing in DaVinci Resolve and travel films,
  • pytaniach do konkretnego filmu albo pomiaru.questions about a specific video or measurement.

kontakt [at] kcbconsulting.eu

albo naor on LinkedIn.