Bajwa Consulting Need senior Oracle DBA help? Performance tuning, Cloud migrations, GoldenGate, backup and DR. Plus 70+ free DBA scripts.
Visit bajwaconsulting.com →

Thursday, December 3, 2026

Agentic AI Explained: What It Means for DBAs

"Agentic AI" is one of the most used terms in technology right now. This post explains what it means in plain language, how an AI agent works, and what it could mean for database administrators, including the risks.

From chatbot to agent

A chatbot answers questions. You ask, it replies, and you do the work. An AI agent is given a goal and works towards it on its own: it plans steps, uses tools (runs a query, reads a file, calls an API), looks at the results and decides what to do next, until the goal is reached or it needs a human.

ChatbotScripted automationAI agent
InputA questionA fixed triggerA goal
StepsOne answerFixed, written in advanceChosen as it goes
Uses toolsNo, or rarelyYes, the same ones every timeYes, picks which ones to use
Handles surprisesNot applicableOnly if you coded for themOften, by reasoning about results
PredictabilityMediumHighLower, needs guardrails

How an agent works

Most agents follow the same loop:

  1. Goal: "Find out why the order database was slow between 2 and 3 pm."
  2. Plan: the model decides the first step, for example "get the top wait events for that hour".
  3. Act: it calls a tool, such as a read-only SQL query or an AWR report.
  4. Observe: it reads the result.
  5. Repeat: based on what it saw, it chooses the next step, such as looking at the top SQL for that wait event, and keeps going until it can answer, or stops and asks a person.

The building blocks

  • A large language model (LLM): the "brain" that understands the goal, reasons about results and writes the next step.
  • Tools: functions the agent is allowed to call, such as run a query, search documents, read a log, open a ticket. The agent can only do what its tools let it do.
  • Memory and context: what has happened so far in this task, plus knowledge it can look up, such as runbooks, past incidents or documentation (often called retrieval-augmented generation, RAG).
  • Instructions and limits: what the agent is for, what it must never do, and when it must ask a human.
  • Orchestration: the code that runs the loop, records every step and enforces the limits. On AWS, for example, Amazon Bedrock Agents provides this as a managed service; there are also open-source frameworks.

Some systems use several agents, each with one job (one gathers data, one analyses, one writes the report), coordinated by a supervisor agent.

What it could mean for DBAs

  • First-response triage: when an alert fires, an agent gathers the alert log, top waits, blocking sessions and recent changes, and writes a summary before the on-call DBA logs in.
  • Health checks and reports: run the daily checks, compare with yesterday and explain only what changed.
  • Runbook assistant: answer "how do we fail over the sales database?" from your own runbooks, with links to the source.
  • Migration helper: compare schemas, list objects that will not convert, and draft the plan for a review.
  • Ticket work: draft the steps for routine requests (new user, add space), for a DBA to approve.

In all of these, the DBA's judgment does not go away. The agent does the gathering and first draft; the DBA decides.

Risks and guardrails

  • Agents can be wrong with confidence. An LLM can misread a result or invent a detail. Check its conclusions against the evidence it shows.
  • Least privilege. Give an agent read-only access to start. Never give it SYSDBA, production write access or the ability to drop objects.
  • Human approval for changes. Anything that changes a system (kill a session, resize, restart, change a parameter) should need a person to approve it.
  • Prompt injection. Text inside a log, ticket or web page can try to give the agent instructions. Treat everything the agent reads as data, and limit what its tools can do.
  • Logging and audit. Record every tool call and result, so you can see exactly what the agent did and why.
  • Data protection. Know where your data goes. Do not send customer data or passwords to a service your company has not approved.
  • Cost. Every step uses model calls. Set limits on how many steps and how much spend one task can use.

How to start

  1. Pick one narrow, read-only task, such as "summarize last night's alert log errors".
  2. Give the agent only the tools that task needs.
  3. Run it alongside your normal process for a few weeks and compare its output with what your team found.
  4. Only then widen its scope, one tool at a time, keeping a human approval step for any change.

Agentic AI is best seen as a fast, tireless junior assistant: very useful for gathering and drafting, but it needs clear limits and a senior person who checks its work.

More DBA scripts are in my GitHub repository: github.com/sbajwa55/dba-scripts. For help with Oracle, cloud migrations or AWS, visit Bajwa Consulting Services.

Tuesday, December 1, 2026

AWS Basics: Your Account, S3, EC2, CloudFront and Route 53

If you are new to Amazon Web Services (AWS), this post covers how to open an account safely and what four of the most used services do: S3, EC2, CloudFront and Route 53. As an example, my own website, bajwaconsulting.com, runs on S3, CloudFront and Route 53.

1. Opening an AWS account

  1. Go to aws.amazon.com/free and choose Create free account.
  2. Enter an email address for the account (the root user) and an account name. Use an address you will keep, ideally a shared team address for company accounts.
  3. Choose an account plan. New accounts choose a Free plan or a Paid plan. New customers get up to $200 in credits: $100 at sign-up and up to $100 more by trying key services. The Free plan ends after 6 months or when the credits are used up, whichever comes first.
  4. Add contact details and a payment card (required even for the Free plan), and verify your phone number.
  5. Choose the Basic support plan, which is free.

Free Tier details change from time to time; check the AWS Free Tier page for the current terms before you build anything.

2. Secure the account first

  • Turn on MFA for the root user (Security credentials in the account menu). The root user can do everything, including closing the account.
  • Stop using the root user for daily work. Create an administrator user in IAM Identity Center (or an IAM user with MFA) and sign in with that.
  • Create a budget alert. In Billing, create a monthly cost budget (for example $10) that emails you at 80% and 100%.
  • Pick one Region, for example us-east-1 (N. Virginia) or us-east-2 (Ohio), and create your resources there, so you always know where they are.
  • Never put access keys in code or on GitHub. Use aws configure sso for the AWS CLI instead of long-term keys.

3. Amazon S3: storage for files

Amazon Simple Storage Service (S3) stores files, called objects, in containers called buckets. It is not a disk you mount; you upload and download objects over HTTPS or with the AWS CLI.

  • Bucket names are unique across all of AWS, for example mycompany-db-backups-2026.
  • S3 is designed for very high durability, and copies your data across several Availability Zones in the Region.
  • Storage classes trade price for access speed: S3 Standard for frequent use, Standard-IA for infrequent access, and Glacier classes for archives you rarely read.
  • Lifecycle rules move or delete objects automatically, for example "move backups to Glacier after 30 days, delete after 1 year".
  • New buckets block public access by default. Keep it that way unless you deliberately host public files.
aws s3 mb s3://mycompany-db-backups-2026
aws s3 cp expdp_full.dmp s3://mycompany-db-backups-2026/exports/
aws s3 ls s3://mycompany-db-backups-2026/exports/
aws s3 sync ./website s3://my-website-bucket

DBA uses: database backups and Data Pump dumps, moving files during a migration, and hosting a static website.

4. Amazon EC2: virtual servers

Amazon Elastic Compute Cloud (EC2) gives you virtual servers, called instances, that you control like any Linux or Windows server.

  • Instance type: the size, such as t3.micro (small, for tests) or r6i.2xlarge (memory-optimized, good for databases).
  • AMI: the image the server starts from, such as Oracle Linux, Amazon Linux or Windows Server.
  • EBS volumes: the disks. Choose gp3 for most uses and io2 for demanding databases.
  • Security groups: the firewall. Allow only the ports and source addresses you need, for example SSH from your own IP only.
  • Key pairs: used to log in over SSH. Keep the private key safe.
  • Pricing: On-Demand by the second, or lower prices with Savings Plans or Reserved Instances for servers you run all the time. A stopped instance does not charge for compute, but its EBS disks still cost money.

DBA uses: running Oracle Database on EC2 when you need full control of the database and operating system (single instance and Data Guard work well; Oracle RAC needs special shared-storage solutions on EC2), GoldenGate hubs, and jump hosts for administration.

5. Amazon CloudFront: a fast, secure front door

CloudFront is AWS's content delivery network (CDN). It keeps copies of your website files in edge locations around the world, so visitors download them from a location near them.

  • The origin is where the real files live, often an S3 bucket or a web server.
  • Use an Origin Access Control (OAC) so the S3 bucket stays private and only CloudFront can read it.
  • Add free HTTPS with a certificate from AWS Certificate Manager. For CloudFront, the certificate must be created in us-east-1.
  • After you update files, create an invalidation so visitors get the new version:
aws cloudfront create-invalidation --distribution-id E1234567890ABC --paths "/*"

6. Amazon Route 53: DNS and domains

Route 53 is AWS's DNS service. It turns names like www.example.com into the addresses of your servers or CloudFront distribution.

  • You can register a domain in Route 53, or keep it at your current registrar and point its name servers to Route 53.
  • A hosted zone holds the DNS records for one domain.
  • Common records: A (name to IPv4 address), CNAME (name to another name), MX (mail servers), TXT (verification, such as for Google Search Console).
  • Alias records point the bare domain (example.com) straight to CloudFront or a load balancer, which a normal CNAME cannot do.
  • Health checks and routing policies can send traffic to a standby site if the main one fails.

How they fit together: a static website

Visitor --> Route 53 (www.example.com)
        --> CloudFront (HTTPS, cached at the edge)
        --> S3 bucket (private, holds the HTML, CSS and images)

This setup costs very little for a small site, has no servers to patch, and handles traffic spikes on its own.

Avoiding surprise bills

  • Set a budget alert on day one.
  • Stop or terminate EC2 instances you are not using, and delete their EBS volumes and snapshots if you no longer need them.
  • Release unused Elastic IP addresses and delete NAT gateways from test setups; both charge by the hour.
  • Check Billing → Bills and Cost Explorer once a week while you are learning.

If you are a DBA moving databases to AWS, my book AWS for Database Administrators: From On-Premises to Cloud covers these services and many more in depth, with hands-on labs.

More DBA scripts are in my GitHub repository: github.com/sbajwa55/dba-scripts. For help with Oracle, cloud migrations or AWS, visit Bajwa Consulting Services.