📍 Dhanmondi, Dhaka-1205🇧🇩 বাংলা

AI-Powered Business Reporting with Oracle 26ai: Natural-Language Analytics & Executive Decision Support

In most organisations, getting a straight answer out of the ERP system is slower than it should be. A manager wants to know "which three products had the steepest margin drop this quarter, and in which regions?" — and the answer involves emailing the IT team, waiting for someone to write a report, and receiving a spreadsheet two days later that is already out of date. Meanwhile the data to answer that question instantly has been sitting in the database the whole time. Oracle Database 26ai changes this equation. With in-database AI — natural-language querying, vector search, and LLM integration that runs inside the database — you can let business users ask questions in plain English and get governed, accurate answers, and you can automate the executive reporting that currently eats hours of analyst time every week. This guide explains how to build AI-powered business reporting properly: the capabilities, the architecture, the accuracy and governance controls, and a realistic implementation plan.

Key Takeaways

  • Select AI turns plain-English questions into SQL over your governed schema — and SHOWSQL lets you inspect and validate every query the AI generates.
  • Data never leaves your perimeter. The AI runs inside Oracle 26ai, so existing grants, VPD, and Data Redaction still control who sees what.
  • Ground the AI in clean, well-commented views. That single step does more for answer accuracy than any amount of prompt tinkering — I learned this the hard way.
  • Numbers must come from SQL, never from the model. The LLM writes the query; the database produces the figure. That is how you avoid hallucinated numbers.
  • Automate the recurring grind. Scheduled AI narratives and threshold KPI alerts free analysts from repetitive report production.
  • Keep statutory reports fixed. AI reporting is for exploration and decision support — regulatory outputs stay in exact, version-controlled reports.
Business team reviewing AI-powered reporting dashboard charts in a meeting
Photo: RDNE Stock project / Pexels

1. Why Traditional Business Reporting Falls Short

The reporting pain in most companies is not a lack of data — it is the friction between the question and the answer. Three problems repeat everywhere:

  • The IT bottleneck: Every non-standard question becomes a ticket. Business users cannot self-serve, so analysis waits for developer time that is always scarce.
  • Stale, static reports: The monthly report answers last month's questions. By the time a trend is visible in a fixed report, the moment to act on it may have passed.
  • Data leaving the building: To use AI on their data, many teams export it to external tools and cloud LLMs — a governance and confidentiality risk that is unacceptable for financial, patient, or HR data.

Oracle 26ai addresses all three: business users ask their own questions in natural language, answers are live against current data, and the AI runs inside the database so the data never leaves your security perimeter.

The Report Backlog, From the Trenches

I have lived this problem from the inside for 18+ years. At one manufacturing client, the ERP team kept a formal register of report requests. When I reviewed it, there were over forty open items — some more than three months old.

The pattern was always the same. A department head asks a perfectly reasonable question. IT translates it into a report specification, a developer writes the SQL, someone formats it, and by the time it lands the requester has either forgotten why they asked or the quarter has closed.

The bitter part: perhaps seven out of ten requests were variations of reports that already existed — same tables, slightly different filter, different grouping. Nobody needed new data. They needed a faster way to ask.

That register is what convinced me natural-language reporting is not a gimmick. It attacks the exact category of work that clogs every ERP team's queue: small, urgent, one-off questions over data that is already modelled and already governed.

2. The Core Capability: Select AI (Natural Language to SQL)

Select AI lets a user ask a question in plain English; the database uses a configured large-language model to generate the SQL, runs it against your real schema, and returns the answer. The crucial point for a consultant is that the model generates SQL constrained to your actual tables and columns — it is not guessing, it is translating a question into a query over your governed schema.

-- 1. Create an AI profile that knows which schema objects to expose
BEGIN
  DBMS_CLOUD_AI.CREATE_PROFILE(
    profile_name => 'sales_reporting',
    attributes   => '{
      "provider": "oci",
      "credential_name": "AI_CRED",
      "object_list": [
        {"owner":"ERP","name":"SALES_ORDERS"},
        {"owner":"ERP","name":"PRODUCTS"},
        {"owner":"ERP","name":"CUSTOMERS"},
        {"owner":"ERP","name":"REGIONS"}
      ]
    }');
END;
/

-- 2. Set the profile for the session
EXEC DBMS_CLOUD_AI.SET_PROFILE('sales_reporting');

-- 3. Ask a business question in plain English
SELECT AI 'which 3 products had the largest gross margin decline
           this quarter compared to last quarter, by region';

-- See the SQL the AI generated (for transparency / validation)
SELECT AI SHOWSQL 'top 10 customers by revenue in the last 90 days';

-- Get a narrative explanation instead of a table
SELECT AI NARRATE 'how did sales trend month over month this year';

The SHOWSQL mode is essential in practice: it lets you and your analysts see exactly what query the AI produced, validate it once, and build trust before business users rely on the answers. AI that you cannot inspect has no place in financial reporting.

3. Beyond Structured Data: RAG for Documents and Policies

Not every business question is answerable from tables. "What is our return policy for damaged goods, and how many such returns did we process last month?" mixes a document answer (the policy) with a data answer (the count). Oracle 26ai's vector search and in-database Retrieval-Augmented Generation (RAG) let you combine both — embedding policy documents, contracts, and manuals as vectors alongside your transactional data.

-- Store document chunks with their vector embeddings
CREATE TABLE policy_chunks (
  chunk_id   NUMBER GENERATED ALWAYS AS IDENTITY,
  doc_name   VARCHAR2(200),
  chunk_text CLOB,
  embedding  VECTOR(1024, FLOAT32)
);

-- Find the policy passages most relevant to a question (semantic search)
SELECT doc_name, chunk_text
FROM policy_chunks
ORDER BY VECTOR_DISTANCE(
           embedding,
           VECTOR_EMBEDDING(my_model USING 'return policy for damaged goods' AS data),
           COSINE)
FETCH FIRST 3 ROWS ONLY;

The retrieved passages are then passed to the LLM as grounding context, so the answer is based on your documents rather than the model's general knowledge — and, because it all happens inside the database, the documents never leave it. I covered the full RAG-on-ERP pattern in a dedicated article (linked below); for reporting, the key idea is that AI can answer across both your data and your documents in one governed place.

Executive analysing live business analytics on a laptop instead of waiting for static reports
Photo: RDNE Stock project / Pexels

4. Automated Executive Dashboards and KPI Alerts

The highest-value use of in-database AI for management is not ad-hoc questions — it is removing the recurring manual work of producing executive reports and watching KPIs. Two patterns deliver most of the value:

4.1 Scheduled Narrative Summaries

Instead of an analyst writing the same "monthly performance commentary" every month, a scheduled job can generate the numbers and an AI narrative explaining them, then email it to the leadership team automatically.

-- A scheduled job that produces a monthly AI narrative on sales performance
BEGIN
  DBMS_SCHEDULER.CREATE_JOB(
    job_name        => 'monthly_exec_summary',
    job_type        => 'PLSQL_BLOCK',
    job_action      => q'[
      DECLARE
        v_summary CLOB;
      BEGIN
        DBMS_CLOUD_AI.SET_PROFILE('sales_reporting');
        SELECT AI NARRATE 'summarise this month''s sales versus target and
               versus the same month last year, calling out the biggest
               positive and negative drivers' INTO v_summary;
        -- store / email v_summary to the leadership distribution list
        INSERT INTO exec_report_log(report_date, body) VALUES (SYSDATE, v_summary);
      END;
    ]',
    repeat_interval => 'FREQ=MONTHLY; BYMONTHDAY=1; BYHOUR=7',
    enabled         => TRUE);
END;
/

4.2 Threshold-Based KPI Alerts

Decision support is most valuable when it is proactive. Rather than waiting for someone to notice a problem in a report, a scheduled check can watch the metrics that matter and raise an alert — with an AI-generated explanation of the likely cause — the moment a threshold is crossed: inventory below reorder point, a customer's order volume dropping sharply, margin falling below target in a category. This turns reporting from "look back at what happened" into "tell me when something needs my attention."

5. Accuracy and Governance — The Part That Matters Most

This is where a serious implementation separates itself from a demo. An AI reporting system that is occasionally wrong, or that lets users see data they should not, is worse than no system at all — because people will trust it. The controls I insist on:

Risk Control
AI generates wrong SQL / wrong numbers Use SHOWSQL to validate; curate the object list and add column comments so the model understands the schema; review generated queries before trusting recurring ones
Users see data they should not AI runs as the connected user — existing grants, VPD, and Data Redaction policies still apply; expose only governed objects in the profile
Confidential data leaving the company In-database AI keeps data inside the perimeter; for external model providers, send only schema metadata, never row data, where possible
No accountability for AI answers Log every AI query and its generated SQL via Unified Auditing; keep a human-in-the-loop for decisions that matter

The single most important governance fact: because Select AI executes as the connected database user, all your existing security — object grants, Virtual Private Database, Data Redaction — continues to apply. A user cannot ask the AI to show them data they are not already permitted to see. That is exactly why doing this inside a properly secured Oracle database is so much safer than bolting an external AI tool onto exported data.

6. A Sensible Reporting Architecture

  1. Governed semantic layer: Define clean views with clear column comments over your ERP tables — give the AI well-named, well-described objects rather than raw, cryptic schema. This single step does more for accuracy than anything else.
  2. AI profiles per audience: A sales profile, a finance profile, an operations profile — each exposing only the objects that audience should query.
  3. Access via your security model: Users connect as themselves (or via a controlled application user), so grants and redaction apply automatically.
  4. Delivery channels: Ad-hoc Q&A through an internal app, scheduled narrative summaries by email, and threshold alerts to the right people.
  5. Audit and review: Log AI queries, review accuracy periodically, and refine the semantic layer and profiles over time.

7. What I Learned Building an On-Prem ERP Reporting Assistant

Everything above is architecture. This section is scar tissue — the lessons from actually building an AI reporting assistant on an on-premises Oracle ERP, where the data could not leave the building and the finance team would check every number against their own spreadsheets.

The decision that mattered most: every answer is grounded in curated views over the live tables, and every figure comes from a SQL result — never from the model's text. The LLM's only job is to translate the question into a query and to narrate the result. If the number in the answer did not come out of the database, it does not go in front of a manager. That one rule is why we never shipped a hallucinated figure.

Three more lessons I would give anyone starting this build:

  • Column comments are prompt engineering. The week I spent writing plain-language COMMENT ON COLUMN descriptions for the reporting views improved SQL generation accuracy more than anything else I tried. The model can only be as smart as the schema description you give it.
  • Teach the system to refuse. Questions outside the profile's scope should get "I cannot answer that from the data available" — not a creative guess. A reporting assistant that admits its limits earns trust; one that improvises loses it in a single wrong answer.
  • Keep the document side in-database too. For policy and contract questions we embedded documents with in-database ONNX embedding models and chunked them with DBMS_VECTOR_CHAIN, so the RAG side lived under the same backup, security, and audit regime as the transactional data. One perimeter, one set of controls.

The finance team's verdict after the validation month was the best endorsement possible: they stopped re-checking the numbers, because SHOWSQL let them see exactly how each one was produced.

8. A Real Decision-Support Build

Case — Distribution Company Drowning in Report Requests

Situation: A distribution business had a two-person reporting team permanently behind on ad-hoc requests from sales managers. Every "can you pull..." became a queue, and managers complained they were "flying blind" between monthly reports.

Approach: We built a governed semantic layer of clearly described sales, inventory, and customer views, created a Select AI profile scoped to those views, and gave sales managers a simple internal page where they could ask questions in plain English — with SHOWSQL available so finance could validate any number. We added a monthly AI narrative summary emailed to leadership and three threshold alerts (stockouts, large customer drop-off, category margin below target).

Outcome: Routine report requests fell sharply because managers could self-serve, the reporting team moved from order-taking to higher-value analysis, and leadership received a consistent monthly narrative without anyone writing it by hand — all while the data stayed inside the company's own database under its existing access controls.

📊 Want Your ERP Data to Answer Questions in Plain English?

I design and build AI-powered business reporting on Oracle 26ai — Select AI, automated executive dashboards, KPI alerts, and the governance to keep it accurate and secure. Bangladesh and worldwide clients.

Book an AI Reporting Consultation → 💬 WhatsApp Me

9. Who Benefits, Role by Role

Who actually gains from AI-powered reporting? In my experience the value lands differently for each role — and knowing this helps you sell the project internally and set the right expectations:

  • Managing director / CEO: A consistent monthly narrative and the ability to ask a follow-up question in the boardroom and get an answer in seconds, not next week. The value is decision speed.
  • Finance manager: Self-service answers to "why did this number move?" questions, with SHOWSQL providing the audit trail finance people rightly demand before trusting anything.
  • Sales and operations managers: The biggest day-to-day winners. They generate the most ad-hoc questions and suffer most from the ticket queue — self-service removes their bottleneck entirely.
  • Reporting analysts: Not replaced — upgraded. The routine "pull this by region" work disappears, and their time shifts to the complex analysis that genuinely needs a human.
  • DBAs and IT: Fewer interruption-driven report tickets, plus a new responsibility that plays to their strengths: curating the semantic layer and governing the AI profiles.
Finance reports and documents on a desk - the manual reporting workload AI automation removes
Photo: Tiger Lily / Pexels

10. When AI Reporting Is the Wrong Tool

Part of giving honest advice is being clear about where this technology does not belong. AI-powered reporting is powerful, but it is not the answer to every reporting need, and pretending otherwise leads to disappointment:

  • Regulatory and statutory reports. A financial statement, a tax filing, or a compliance return must be exact, repeatable, and defensible to the line. These belong in fixed, version-controlled reports — not in a natural-language interface where the phrasing of a question could change the result.
  • High-frequency operational screens. A warehouse picking screen or a cashier terminal needs a fast, fixed query, not a language model. Use AI for exploration and decision support, not for hot-path transactional UI.
  • Poorly modelled data. If your schema is a tangle of cryptic column names and undocumented business rules, the AI will translate questions into plausible-looking but wrong SQL. Fix the semantic layer first; AI amplifies the quality of the data model beneath it, for better or worse.
  • Decisions with no human review. AI reporting should inform a decision-maker, not replace one. For anything consequential, keep a person in the loop who can sanity-check the number against the business reality.

The right framing is "AI for self-service exploration and proactive alerting, fixed reports for anything that must be exact and audited." Used that way, the two complement each other rather than compete — and you avoid the trap of trusting a confident answer that happens to be wrong.

11. How to Start: A Pilot Rollout Plan

Do not attempt a company-wide launch. Every successful AI reporting rollout I have seen started small, proved accuracy, and grew from there. This is the sequence I use with clients:

  1. Pick one department with real pain. Usually sales or inventory — high question volume, tolerant of iteration, and quick to show visible wins.
  2. Build the semantic layer first. Five to ten clean, well-named views with plain-language column comments over that department's data. Budget a full week for this; it is the foundation of accuracy.
  3. Create one scoped AI profile exposing only those views, and connect it through your existing security model so grants and redaction apply from day one.
  4. Run a validation month. A small group of power users asks their real questions; an analyst checks the SHOWSQL output and the numbers against known reports. Log every miss and fix the view or comment that caused it.
  5. Add one scheduled narrative and two or three KPI alerts once ad-hoc accuracy is proven — this is where leadership sees the value directly.
  6. Expand audience by audience, one profile at a time, repeating the validation step for each. Resist the urge to open everything to everyone at once.

A realistic pilot on this plan takes six to ten weeks from first view to trusted daily use. Faster is possible; faster is also how you end up with a demo nobody trusts.

Frequently Asked Questions

Can AI really query our live ERP data?

Yes. Select AI in Oracle 26ai translates a plain-English question into SQL and runs it against your actual schema, so answers reflect the data as it is right now — not an export or a snapshot. The practical requirement is a clean set of well-described views for the AI to work over.

Will the numbers be accurate?

The figures themselves are real query results from your database — the model generates the SQL, it does not invent numbers. Accuracy risk lives in whether the generated SQL matches the intent of the question, which is why you validate with SHOWSQL, curate the exposed objects, and run a validation month before business users rely on it.

Does our data leave our servers?

With in-database AI — vector search, in-database ONNX embedding models, and RAG inside Oracle — your rows stay within your security perimeter. If you configure an external LLM provider for SQL generation, schema metadata is involved but you can keep row data inside; for strict environments, a fully on-prem configuration is achievable and is exactly what I build for confidential ERP data.

What skills does our team need?

Less than most people fear. You need a DBA or developer who knows your schema well enough to build and comment the semantic-layer views, someone to administer AI profiles and audit logs, and an analyst to own the validation process. No machine-learning expertise is required — the heavy lifting is classic data modelling and governance.

Where should we start?

One department, one AI profile, five to ten governed views, and a validation month — as laid out in the pilot plan above. Prove accuracy on a narrow scope before expanding. Starting with a big-bang, all-schema rollout is the most reliable way to fail.

How is this different from a BI dashboard tool?

Dashboards answer the questions someone predicted in advance; natural-language reporting answers the question a manager has right now. The two complement each other — keep dashboards for standard KPIs and fixed reports for anything statutory, and use AI for the ad-hoc exploration that currently becomes IT tickets.

The Bottom Line

AI-powered business reporting is one of the highest-return uses of Oracle 26ai, because it attacks a problem every organisation has: the gap between a business question and a trustworthy answer. The technology is genuinely ready — natural-language querying, vector search, and in-database RAG are real, supported features now. But the value lives in the engineering discipline around them: a clean semantic layer so the AI understands your data, scoped profiles so each audience sees only what it should, your existing security model enforcing access, and validation through SHOWSQL so people can trust the numbers. Get those right and you give managers self-service answers, free your analysts for real analysis, and keep every byte of confidential data inside your own database. Done carelessly, AI reporting produces confident wrong answers — which is why it should be built by someone who understands both the AI and the database underneath it.

Nasir Uddin Khan — Oracle DBA & ERP-AI Consultant

About the Author

Nasir Uddin Khan Senior IT Consultant · Oracle DBA · ERP & AI Specialist OCP · Red Hat Certified · MBA · CSV · 18+ Years Experience

Nasir is an Oracle Certified Professional and CSV-certified IT consultant based in Dhaka, Bangladesh. He has 18+ years of hands-on experience in Oracle database administration, ERP system design, and AI integration — including in-database AI, RAG, and decision-support solutions for manufacturing, pharmaceutical, banking, and healthcare organisations worldwide.

References & Further Reading

The architecture and case in this article are based on 18+ years of Oracle and ERP-AI implementation experience. Client examples are anonymised.

Related Articles

Turn Your Data Into Decisions — With AI You Can Trust.

Select AI · automated executive reporting · KPI alerts · governance & accuracy controls. 18+ years of Oracle & ERP-AI experience. Bangladesh and worldwide.

💬