<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ravi Shanker B on Medium]]></title>
        <description><![CDATA[Stories by Ravi Shanker B on Medium]]></description>
        <link>https://medium.com/@ravishankerb?source=rss-fdca03ae4c29------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*_HQJH1YLRYPOA7qD.</url>
            <title>Stories by Ravi Shanker B on Medium</title>
            <link>https://medium.com/@ravishankerb?source=rss-fdca03ae4c29------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 13:42:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@ravishankerb/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Ask Your OAC Data from Microsoft Copilot: Connecting the OAC MCP Server to Copilot Studio]]></title>
            <link>https://medium.com/@ravishankerb/ask-your-oac-data-from-microsoft-copilot-connecting-the-oac-mcp-server-to-copilot-studio-b44c5498515d?source=rss-fdca03ae4c29------2</link>
            <guid isPermaLink="false">https://medium.com/p/b44c5498515d</guid>
            <dc:creator><![CDATA[Ravi Shanker B]]></dc:creator>
            <pubDate>Thu, 19 Nov 2026 23:07:56 GMT</pubDate>
            <atom:updated>2026-11-19T23:07:56.883Z</atom:updated>
            <content:encoded><![CDATA[<h3>A step-by-step guide to a Copilot agent that answers from governed Oracle Analytics data, with per-user OAuth, no data copied, and published to Teams</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pS5llqu5r55G23-pKxxdRQ.png" /></figure><p>Business users spend their day in Microsoft Teams and Microsoft 365. Governed, trusted numbers live in Oracle Analytics Cloud (OAC). Until now, getting the two together meant exports, screenshots or yet another dashboard link.</p><p>The <strong>OAC MCP Server</strong> changes that. It exposes OAC to AI agents over the Model Context Protocol (MCP): catalog search, dataset descriptions and Logical SQL execution. Microsoft Copilot Studio can now add any MCP server as a tool. Put the two together and a Copilot agent can answer questions like <em>“Show total revenue and profit by region”</em> by writing Logical SQL and running it in OAC, as the signed-in user.</p><p>In this post I walk through the complete setup I tested end to end: building the agent, connecting the OAC MCP Server with OAuth 2.0, testing it against real OAC data, and publishing it to Teams and Microsoft 365.</p><h3>What you’ll build</h3><ul><li>A Copilot Studio agent called <strong>OAC-Dev</strong></li><li>One tool: the <strong>OAC MCP Server</strong> (https://&lt;your-oac-instance&gt;/api/mcp)</li><li>OAuth 2.0 sign-in through an <strong>OCI IAM confidential application</strong>, so each user queries OAC with their own identity and OAC security still applies</li><li>A published agent, available through the <strong>Teams + Microsoft 365</strong> channel</li></ul><h3>Prerequisites</h3><ul><li>An <strong>Oracle Analytics Cloud</strong> instance with the MCP endpoint (/api/mcp) and at least one dataset or subject area</li><li>An <strong>OCI IAM confidential application</strong> in your identity domain, with the <em>Authorization code</em> and <em>Refresh token</em> grant types and the OAC scope added under Resources</li><li>A <strong>Copilot Studio</strong> environment with Dataverse provisioned</li><li><strong>Copilot Credits</strong> for that environment, such as a pay-as-you-go billing plan in the Power Platform admin center</li><li>The <strong>Environment Maker</strong> (or System Administrator) role in that environment</li></ul><h3>Part 1: Build the agent</h3><h3>1. Create a new agent</h3><p>In Copilot Studio, choose <strong>Agents</strong> in the left sidebar and click <strong>New agent</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9_OvMYeULq1U0jxmZxj9gg.jpeg" /></figure><p><em>Start from Agents → New agent.</em></p><h3>2. Name it</h3><p>Click the title and rename the agent. I used <strong>OAC-Dev</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wFM_X5b3RLL_tDoQKo1hTA.jpeg" /></figure><p><em>Give the agent a clear name.</em></p><h3>3. Add instructions</h3><p>Paste instructions that describe the agent’s job. I also removed <strong>Search all websites</strong> from Knowledge so the agent answers only from OAC. These are the instructions I used:</p><blockquote><em>You are an Oracle Analytics Cloud (OAC) data assistant for the Dev OAC instance. Use the OAC MCP Server tools to discover subject areas and datasets, describe their columns, and run Logical SQL to answer business questions. Always ground answers in data returned by OAC; do not invent numbers. When a question is ambiguous, ask which subject area, measure, or time period the user means. Present results concisely, with small tables where helpful, and mention the subject area and columns used.</em></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Tzg6zUG32wF4gJVpRg2IxA.jpeg" /></figure><p><em>Ground the agent in OAC and tell it not to invent numbers.</em></p><h3>Part 2: Add the OAC MCP Server</h3><h3>4. Add a Model Context Protocol tool</h3><p>Click <strong>+</strong> next to <strong>Tools</strong>, then <strong>+ Add → Model Context Protocol (MCP)</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HSCBaLIIszmhek0tOCyN9Q.jpeg" /></figure><p><em>Copilot Studio can add any MCP server as a tool.</em></p><h3>5. Enter the server details</h3><ul><li><strong>Server name:</strong> OAC Dev MCP Server</li><li><strong>Description:</strong> Queries Dev Oracle Analytics Cloud (OAC) subject areas and datasets.</li><li><strong>Server URL:</strong> https://&lt;your-oac-instance&gt;.analytics.ocp.oraclecloud.com/api/mcp</li><li><strong>Authentication:</strong> OAuth 2.0</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kO9IAZ09efMHc0wlo4EJLw.jpeg" /></figure><p><em>The server URL is your OAC host followed by /api/mcp.</em></p><h3>6. Configure OAuth 2.0 (Manual)</h3><p>Set <strong>Configuration type</strong> to <strong>Manual</strong> and fill in the values from your OCI IAM confidential app:</p><ul><li><strong>Client ID / Client secret:</strong> from the confidential app</li><li><strong>Authorization URL:</strong> https://&lt;idcs-domain&gt;.identity.oraclecloud.com:443/oauth2/v1/authorize</li><li><strong>Token URL</strong> and <strong>Refresh token URL</strong> (the same value for both): https://&lt;idcs-domain&gt;.identity.oraclecloud.com:443/oauth2/v1/token</li><li><strong>Scopes:</strong> https://&lt;oac-primary-audience&gt;.analytics.ocp.oraclecloud.comurn:opc:resource:consumer::all</li></ul><p>Note that there is <strong>no slash</strong> between the audience and urn:. That&#39;s easy to get wrong, and the result is an invalid_scope error at sign-in.</p><p>Click <strong>Add</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wWL9JLuumLezdmpop8GcvA.jpeg" /></figure><p><em>Manual OAuth settings pointing at your OCI IAM identity domain.</em></p><h3>7. Copy the redirect URL</h3><p>Copilot Studio generates a redirect URL for this server (it starts with https://global.consent.azure-apim.net/redirect/…). Click <strong>Copy</strong>, but don&#39;t click <strong>Next</strong> yet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*96mYLe4byvltYZSg82AZtw.jpeg" /></figure><p><em>Copy the redirect URL before moving on.</em></p><h3>8. Register the redirect URL in OCI IAM</h3><p>In the OCI Console, go to <strong>Identity &amp; Security → Domains → your domain → Integrated applications → your confidential app → Edit OAuth configuration</strong>, then:</p><ul><li>Make sure <strong>Authorization code</strong> and <strong>Refresh token</strong> are checked</li><li>Paste the Copilot Studio URL into <strong>Redirect URL</strong></li><li>Check that the OAC scope is listed under <strong>Resources</strong></li></ul><p>Click <strong>Submit</strong> and make sure the app is <strong>Activated</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*esyJC4NwK5z_Pbl2fWpU0A.jpeg" /></figure><p><em>Authorization code and Refresh token grants, plus the Copilot Studio redirect URL.</em></p><h3>Part 3: Create the connection</h3><h3>9. Back in Copilot Studio, click Next</h3><p>The <strong>Select a connection</strong> screen shows <em>Not connected</em>. That’s expected before the first sign-in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XnNEP_OMb2ZWNMeI_i8pfg.jpeg" /></figure><h3>10. Create a new connection</h3><p>Open the connection dropdown and choose <strong>Create new connection</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cl-FQl0hJn7HiaYDiEzVHA.jpeg" /></figure><h3>11. Name it and sign in</h3><p>Give the connection a display name (for example, <em>OAC Dev</em>) and click <strong>Create</strong>. Sign in with your OAC user in the Oracle IAM window and approve consent. If you already have an active IDCS session in the browser, no pop-up appears and it connects straight away.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*29c7InD2iHP8vNofRkty6Q.jpeg" /></figure><h3>12. Connected → Add</h3><p>When the status shows <strong>Connected</strong>, click <strong>Add</strong> to attach the tool to the agent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*ZbTJUTrbk472erKuqaBWyA.jpeg" /></figure><p><em>The green dot means the OAuth handshake with OCI IAM succeeded.</em></p><h3>13. Save the agent</h3><p>Click <strong>Save</strong> in the header. The OAC Dev MCP Server now appears under <strong>Tools</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*EqnrmObEJW5Wjm7SRZ6awQ.jpeg" /></figure><h3>Part 4: Test it against real OAC data</h3><p>Testing happens on the <strong>Preview</strong> tab. (The <strong>Review</strong> button is different: it lists warnings to fix before publishing.) Click <strong>New chat</strong> for a clean session.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rcoYUqbUDzodoEQ9DAbRNA.jpeg" /></figure><p><em>Preview is where you chat with the agent.</em></p><h3>“Describe the columns of the Sales Dataset.”</h3><p>The agent calls three OAC tools in a row. <strong>Catalog Search</strong> locates the dataset, <strong>Find Matching Data Sources</strong> matches the question to it, and <strong>Describe Data</strong> reads its structure.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*AFlfvXK9Xd3w1S9fwuy60g.jpeg" /></figure><p><em>Three OAC MCP tools, called automatically.</em></p><p>It returns the attributes (OrderDate, Quarter, Region, Country, Product, Category, Salesperson) and the measures (Quantity, UnitPrice, Revenue, Profit) with their default aggregation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*weB7QM9vNYmtjiiH7WYjwQ.jpeg" /></figure><h3>“Show total revenue and profit by Region, sorted by revenue descending.”</h3><p>This is where it gets interesting. The agent writes Logical SQL, runs it in OAC with <strong>Execute Logical SQL</strong>, and returns a table in about two seconds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0Ho46NI1GU_aLZ8YybPSGA.jpeg" /></figure><p><em>West leads on revenue; South has the highest margin at 52.1%.</em></p><p>Expand the tool card and you can see the exact Logical SQL that OAC executed. The numbers come from Oracle Analytics, not from the language model.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/704/1*GU-bknu8aKt0rROxWdSbtw.jpeg" /></figure><p><em>Full transparency: the generated Logical SQL and the raw OAC response.</em></p><h3>“Which 5 products had the highest profit margin last quarter?”</h3><p>The agent first queries the distinct Quarter values to work out what “last quarter” means in this data (2026-Q3). It then computes margin as SUM(Profit)/SUM(Revenue) and ranks the products.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6l5QgWDGAjrBamL6x0brRA.jpeg" /></figure><h3>“Compare revenue by Category for West vs East.”</h3><p>It returns a side-by-side comparison with the difference between the two regions, then adds profit and margin for the same breakdown. West outsells East in every category with almost identical margins, so the gap comes from volume, not pricing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EEJxm1-7_aspHp3VvD9vIQ.jpeg" /></figure><h3>Part 5: Publish</h3><h3>14. Choose a channel</h3><p>Click <strong>Publish</strong>. Copilot Studio offers three channels:</p><ul><li><strong>Teams + Microsoft 365:</strong> the agent appears in Teams chats, meetings and channels, and in the Agent Store inside Microsoft 365 Copilot</li><li><strong>Web app:</strong> an embed snippet for your own site, or the Microsoft 365 Agents SDK</li><li><strong>Demo website:</strong> a shareable test link, but it requires switching the agent to <em>No authentication</em>, so I don’t recommend it for OAC data</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ej2e0hI4DPOq5YJzfzIebA.jpeg" /></figure><h3>15. Teams + Microsoft 365 → Availability options</h3><p>Tick <strong>Teams + Microsoft 365</strong> and open <strong>Availability options</strong>:</p><ul><li><strong>Get a link:</strong> <em>Copy link</em> opens the agent in Teams for the people you’ve shared it with.</li><li><strong>Download a file:</strong> <em>Download .zip</em> gives you a Teams app package you can upload or hand to your Teams admin.</li><li><strong>Show in the store:</strong> who sees the agent in the store depends on <strong>Share Agent</strong>. Sharing with teammates surfaces it under <em>Built with Power Platform</em>. Sharing org-wide (<em>Submit to org catalog</em>) surfaces it under <em>Built by your org</em> after admin approval.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sTEcYXPZ-L4czvgHFZ9BPw.jpeg" /></figure><p>Click <strong>Save and publish</strong>. When it finishes, the dialog shows a new <em>Last published</em> time and <strong>Submit to org catalog</strong> becomes available.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*faVfCrFhidjusGVOPqCm-w.jpeg" /></figure><h3>16. Done</h3><p>Back on the Agents page, <strong>OAC-Dev</strong> shows as <strong>Published</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ymkKbH5_-Z0l79UUtorBfQ.jpeg" /></figure><p>When people open the agent in Teams for the first time, they’re asked to create their own connection and sign in through Oracle IAM. Each user queries OAC as themselves, so your OAC permissions and data security apply exactly as they do in OAC.</p><h3>Tips from the build</h3><ul><li><strong>Scope format matters.</strong> Use the audience immediately followed by urn:opc:resource:consumer::all, with no slash. If you add offline_access, make sure your confidential app allows it.</li><li><strong>Server names must be unique.</strong> If you re-create the MCP server with the same name, Copilot Studio returns a conflict. Use a new name, or delete the old connector first. A new name also generates a new redirect URL, so register that one in OCI IAM.</li><li><strong>Set up credits before you test.</strong> Without Copilot Credits, Preview replies with a “you need credits” message and never calls OAC.</li><li><strong>Users need OAC access too.</strong> The agent can only see what the signed-in user can see in OAC.</li></ul><h3>Why this matters</h3><ul><li><strong>Governed answers:</strong> every number comes from OAC’s semantic layer through Logical SQL, and you can inspect the query.</li><li><strong>No data movement:</strong> nothing is copied into Copilot or a separate store.</li><li><strong>Per-user security:</strong> OAuth through OCI IAM means OAC permissions travel with the user.</li><li><strong>Meet users where they work:</strong> Teams and Microsoft 365 Copilot, without another dashboard link.</li></ul><p>The same OAC MCP Server works with other MCP clients too, so the investment in your OAC semantic layer pays off across every AI assistant your users choose.</p><p><em>I’m a Principal Solutions Architect , opinions and views shared in this blog are solely my own and do not represent the official stance or policy of any organization I am associated with. This content reflects my personal insights and should be interpreted as such.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b44c5498515d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OAC Knowledge Graph: An Open-Source AI-Queryable Brain for Oracle Analytics Cloud]]></title>
            <link>https://medium.com/@ravishankerb/oac-knowledge-graph-an-open-source-ai-queryable-brain-for-oracle-analytics-cloud-04d2ab0b10b1?source=rss-fdca03ae4c29------2</link>
            <guid isPermaLink="false">https://medium.com/p/04d2ab0b10b1</guid>
            <category><![CDATA[oac-knowledge-graph]]></category>
            <category><![CDATA[oracle-analytics-cloud]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[llm-wiki]]></category>
            <category><![CDATA[wiki]]></category>
            <dc:creator><![CDATA[Ravi Shanker B]]></dc:creator>
            <pubDate>Tue, 28 Apr 2026 03:43:43 GMT</pubDate>
            <atom:updated>2026-04-28T05:06:14.225Z</atom:updated>
            <content:encoded><![CDATA[<p>Built without RAG, vector databases, or embeddings — using Andrej Karpathy’s “LLM Wiki” pattern. Clone the repo, see the graph in Obsidian, ask any AI tool. A complete walkthrough.</p><p>I open-sourced OAC Knowledge Graph — a comprehensive, AI-queryable knowledge base for Oracle Analytics Cloud. 30 cross-linked wiki pages, an interactive force-directed graph visualization, and a pattern that lets anyone build the same thing for their own domain in a weekend.</p><p>Live site: <a href="https://ravibhuma.github.io/oac-knowledge-graph/">https://ravibhuma.github.io/oac-knowledge-graph/</a><br> Interactive graph: <a href="https://ravibhuma.github.io/oac-knowledge-graph/graph/">https://ravibhuma.github.io/oac-knowledge-graph/graph/</a> <br>GitHub repo: <a href="https://github.com/ravibhuma/oac-knowledge-graph">https://github.com/ravibhuma/oac-knowledge-graph</a></p><p>No vector database. No embedding pipeline. No infrastructure to maintain. Just markdown, Git, and the LLM you already use.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zEIxQepTHzroJvrbT-_FVw.png" /><figcaption>OAC Knowledge Graph</figcaption></figure><h3>Why I Built This</h3><p>Every OAC architect, developer, and analyst I know spends real time hunting for answers. Knowledge is scattered across dozens of sources, hundreds of personal notes, and years of hard-won experience that lives in someone’s head and nowhere else.</p><p>I wanted a single, navigable knowledge surface that:</p><ul><li>A new team member could explore on day one and feel oriented</li><li>An experienced architect could query in seconds instead of digging through bookmarks</li><li>An AI assistant could read end-to-end and answer with precision</li><li>The community could fork, extend, and adapt to their own needs</li></ul><p>The goal was simple: help OAC practitioners serve their end users faster and more confidently.</p><h3>The Pattern That Made This Easy</h3><p>Three months ago I would have built this with the standard AI knowledge stack: vector database, embedding pipeline, chunking strategy, retrieval layer, the works. Days of setup, ongoing infrastructure cost, and a system that drifts every time the embedding model changes.</p><p>Then I read Andrej Karpathy’s LLM Wiki gist (https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f) and tried something radically simpler:</p><blockquote><em>The wiki is a persistent, compounding artifact. The cross-references are already there. — Andrej Karpathy</em></blockquote><p>The insight: if your knowledge fits in a modern LLM’s context window, you don’t need to chunk it, embed it, or search vectors. You just give the LLM well-organized markdown pages and let it reason.</p><p>For a focused domain like OAC, the entire knowledge corpus fits comfortably in today’s 200K-2M token context windows. The pattern is faster to build, cheaper to run, and easier to maintain.</p><h3>What I Built</h3><pre>oac-knowledge-graph/<br>├── wiki/                          ← 30 cross-linked .md pages (the brain)<br>│   ├── OAC Overview &amp; Architecture.md<br>│   ├── Semantic Model.md<br>│   ├── Logical SQL Reference.md<br>│   ├── OAC AI Agents.md           ← R.T.C.C.O.E framework<br>│   ├── OAC MCP Server.md<br>│   ├── Security &amp; Row-Level Security.md<br>│   ├── Data Sources &amp; Connections.md   ← 80+ data source types<br>│   └── … (23 more, all cross-referenced)<br>├── scripts/<br>│   ├── build_graph.py             ← generates interactive vis.js graph<br>│   ├── preprocess_wikilinks.py    ← converts wiki links for the site<br>│   └── audit_links.py             ← finds under-connected pages<br>├── stylesheets/extra.css          ← OAC-themed green palette<br>├── CLAUDE.md                      ← Operating rules for the LLM maintainer<br>└── README.md</pre><p>By the numbers:</p><ul><li>30 cross-linked wiki pages</li><li>158 logical cross-references (audited for relevance)</li><li>80+ data source types covered</li><li>12 AI tool integration guides</li><li>0 vector databases</li><li>0 embedding pipelines</li><li>0 ongoing infrastructure cost</li></ul><h3>Three Ways To Use It</h3><p>The same knowledge base serves three completely different audiences from the same source files.</p><h3>Path 1 — Just Browse</h3><p>Visit the live site: <a href="https://ravibhuma.github.io/oac-knowledge-graph/">https://ravibhuma.github.io/oac-knowledge-graph/</a></p><p>You get a polished MkDocs Material site with sidebar navigation grouped by domain (Architecture, Data Layer, AI Ecosystem, Security, and more), full-text search, light and dark themes, and a mobile-responsive layout.</p><p>Use this when you just need to read or look something up.</p><h3>Path 2 — See The Knowledge Graph Live</h3><p>Visit: <a href="https://ravibhuma.github.io/oac-knowledge-graph/graph/">https://ravibhuma.github.io/oac-knowledge-graph/graph/</a></p><p>This is the part that’s hard to describe and easy to love — an interactive force-directed graph of every OAC topic:</p><ul><li>30 colored nodes (one per wiki page), grouped by category</li><li>158 lines (one per cross-reference between pages)</li><li>Hover any node — its connections light up, others dim</li><li>Click a node — info panel shows category, connection count, and clickable list of related pages</li><li>Double-click — opens the full wiki page</li><li>Search any topic — it highlights and zooms in</li><li>Mobile-friendly</li></ul><p>It’s a static JSON file generated from the markdown by a Python script. Auto-regenerates on every git push. Zero infrastructure.</p><p>The category coloring shows the mental model of OAC at a glance, with the AI Ecosystem nodes intentionally popping in Oracle red against a green palette.</p><h3>Path 3 — Clone The Repo + Use With Any AI</h3><p>This is where the project really earns its name. Clone it locally and you have an AI-queryable knowledge base usable from any modern LLM tool.</p><pre>git clone https://github.com/ravibhuma/oac-knowledge-graph.git<br>cd oac-knowledge-graph</pre><p>Now pick your weapon:</p><ul><li>Claude Code: npm install -g @anthropic-ai/claude-code, then run claude</li><li>OpenAI Codex: npm install -g @openai/codex, then run codex</li><li>Google Gemini: Upload the wiki folder in browser</li><li>ChatGPT: Use as Custom GPT knowledge</li><li>Cursor / Cline: Open repo as workspace, ask @workspace …</li><li>Ollama (local): Point AnythingLLM at the folder</li><li>OAC AI Agent: Bundle wiki pages as Knowledge Documents</li></ul><p>Once configured, ask anything:</p><pre>&gt; How do I configure row-level security in OAC?<br>&gt; What&#39;s the R.T.C.C.O.E framework for AI Agents?<br>&gt; Walk me through the three-layer Semantic Model<br>&gt; Compare OAC vs OBIEE migration paths<br>&gt; Show me Logical SQL for time-series functions</pre><p>The AI reads the wiki for structure and answers with exact file and section citations — so you can verify and explore further.</p><h3>The Obsidian Experience (My Daily Workflow)</h3><p>Install Obsidian (https://obsidian.md, free) and open the cloned folder as a vault — and something delightful happens.</p><pre>File → Open folder as vault → select &#39;oac-knowledge-graph&#39;</pre><p>You now have:</p><ol><li>Sidebar navigation across all 30 wiki pages</li><li>Live markdown preview as you click through</li><li>Backlinks panel showing what links to each page</li><li>Tag-based search and filtering</li><li>Native graph view with Ctrl+G</li></ol><p>Obsidian’s graph view shows the same network as the public web graph, with smooth zoom and tag-based coloring. It works offline and syncs through any cloud folder.</p><p>This is how I navigate OAC concepts now. Search, click a node, follow connections.</p><h3>How The Nodes Are Connected</h3><p>The graph isn’t decorative — every line is a deliberate cross-reference written into the markdown source. The relationships fall into clear patterns:</p><p>Functional dependencies — “X uses Y”</p><ul><li>AI Agents → Subject Areas &amp; Datasets (an Agent is bound to a dataset)</li><li>AI Agents → Security &amp; RLS (agent filters use session variables)</li><li>BI Publisher → Logical SQL (Publisher data models query Subject Areas via LSQL)</li></ul><p>Comparison / alternative — “X vs Y”</p><ul><li>Subject Areas vs Datasets (governed vs self-service data access)</li><li>Workbooks vs Classic Dashboards (modern vs legacy reporting)</li></ul><p>Architectural composition — “X contains Y”</p><ul><li>Semantic Model → Physical Layer + BMM + Presentation Layer</li><li>AI Ecosystem → AI Assistant + AI Agents + MCP Server</li></ul><p>Cross-cutting concerns — “Y applies to X”</p><ul><li>Security &amp; RLS touches half the wiki — it’s everywhere</li><li>Administration → Snapshots, Migration, Connections, Mail Server</li><li>Mobile → Workbooks, Dashboards, KPIs (a different surface for the same content)</li></ul><p>Click any node and the info panel lists exactly which pages it connects to — a navigable map of how OAC concepts relate.</p><h3>How Easy Is It To Build Something Like This?</h3><p>Genuinely easy. That’s the whole point.</p><p>The entire workflow is three operations:</p><h3>Operation 1 — Ingest</h3><p>Drop new content into the repo:</p><pre>cp my-notes.md raw/notes/</pre><pre>claude<br>&gt; Ingest the new file in raw/notes/. Update affected wiki pages, refresh the index, append to log.md.</pre><p>The LLM reads the new source, identifies which wiki pages it impacts, updates them, adds cross-references, and logs the change. The knowledge base compounds over time.</p><h3>Operation 2 — Query</h3><p>Ask anything:</p><pre>claude<br>&gt; What&#39;s the right RLS approach for a Snowflake data source?</pre><p>The LLM reads matching wiki pages and synthesizes an answer with citations.</p><h3>Operation 3 — Lint</h3><p>Periodic health checks:</p><pre>claude<br>&gt; Lint the wiki. Find broken links, contradictions, orphan pages, and stale claims.</pre><p>The wiki gets cleaner over time. It doesn’t drift like vector embeddings do on model upgrades.</p><p>That’s it. Three commands. No infrastructure to babysit.</p><h3>Apply This To YOUR Domain</h3><p>The OAC Knowledge Graph is open source. Fork it, replace the content, and you have an instant knowledge base for whatever you work on.</p><pre># 1. Fork the repo on GitHub<br># 2. Clone your fork<br>git clone https://github.com/YOUR-USERNAME/oac-knowledge-graph.git<br>cd oac-knowledge-graph</pre><pre># 3. Empty the wiki folder<br>rm wiki/*.md</pre><pre># 4. Drop in your sources (notes, exports, anything markdown-friendly)<br>cp /path/to/your-content/*.md raw/notes/</pre><pre># 5. Update CLAUDE.md with your domain context</pre><pre># 6. Build wiki pages from sources<br>claude<br>&gt; Read all files in raw/. Create wiki pages organized by topic.<br>&gt; Each page should have: summary, sections, related links.</pre><pre># 7. Push to your repo<br>git add . &amp;&amp; git commit -m &quot;Initial knowledge base&quot; &amp;&amp; git push</pre><pre># 8. Enable GitHub Pages → GitHub Actions<br># 9. Customize the color palette in stylesheets/extra.css<br># 10. Done — instant docs site with interactive graph at /graph/</pre><p>The pattern works for:</p><ul><li>Internal company wikis</li><li>Product documentation</li><li>API references</li><li>Compliance and policy documents</li><li>Team runbooks</li><li>Personal knowledge management</li></ul><p>Same architecture, different content. The interactive graph regenerates automatically from whatever wiki pages you write.</p><h3>Why This Approach Wins For Most Cases</h3><p>Most enterprise knowledge bases fit comfortably under 10 MB of text — far smaller than people assume. For that scale, the simple pattern beats the complex one on every dimension that matters:</p><p>Storage is plain markdown in Git. Updates happen via git push and take effect immediately. Citations point to exact files and sections. Costs scale with the LLM you already pay for, not separate vector database hosting. Setup takes minutes, not days. The artifact is portable — same files work in Claude Code, ChatGPT, Gemini, Obsidian, your IDE, or your in-product AI agent.</p><p>The pattern wins when:</p><ul><li>Knowledge fits in 5–10 MB of text (most enterprise domains do)</li><li>A modern long-context LLM is available</li><li>Updates happen via human curation</li><li>Citation precision matters</li><li>You want one knowledge base reused across multiple surfaces</li></ul><h3>How It Connects To OAC AI Agents</h3><p>Earlier this year I published an article on Building Effective OAC AI Agents (https://medium.com/@ravishankerb/building-effective-oac-ai-agents-the-framework-the-techniques-and-the-resource-hub-to-get-you-eba3797ca991) — introducing the R.T.C.C.O.E framework (Role, Task, Context, Constraints, Output, Examples) for engineering Supplemental Instructions.</p><p>The OAC Knowledge Graph is the content layer that powers those agents:</p><ol><li>Bundle wiki pages into grouped knowledge files</li><li>Upload as Knowledge Documents in your OAC AI Agent</li><li>Apply R.T.C.C.O.E supplemental instructions</li><li>Your OAC AI Agent now has expert OAC knowledge baked in, ready to serve end users</li></ol><p>It’s the same content reused across surfaces:</p><ul><li>Browse → GitHub Pages site</li><li>CLI Q&amp;A → Claude Code / OpenAI Codex</li><li>Web Q&amp;A → Gemini / ChatGPT / Custom GPT</li><li>In-product → OAC AI Agent</li><li>External AI → OAC MCP Server</li><li>Visual exploration → Obsidian or the public graph page</li></ul><p>One knowledge base, six surfaces. The pattern delivers this naturally because the artifact is plain text — universally portable.</p><h3>Try It Yourself (60 Seconds)</h3><pre>git clone https://github.com/ravibhuma/oac-knowledge-graph.git<br>cd oac-knowledge-graph</pre><pre>npm install -g @anthropic-ai/claude-code</pre><pre>claude<br>&gt; How do I configure event polling tables for cache invalidation in OAC?</pre><p>You’ll get a deep, cited answer pulled from the wiki.</p><p>Or skip the install and just visit the browsable site at <a href="https://ravibhuma.github.io/oac-knowledge-graph/">https://ravibhuma.github.io/oac-knowledge-graph/</a></p><p>— start with the interactive graph at <a href="https://ravibhuma.github.io/oac-knowledge-graph/graph/">https://ravibhuma.github.io/oac-knowledge-graph/graph/</a> for the most striking entry point.</p><h3>The Surprising Outcome</h3><p>I started this project to test whether the LLM Wiki pattern could work for a real, comprehensive enterprise knowledge base.</p><p>It did. But the more interesting outcome:</p><p>I built a production-ready, AI-queryable knowledge base in a single weekend, with $0 of infrastructure cost, that I’d genuinely have struggled to ship in a month with the conventional approach.</p><p>Modern LLMs with massive context windows have changed the calculus. For most knowledge use cases, the simple pattern is the right pattern.</p><p>Try it. Fork the OAC Knowledge Graph (https://github.com/ravibhuma/oac-knowledge-graph). Apply the pattern to your domain. See how far you get in a weekend.</p><p>If you build something cool, tag me — I’d love to see what knowledge bases the community creates.</p><p>Star the repo (https://github.com/ravibhuma/oac-knowledge-graph) if it helped — it makes the pattern discoverable for others.</p><h3>Resources</h3><ul><li>OAC Knowledge Graph repo: <a href="https://github.com/ravibhuma/oac-knowledge-graph">https://github.com/ravibhuma/oac-knowledge-graph</a></li><li>Live docs site: <a href="https://ravibhuma.github.io/oac-knowledge-graph/">https://ravibhuma.github.io/oac-knowledge-graph/</a></li><li>Interactive graph: <a href="https://ravibhuma.github.io/oac-knowledge-graph/graph/">https://ravibhuma.github.io/oac-knowledge-graph/graph/</a></li><li>AI assistant setup (12 tools): <a href="https://ravibhuma.github.io/oac-knowledge-graph/AI_ASSISTANTS/">https://ravibhuma.github.io/oac-knowledge-graph/AI_ASSISTANTS/</a></li><li>Karpathy’s LLM Wiki gist (the inspiration): <a href="https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f">https://gist.github.com/karpathy/442a6bf555914893e9891c11519de94f</a></li><li>OAC Prompt Studio (companion AI Agents site): <a href="https://ravi-bhuma.github.io/oac-prompt-studio">https://ravi-bhuma.github.io/oac-prompt-studio</a></li><li>Building Effective OAC AI Agents (R.T.C.C.O.E framework): <a href="https://medium.com/@ravishankerb/building-effective-oac-ai-agents-the-framework-the-techniques-and-the-resource-hub-to-get-you-eba3797ca991">https://medium.com/@ravishankerb/building-effective-oac-ai-agents-the-framework-the-techniques-and-the-resource-hub-to-get-you-eba3797ca991</a></li><li>Obsidian (recommended for graph view + offline browsing): <a href="https://obsidian.md/">https://obsidian.md</a></li></ul><h3>Attribution</h3><p>This project is unofficial and community-built — a personal contribution to the OAC practitioner community. “Oracle”, “Oracle Analytics Cloud”, and related marks are trademarks of Oracle and/or its affiliates.</p><p>The “LLM Wiki” pattern is the work of Andrej Karpathy. References to his name and pattern are made solely for proper attribution.</p><p>Tags: AI, LLM, Knowledge Management, Oracle Analytics Cloud, OAC, Claude Code, LLM Wiki, Open Source, Knowledge Graph, Obsidian</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=04d2ab0b10b1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create an AI Profile with Select AI in Oracle Autonomous AI Lakehouse]]></title>
            <link>https://medium.com/@ravishankerb/create-an-ai-profile-with-select-ai-in-oracle-autonomous-ai-lakehouse-555b0226f176?source=rss-fdca03ae4c29------2</link>
            <guid isPermaLink="false">https://medium.com/p/555b0226f176</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[vector-database]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[select-ai]]></category>
            <category><![CDATA[ai-profile]]></category>
            <dc:creator><![CDATA[Ravi Shanker B]]></dc:creator>
            <pubDate>Wed, 04 Mar 2026 07:01:31 GMT</pubDate>
            <atom:updated>2026-03-04T07:01:31.703Z</atom:updated>
            <content:encoded><![CDATA[<h4>Talk to Your Database Using Natural Language — A Step-by-Step Guide with OpenAI</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5A2ajjysT8okZS8_QWm-cg.png" /><figcaption>Oracle Autonomous AI Lakehouse</figcaption></figure><p>Oracle Autonomous Database <strong>Select AI</strong> lets you interact with your database using plain English. Instead of writing SQL manually, you ask questions like <em>“how many customers are in San Francisco?”</em> and the database generates, executes, and explains the SQL for you — powered by Large Language Models.</p><p>In this post, I’ll walk you through the <strong>complete end-to-end steps</strong> to set up an AI profile using <strong>OpenAI</strong> as the provider. By the end, you’ll be running natural language queries against your database.</p><h3>What is an AI Profile?</h3><p>An AI profile is a configuration object in Oracle Autonomous Database that connects your database to an LLM provider. It defines:</p><ul><li><strong>Which LLM provider</strong> to use (OpenAI, Anthropic, Google, Cohere, OCI Generative AI, etc.)</li><li><strong>Which credentials</strong> authenticate to that provider</li><li><strong>Which database objects</strong> (tables/views) the LLM should reference when generating SQL</li></ul><p>Once configured, you can use five powerful actions:</p><p>Action What It Does showsql Generates SQL from your natural language prompt runsql Generates <em>and executes</em> the SQL, returning results narrate Returns results as a natural language narrative explainsql Generates SQL and explains what it does chat General-purpose conversation with the LLM</p><h3>Prerequisites</h3><p>Before you begin, you’ll need:</p><ul><li>An <strong>Oracle Cloud Infrastructure (OCI)</strong> account with an <strong>Autonomous AI Lakehouse.</strong></li><li><strong>ADMIN</strong> access to the database</li><li>A <strong>paid OpenAI account</strong> with API credits loaded</li><li>Your <strong>OpenAI API key</strong> from <a href="https://platform.openai.com/api-keys">platform.openai.com/api-keys</a></li></ul><h3>Step-by-Step Setup</h3><h3>Step 1: Create a Database User</h3><p>Connect as <strong>ADMIN</strong> and create a dedicated user for Select AI. Skip this if you already have a working user.</p><pre>CREATE USER ADB_USER IDENTIFIED BY &quot;&lt;YourStrongPassword&gt;&quot;;</pre><pre>GRANT DWROLE TO ADB_USER;<br>GRANT CONNECT TO ADB_USER;</pre><blockquote><strong><em>Note:</em></strong><em> The password must be at least 12 characters with at least one uppercase letter, one lowercase letter, and one number. </em><em>DWROLE bundles common privileges including </em><em>EXECUTE on </em><em>DBMS_CLOUD and </em><em>DBMS_CLOUD_PIPELINE.</em></blockquote><p>If your AI profile’s object_list references tables owned by <strong>another schema</strong> (e.g., the SH sample schema), you need to grant SELECT access on those tables. Connect as the <strong>table owner</strong> and grant from there:</p><pre>-- As ADMIN, set a password for the table owner<br>ALTER USER SH IDENTIFIED BY &quot;&lt;strong_password&gt;&quot;;</pre><pre>-- Connect as SH, then grant SELECT on each table<br>GRANT SELECT ON SH.CUSTOMERS TO ADB_USER;<br>GRANT SELECT ON SH.COUNTRIES TO ADB_USER;<br>GRANT SELECT ON SH.SUPPLEMENTARY_DEMOGRAPHICS TO ADB_USER;<br>GRANT SELECT ON SH.PROFITS TO ADB_USER;<br>GRANT SELECT ON SH.PROMOTIONS TO ADB_USER;<br>GRANT SELECT ON SH.PRODUCTS TO ADB_USER;</pre><blockquote><em>If you’re querying </em><strong><em>your own tables</em></strong><em> (tables owned by ADB_USER), no additional grants are needed.</em></blockquote><h3>Step 2: Grant EXECUTE Privilege on DBMS_CLOUD_AI</h3><p>Still as <strong>ADMIN</strong>:</p><pre>GRANT EXECUTE ON DBMS_CLOUD_AI TO ADB_USER;</pre><h3>Step 3: Grant Network ACL Access</h3><p>This allows the database to make outbound HTTPS calls to the OpenAI API.</p><p>As <strong>ADMIN</strong>:</p><pre>BEGIN<br>    DBMS_NETWORK_ACL_ADMIN.APPEND_HOST_ACE(<br>        host =&gt; &#39;api.openai.com&#39;,<br>        ace  =&gt; xs$ace_type(<br>                    privilege_list =&gt; xs$name_list(&#39;http&#39;),<br>                    principal_name =&gt; &#39;ADB_USER&#39;,<br>                    principal_type =&gt; xs_acl.ptype_db)<br>    );<br>END;<br>/</pre><h3>Step 4: Create Credential for OpenAI</h3><p>Now <strong>connect as ADB_USER</strong> and create a credential that stores your OpenAI API key:</p><pre>BEGIN<br>    DBMS_CLOUD.CREATE_CREDENTIAL(<br>        credential_name =&gt; &#39;OPENAI_CRED&#39;,<br>        username        =&gt; &#39;OPENAI&#39;,<br>        password        =&gt; &#39;&lt;your_openai_api_key&gt;&#39;<br>    );<br>END;<br>/</pre><blockquote><strong><em>Note:</em></strong><em> Replace </em><em>&lt;your_openai_api_key&gt; with your actual API key starting with </em><em>sk-. The </em><em>username is a user-defined label — it doesn&#39;t need to match any OpenAI account name.</em></blockquote><h3>Step 5: Create the AI Profile</h3><p>Create the AI profile specifying the provider, credential, and target database objects. The object_list defines which tables and views Select AI will reference when generating SQL from natural language.</p><pre>BEGIN<br>    DBMS_CLOUD_AI.CREATE_PROFILE(<br>        profile_name =&gt; &#39;OPENAI&#39;,<br>        attributes   =&gt; &#39;{&quot;provider&quot;: &quot;openai&quot;,<br>            &quot;credential_name&quot;: &quot;OPENAI_CRED&quot;,<br>            &quot;object_list&quot;: [<br>                {&quot;owner&quot;: &quot;SH&quot;, &quot;name&quot;: &quot;customers&quot;},<br>                {&quot;owner&quot;: &quot;SH&quot;, &quot;name&quot;: &quot;countries&quot;},<br>                {&quot;owner&quot;: &quot;SH&quot;, &quot;name&quot;: &quot;supplementary_demographics&quot;},<br>                {&quot;owner&quot;: &quot;SH&quot;, &quot;name&quot;: &quot;profits&quot;},<br>                {&quot;owner&quot;: &quot;SH&quot;, &quot;name&quot;: &quot;promotions&quot;},<br>                {&quot;owner&quot;: &quot;SH&quot;, &quot;name&quot;: &quot;products&quot;}<br>            ]<br>        }&#39;<br>    );<br>END;<br>/</pre><blockquote><strong><em>Note:</em></strong><em> Replace the </em><em>object_list with your own schema owner and table/view names. You can also specify a model by adding </em><em>&quot;model&quot;: &quot;gpt-4o&quot; in the attributes. If omitted, ADB uses the default model for the provider.</em></blockquote><h3>Step 6: Test It!</h3><p>Use DBMS_CLOUD_AI.GENERATE to test different Select AI actions.</p><p><strong>Generate SQL from natural language:</strong></p><pre>SELECT DBMS_CLOUD_AI.GENERATE(<br>    prompt       =&gt; &#39;how many customers exist&#39;,<br>    profile_name =&gt; &#39;OPENAI&#39;,<br>    action       =&gt; &#39;showsql&#39;<br>) FROM DUAL;</pre><p><strong>Result:</strong></p><pre>SELECT COUNT(&quot;CUST_ID&quot;) AS &quot;Total_Customers&quot; FROM &quot;SH&quot;.&quot;CUSTOMERS&quot;</pre><p><strong>Run the query and get results:</strong></p><pre>SELECT DBMS_CLOUD_AI.GENERATE(<br>    prompt       =&gt; &#39;how many customers exist&#39;,<br>    profile_name =&gt; &#39;OPENAI&#39;,<br>    action       =&gt; &#39;runsql&#39;<br>) FROM DUAL;</pre><p><strong>Get a narrative response:</strong></p><pre>SELECT DBMS_CLOUD_AI.GENERATE(<br>    prompt       =&gt; &#39;what are the top 3 customers in San Francisco&#39;,<br>    profile_name =&gt; &#39;OPENAI&#39;,<br>    action       =&gt; &#39;narrate&#39;<br>) FROM DUAL;</pre><p><strong>Explain the generated SQL:</strong></p><pre>SELECT DBMS_CLOUD_AI.GENERATE(<br>    prompt       =&gt; &#39;how many customers in San Francisco are married&#39;,<br>    profile_name =&gt; &#39;OPENAI&#39;,<br>    action       =&gt; &#39;explainsql&#39;<br>) FROM DUAL;</pre><p><strong>Chat with the LLM:</strong></p><pre>SELECT DBMS_CLOUD_AI.GENERATE(<br>    prompt       =&gt; &#39;what is Oracle Autonomous Database&#39;,<br>    profile_name =&gt; &#39;OPENAI&#39;,<br>    action       =&gt; &#39;chat&#39;<br>) FROM DUAL;</pre><h3>Using the SELECT AI Shorthand</h3><p>If you’re working in a <strong>stateful session</strong> (SQL*Plus or SQLcl), you can set the profile once and use the shorter SELECT AI syntax:</p><pre>EXEC DBMS_CLOUD_AI.SET_PROFILE(&#39;OPENAI&#39;);</pre><pre>SELECT AI how many customers exist;<br>SELECT AI showsql how many customers in San Francisco are married;<br>SELECT AI narrate what are the top 3 customers in San Francisco;<br>SELECT AI chat what is Oracle Autonomous Database;</pre><blockquote><strong><em>Note:</em></strong><em> The </em><em>SELECT AI shorthand works in SQL*Plus and SQLcl. In the </em><strong><em>Database Actions SQL Worksheet</em></strong><em>, use </em><em>DBMS_CLOUD_AI.GENERATE instead. You must call </em><em>SET_PROFILE in each new session.</em></blockquote><h3>Managing AI Profiles</h3><pre>-- View the active profile<br>SELECT DBMS_CLOUD_AI.GET_PROFILE() FROM DUAL;</pre><pre>-- Clear the profile from your session<br>BEGIN<br>    DBMS_CLOUD_AI.CLEAR_PROFILE;<br>END;<br>/</pre><pre>-- Drop a profile<br>EXEC DBMS_CLOUD_AI.DROP_PROFILE(&#39;OPENAI&#39;);</pre><h3>Supported AI Providers</h3><p>Oracle Autonomous Database Select AI supports multiple AI providers. The setup pattern is the same — create a credential, grant network ACL access, and create the profile with the appropriate provider name.</p><p>AI Provider Host for Network ACL OpenAI api.openai.com Anthropic api.anthropic.com Cohere api.cohere.ai Google generativelanguage.googleapis.com Hugging Face api-inference.huggingface.co Azure OpenAI &lt;resource_name&gt;.openai.azure.com AWS Bedrock bedrock-runtime.&lt;region&gt;.amazonaws.com OCI Generative AI <em>No network ACL required</em></p><blockquote><strong><em>Note:</em></strong><em> OCI Generative AI communicates within the OCI network and does not require network ACL privileges.</em></blockquote><h3>Other LLM Providers</h3><p>For detailed examples and configuration steps for <strong>each AI provider</strong> — including Anthropic, Cohere, Google, Hugging Face, Azure OpenAI, AWS Bedrock, and OpenAI-compatible providers — refer to the official Oracle documentation:</p><p>🔗 <a href="https://docs.oracle.com/en-us/iaas/autonomous-database-serverless/doc/select-ai-examples.html">Examples of Using Select AI — Oracle Documentation</a></p><h3>Troubleshooting &amp; Common Scenarios</h3><p>Things don’t always go smoothly on the first try. Here are the most common issues and how to resolve them.</p><h3>Drop and Recreate a Profile</h3><p>If you need to change the provider, model, or object list, drop the existing profile first:</p><pre>-- Drop the profile<br>EXEC DBMS_CLOUD_AI.DROP_PROFILE(&#39;OPENAI&#39;);</pre><pre>-- Recreate with updated attributes<br>BEGIN<br>    DBMS_CLOUD_AI.CREATE_PROFILE(<br>        profile_name =&gt; &#39;OPENAI&#39;,<br>        attributes   =&gt; &#39;{&quot;provider&quot;: &quot;openai&quot;,<br>            &quot;credential_name&quot;: &quot;OPENAI_CRED&quot;,<br>            &quot;model&quot;: &quot;gpt-4o&quot;,<br>            &quot;object_list&quot;: [<br>                {&quot;owner&quot;: &quot;SH&quot;, &quot;name&quot;: &quot;customers&quot;},<br>                {&quot;owner&quot;: &quot;SH&quot;, &quot;name&quot;: &quot;products&quot;}<br>            ]<br>        }&#39;<br>    );<br>END;<br>/</pre><h3>Drop and Recreate a Credential</h3><p>If your API key has expired, been rotated, or was entered incorrectly:</p><pre>-- Drop the old credential<br>BEGIN<br>    DBMS_CLOUD.DROP_CREDENTIAL(&#39;OPENAI_CRED&#39;);<br>END;<br>/</pre><pre>-- Create a new one with the updated key<br>BEGIN<br>    DBMS_CLOUD.CREATE_CREDENTIAL(<br>        credential_name =&gt; &#39;OPENAI_CRED&#39;,<br>        username        =&gt; &#39;OPENAI&#39;,<br>        password        =&gt; &#39;&lt;your_new_api_key&gt;&#39;<br>    );<br>END;<br>/</pre><blockquote><strong><em>Note:</em></strong><em> The profile references the credential </em><strong><em>by name</em></strong><em>. As long as you recreate the credential with the same name, you do </em><strong><em>not</em></strong><em> need to drop and recreate the profile.</em></blockquote><h3>ORA-20401: Authorization Failed</h3><pre>ORA-20401: Authorization failed for URI - https://api.openai.com/v1/...</pre><p><strong>Cause:</strong> The API key is invalid, expired, or has no credits.</p><p><strong>Fix:</strong></p><ol><li>Verify your API key is active at your provider’s dashboard</li><li>Confirm credits/balance are loaded on the <strong>same workspace</strong> as the API key</li><li>Drop and recreate the credential with a fresh API key (see above)</li></ol><h3>ORA-20400: Request Failed with HTTP 400</h3><pre>ORA-20400: Request failed with status HTTP 400 - ... &quot;credit balance is too low&quot;</pre><p><strong>Cause:</strong> Your AI provider account has insufficient credits.</p><p><strong>Fix:</strong></p><ol><li>Add credits to your provider account</li><li>Verify the balance shows as <strong>available</strong> (not pending)</li><li>Retry — no changes needed to the credential or profile</li></ol><h3>ORA-20404: Object Not Found</h3><pre>ORA-20404: Object not found - https://api.anthropic.com/v1/messages</pre><p><strong>Cause:</strong> The model specified in the profile is invalid, deprecated, or not supported by the provider.</p><p><strong>Fix:</strong></p><ol><li>Drop the profile</li><li>Recreate it with a valid model name:</li></ol><pre>EXEC DBMS_CLOUD_AI.DROP_PROFILE(&#39;MY_PROFILE&#39;);</pre><pre>BEGIN<br>    DBMS_CLOUD_AI.CREATE_PROFILE(<br>        profile_name =&gt; &#39;MY_PROFILE&#39;,<br>        attributes   =&gt; &#39;{&quot;provider&quot;: &quot;openai&quot;,<br>            &quot;credential_name&quot;: &quot;OPENAI_CRED&quot;,<br>            &quot;model&quot;: &quot;gpt-4o&quot;,<br>            &quot;object_list&quot;: [...]<br>        }&#39;<br>    );<br>END;<br>/</pre><blockquote><strong><em>Tip:</em></strong><em> If you’re unsure which models are supported, omit the </em><em>&quot;model&quot; attribute entirely and let ADB use the default model for the provider.</em></blockquote><h3>ORA-20004: Credential Does Not Exist</h3><pre>ORA-20004: Credential &quot;ADMIN&quot;.&quot;OPENAI_CRED&quot; does not exist</pre><p><strong>Cause:</strong> The credential was created under a different user than the one running the query. Credentials are <strong>schema-specific</strong>.</p><p><strong>Fix:</strong> Either:</p><ul><li>Connect as the user who created the credential, <strong>or</strong></li><li>Create the credential under the current user:</li></ul><pre>-- Check which user you&#39;re connected as<br>SELECT USER FROM DUAL;</pre><pre>-- Create the credential under this user<br>BEGIN<br>    DBMS_CLOUD.CREATE_CREDENTIAL(<br>        credential_name =&gt; &#39;OPENAI_CRED&#39;,<br>        username        =&gt; &#39;OPENAI&#39;,<br>        password        =&gt; &#39;&lt;your_api_key&gt;&#39;<br>    );<br>END;<br>/</pre><h3>ORA-00923: FROM Keyword Not Found</h3><pre>ORA-00923: FROM keyword not found where expected</pre><p><strong>Cause:</strong> You’re using the SELECT AI shorthand syntax in the <strong>Database Actions SQL Worksheet</strong>, which doesn&#39;t support it.</p><p><strong>Fix:</strong> Use DBMS_CLOUD_AI.GENERATE instead:</p><pre>-- Instead of: SELECT AI how many customers exist;<br>-- Use:<br>SELECT DBMS_CLOUD_AI.GENERATE(<br>    prompt       =&gt; &#39;how many customers exist&#39;,<br>    profile_name =&gt; &#39;OPENAI&#39;,<br>    action       =&gt; &#39;runsql&#39;<br>) FROM DUAL;</pre><p>The SELECT AI shorthand only works in <strong>SQL*Plus</strong> and <strong>SQLcl</strong>.</p><h3>ORA-01031: Insufficient Privileges</h3><pre>ORA-01031: insufficient privileges</pre><p><strong>Cause:</strong> The user lacks the required grants.</p><p><strong>Fix</strong> (run as <strong>ADMIN</strong>):</p><pre>-- Core privilege for Select AI<br>GRANT EXECUTE ON DBMS_CLOUD_AI TO ADB_USER;</pre><pre>-- If DBMS_CLOUD is also missing<br>GRANT EXECUTE ON DBMS_CLOUD TO ADB_USER;</pre><pre>-- For RAG features<br>GRANT EXECUTE ON DBMS_CLOUD_PIPELINE TO ADB_USER;</pre><p><strong>If you get this error when granting SELECT on another schema’s tables:</strong></p><p>The ADMIN user may not have the grant option on sample schema tables (like SH). Connect as the <strong>table owner</strong> instead:</p><pre>-- As ADMIN, set a password for the schema owner<br>ALTER USER SH IDENTIFIED BY &quot;&lt;strong_password&gt;&quot;;</pre><pre>-- Connect as SH, then grant<br>GRANT SELECT ON SH.CUSTOMERS TO ADB_USER;</pre><p><strong>Last resort workaround:</strong> If connecting as the table owner isn’t an option (e.g., in a demo environment), you can grant PDB_DBA to give broad access:</p><pre>-- As ADMIN — grants broad access, use with caution<br>GRANT PDB_DBA TO ADB_USER;</pre><blockquote><strong><em>Warning:</em></strong><em> </em><em>PDB_DBA provides elevated privileges across the database. It&#39;s fine for demos and development, but for production use, always prefer granting SELECT on individual tables.</em></blockquote><h3>Network ACL Issues</h3><p>If you get connection timeout or host access errors, verify the ACL was granted:</p><pre>-- Check existing ACL entries (as ADMIN)<br>SELECT host, acl<br>FROM   DBA_NETWORK_ACLS<br>WHERE  host = &#39;api.openai.com&#39;;</pre><p>If nothing is returned, the ACL was never granted. Run the APPEND_HOST_ACE step again.</p><h3>Verify Your Setup — Quick Checklist</h3><p>Run these queries to confirm everything is in place:</p><pre>-- 1. Check your user&#39;s privileges<br>SELECT table_name AS package_name, privilege<br>FROM   USER_TAB_PRIVS<br>WHERE  table_name IN (&#39;DBMS_CLOUD_AI&#39;, &#39;DBMS_CLOUD&#39;, &#39;DBMS_CLOUD_PIPELINE&#39;);</pre><pre>-- 2. Check credentials<br>SELECT credential_name, username, enabled<br>FROM   USER_CREDENTIALS<br>WHERE  credential_name = &#39;OPENAI_CRED&#39;;</pre><pre>-- 3. Check AI profiles<br>SELECT profile_name, status<br>FROM   USER_CLOUD_AI_PROFILES;</pre><pre>-- 4. Check active profile in session<br>SELECT DBMS_CLOUD_AI.GET_PROFILE() FROM DUAL;</pre><h3>Clean Slate — Remove Everything</h3><p>If you need to start fresh:</p><pre>-- 1. Clear profile from session<br>BEGIN<br>    DBMS_CLOUD_AI.CLEAR_PROFILE;<br>END;<br>/</pre><pre>-- 2. Drop the profile<br>EXEC DBMS_CLOUD_AI.DROP_PROFILE(&#39;OPENAI&#39;);</pre><pre>-- 3. Drop the credential<br>BEGIN<br>    DBMS_CLOUD.DROP_CREDENTIAL(&#39;OPENAI_CRED&#39;);<br>END;<br>/</pre><pre>-- 4. (Optional) Drop the user — run as ADMIN<br>DROP USER ADB_USER CASCADE;</pre><blockquote><strong><em>Warning:</em></strong><em> </em><em>DROP USER ... CASCADE permanently deletes the user and all their objects. Use with caution.</em></blockquote><h3>Wrapping Up</h3><p>Select AI is a powerful feature that bridges the gap between natural language and SQL. With just a few configuration steps, you can enable anyone — not just SQL experts — to query your database conversationally. Whether you’re building demos, enabling business users, or exploring your data, Select AI makes Oracle Autonomous Database truly conversational.</p><h3>📝 Disclaimer</h3><p>The opinions and views shared in this blog are solely my own and do not represent the official stance or policy of any organization I am associated with. This content reflects my personal insights and should be interpreted as such.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=555b0226f176" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building Effective OAC AI Agents: The Framework, The Techniques, and The Resource Hub to Get You…]]></title>
            <link>https://medium.com/@ravishankerb/building-effective-oac-ai-agents-the-framework-the-techniques-and-the-resource-hub-to-get-you-eba3797ca991?source=rss-fdca03ae4c29------2</link>
            <guid isPermaLink="false">https://medium.com/p/eba3797ca991</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[oracle-analytics-cloud]]></category>
            <category><![CDATA[writing-prompts]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Ravi Shanker B]]></dc:creator>
            <pubDate>Mon, 02 Mar 2026 05:47:15 GMT</pubDate>
            <atom:updated>2026-03-02T07:02:54.847Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building Effective OAC AI Agents: The Framework, The Techniques, and The Resource Hub to Get You There</h3><h3>Your dashboards show what happened. AI Agents answer what you’re actually asking — in your language, with your business logic, in real time. The era of waiting for someone to build you a report is over.</h3><p>For two decades, enterprise analytics has followed the same pattern: analysts build dashboards, business users consume them, and when someone needs a question answered that isn’t on the dashboard, they file a request and wait. The dashboard is a static photograph of a data story someone else decided to tell.</p><p><a href="https://docs.oracle.com/en/cloud/paas/analytics-cloud/acubi/oracle-analytics-ai-agents.html">Oracle Analytics Cloud (OAC)</a> AI Agents change this paradigm entirely. Instead of navigating pre-built reports, business users simply ask questions in natural language — “Compare Q3 sales pipeline by region and status” — and receive charts, tables, and insights generated on the fly from live data. The shift is fundamental: from <strong>consuming reports</strong> to <strong>conversing with data</strong>.</p><p>But here’s what most teams discover after they create their first agent: without proper engineering, the agent behaves like a generic LLM that happens to see your data. <br>It doesn’t know your fiscal calendar. <br>It doesn’t know that “ATV” means Average Transaction Value calculated as Sum(Revenue) / Sum(Transactions).<br> It doesn’t know that when someone says “important orders,” they mean High and Critical priority — not Low and Medium.</p><p><strong>The difference between an agent that frustrates users and one that feels like a domain expert comes down to how you engineer it</strong>. <br>This post covers the complete journey — what agents are, how they work under the hood, how to set one up, how to make it powerful, and an open-source resource hub I built to accelerate the process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aTWw1IwKwbvb1J_aOo7-4w.png" /></figure><h3>What Is an OAC AI Agent?</h3><p>Unlike a generic chatbot or general-purpose LLM, an OAC AI Agent is a domain-specific functional expert. It’s built by an Author (typically an analyst or architect) to serve Consumer users within a tightly defined business domain — sales pipeline, HR policies, supply chain operations, patient records, or any other area where your organization has structured data.</p><p>The evolution looks like this: <strong>Static Dashboards</strong> (fixed reports, pre-calculated metrics, limited interaction) → <strong>Interactive Conversational Analytics</strong> (domain-specific context, natural language queries, dynamic visualizations, real-time exploration).</p><p>An agent in Healthcare might answer “Show me readmission rates by department for Q2” and produce a chart with the right filters applied. A Sales agent might respond to “Best 5 customers by profit margin” with a ranked table using your company’s margin calculation. A Support agent might interpret “current quarter ticket backlog by severity” using your fiscal calendar — not January–December.</p><p>The key architectural insight is that OAC AI Agents don’t just throw your data at an LLM and hope for the best. The system orchestrates a pipeline: your data is indexed into a searchable foundation, your custom instructions are injected as context, enterprise knowledge documents are scanned for relevant facts via RAG (Retrieval-Augmented Generation), and the enriched prompt is then processed by the LLM to produce a contextually accurate response with proper visualizations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M_ON3G15u5vpiejkiWE5vg.png" /><figcaption>Agent</figcaption></figure><h3>The Anatomy of an Agent: Four Components</h3><p>Every OAC AI Agent is assembled from four components in the Agent Editor workspace:</p><p><strong>1. Dataset — The Agent’s Facts</strong></p><p>The foundational data source. Each agent attaches to exactly one dataset (use multi-table joins or Local Subject Areas if you need to combine sources). The dataset must be indexed for the AI Assistant — right-click the dataset → Inspect → Search → “Index for Assistants” → Run Now.<br> Key configuration features include column subsetting (toggle which columns are visible to the agent) and agent filters (mandatory data filters that apply to all queries and cannot be bypassed by end users).</p><p><strong>2. Supplemental Instructions — The Agent’s Brain</strong></p><p>This is where the real engineering happens. Supplemental Instructions (SI) are custom rules — up to 6,000 characters — that teach the AI to think in your organization’s specific terminology.<br> While the dataset provides facts, the SI defines logic: your company rules, naming conventions, KPI formulas, aggregation defaults, fiscal calendar mappings, and response formatting. <br>Without SI, the agent makes assumptions. <br>With SI, it follows your business logic precisely.</p><p><strong>3. Knowledge Documents — The Agent’s Reference Library</strong></p><p>PDF and TXT files (up to 10 documents per agent, 5MB each) that provide enterprise context beyond the structured data. These are processed via RAG — the system chunks the documents, retrieves relevant excerpts when a user asks a question, and injects them into the prompt. <br>Use cases include policy documents, competitive intelligence, product catalogs, or FAQ repositories.</p><p>Important: reconcile contradictory numbers across documents before uploading, as the RAG process favors the first retrieved fact.</p><p><strong>4. Welcome Message — The Agent’s Introduction</strong></p><p>The onboarding text and sample questions users see when they first open the agent. Well-crafted welcome messages set expectations about what the agent can do and provide example queries to get started.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gqGYmpLAftp29SoiFk46Lw.png" /><figcaption>Anatomy of an Agent</figcaption></figure><h3>Setting Up: Prerequisites Before You Build</h3><p>Before creating your first agent, administrators need to check/activate three things:</p><p>Navigate to Console → Extensions and Enrichments → Generative AI. <br>Select the active Gen AI Service from the dropdown under “Oracle Analytics AI Assistant Features.”</p><p><strong>Grant Author Permissions:</strong> Console → Roles and Permissions → Grant “Create and Edit AI Agents” to the authoring group. Authors also need the BI Content Creator role.</p><p><strong>Prepare Your Data:</strong> Upload your dataset to OAC, then index it: right-click → Inspect → Search → “Index for Assistants” → Run Now. This makes the dataset’s columns, values, and metadata searchable by the AI engine.</p><p>Once these are in place, creating the agent itself is straightforward:<br> Home Page → Create → AI Agent.<br> You’ll see the four-component workspace where you attach your dataset, write your Supplemental Instructions, upload Knowledge Documents, and set the Welcome Message.</p><p>The agent is now functional — but it’s not yet powerful.</p><p>That’s where Supplemental Instructions come in.</p><h3>Why Supplemental Instructions Are the Highest-Leverage Investment</h3><p>Here’s the pattern I see repeatedly working with customers:</p><ol><li>Team creates an AI Agent, attaches a dataset, writes minimal or no Supplemental Instructions</li><li>Agent gives generic, sometimes incorrect results — wrong aggregations, no fiscal context, random chart types</li><li>Team concludes “AI Agents aren’t ready” or “they don’t work for our data”</li></ol><p>The reality? <br>The agent is working exactly as instructed — with no instructions. <br>A generic AI brain is full of assumptions, ambiguity, broad knowledge, and guesswork. <br>Supplemental Instructions transform it into a governed agent brain with company rules, naming conventions, defined logic, verified data workflows, and explicit constraints.</p><p>Consider a simple example. A user asks: “Show revenue by region.”</p><p><strong>Without SI:</strong> The agent picks a random numeric column, uses a bar chart, shows all regions with no time filter, and applies Sum by default even for metrics that should be averaged.</p><p><strong>With SI:</strong> The same question routes through your fiscal calendar (filtering to the current quarter), applies your default metric (Sum of Sales), uses your preferred visualization (Table for category comparisons, Area Chart for time trends), respects your regional hierarchy, and presents the result with context.</p><p>The 6,000-character limit might seem small, but with the right structure, you can pack substantial business logic into that space.</p><h3>The R.T.C.C.O.E Framework: Structuring Your Instructions</h3><p>To maximize the 6,000-character limit, structure your Supplemental Instructions using the R.T.C.C.O.E framework — a standardized approach for writing effective agent prompts:</p><p><strong>R — Role:</strong> Who the agent is. Define the persona and domain expertise. <em>Example: “You are a Senior Sales Analytics Expert specializing in pipeline and revenue analysis.”</em></p><p><strong>T — Task:</strong> What the agent does. Define the core analytical workflow. <em>Example: “Answer questions with accurate charts, provide metric → insight → recommendation analysis, and proactively highlight anomalies.”</em></p><p><strong>C — Context:</strong> Business rules the agent must know. This is where you encode domain knowledge that doesn’t exist in the data itself. <em>Example: Fiscal calendar definitions (FY = Jun 1 — May 31, Q1 Jun–Aug, Q2 Sep–Nov, Q3 Dec–Feb, Q4 Mar–May), KPI formulas (ATV = Sum(Sales_Revenue) / Sum(Transactions)), attribute groupings, and regional hierarchies.</em></p><p><strong>C — Constraints:</strong> Hard rules the agent must always follow. <em>Example: “Default metric: Revenue. Default ranking: Top 5. Always include City = ‘Toronto’ filter. Never fabricate data. Always show applied filters in the response.”</em></p><p><strong>O — Output:</strong> Response format and visualization preferences. <em>Example: “Category comparisons → Table. Time-based trends → Area Chart. Geographic queries → Map. Always provide a headline insight before the visualization.”</em></p><p><strong>E — Examples:</strong> 2–3 query→response pairs that show the agent exactly how to behave. <em>This is the single biggest quality improvement you can make.</em> Examples anchor the agent’s behavior with concrete patterns. <em>Example: “When user asks ‘Revenue this quarter’ → Filter Fiscal Quarter = ‘FY2026 Q2’, metric = Sum(Sales), chart = Table.”</em></p><h3>The Agent in Action: Real-World Use Cases</h3><p>The difference between theory and practice is what makes Supplemental Instructions tangible. Here are three scenarios that show what well-engineered agents can do:</p><p><strong>Custom KPIs and Metrics.</strong> Generic AI cannot guess how your business calculates its key performance indicators.<br> When you write &quot;When user asks about ATV (Average Transaction Value), use formula: Sum(Sales_Revenue) / Sum(# of Transactions)&quot; in your SI, the agent computes that exact formula whenever a user types &quot;ATV per category&quot; — producing a bar chart with the correct calculated metric, not a sum or average of the wrong column.</p><p><strong>Fiscal Calendar Mapping.</strong> Most organizations don’t follow a January–December calendar.<br>When you define &quot;Use Fiscal Calendar (FY = Jun 1–May 31). &#39;current quarter&#39; → Fiscal Quarter = &#39;FY2026 Q2&#39;&quot; in your SI, a user asking &quot;Compare Previous and Current Fiscal Years Profits&quot; gets a table comparing FY 2025 vs FY 2026 — the agent correctly translates the natural language into your fiscal period filters.</p><p><strong>Geographic Distance Logic.</strong> By teaching the agent to treat Latitude/Longitude columns as geo coordinates and to resolve shorthand location names to exact coordinates (e.g., “Shop-ABC” = 41.8781° N, 87.6298° W — Chicago), users can ask “Show sales within 50 miles of Shop-ABC” and get a map visualization with a distance-based filter applied. <br>The agent computes the haversine formula, filters the records, and defaults to a Map chart type — all from a few lines of SI.</p><h3>The Pre-Deployment Checklist</h3><p>Before publishing your agent to consumer users, verify these configurations:</p><p><strong>Data Integrity:</strong> Is the primary dataset fully indexed with appropriate Agent Filters applied? Have you configured column subsetting to expose only relevant columns?</p><p><strong>Logic Limits:</strong> Are Supplemental Instructions under the 6,000-character limit and structured using R.T.C.C.O.E? Have you tested all critical KPI formulas and keyword mappings?</p><p><strong>Knowledge Bounds:</strong> Are all RAG documents in PDF/TXT format, under 5MB each, and limited to 10 total files? Have they been scrubbed for contradictory data points?</p><p><strong>Default Behaviors:</strong> Did you explicitly define default metrics, aggregations (Sum vs. Avg — this catches silent errors where the agent sums a rate instead of averaging it), and chart types for ambiguous user queries?</p><p><strong>Examples Included:</strong> Did you provide 2–3 few-shot examples in the “E” section of your SI? These concrete query→response patterns are the most effective way to ensure consistent behavior.</p><h3>The Open-Source Resource Hub: Learn, Practice, Test</h3><p>Writing effective Supplemental Instructions is the most impactful — and least documented — part of building OAC AI Agents. To bridge that gap, I built an interactive learning platform that covers everything from fundamentals to advanced patterns.</p><p>🔗 <strong>Landing Page:</strong> <a href="https://ravi-bhuma.github.io/oac-prompt-studio/">https://ravi-bhuma.github.io/oac-prompt-studio/</a><br> ⚡ <strong>Quick Start Guide:</strong> <a href="https://ravi-bhuma.github.io/oac-prompt-studio/guides/quick-start.html">https://ravi-bhuma.github.io/oac-prompt-studio/guides/quick-start.html</a><br> 🔬 <strong>Deep Dive Studio:</strong> <a href="https://ravi-bhuma.github.io/oac-prompt-studio/guides/prompt-engineering-studio.html">https://ravi-bhuma.github.io/oac-prompt-studio/guides/prompt-engineering-studio.html</a><br> 🧪 <strong>Hands-On Lab:</strong> <a href="https://ravi-bhuma.github.io/oac-prompt-studio/guides/hands-on-exercise.html">https://ravi-bhuma.github.io/oac-prompt-studio/guides/hands-on-exercise.html</a><br> 📝 <strong>Knowledge Quiz:</strong> <a href="https://ravi-bhuma.github.io/oac-prompt-studio/guides/quiz.html">https://ravi-bhuma.github.io/oac-prompt-studio/guides/quiz.html</a><br> 📄 <strong>PDF Guide:</strong> <a href="https://ravi-bhuma.github.io/oac-prompt-studio/docs/OAC_AI_Agents_Resource_Hub_Guide.pdf">https://ravi-bhuma.github.io/oac-prompt-studio/docs/OAC_AI_Agents_Resource_Hub_Guide.pdf</a></p><p>What it covers:</p><p>⚡ Quick Start Guide — 11 industry templates (copy/paste SI), an interactive step-by-step builder, and 16 real-world SI patterns (grouping, hierarchies, fiscal calendars, KPIs, geo distance, and more)</p><p>🔬 Deep Dive Studio — 40 prompt engineering techniques adapted for OAC + 5 frameworks compared side-by-side (R.T.C.C.O.E, CO-STAR, RISEN, CRISPE, RACE) + concept evolution mapping</p><p>🧪 Hands-On Lab — 12 exercises across 3 tracks (Beginner → Advanced) with 4 real downloadable datasets and exact copy-ready instructions aligned to the Technical Guidance</p><p>📝 Knowledge Quiz — 28 questions across 7 categories with 3 modes (Quick / Standard / Full Exam)</p><p>📄 PDF Guide — downloadable companion doc with TOC + references</p><p>Every SI example includes a one-click copy button, so you can go from reading → deploying in under a minute.</p><p>Useful for customer demos, workshops, onboarding new agent authors, or as a quick reference while building agents.</p><p>Key takeaway: the “E” (Examples) section is often the single biggest quality boost — adding 2–3 strong few-shot examples dramatically improves consistency.</p><h3>Recommended Learning Paths</h3><p><strong>“I need results today” (15 min):</strong> Landing Page → Quick Start → Start from Template → Pick your industry → Copy → Replace placeholders → Paste into OAC → Test</p><p><strong>“I want to build it right” (1 hour):</strong> Quick Start → Learn the Basics → Use Case Reference → Build Step-by-Step → Hands-On Lab Beginner Track</p><p><strong>“I want to master this” (2–3 hours):</strong> Deep Dive Studio → Concept Evolution → 40 Techniques → Frameworks → All 12 Exercises → Full Exam Quiz</p><h3>The Bottom Line</h3><p>Your semantic model tells the agent what your data looks like. Your instructions tell the agent how your business thinks.</p><p>The organizations that will get the most value from OAC AI Agents aren’t the ones with the best data — they’re the ones that invest in engineering the agent’s reasoning. Supplemental Instructions, structured through the R.T.C.C.O.E framework and tested with real queries, are the fastest path from a generic chatbot to a domain expert that your business users will actually trust and adopt.</p><p>🔗 <strong>Resource Hub:</strong> <a href="https://ravi-bhuma.github.io/oac-prompt-studio/">https://ravi-bhuma.github.io/oac-prompt-studio/</a></p><h3>📝 Disclaimer</h3><p>The opinions and views shared in this blog are solely my own and do not represent the official stance or policy of any organization I am associated with. This content reflects my personal insights and should be interpreted as such.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eba3797ca991" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oracle Analytics Cloud: Welcome to the Agentic AI Era]]></title>
            <link>https://medium.com/@ravishankerb/oracle-analytics-cloud-welcome-to-the-agentic-ai-era-14b503ba4d81?source=rss-fdca03ae4c29------2</link>
            <guid isPermaLink="false">https://medium.com/p/14b503ba4d81</guid>
            <category><![CDATA[mcp-server]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Ravi Shanker B]]></dc:creator>
            <pubDate>Sat, 24 Jan 2026 15:02:07 GMT</pubDate>
            <atom:updated>2026-01-30T20:42:55.747Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>The Oracle Analytics Cloud AI Ecosystem: Shaping the Future of Enterprise Analytics</strong></h3><h4>The analytics revolution isn’t about more dashboards. It’s about conversations that drive decisions.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T3ise0OQMVbrPjYc7MIdIw.png" /></figure><p><a href="https://www.oracle.com/analytics/"><strong>Oracle Analytics Cloud (OAC)</strong></a> empowers organizations with modern, AI-powered analytics — delivering dynamic visualizations, interactive dashboards, and real-time insights at enterprise scale.<br> Building on this foundation, OAC introduces the <strong>Agentic User Experience</strong>, redefining analytics as a conversational, intelligent, and always-available decision platform.</p><p>For years, business intelligence followed a familiar routine: dashboards were built, reports were published, and insights depended on someone finding and interpreting them correctly. Analysts often became intermediaries — translating data into explanations rather than driving outcomes.</p><p>That approach no longer keeps pace with how decisions are made today.</p><p>The <strong>Agentic User Experience in Oracle Analytics Cloud</strong> represents a fundamental shift in how organizations engage with data. Analytics moves from passive consumption to active collaboration, from static dashboards to dynamic conversations, and from isolated tools to a unified AI ecosystem.</p><p>This isn’t incremental change.<br> It’s analytics rebuilt around human intent — designed to understand questions, retain context, and deliver insight whenever and wherever decisions happen.</p><h3>Explore the OAC AI Ecosystem</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eXepZN-aEYyeg0NEx3_kyQ.png" /><figcaption>OAC AI Ecosystem</figcaption></figure><p>This diagram illustrates how <strong>Oracle Analytics Cloud (OAC)</strong> brings together multiple AI-driven capabilities into a <strong>single, unified analytics ecosystem</strong>.</p><p>At the center is <strong>Oracle Analytics Cloud</strong>, acting as the intelligence core. Surrounding it are tightly integrated capabilities that work together — rather than as standalone features — to deliver an end-to-end agentic analytics experience.</p><h3>The Ecosystem at a Glance</h3><ul><li><strong>Homepage AI Assistant</strong><br> The starting point for analytics — users begin with natural language questions, not dashboards.</li><li><strong>Workbook AI Assistant</strong><br> An in-app co-pilot that helps authors build, refine, and evolve analysis through conversation.</li><li><strong>AI Agents</strong><br> Domain-aware agents that combine enterprise data with business knowledge to explain not just <em>what</em> happened, but <em>why</em>.</li><li><strong>AI Assistant on Mobile</strong><br> The same conversational experience, optimized for on-the-go decisions with voice and podcast-style insights.</li><li><strong>Embedding AI Assistant</strong><br> Brings analytics directly into business applications and workflows, eliminating context switching.</li><li><strong>OAC MCP Server</strong><br> Securely connects Oracle Analytics Cloud to external AI clients and automation tools using governed, standardized access.</li><li><strong>Feedback &amp; Improvement</strong><br> Built-in mechanisms that allow AI responses to continuously improve — responsibly and transparently.</li></ul><p>Together, these components form the <strong>OAC AI Ecosystem</strong> — where analytics is no longer a destination you visit, but an intelligent capability embedded wherever decisions are made.</p><h3>Start with a Conversation: Homepage AI Assistant</h3><p>The <strong>Homepage AI Assistant</strong> is now the <strong>front door to analytics</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NV5coqq-KNF1liNDdhVK7g.png" /></figure><p>Users no longer start with dashboards or data models — they start with <strong>intent</strong>.</p><p>You can generate a dashboards from simple prompt such as:</p><p><em>Give me comprehensive location based performance dashboard from Sample Sales Dataset</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nLXNzergt6qmJNQp1isE7Q.png" /></figure><h3>What it delivers</h3><ul><li><strong>Instant workbook creation</strong><br> Generate complete dashboards from prompts like:<br> <em>“Build an executive profitability dashboard”</em><br> — including visualizations and insight summaries.</li><li><strong>Context-aware dialogue</strong><br> Follow-up questions automatically retain intent and context, enabling natural exploration without starting over.</li><li><strong>Smart search</strong><br> Combines catalog discovery with semantic understanding, using public knowledge to interpret vague or ambiguous terms.</li></ul><p>▶️ <em>Watch it in action:</em><br><a href="https://www.youtube.com/watch?v=B7nlPZhUXIY"><strong>Oracle Analytics’ Homepage AI Assistant</strong></a></p><h3>Build Faster with a Co-Pilot: Workbook AI Assistant</h3><p>Once inside a workbook, AI doesn’t disappear — it becomes your <strong>in-app co-pilot</strong>.</p><p>The <strong>Workbook AI Assistant</strong> lives directly inside the authoring experience, helping users move from ideas to insights without technical friction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*4xNhY1dRAiNJ4WElYrdm2w.png" /><figcaption>Workbook AI Assistant</figcaption></figure><h3>What it delivers</h3><ul><li><strong>Embedded intelligence</strong><br> Create and modify visualizations using conversational commands, eliminating the learning curve of traditional BI tools.</li><li><strong>Iterative design</strong><br> Generate charts from prompts, refine them through follow-up questions, and evolve analysis naturally as questions change.</li><li><strong>Seamless saving</strong><br> Save results directly to workbooks or watchlists for continuous analysis and reuse.</li></ul><p>Analytics becomes <strong>iterative, intuitive, and fast</strong>.</p><p>▶️ <em>See the Workbook Assistant:</em><br><a href="https://www.youtube.com/watch?v=TEy_KEqjVns"> <strong>How to Use the AI Assistant in Oracle Analytics Cloud</strong></a></p><h3>Go Beyond Metrics: AI Agents with Context</h3><p>AI Assistants answer questions.<br> <strong>AI Agents explain the “why.”</strong></p><p>Oracle Analytics AI Agents combine enterprise data with organizational knowledge using <strong>Retrieval-Augmented Generation (RAG)</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o-DuXE13NpDgGfLbUb0PlQ.png" /><figcaption>AI Agents Configuration</figcaption></figure><h3>What it delivers</h3><ul><li><strong>Custom knowledge integration</strong><br> Blend structured datasets with uploaded documents such as PDFs, reports, and policies.</li><li><strong>Tailored behavior</strong><br> Administrators define instructions so agents respond in line with organizational standards and business context.</li><li><strong>Context-aware insights</strong><br> Explain trends alongside policies, assumptions, and business rationale — not just numbers.</li></ul><p>This is analytics evolving into <strong>institutional intelligence</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HkBM0dg-V5dq3Ab9c09KiA.png" /><figcaption>AI Agents</figcaption></figure><p>▶️ <em>Explore AI Agents:</em><br><a href="https://www.youtube.com/watch?v=4iv9YsXw5Po"> <strong>Oracle Analytics AI Agents</strong></a></p><h3>Analytics Anywhere: Mobile AI Assistant</h3><p>Decisions don’t wait for desktops — and neither should analytics.</p><p>The <strong>Mobile AI Assistant</strong> extends the same conversational experience to mobile devices.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/896/1*hv-5VUePMuZOvgFI0bRGdg.png" /></figure><h3>What it delivers</h3><ul><li><strong>Multimodal interaction</strong><br> Ask questions using text or voice, with automatic transcription.</li><li><strong>Podcast mode</strong><br> Generate narrated summaries of insights for hands-free, on-the-go consumption.</li><li><strong>Actionable insights</strong><br> Expand visuals, share them instantly, or add them to watchlists for quick access later.</li></ul><p>Analytics becomes <strong>ambient and always available</strong>.</p><p>▶️ <em>See mobile analytics in action:</em><br><a href="https://www.youtube.com/watch?v=ZSOtVzIfjzk"> <strong>AI Assistant on Mobile in Oracle Analytics</strong></a></p><h3>Bring Analytics into the Workflow: Embedded AI Assistant</h3><p>Why force users to leave their applications to get insights?</p><p>With the <strong>Embeddable AI Assistant</strong>, analytics comes directly into business workflows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BCGHcOiH8xiteFPl12tsTw.png" /></figure><h3>What it delivers</h3><ul><li><strong>Seamless integration</strong><br> Embed the full AI Assistant experience into custom apps or HTML pages using the &lt;oa-assistant&gt; tag.</li><li><strong>In-context analytics</strong><br> Users ask questions like <em>“What is the history of sales in Austin?”</em> directly inside operational tools.</li></ul><p>No context switching.<br> No separate BI destination.</p><p>▶️ <em>Watch embedding in action:</em><br><a href="https://www.youtube.com/watch?v=q1ux-pytE6o"> <strong>Embedding the Oracle Analytics AI Assistant</strong></a></p><h3>Open Connectivity, Enterprise Control: MCP Server</h3><p>The <strong>Model Context Protocol (MCP) Server</strong> connects Oracle Analytics to the broader AI ecosystem — safely.</p><p>External AI clients can interact with analytics through standardized operations.</p><h3>What it delivers</h3><ul><li><strong>Discover</strong><br> List all datasets accessible to the authenticated user.</li><li><strong>Describe</strong><br> Retrieve detailed metadata and structural information.</li><li><strong>Execute</strong><br> Run governed Logical SQL queries generated by external LLMs.</li></ul><p>This enables <strong>open AI integration without compromising security</strong>.</p><p>▶️ <em>Deep dive &amp; demos:</em><br> 📘 <strong>Oracle Analytics Cloud MCP Server — Bridging Enterprise Analytics and AI</strong><br> <a href="https://blogs.oracle.com/analytics/oracle-analytics-cloud-mcp-server-bridging-enterprise-analytics-and-ai">https://blogs.oracle.com/analytics/oracle-analytics-cloud-mcp-server-bridging-enterprise-analytics-and-ai</a></p><p>▶️ <a href="https://www.youtube.com/watch?v=iVqVN_m8ijU"><strong>Enabling Agent Workflows with the OAC MCP Server</strong></a></p><h3>Continuous Learning: AI Assistant Feedback</h3><p>Enterprise AI must improve responsibly.</p><p>Oracle Analytics includes built-in feedback mechanisms to refine responses over time.</p><h3>What it delivers</h3><ul><li>User-driven feedback on AI responses</li><li>Continuous relevance improvement</li><li>Transparent and governed AI evolution</li></ul><p>▶️ <em>See feedback in action:</em><a href="https://www.youtube.com/watch?v=h2zDiXr1Yv0"><br> <strong>AI Assistant Feedback in Oracle Analytics</strong></a></p><h3>Security Is Not Optional — It’s Built In</h3><p>Across every interaction mode — UI, mobile, embedded, agents, MCP — Oracle Analytics enforces:</p><ul><li><strong>Role-based access control</strong></li><li><strong>Row-level security</strong></li><li><strong>Governed external access</strong></li></ul><p>AI doesn’t bypass governance.<br> It <strong>operates within it</strong>.</p><h3>The Bigger Shift Most People Miss</h3><p>The Agentic User Experience isn’t about adding more features.</p><p>It’s about changing the <strong>relationship between people and data</strong>.</p><p>Analytics is no longer:</p><ul><li>A dashboard you open</li><li>A report you wait for</li><li>A tool only experts understand</li></ul><p>It becomes:</p><blockquote><strong><em>A conversation you have — wherever decisions are made.</em></strong></blockquote><h3>Conclusion: Explore the OAC AI Ecosystem</h3><p>The <strong>Agentic User Experience in Oracle Analytics Cloud</strong> represents more than a new set of AI features — it marks a fundamental shift in how enterprises interact with data.</p><p>Analytics is no longer something users <em>navigate</em>.<br> It’s something they <strong>talk to</strong>.</p><p>By unifying conversational AI assistants, context-aware AI agents, mobile and embedded experiences, open AI connectivity through MCP, and enterprise-grade governance, Oracle Analytics Cloud delivers a <strong>complete AI analytics ecosystem</strong> — not isolated capabilities.</p><p>This ecosystem enables organizations to:</p><ul><li>Start with intent, not dashboards</li><li>Move from metrics to meaning</li><li>Deliver insights wherever work happens</li><li>Open analytics to AI innovation without compromising trust</li></ul><p>The future of analytics isn’t about building more dashboards.<br> It’s about enabling <strong>better decisions, faster, with confidence</strong>.</p><p>👉 <strong>Explore the OAC AI Ecosystem</strong> — and experience how Oracle Analytics Cloud is redefining enterprise analytics for the agentic era. 🚀</p><h3>📚 Learn More</h3><p>To explore more about Oracle Analytics Cloud:<br>🌐 Visit <a href="https://www.oracle.com/analytics">oracle.com/analytics</a><br>🐦 Follow <a href="https://twitter.com/OracleAnalytics">@OracleAnalytics</a> on Twitter<br>📚 Read the documentation on <a href="https://docs.oracle.com/en/cloud/paas/analytics-cloud/index.html">Oracle Help Center</a></p><h3>🌐Join the Community</h3><p>Have questions or want to share your journey?</p><p>Join the conversation in the <a href="https://community.oracle.com/products/oracleanalytics">Oracle Analytics Community</a>, connect with other practitioners, and get expert insights.</p><h3>📝 Disclaimer</h3><p>The opinions and views shared in this blog are solely my own and do not represent the official stance or policy of any organization I am associated with. This content reflects my personal insights and should be interpreted as such.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=14b503ba4d81" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[From Advisor to Executor: Why Agentic AI Is the Real Shift After GenAI]]></title>
            <link>https://medium.com/@ravishankerb/from-advisor-to-executor-why-agentic-ai-is-the-real-shift-after-genai-844dde5e8b37?source=rss-fdca03ae4c29------2</link>
            <guid isPermaLink="false">https://medium.com/p/844dde5e8b37</guid>
            <category><![CDATA[agentic-ai]]></category>
            <dc:creator><![CDATA[Ravi Shanker B]]></dc:creator>
            <pubDate>Tue, 20 Jan 2026 13:47:37 GMT</pubDate>
            <atom:updated>2026-01-20T13:47:37.183Z</atom:updated>
            <content:encoded><![CDATA[<p>For the last couple of years, <strong>Generative AI (GenAI)</strong> has completely changed how we brainstorm, write, and create. Tools like ChatGPT, Claude, and Midjourney are incredibly good at <strong>thinking with us</strong> — drafting emails, generating ideas, writing scripts, and creating visuals.</p><p>But there’s a growing realization across businesses:</p><blockquote><strong><em>Generating ideas is not the bottleneck. Executing them is.</em></strong></blockquote><p>This is where <strong>Agentic AI</strong> enters the picture — and why it represents a fundamental shift, not just another AI feature.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wYEblNH0qccRG93hiMI2UQ.png" /><figcaption>The Evolution of AI</figcaption></figure><h3>GenAI: Brilliant at Thinking, Weak at Doing</h3><p>Let’s start with what GenAI does well.</p><p>GenAI behaves like a very smart <strong>advisor</strong>:</p><ul><li>It writes emails</li><li>Drafts plans</li><li>Suggests strategies</li><li>Brainstorms ideas</li><li>Produces content</li></ul><p>Ask GenAI to plan a vacation, and it will happily generate a beautiful itinerary with cafés, landmarks, and restaurants.</p><p>But here’s the problem.</p><p>That café might have closed three years ago.<br> That landmark might never have existed.<br> That restaurant might be fully booked for months.</p><p>Suddenly, <strong>the human is stuck doing all the boring work</strong>:</p><ul><li>Verifying details</li><li>Checking calendars</li><li>Booking flights</li><li>Making reservations</li><li>Coordinating logistics</li></ul><p>The roles are flipped.</p><p>The AI does the <em>fun creative thinking</em>, while the human does the <em>tedious robotic execution</em>.</p><h3>Agentic AI: From Ideas to Actions</h3><p>Agentic AI changes this dynamic completely.</p><p>Instead of being an advisor, <strong>Agentic AI behaves like an assistant — or more accurately, a digital employee</strong>.</p><blockquote><strong><em>GenAI helps you think. Agentic AI helps you execute.</em></strong></blockquote><p>Agentic AI doesn’t stop at generating output. It:</p><ul><li>Takes actions</li><li>Uses tools</li><li>Follows workflows</li><li>Completes tasks end-to-end</li></ul><p>It’s the difference between <em>suggesting</em> what to do and <em>actually doing it for you</em>.</p><h3>A Simple Example: Travel Planning</h3><p><strong>With GenAI</strong></p><ul><li>Creates a detailed itinerary</li><li>Suggests places to visit</li><li>Recommends restaurants</li></ul><p><strong>With Agentic AI</strong></p><ul><li>Checks your calendar</li><li>Calculates when you need to leave</li><li>Orders an Uber using your business card</li><li>Notifies you when it’s time to go</li></ul><p>Same intent. Completely different outcome.</p><h3>Another Example: Meeting Scheduling</h3><p><strong>GenAI</strong></p><ul><li>Drafts a polite email asking for availability</li></ul><p><strong>Agentic AI</strong></p><ul><li>Checks everyone’s calendars</li><li>Finds a common slot</li><li>Books the meeting room or virtual link</li><li>Sends calendar invites</li><li>Attaches the agenda</li></ul><p>You don’t follow up.<br> You don’t coordinate.<br> You just ask — and it gets done.</p><h3>Conclusion</h3><p>The real breakthrough in AI is no longer about producing better text, images, or ideas. It’s about <strong>execution</strong>.</p><p>Generative AI has proven its value as an advisor — helping us think faster, create more, and explore possibilities. But in most businesses, thinking is not the bottleneck. <strong>Doing the work is</strong>. Coordination, follow-ups, system updates, and repetitive operational tasks continue to consume human time and slow organizations down.</p><p>Agentic AI addresses this gap by shifting AI from a passive helper to an active participant. By connecting to real tools, operating with permission, and learning from outcomes, Agentic AI functions as a <strong>digital employee</strong> — one that completes tasks end-to-end rather than stopping at recommendations.</p><p>This shift does not eliminate the need for humans. Instead, it <strong>moves humans up the value chain</strong>, allowing them to focus on judgment, strategy, creativity, and exception handling, while AI takes on the robotic, repeatable work.</p><p>The organizations that win with AI will not be the ones that generate the most content — but the ones that <strong>execute faster, with fewer handoffs and less friction</strong>.</p><p>In simple terms:</p><blockquote><strong><em>GenAI helps you think. Agentic AI helps you execute.</em></strong></blockquote><p>And in a world where speed and efficiency define competitive advantage, that difference changes everything.</p><h3>Disclaimer</h3><p>The opinions and views shared in this blog are solely my own and do not represent the official stance or policy of any organization I am associated with. This content reflects my personal insights and should be interpreted as such.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=844dde5e8b37" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Multi-Tool AI Agent on Oracle Cloud: A Complete Guide Using OCI ADK, RAG, Custom Tools &…]]></title>
            <link>https://medium.com/@ravishankerb/building-a-multi-tool-ai-agent-on-oracle-cloud-a-complete-guide-using-oci-adk-rag-custom-tools-c030464a5fb1?source=rss-fdca03ae4c29------2</link>
            <guid isPermaLink="false">https://medium.com/p/c030464a5fb1</guid>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[mcp-server]]></category>
            <dc:creator><![CDATA[Ravi Shanker B]]></dc:creator>
            <pubDate>Thu, 13 Nov 2025 16:27:25 GMT</pubDate>
            <atom:updated>2025-11-13T16:27:25.650Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building a Multi-Tool AI Agent on Oracle Cloud: A Complete Guide Using OCI ADK, RAG, Custom Tools &amp; MCP</h3><p>A practical, end-to-end tutorial for creating enterprise-grade AI agents with real-world capabilities.</p><h3>🌟 Introduction</h3><p>Generative AI is rapidly expanding beyond simple chatbots. Today’s systems require <strong>true agentic capabilities</strong> — the ability to:</p><ul><li>retrieve internal documents</li><li>execute custom functions</li><li>reason through workflows</li><li>interact with external tools and APIs</li><li>access real-time data</li><li>orchestrate multiple steps autonomously</li></ul><p>Oracle Cloud Infrastructure (OCI) enables this through the <strong>Agent Development Kit (ADK)</strong> and the <strong>Generative AI Agent Service</strong>.</p><p>This blog explains the ENTIRE flow with deep detail:</p><p>✔ what each piece of Python code does<br> ✔ why each step is required<br> ✔ how the agent behaves internally<br> ✔ how tools (RAG, custom, MCP) are mounted<br> ✔ how tool routing works<br> ✔ how OCI executes the agent in the cloud</p><p>This is the <strong>foundation</strong> for building enterprise copilots, RAG search assistants, automation agents, and AI-powered workflows on OCI.</p><h3>🎯 What You Will Build</h3><p>By following this guide, you will create an OCI AI Agent that can:</p><h3>✔ Perform RAG over an OCI Knowledge Base</h3><p>Grounding all answers in real documentation.</p><h3>✔ Execute custom Python-based logic</h3><p>Using @tool function calling.</p><h3>✔ Call external real-world tools via MCP</h3><p>Using the Airbnb MCP server for live availability queries.</p><h3>✔ Automatically choose the correct tool</h3><p>The LLM decides which tool to call for each question.</p><h3>✔ Run fully inside an OCI Generative AI Agent Endpoint</h3><p>Production-grade, scalable, secure.</p><p>This tutorial is written to be <strong>ultra clear</strong> — suitable for internal training, onboarding, or customer demos.</p><h3>🧠 Agent Architecture (Simple Visual)</h3><pre>User → LLM → Tool Decision<br>                ↙      ↓       ↘<br>          Custom Python   RAG Tool   MCP External Tool<br>                ↓            ↓            ↓<br>            Business      Vector KB     Airbnb Search<br>             Logic        Retrieval       Results<br>                ↘          ↓            ↙<br>                 ←←←— LLM Synthesizes Final Answer</pre><h3>🧩 STEP 1 — Import Required Libraries</h3><h3>With full syntax explanation + why we need each import</h3><h3>✓ Full Code</h3><pre>import asyncio  <br>from typing import Any, Dict  </pre><pre>from oci.addons.adk import Agent, AgentClient, tool  <br>from oci.addons.adk.tool.prebuilt import AgenticRagTool  </pre><pre>from oci.addons.adk.mcp import MCPClientStdio  <br>from mcp.client.stdio import StdioServerParameters  </pre><pre>import nest_asyncio  <br>nest_asyncio.apply()</pre><h3>🔍 DETAILED EXPLANATION: WHAT THIS STEP DOES</h3><h3>1️⃣ asyncio is required because:</h3><ul><li>ADK runs asynchronously</li><li>MCP servers run as async subprocesses</li><li>RAG calls use async I/O</li><li>Notebook environment needs async loop</li></ul><h3>2️⃣ typing.Any, Dict provide type hints</h3><p>Important for clean Python tool definitions.</p><h3>3️⃣ Agent, AgentClient, tool</h3><p>These are core ADK classes.</p><ul><li>Agent → represents the AI agent</li><li>AgentClient → sends requests to OCI cloud agent</li><li>tool → decorator that turns functions into callable AI tools</li></ul><h3>4️⃣ AgenticRagTool</h3><p>A prebuilt ADK tool for RAG over OCI Knowledge Base.</p><h3>5️⃣ MCPClientStdio</h3><p>Allows your agent to launch an MCP server in a subprocess.</p><h3>6️⃣ StdioServerParameters</h3><p>Defines the shell command used to launch that MCP tool.</p><h3>7️⃣ nest_asyncio.apply()</h3><p>Jupyter notebooks do NOT allow nested async loops.<br> This line patches Python to let async code run smoothly.</p><h3>📘 Syntax Breakdown</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/747/1*N5MH_N6g4kvRR9ymzytb5w.png" /></figure><h3>🧩 STEP 2 — Define Agent Variables</h3><h3>Agent Endpoint OCID, Knowledge Base OCID, and Instructions</h3><h3>✓ Full Code</h3><pre>agent_endpoint = &quot;ocid1.genaiagentendpoint.…&quot;<br>knowledge_id   = &quot;ocid1.genaiagentknowledgebase.…&quot;</pre><pre>instructions_agent_core = &quot;&quot;&quot;<br>You are an OCI Agent.<br>Use RAG tool to answer Oracle sales and documentation-related questions.<br>Use check_season for weather-related questions.<br>Use mcp_tools for Airbnb and external availability queries.<br>&quot;&quot;&quot;</pre><h3>🔍 Why This Step Is Needed</h3><h3>✔ agent_endpoint</h3><p>The cloud location of your agent in OCI.<br> Your tools are synced INTO this endpoint.</p><h3>✔ knowledge_id</h3><p>Identifies your OCI Knowledge Base.<br> The RAG tool will connect to this.</p><h3>✔ instructions_agent_core</h3><p>This is the “System Prompt” of the agent.</p><p>It defines:</p><ul><li>personality</li><li>tool selection guidance</li><li>behavior</li><li>allowed capabilities</li></ul><p>The LLM uses these instructions to decide:</p><ul><li>which tool to call</li><li>when to call the tool</li><li>how to phrase responses</li></ul><h3>📘 Syntax Breakdown</h3><p>agent_endpoint = &quot;...&quot; The OCID of your agent</p><p>knowledge_id = &quot;...&quot; The OCID of the Knowledge Base</p><p>&quot;&quot;&quot; ... &quot;&quot;&quot; Multi-line instructions for the LLM</p><h3>🧩 STEP 3 — Create a Custom Python Tool</h3><h3>Function calling with @tool decorator</h3><h3>✓ Full Code</h3><pre>@tool(description=&quot;Get the season for a location&quot;)<br>def check_season(location:str) -&gt; Dict[str, Any]:<br>    data = {<br>        &quot;India&quot;:&quot;Monsoon&quot;,<br>        &quot;USA&quot;:&quot;Summer&quot;,<br>        &quot;Europe&quot;:&quot;Summer&quot;,<br>        &quot;Brazil&quot;:&quot;Winter&quot;<br>    }<br>    try:<br>        return {&quot;location&quot;: location, &quot;season&quot;: data[location]}<br>    except:<br>        return {&quot;location&quot;: &quot;Unknown&quot;, &quot;season&quot;: &quot;Unknown&quot;}</pre><h3>🔍 Why This Step Is Needed</h3><p>This tool demonstrates:</p><ul><li>Python function calling</li><li>deterministic business logic</li><li>rule-based, safe execution</li><li>zero hallucination behavior</li></ul><p>When the user asks:</p><blockquote><em>“What is the season in Brazil?”</em></blockquote><p>The LLM will choose the <strong>check_season</strong> tool.</p><h3>📘 Syntax Breakdown</h3><p>@tool(...) Registers Python function as an ADK tool</p><p>location: str Input parameter</p><p>-&gt; Dict[str, Any] Output type</p><p>data = {...} Static lookup table</p><p>return {...} Structured response to LLM</p><h3>🧩 STEP 4 — Define the External MCP Tool (Airbnb)</h3><h3>Real-world data access</h3><h3>✓ Full Code</h3><pre>bnb_mcp_params = StdioServerParameters(<br>    command=&quot;npx&quot;,<br>    args=[&quot;-y&quot; ,&quot;@openbnb/mcp-server-airbnb&quot;, &quot;--ignore-robots-txt&quot;],<br>)</pre><h3>🔍 Why This Step Is Needed</h3><p>MCP (<strong>Model Context Protocol</strong>) allows the agent to connect to:</p><ul><li>external websites</li><li>APIs</li><li>search engines</li><li>databases</li><li>cloud tools</li></ul><p>This example uses <strong>Airbnb availability</strong>.</p><p>The tool performs:</p><p>✔ Search<br> ✔ Price lookup<br> ✔ Availability lookup</p><p>All from within ADK.</p><h3>📘 Syntax Breakdown</h3><p>Syntax Explanation command=&quot;npx&quot; Runs a Node-based MCP server args=[...] Package name and flags @openbnb/mcp-server-airbnb The Airbnb MCP package</p><h3>🧩 STEP 5 — Create the RAG Tool (Important!)</h3><h3>Document-grounded answers from OCI Knowledge Base</h3><h3>✓ Full Code</h3><pre>core_rag_tool = AgenticRagTool(<br>        name=&quot;oci_hol_rag_tool&quot;,<br>        description=&quot;RAG tool to answer Oracle Linux, vector search and SQL questions&quot;,<br>        knowledge_base_ids=[knowledge_id],<br>)</pre><h3>🔍 Why This Step Is CRITICAL</h3><p>RAG is the <strong>enterprise backbone</strong> of AI:</p><ul><li>eliminates hallucinations</li><li>retrieves internal documents</li><li>grounds answers in reality</li><li>ensures correctness</li><li>provides enterprise context</li></ul><p>This tool performs:</p><p>1️⃣ embed(query)<br> 2️⃣ vector similarity search<br> 3️⃣ retrieve relevant chunks<br> 4️⃣ feed to LLM</p><p>This is how enterprise copilots work.</p><h3>📘 Syntax Breakdown</h3><p>Syntax Meaning AgenticRagTool( Creates RAG tool name=&quot;...&quot; Tool name shown to agent description=&quot;...&quot; Helps LLM decide when to call it knowledge_base_ids=[...] Connects to OCI KB</p><h3>🧩 STEP 6 — Define the Agent Handler (Orchestration Logic)</h3><h3>✓ Full Code</h3><pre>async def agent_handler(prompt:str=&quot;&quot;,init_run:bool=False,delete_session:bool=True,session_id:str=None):<br>     async with (<br>            MCPClientStdio(params=bnb_mcp_params,name=&quot;bnb mcp&quot;) as bnb_client):<br>        <br>        client = AgentClient(<br>              auth_type=&quot;resource_principal&quot;,<br>              profile=&quot;DEFAULT&quot;,<br>              region=&quot;us-chicago-1&quot;,<br>        )</pre><pre>        agent_core = Agent(<br>            client=client,<br>            agent_endpoint_id=agent_endpoint,<br>            instructions=instructions_agent_core,<br>            tools=[check_season, core_rag_tool, await bnb_client.as_toolkit()]<br>        )</pre><pre>        if init_run:<br>            agent_core.setup()</pre><pre>        if session_id is not None:<br>            response = await agent_core.run_async(prompt,delete_session=delete_session,session_id=session_id)<br>        else:<br>            response = await agent_core.run_async(prompt,delete_session=delete_session)</pre><pre>        return response</pre><h3>🔍 Why This Step Is Needed</h3><p>This function:</p><ul><li>launches MCP</li><li>connects to OCI</li><li>assembles tools</li><li>binds instructions</li><li>uploads tool metadata (on setup)</li><li>executes agent queries</li><li>manages sessions</li></ul><p>This is the <strong>brainstem</strong> of your AI agent.</p><h3>📘 Syntax Breakdown</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/630/1*pc4GcPPUtwhpVgRmR0ogBQ.png" /></figure><h3>🧩 STEP 7 — Run Setup (First-Time Tool Sync)</h3><h3>✓ Full Code</h3><pre>question=&quot;give availability of room at The Palazzo at The Venetian Resort on 1st Dec 2025&quot;<br>response = asyncio.run(agent_handler(prompt=question, init_run=True)) <br>response.pretty_print()</pre><h3>🔍 Why This Step Is Needed</h3><p>init_run=True:</p><ul><li>registers RAG tool</li><li>registers custom Python tool</li><li>registers MCP tool</li><li>stores instructions</li><li>validates everything inside the OCI agent</li></ul><p>This is a <strong>one-time sync</strong>.</p><p>All future calls use:</p><pre>response = asyncio.run(agent_handler(&quot;Find Airbnbs in Las Vegas&quot;))</pre><h3>DEMO: Try These Prompts</h3><h3>🔹 Custom Tool</h3><p><strong>“What season is it in India?”</strong></p><h3>🔹 RAG Tool</h3><p><strong>“Explain Oracle Vector Search.”</strong></p><h3>🔹 MCP Tool</h3><p><strong>“Find Airbnbs in Las Vegas on Dec 1, 2025.”</strong></p><p>The agent automatically selects the correct tool.</p><h3>🚀 What You Can Achieve With This Architecture</h3><p>With RAG + Python tools + MCP + OCI agent endpoint:</p><h3>✔ Conversational Analytics</h3><h3>✔ Enterprise Knowledge Assistants</h3><h3>✔ IT troubleshooting copilots</h3><h3>✔ Policy/Compliance assistants</h3><h3>✔ Multi-tool workflow automation</h3><h3>✔ External API-integrated bots</h3><h3>✔ Customer/employee support agents</h3><h3>✔ Cross-system orchestrators</h3><p>This is the future of enterprise AI.</p><h3>🏁 Conclusion</h3><p>In this detailed guide, you learned:</p><p>✔ How to import and prepare the ADK environment<br> ✔ How to define agent instructions &amp; OCIDs<br> ✔ How to create Python tools<br> ✔ How to integrate external tools with MCP<br> ✔ How to create a RAG tool linked to OCI Knowledge Base<br> ✔ How to assemble and run an agent<br> ✔ How tool routing works internally<br> ✔ How to demo and extend this architecture</p><p>This is the <strong>essential pattern</strong> for building powerful AI agents on OCI.</p><p><strong>Disclaimer:</strong><em> The opinions and views shared in this blog are solely my own and do not represent the official stance or policy of any organization I am associated with. This content reflects my personal insights and should be interpreted as such.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c030464a5fb1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Setting Up the OCI Generative AI Agents SQL Tool — End-to-End Workshop]]></title>
            <link>https://medium.com/@ravishankerb/setting-up-the-oci-generative-ai-agents-sql-tool-end-to-end-workshop-0965df24adae?source=rss-fdca03ae4c29------2</link>
            <guid isPermaLink="false">https://medium.com/p/0965df24adae</guid>
            <category><![CDATA[sql-tool]]></category>
            <category><![CDATA[oci]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Ravi Shanker B]]></dc:creator>
            <pubDate>Thu, 13 Nov 2025 05:21:52 GMT</pubDate>
            <atom:updated>2025-11-13T05:32:01.461Z</atom:updated>
            <content:encoded><![CDATA[<h3>🚀 Setting Up the OCI Generative AI Agents SQL Tool — End-to-End Workshop</h3><p>Bridge natural-language questions and live Oracle SQL analytics with the SQL Tool inside OCI Generative AI Agents.</p><h3>🧭 Introduction</h3><p>The <strong>OCI Generative AI Agents SQL Tool</strong> lets your agent turn plain-English requests like</p><blockquote><em>“Show top 5 products by sales in Q1 2024”<br> into optimized </em><strong><em>Oracle SQL</em></strong><em> queries that run directly against your database — returning answers conversationally.</em></blockquote><p>This lab walks you through every step:<br> creating an Autonomous Database, securing credentials in a Vault, configuring a Database Connection, building a SQL Tool, and testing real queries.</p><p><strong>Estimated time:</strong> ≈ 45 minutes</p><h3>🧱 Task 1 — Database Connectivity Prerequisites</h3><p>Before configuring the SQL Tool, confirm these three items are ready:</p><ol><li>An <strong>Autonomous Database (ADB)</strong> to run SQL.</li><li>A <strong>Vault</strong> to store passwords securely.</li><li>A <strong>Database Connection</strong> registered with Generative AI Agents.</li></ol><h3>🧩 Task 1.1 — Create an Autonomous Database</h3><p>If you already have an <strong>ADW</strong> instance containing your schema (for example, SH, HR, or a custom schema), skip this step and use that existing database.</p><p>Otherwise, to create a new ADW:</p><ol><li>Open <strong>Oracle Database → Autonomous Database → Create Autonomous Database</strong>.</li><li>Fill in:</li></ol><ul><li><em>Compartment:</em> same as your agent</li><li><em>Display Name:</em> OAC_GenAI_ADB</li><li><em>Database Name:</em> GENDATA</li><li><em>Workload Type:</em> Data Warehouse</li><li><em>Administrator User:</em> ADMIN with a strong password</li></ul><p><strong>Network Access:</strong></p><ul><li>For labs/testing → <em>Allow secure access from everywhere</em></li><li>For production → <em>Private Endpoint</em> with proper VCN setup</li></ul><p>Click <strong>Create Autonomous Database</strong> and wait until <strong>Status = Available</strong></p><h3>🧩 Task 1.2 — Create a Vault for Credential Storage</h3><ol><li>Go to <strong>Identity &amp; Security → Vault → Create Vault</strong>.</li></ol><ul><li><em>Name:</em> GenAI_Vault</li><li><em>Compartment:</em> same as your agent</li></ul><p>Inside the vault:</p><ul><li>Create a <strong>Master Encryption Key</strong> named GenAI_Key.</li><li>Then create a <strong>Secret</strong>:</li><li><em>Name:</em> ADB_Agent_Password</li><li><em>Secret Type:</em> Plain Text</li><li><em>Content:</em> your ADB password</li><li><em>Encryption Key:</em> GenAI_Key</li></ul><p>Keep the <strong>Secret OCID</strong> handy — you’ll reference it later.</p><h3>🧩 Task 1.3 — Create a Database Connection for Generative AI Agents</h3><ol><li>Go to <strong>Analytics &amp; AI → Generative AI Agents → Database Connections → Create Connection</strong>.</li><li>Fill in basic details:</li></ol><ul><li><em>Name:</em> ADW_SH_Connection</li><li><em>Database Type:</em> Oracle Autonomous Database</li><li><em>Database OCID:</em> select the ADB created above</li></ul><p>Under <strong>Authentication:</strong></p><ul><li><em>Database User:</em> AGENT_USER (read-only)</li><li><em>Secret Password:</em> choose ADB_Agent_Password from the Vault</li></ul><p><strong>Wallet:</strong> Upload wallet_&lt;DBNAME&gt;.zip and provide the wallet password if prompted.</p><p>Click <strong>Test Connection</strong> → expect ✅ <em>Connection Successful</em>.</p><p>Click <strong>Create Connection</strong>.</p><h3>✅ Verification</h3><p><strong>All three should show:</strong></p><ul><li>ADB = <em>Available</em></li><li>Vault + Secret = <em>Active</em></li><li>DB Connection = <em>Test Passed</em></li></ul><h3>🧠 Task 2 — Configure the SQL Tool</h3><p>Now create the SQL Tool inside your Agent.</p><h3>Step 1 — Open Your Agent</h3><p>Navigate to <strong>Analytics &amp; AI → Generative AI Agents → Select Agent → Tools → Create Tool</strong>,<br> and choose <strong>Tool Type = SQL</strong>.</p><h3>Step 2 — Basic Information</h3><ul><li><strong>Tool Name:</strong> ProductQuerySQLTool</li><li><strong>Description:</strong> Handles product and sales queries for the SH schema.</li></ul><h3>Step 3 — Schema and Metadata</h3><p>Select <strong>Inline</strong>, then paste representative DDL:</p><pre>CREATE TABLE &quot;sh&quot;.&quot;products&quot;(<br>  &quot;PROD_ID&quot; NUMBER(6),<br>  &quot;PROD_NAME&quot; VARCHAR2(50),<br>  &quot;PROD_CATEGORY&quot; VARCHAR2(50),<br>  &quot;PROD_LIST_PRICE&quot; NUMBER(8,2)<br>);<br><br>CREATE TABLE &quot;sh&quot;.&quot;sales&quot;(<br>  &quot;PROD_ID&quot; NUMBER,<br>  &quot;CUST_ID&quot; NUMBER,<br>  &quot;TIME_ID&quot; DATE,<br>  &quot;CHANNEL_ID&quot; NUMBER,<br>  &quot;PROMO_ID&quot; NUMBER,<br>  &quot;QUANTITY_SOLD&quot; NUMBER(10,2),<br>  &quot;AMOUNT_SOLD&quot; NUMBER(10,2)<br>);<br><br>CREATE TABLE &quot;sh&quot;.&quot;customers&quot;(<br>  &quot;CUST_ID&quot; NUMBER,<br>  &quot;CUST_FIRST_NAME&quot; VARCHAR2(50),<br>  &quot;CUST_LAST_NAME&quot; VARCHAR2(50),<br>  &quot;CUST_CITY&quot; VARCHAR2(100)<br>);<br><br>CREATE TABLE &quot;sh&quot;.&quot;times&quot;(<br>  &quot;TIME_ID&quot; DATE,<br>  &quot;CALENDAR_YEAR&quot; NUMBER(4),<br>  &quot;CALENDAR_MONTH_DESC&quot; VARCHAR2(20)<br>);</pre><h3>Step 4 — In-Context Learning Examples</h3><p>Choose <strong>Inline</strong> for <em>In-context learning examples</em>.</p><p>These examples help the model learn the query intent and SQL syntax style.</p><pre>Question: What is the product category for product Y Box?<br>Oracle SQL: SELECT PROD_CATEGORY FROM sh.products WHERE PROD_NAME = &#39;Y Box&#39;;<br><br>Question: Which product categories generated the highest total sales?<br>Oracle SQL:<br>SELECT p.PROD_CATEGORY, SUM(s.AMOUNT_SOLD) AS TOTAL_SALES<br>FROM sh.sales s<br>JOIN sh.products p ON s.PROD_ID = p.PROD_ID<br>GROUP BY p.PROD_CATEGORY<br>ORDER BY TOTAL_SALES DESC;<br><br>Question: What are the top 5 customers by total purchase value?<br>Oracle SQL:<br>SELECT c.CUST_FIRST_NAME || &#39; &#39; || c.CUST_LAST_NAME AS CUSTOMER,<br>       SUM(s.AMOUNT_SOLD) AS TOTAL_PURCHASE<br>FROM sh.sales s<br>JOIN sh.customers c ON s.CUST_ID = c.CUST_ID<br>GROUP BY c.CUST_FIRST_NAME, c.CUST_LAST_NAME<br>ORDER BY TOTAL_PURCHASE DESC FETCH FIRST 5 ROWS ONLY;<br><br>Question: Show monthly sales trend for 2024.<br>Oracle SQL:<br>SELECT t.CALENDAR_MONTH_DESC, SUM(s.AMOUNT_SOLD) AS MONTHLY_TOTAL<br>FROM sh.sales s<br>JOIN sh.times t ON s.TIME_ID = t.TIME_ID<br>WHERE t.CALENDAR_YEAR = 2024<br>GROUP BY t.CALENDAR_MONTH_DESC<br>ORDER BY t.CALENDAR_MONTH_DESC;</pre><h3>Step 5 — Describe Tables and Relationships</h3><p>Select <strong>Inline</strong> for <em>Description of tables and columns</em>.<br> This helps the model infer joins and column semantics.</p><pre>Description of the important tables in the schema:<br><br>sh.products – Contains details about products such as names, categories, and list prices.  <br>sh.sales – Records transactions for products sold to customers at specific times and channels.  <br>sh.customers – Holds customer demographic and location details.  <br>sh.times – Contains time dimension details for each transaction.<br><br>Description of the important columns of the tables in the schema:<br><br>sh.products table  <br>• PROD_ID – Primary key for products.  <br>• PROD_CATEGORY – Product category name.  <br>• PROD_LIST_PRICE – List price of each product.<br><br>sh.sales table  <br>• PROD_ID – Foreign key referencing sh.products.PROD_ID.  <br>• CUST_ID – Foreign key referencing sh.customers.CUST_ID.  <br>• TIME_ID – Foreign key referencing sh.times.TIME_ID.  <br>• QUANTITY_SOLD – Number of units sold.  <br>• AMOUNT_SOLD – Total revenue from the transaction.<br><br>sh.customers table  <br>• CUST_ID – Primary key for customers.  <br>• CUST_CITY – City of the customer.<br><br>sh.times table  <br>• TIME_ID – Primary key for time periods.  <br>• CALENDAR_YEAR – Year of the sale.  <br>• CALENDAR_MONTH_DESC – Month of the sale.</pre><p><em>Tip:</em> Always mention <strong>foreign key relationships</strong> (e.g., sh.sales.PROD_ID → sh.products.PROD_ID) so the model knows how to build JOINs automatically.</p><h3>Step 6 — Model and Connection Settings</h3><ul><li><strong>Model Size:</strong> Small (faster responses)</li><li><strong>Dialect:</strong> Oracle SQL</li><li><strong>Database Connection:</strong> ADW_SH_Connection (from Task 1.3)</li></ul><h3>Step 7 — Enable Execution and Add Instructions</h3><ol><li>Enable <strong>SQL Execution</strong></li><li>Enable <strong>Self-Correction</strong></li></ol><p><strong>Custom Instructions:</strong></p><pre>Always try all possible query variations before returning the answer.<br>Always use aggregators such as COUNT, SUM, AVG, MIN, and MAX in Oracle SQL queries containing GROUP BY.<br>Prefer joins using explicit JOIN syntax instead of subqueries.<br>Return only summarized data when the question includes phrases like &quot;total&quot;, &quot;average&quot;, or &quot;top&quot;.</pre><h3>Step 8 — Create and Activate the Tool</h3><p>Click <strong>Create</strong> and wait until <strong>Status = Active ✅</strong></p><h3>🧪 Task 3 — Test Your SQL Tool in the Agent Playground</h3><p>When the tool is active, open the <strong>Agent Playground</strong> and test with real questions.</p><h3>💬 Prompt 1 — “Show total sales by product category in 2024.”</h3><p><strong>Expected Behavior</strong></p><ul><li>Joins sh.sales, sh.products, and sh.times.</li><li>Filters CALENDAR_YEAR = 2024.</li><li>Groups by PROD_CATEGORY and sums AMOUNT_SOLD.</li></ul><p><strong>Sample SQL</strong></p><pre>SELECT p.PROD_CATEGORY, SUM(s.AMOUNT_SOLD) AS TOTAL_SALES<br>FROM sh.sales s<br>JOIN sh.products p ON s.PROD_ID = p.PROD_ID<br>JOIN sh.times t ON s.TIME_ID = t.TIME_ID<br>WHERE t.CALENDAR_YEAR = 2024<br>GROUP BY p.PROD_CATEGORY<br>ORDER BY TOTAL_SALES DESC;</pre><h3>💬 Prompt 2 — “Top 5 customers by spend.”</h3><p><strong>Expected Behavior</strong></p><ul><li>Joins sh.sales and sh.customers.</li><li>Aggregates AMOUNT_SOLD per customer.</li><li>Sorts and returns top 5.</li></ul><p><strong>Sample SQL</strong></p><pre>SELECT c.CUST_FIRST_NAME || &#39; &#39; || c.CUST_LAST_NAME AS CUSTOMER,<br>       SUM(s.AMOUNT_SOLD) AS TOTAL_SPEND<br>FROM sh.sales s<br>JOIN sh.customers c ON s.CUST_ID = c.CUST_ID<br>GROUP BY c.CUST_FIRST_NAME, c.CUST_LAST_NAME<br>ORDER BY TOTAL_SPEND DESC<br>FETCH FIRST 5 ROWS ONLY;</pre><h3>💬 Prompt 3 — “Monthly sales trend for 2023.”</h3><p><strong>Expected Behavior</strong></p><ul><li>Joins sh.sales and sh.times.</li><li>Filters CALENDAR_YEAR = 2023.</li><li>Groups by month and totals sales.</li></ul><p><strong>Sample SQL</strong></p><pre>SELECT t.CALENDAR_MONTH_DESC, SUM(s.AMOUNT_SOLD) AS MONTHLY_TOTAL<br>FROM sh.sales s<br>JOIN sh.times t ON s.TIME_ID = t.TIME_ID<br>WHERE t.CALENDAR_YEAR = 2023<br>GROUP BY t.CALENDAR_MONTH_DESC<br>ORDER BY MONTHLY_TOTAL DESC;</pre><h3>✅ Tip</h3><p>If a query fails or returns empty results, open <strong>Execution Logs</strong> in the Playground.<br> Adjust your <em>Descriptions</em> or <em>In-Context Examples</em> to refine SQL generation accuracy.</p><h3>🧩 Final Checklist</h3><p>✔️ Autonomous Database created<br> ✔️ Vault and secret active<br> ✔️ Database Connection tested<br> ✔️ SQL Tool active and validated<br> ✔️ Queries run successfully in Playground</p><h3>🌐 Conclusion</h3><p>The <strong>OCI Generative AI Agents SQL Tool</strong> empowers AI agents to directly query live Oracle databases using natural language — no manual SQL required.<br> With a proper schema, relationships, and context examples, you can transform complex analytical queries into simple English questions.</p><p>Once configured, your agents become powerful data analysts — capable of translating human questions into optimized Oracle SQL in real time.</p><h3>🌐 Resources and Next Steps</h3><ul><li><a href="https://docs.public.content.oci.oraclecloud.com/en-us/iaas/Content/generative-ai-agents/sqltool-add.htm">Oracle Docs — Create SQL Tool in Generative AI Agents</a></li><li><a href="https://docs.oracle.com/en-us/iaas/autonomous-database/">OCI Autonomous Database Documentation</a></li><li><a href="https://docs.oracle.com/en-us/iaas/Content/KeyManagement/Concepts/keyoverview.htm">OCI Vault and Key Management Docs</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0965df24adae" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Validating the OCI Agent Development Kit (ADK) Environment in an OCI Data Science Notebook]]></title>
            <link>https://medium.com/@ravishankerb/validating-the-oci-agent-development-kit-adk-environment-in-an-oci-data-science-notebook-bea197d12c82?source=rss-fdca03ae4c29------2</link>
            <guid isPermaLink="false">https://medium.com/p/bea197d12c82</guid>
            <dc:creator><![CDATA[Ravi Shanker B]]></dc:creator>
            <pubDate>Wed, 12 Nov 2025 05:00:01 GMT</pubDate>
            <atom:updated>2025-11-12T05:14:17.137Z</atom:updated>
            <content:encoded><![CDATA[<p><em>How to prepare and verify your OCI environment before building Generative AI Agents with ADK.</em></p><h3>🚀 Overview</h3><p>Before building your first <strong>OCI Generative AI Agent</strong>, it’s important to confirm that your environment — especially your <strong>Data Science Notebook session</strong> — can securely access all required OCI services.</p><p>This guide walks through the exact sequence of tests used to validate connectivity, IAM configuration, and package readiness for the <strong>OCI Agent Development Kit (ADK)</strong>.<br> It also includes troubleshooting notes from a real setup session.</p><h3>🧩 1️⃣ Environment Setup &amp; Objective</h3><p>The objective was to configure and validate an <strong>OCI Data Science Notebook</strong> to build and run <strong>OCI Generative AI Agents</strong> using the <strong>Agent Development Kit (ADK)</strong>.</p><p>Verified that the notebook session could access:</p><ul><li>Object Storage</li><li>Generative AI Agents</li><li>Vault / Key Management</li><li>Database tools</li></ul><p>All authenticated through <strong>resource principals</strong>, without using local API keys.</p><h3>2️⃣ Key OCI Resources</h3><p>Resource Purpose <strong>Data Science Notebook</strong> ADK runtime for agent scripts <strong>Dynamic Group</strong> Authorizes the notebook’s resource principal <strong>IAM Policies</strong> Grants service-level access (Object Storage, Vault, etc.) <strong>Object Storage Buckets</strong> Store PDFs for RAG ingestion <strong>Compartment</strong> Logical boundary for all components</p><h3>✅ 3️⃣ Validation Tests</h3><h3>Test 1 — ADK Installation &amp; Import</h3><pre>!pip install &quot;oci[adk]&quot; -q<br>from oci.addons import adk<br>adk.__name__</pre><p><strong>Expected:</strong> &#39;oci.addons.adk&#39;<br> ✅ Confirms the ADK library is installed and accessible.</p><h3>3.1 ADK Installation Troubleshooting</h3><h4>🔍 Initial Symptom</h4><p>The first import failed with:</p><pre>ModuleNotFoundError: No module named &#39;docstring_parser&#39;</pre><h4>🧠 Root Cause</h4><p>The <strong>docstring_parser</strong> dependency wasn’t included in the default OCI Data Science image.</p><h4>🧰 Fix</h4><p>Install the missing dependency manually:</p><pre>!pip install docstring-parser -q</pre><p>Re-run:</p><pre>from oci.addons import adk<br>adk.__name__</pre><p>✅ Result:</p><pre>&#39;oci.addons.adk&#39;</pre><h4>⚙️ Recommended Full Install</h4><p>To cover all ADK dependencies:</p><pre>!pip install &quot;oci[adk]&quot; docstring-parser pydantic nest_asyncio -q</pre><h4>💡 Lesson Learned</h4><blockquote><em>If the ADK import fails, install </em><em>docstring-parser, </em><em>pydantic, and </em><em>nest_asyncio.<br> These are lightweight dependencies required for tool registration and async agent orchestration.</em></blockquote><h3>Test 2 — Verify Resource Principal Signer</h3><pre>from oci.auth import signers<br>signer = signers.get_resource_principals_signer()<br>print(&quot;✅ Signer:&quot;, signer.tenancy_id, signer.region)</pre><p>✅ Confirms authentication via OCI’s built-in identity.</p><h3>Test 3 — Validate IAM / Identity Access</h3><pre>import oci<br>identity = oci.identity.IdentityClient(config={}, signer=signer)<br>resp = identity.list_compartments(signer.tenancy_id)<br>print(f&quot;✅ Found {len(resp.data)} compartments&quot;)</pre><p>✅ Confirms the dynamic group and policies allow API calls.</p><h3>Test 4 — Verify Object Storage Namespace</h3><pre>object_storage = oci.object_storage.ObjectStorageClient(config={}, signer=signer)<br>ns = object_storage.get_namespace().data<br>print(&quot;✅ Namespace:&quot;, ns)</pre><p>✅ Namespace successfully resolved.</p><h3>Test 5 — List Buckets in Notebook Compartment</h3><pre>compartment_id = &quot;&lt;your-compartment-ocid&gt;&quot;<br>buckets = object_storage.list_buckets(namespace_name=ns, compartment_id=compartment_id).data<br>for b in buckets:<br>    print(f&quot;🪣 {b.name}&quot;)</pre><p>✅ Buckets listed successfully — confirms Object Storage read access.</p><h3>🧩 Test 6 — Upload Object (Write Access)</h3><p>To verify write permissions for your Object Storage bucket, upload a small text file:</p><pre>from io import BytesIO<br>bucket_name = &quot;&lt;your-bucket-name&gt;&quot;<br>object_storage.put_object(ns, bucket_name, &quot;adk_test_upload.txt&quot;, BytesIO(b&quot;ADK test upload&quot;))</pre><p>✅ <strong>Result:</strong><br> The command returns an oci.response.Response object — confirming that the notebook’s resource principal has write access to Object Storage.<br> This capability is required later when the RAG tool uploads knowledge-base PDFs.</p><h3>🔍 Verify the Upload (Optional)</h3><p>You can confirm that the object exists by reading it back:</p><pre>response = object_storage.get_object(ns, bucket_name, &quot;adk_test_upload.txt&quot;)<br>content = response.data.content.decode(&quot;utf-8&quot;)<br>print(content)</pre><p><strong>Expected Output:</strong></p><pre>ADK test upload</pre><p>✅ This validates both <strong>PUT</strong> (upload) and <strong>GET</strong> (read) access.</p><h3>🧹 Clean Up (Optional)</h3><p>To remove the test file:</p><pre>object_storage.delete_object(ns, bucket_name, &quot;adk_test_upload.txt&quot;)<br>print(&quot;✅ Test file deleted.&quot;)</pre><h3>Test 7 — Full Diagnostic Cell</h3><p>A single notebook cell validated:</p><ul><li>Resource principal signer</li><li>Identity access</li><li>Object Storage connectivity</li><li>ADK import</li></ul><p>✅ Provides a one-click environment readiness check for future labs.</p><h3>🧱 4️⃣ IAM Policies</h3><pre>Allow dynamic-group &lt;your-dynamic-group-name&gt; to manage genai-agent-family in tenancy<br>Allow dynamic-group &lt;your-dynamic-group-name&gt; to manage object-family in tenancy<br>Allow dynamic-group &lt;your-dynamic-group-name&gt; to use database-family in tenancy<br>Allow dynamic-group &lt;your-dynamic-group-name&gt; to use vaults in tenancy<br>Allow dynamic-group &lt;your-dynamic-group-name&gt; to use keys in tenancy</pre><h3>⚙️ 5️⃣ Common Errors &amp; Fixes</h3><p><strong>Common Issues</strong></p><ul><li>ModuleNotFoundError: docstring_parser → Missing dependency. Fix: pip install docstring-parser</li><li>InvalidConfig: missing key_file → No signer provided. Fix: Use get_resource_principals_signer()</li><li>404 NamespaceNotFound → Used compartment OCID instead of namespace. Fix: Call get_namespace()</li><li>NotAuthorizedOrNotFound (get_user) → Resource principal isn’t a user. Fix: Skip get_user() and list compartments instead</li><li>Exceeded maximum number of statements → Too many IAM policies. Fix: Merge into existing policy blocks</li></ul><h3>🧭 6️⃣ Final Verification</h3><p><strong>Verification Summary</strong></p><ul><li>✅ ADK Installation — oci.addons.adk imported successfully</li><li>✅ Resource Principal Auth — Tenancy &amp; region printed</li><li>✅ Identity Client Access — Compartments listed</li><li>✅ Object Storage Namespace — Resolved correctly</li><li>✅ Bucket Listing — Accessible</li><li>✅ Upload Test — Successful</li><li>✅ ADK Environment — Ready for use</li></ul><h3>🏁 Summary</h3><p>This validation ensures your OCI Data Science Notebook can:<br> ✅ Authenticate using resource principals<br> ✅ Access and write to Object Storage<br> ✅ Load the OCI ADK cleanly<br> ✅ Interact securely with Generative AI Agents</p><p>Once validated, you can start building your first <strong>Agentic workflow</strong> with the ADK — connecting RAG, SQL, and custom tools together inside OCI’s Generative AI ecosystem.</p><p><strong>Disclaimer:</strong><em> The opinions and views shared in this blog are solely my own and do not represent the official stance or policy of any organization I am associated with. This content reflects my personal insights and should be interpreted as such.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bea197d12c82" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Configuring Mail Server in Oracle Analytics Cloud]]></title>
            <link>https://medium.com/@ravishankerb/configuring-mail-server-in-oracle-analytics-cloud-74dfe30e7693?source=rss-fdca03ae4c29------2</link>
            <guid isPermaLink="false">https://medium.com/p/74dfe30e7693</guid>
            <category><![CDATA[analytics]]></category>
            <category><![CDATA[oracle-analytics-cloud]]></category>
            <category><![CDATA[email]]></category>
            <category><![CDATA[oac]]></category>
            <category><![CDATA[oracle]]></category>
            <dc:creator><![CDATA[Ravi Shanker B]]></dc:creator>
            <pubDate>Sat, 01 Nov 2025 22:19:24 GMT</pubDate>
            <atom:updated>2025-12-05T21:32:42.194Z</atom:updated>
            <content:encoded><![CDATA[<h3>Secure Email Delivery with OCI Email Delivery (DKIM + SPF)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TnmcUSFJDydWpd25_4nZ-Q.png" /></figure><p><a href="https://www.oracle.com/business-analytics/analytics-platform"><strong>Oracle Analytics Cloud (OAC)</strong> </a>empowers organizations with modern, AI-powered analytics — delivering dynamic visualizations, interactive dashboards, and real-time insights that drive confident, data-informed decisions across the enterprise.</p><p>OAC requires a <strong>mail server configuration</strong> to send <strong>alerts, reports, and scheduled notifications</strong> via email. Without proper mail settings, OAC cannot deliver insights to your users automatically.</p><p>This guide explains <strong>how to configure OAC’s mail server settings</strong> using <strong>OCI Email Delivery</strong> — Oracle’s managed SMTP relay that provides secure, authenticated email delivery without requiring your own mail infrastructure.</p><p>When Oracle Analytics Cloud (OAC) sends <strong>alerts, reports, and scheduled notifications</strong>, it doesn’t send them directly — it hands them off to an <strong>SMTP mail server, </strong>that server is responsible for delivering the email safely to your users.</p><p>On the <em>Mail Settings</em> page in OAC - DV - Console, you configure exactly <strong>which server</strong> to use and <strong>how</strong> to connect to it.</p><p>But what should you fill in here?<br> That depends on whether you use your <strong>corporate SMTP server</strong> (e.g., Microsoft 365, Exchange) or Oracle’s own <strong>OCI Email Delivery</strong> service.</p><p>This blog explains when to choose which, and how to configure every value using <strong>OCI Email Delivery</strong> — Oracle’s secure, DKIM-signed mail relay.</p><h3>🧭 Step 1 — Choose the Right Mail Server</h3><p>When setting up <strong>Mail Settings</strong> in OAC, you can connect either to your company’s existing SMTP server or to <strong>OCI Email Delivery</strong>, Oracle’s managed relay.<br> Here’s how to decide which one fits your scenario:</p><p><strong>Use OCI Email Delivery when:</strong></p><ul><li>OAC can’t access your internal SMTP server (for example, it’s reachable only via VPN or private network).<br> → Uses Oracle’s secure, public SMTP relay.</li><li>You need to send system alerts from an address like no-reply@mycompany.com.<br> → No real mailbox is required.</li><li>You want Oracle to manage DKIM signing, throttling, and sender reputation.<br> → Fully managed, minimal maintenance.</li><li>You need a quick setup for testing or proof-of-concept environments.<br> → No IT ticket or firewall rule needed.</li></ul><p><strong>Use Corporate SMTP when:</strong></p><ul><li>Your organization requires all mail to go through an internal mail gateway (Exchange, Proofpoint, Mimecast, etc.).<br> → Ensures compliance, DLP, and audit control.</li><li>You already manage DKIM and SPF internally.<br> → Avoids duplicate configurations.</li><li>OAC is connected privately to your corporate network through FastConnect or VPN.<br> → Internal SMTP routes are already reachable.</li><li>You need full visibility and routing control through your existing email infrastructure.</li></ul><p>✅ <strong>In short:</strong><br> Use <strong>OCI Email Delivery</strong> when OAC cannot reach your internal SMTP server or when you prefer Oracle to handle authentication and delivery securely.</p><h3>💡 What Is OCI Email Delivery?</h3><p>Think of <strong>OCI Email Delivery</strong> as Oracle’s <strong>managed SMTP relay</strong> — a trusted mail gateway that:</p><ul><li>Accepts outgoing emails from OAC or other OCI services</li><li>Signs them digitally with DKIM for authenticity</li><li>Delivers them through Oracle’s high-reputation IP network</li><li>Uses STARTTLS encryption (port 587) for security</li></ul><p>📬 <strong>Simple analogy:</strong><br> OAC “writes” the email (report) → Oracle’s relay “stamps” it with DKIM → the recipient’s mail server validates SPF and DKIM → the message is delivered safely to the inbox.</p><h3>🔐 Understanding DKIM and SPF</h3><p>These two standards make sure your emails are trusted, authenticated, and never flagged as spoofed.</p><ul><li><strong>DKIM (DomainKeys Identified Mail):</strong><br> Cryptographically signs each outgoing email so recipients can verify it genuinely came from your domain.<br> <em>(Configured in OCI Console + DNS.)</em></li><li><strong>SPF (Sender Policy Framework):</strong><br> Defines which mail servers are authorized to send emails for your domain.<br> <em>(Configured as a TXT record in DNS.)</em></li></ul><p>Together, DKIM and SPF confirm:</p><blockquote><em>“This message was sent from the right place, and it hasn’t been altered.”</em></blockquote><h3>⚙️ Step 2 — Configure OCI Email Delivery</h3><h3>Prerequisites</h3><ul><li>Access to the OCI Console (Email Delivery + Identity permissions)</li><li>A registered public domain (e.g., mycompany.com) — private internal domains like corp.local won’t work</li><li>Access to your DNS provider (GoDaddy, Cloudflare, etc.)</li><li>OAC administrator access</li></ul><h3>Step 2.1 — Create an Email Domain in OCI</h3><p><strong>Navigation:</strong> Developer Services → Email Delivery → Email Domains</p><ol><li>Click <strong>Create Email Domain</strong></li><li>Enter your domain (e.g., mycompany.com)</li><li>Choose your compartment</li><li>Click <strong>Create</strong> — the status should become <strong>Active</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/749/1*ua11N3lB0_I5W3BNIZq9bA.png" /><figcaption>Create Email Domain</figcaption></figure><p>This step registers your domain for DKIM signing and mail delivery tracking.</p><h3>Step 2.2 — Generate and Add the DKIM Record</h3><p><strong>In OCI Console:</strong></p><ol><li>Open your Email Domain → select <strong>DKIM</strong> tab</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/917/1*__S1uZ5n3AKpxEtUBHSATA.png" /><figcaption>Select DKIM</figcaption></figure><p>2. Click <strong>Add DKIM → Add new DKIM</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*65SiOfNinbssb9pAJfdn8w.png" /><figcaption>Add new DKIM</figcaption></figure><p>3. Enter a selector name (for example, oac2025)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*08eaGRdcIuPTlJ0kLGQ5xA.png" /><figcaption>DKIM Selector</figcaption></figure><p>4. Click <strong>Generate DKIM Record</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D7EHKGp6SVXHxFJLmHjmeg.png" /><figcaption>Generate DKIM Record</figcaption></figure><p>5. Copy the generated CNAME details</p><pre>Name:  oac2025._domainkey.mycompany.com<br>Value: oac2025.mycompany.com.dkim.iad1.oracleemaildelivery.com</pre><p><strong>In your DNS provider (e.g., GoDaddy):</strong></p><ul><li>Type: CNAME</li><li>Name: oac2025._domainkey</li><li>Value: oac2025.mycompany.com.dkim.iad1.oracleemaildelivery.com</li><li>TTL: 1 hour</li></ul><p><strong>Back to OCI Console:</strong></p><ol><li>Return to the <strong>Email Delivery &gt; DKIM</strong> section in OCI.</li><li>Click <strong>Add DKIM</strong> (the button shown in your screenshot).</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FLptFlgDjEgC_hzGCSwYXQ.png" /><figcaption>Add DKIM</figcaption></figure><p>3. OCI will verify the CNAME record and mark the DKIM as <strong>Active</strong>.</p><p>Wait 10–30 minutes, then click <strong>Refresh DKIM Status</strong> in OCI → should show <strong>Active</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jifsf2aorEcgF8S5VnDckg.png" /><figcaption>Refresh DKIM Status</figcaption></figure><h3>Step 2.3 — Add an Approved Sender</h3><p><strong>Navigation:</strong> Email Delivery → Email Domains → Approved Senders</p><ol><li>Click <strong>Create Approved Sender</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FGvFOx4z45psUszUx_f8EQ.png" /><figcaption>Create Approved Sender</figcaption></figure><p>2. Enter an address like no-reply@mycompany.com</p><p>3. Wait until status changes to <strong>Active</strong></p><p><em>(No mailbox is created — it’s simply an authorized “From” identity.)</em></p><h3>Step 2.4 — Generate SMTP Credentials</h3><p><strong>Why:</strong> These credentials authenticate OAC to Oracle’s SMTP relay.</p><p><strong>Navigation:</strong> Identity &amp; Security → Domains→ User Management → (select the user) → SMTP Credentials</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/999/1*gEFcvh4xKOYRh6nO_syMlw.png" /><figcaption>Select the User</figcaption></figure><ol><li>Click <strong>Generate SMTP Credentials</strong></li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aDAXfDmRu88VY8xoMPRm8A.png" /><figcaption>Generate SMTP Credentials</figcaption></figure><p>2. Save both values:</p><ul><li><strong>Username:</strong> The OCID of your user</li><li><strong>Password:</strong> The generated SMTP Auth Token (shown only once)</li></ul><p>⚠️ <strong>Critical:</strong> Save these credentials — you’ll need them for OAC Mail Server configuration in the next step.</p><h3>Step 2.5 — Add an SPF Record (Recommended)</h3><p>Add this record in your DNS to authorize Oracle’s servers to send on behalf of your domain:</p><p><strong>TXT Record:</strong></p><pre>Name: @  <br>Value: v=spf1 include:rp.oracleemaildelivery.com ~all  <br>TTL: 1 hour</pre><p><strong>Region mapping:</strong></p><ul><li>US: rp.oracleemaildelivery.com</li><li>APAC: ap.rp.oracleemaildelivery.com</li><li>EU: eu.rp.oracleemaildelivery.com</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*swjEU5kiOwrpfIGWT_Kq9g.png" /><figcaption>SPF Info</figcaption></figure><p>✅ Verify with:</p><pre>nslookup -type=TXT mycompany.com 8.8.8.8</pre><p>When verified, the OCI console will display “SPF Configured = Yes”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jcAzgr26j8kMg1EDuIHpsw.png" /><figcaption>Verify SPF</figcaption></figure><h3>🧩 Step 3 — Configure the Mail Server in OAC</h3><p>Now, open the <strong>Mail Settings</strong> page in OAC →DV→ Console, and fill in the following details:</p><ul><li><strong>SMTP Server:</strong> smtp.email.us-ashburn-1.oci.oraclecloud.com</li><li><strong>Port:</strong> 587</li><li><strong>Authentication:</strong> Basic</li><li><strong>Username:</strong> SMTP Credential Username (OCID)</li><li><strong>Password:</strong> SMTP Auth Token</li><li><strong>Email Address of Sender:</strong> no-reply@mycompany.com</li><li><strong>Display Name of Sender:</strong> Oracle Analytics Cloud (or your preferred name)</li><li><strong>Connection Security:</strong> STARTTLS</li><li><strong>TLS Certificate:</strong> Default Certificate</li></ul><p>Click <strong>Test Connection</strong> → ✅ Should show “Success”.</p><p><strong>Regional SMTP Servers:</strong></p><ul><li><strong>US (Ashburn)</strong> → smtp.email.us-ashburn-1.oci.oraclecloud.com</li><li><strong>US (Phoenix)</strong> → smtp.email.us-phoenix-1.oci.oraclecloud.com</li><li><strong>EU (Frankfurt)</strong> → smtp.email.eu-frankfurt-1.oci.oraclecloud.com</li><li><strong>APAC (Sydney)</strong> → smtp.email.ap-sydney-1.oci.oraclecloud.com</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*owxr3-BjWRTZ4eexTuic9A.png" /><figcaption>Mail Settings</figcaption></figure><p>To incorporate the IAM policy information into your existing blog, here’s a section that fits seamlessly into your content. This addition is specifically designed for your <strong>“Configuring Mail Server in Oracle Analytics Cloud”</strong> blog on Medium:</p><h3>Ensuring Proper IAM Permissions for Email Delivery in Oracle Analytics Cloud</h3><p>When configuring email delivery in Oracle Analytics Cloud (OAC), ensuring that your users have the necessary <strong>Identity and Access Management (IAM) policies</strong> is critical. Without the correct permissions, even if you’ve set up your mail server and SMTP credentials correctly, the system will fail to send emails.</p><h4>The Required IAM Policy for OAC Email Delivery</h4><p>To allow a user or automation account to successfully interact with Oracle’s Email Delivery service, they need to be a part of a group that has the appropriate IAM policy applied. Here is the policy you need to apply:</p><pre>Allow group &lt;Your-Group-Name&gt; to manage email-family in tenancy &lt;Your-Tenancy&gt;</pre><p>For detailed guidance on IAM policies for Email Delivery, check out Oracle’s <a href="https://docs.oracle.com/en-us/iaas/Content/Email/Reference/gettingstarted_topic-create-policy.htm">official documentation</a>.</p><h4>What Happens If the Policy is Missing?</h4><p>Without the required IAM policy, users will face errors when trying to send emails from Oracle Analytics Cloud. The error typically looks like this:</p><pre>eventually succeeded, but encountered and resolved errors...<br>Number of skipped deliveries: 2 of 3<br>[nQSError: 77006] Oracle BI Presentation Server Error:<br>A fatal error occurred while processing the request.<br>The server responded with: Invalid path (Check the input path entered.)<br>Error Codes: QM3V3HLV, AGEGTYVF<br>Exceeded number of request retries for method GetResponseContent.<br>AgentID: /users/abc@company.com/emailAgent</pre><p>These errors occur because the necessary permissions to access OCI’s Email Delivery APIs are not granted. The system will repeatedly attempt to send the email but will fail due to the lack of access permissions.</p><h3>🧾 Test Email Delivery</h3><p>Verify that OAC can send emails successfully and DKIM signing is active.</p><p><strong>How to Test:</strong></p><ol><li><strong>In OAC:</strong> Create and send a test report or alert</li></ol><ul><li>Go to any workbook or report</li><li>Schedule a delivery or use the “Email” option</li><li>Add yourself as a recipient</li><li>Click <strong>Send</strong></li></ul><p>2<strong>. Check your inbox</strong> for the email</p><ul><li><strong>From:</strong> Should show “Your Display Name <strong>no-reply@mycompany.com</strong>”</li><li><strong>Subject:</strong> Your report/alert title</li><li><strong>Content:</strong> Your report data or dashboard</li></ul><p>That confirms DKIM signing is working and your OAC instance is sending authenticated mail via Oracle’s relay.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/912/1*BASqhxeiblhgEXJMN8crjw.png" /><figcaption>Report Delivery</figcaption></figure><h3>✅ Validation Checklist</h3><ul><li>Email Domain → <strong>Active</strong></li><li>DKIM → <strong>Active</strong></li><li>SPF → <strong>Configured</strong></li><li>Approved Sender → <strong>Active</strong></li><li>OAC SMTP Test → <strong>Success</strong></li></ul><p>🔧 Troubleshooting Common Issues</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/794/1*ReU4i7F3cp8Hs56i8WLmtQ.png" /><figcaption>Troubleshooting</figcaption></figure><p><strong>Tips:</strong></p><ul><li>Always use port 587 with STARTTLS (not port 25 or 465)</li><li>SMTP username is your User OCID (starts with ocid1.user.oc1)</li><li>Password is the Auth Token (not your OCI Console password)</li><li>Sender email must exactly match an Approved Sender</li><li>Test with a simple alert before scheduling complex reports</li><li><strong>Check the Deliverability Dashboard</strong> after sending to verify delivery success</li><li>Monitor the dashboard regularly to catch delivery issues early</li></ul><h3>Monitoring Email Delivery</h3><p>After successfully configuring OAC mail settings, monitor your email delivery health through the <strong>Email Deliverability Dashboard</strong>.</p><p><strong>Path:</strong> OCI Console → Developer Services → Email Delivery → Deliverability Dashboard</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QrprqhZXYbU9ipeFuRbP1w.png" /><figcaption>Email Deliverability Dashboard</figcaption></figure><h3>What You’ve Accomplished</h3><p>You’ve successfully configured OAC’s mail server to send authenticated emails through OCI Email Delivery:</p><p>✅ <strong>Registered your domain</strong> in OCI for email delivery<br> ✅ <strong>Set up DKIM authentication</strong> to verify email authenticity<br> ✅ <strong>Added SPF authorization</strong> for Oracle’s servers<br> ✅ <strong>Created an approved sender</strong> identity<br> ✅ <strong>Generated SMTP credentials</strong> for secure authentication<br> ✅ <strong>Configured OAC Mail Settings</strong> with all required values<br> ✅ <strong>Tested and verified</strong> email delivery<br> ✅ <strong>Enabled delivery monitoring</strong> through the Deliverability Dashboard</p><p><strong>Result:</strong> OAC can now send <strong>authenticated, DKIM-signed, SPF-authorized</strong> emails through Oracle’s trusted relay — ready for production alerts, reports, and notifications.</p><h3>📝 Summary</h3><p>Configuring OAC’s mail server with OCI Email Delivery provides a <strong>secure, reliable, Oracle-managed solution</strong> for sending automated communications.</p><p><strong>Key Benefits:</strong></p><ul><li>No mail server infrastructure to maintain</li><li>Oracle handles DKIM signing and sender reputation</li><li>Works over public internet (no VPN required)</li><li>No real mailbox needed for system emails</li><li>Full monitoring and delivery tracking</li><li>Production-ready in under 30 minutes</li></ul><p>Whether you’re deploying OAC for analytics dashboards, scheduled reports, or critical alerts, proper mail server configuration ensures your insights reach users reliably and securely.</p><h3>🚀 Call to Action</h3><h3>Ready to Configure Your OAC Mail Settings?</h3><ol><li><strong>Start now:</strong> Follow the steps above to configure mail settings in under 30 minutes</li><li><strong>Verify setup:</strong> Use the validation checklist to ensure everything is working</li><li><strong>Test delivery:</strong> Send a sample report to confirm end-to-end functionality</li><li><strong>Monitor performance:</strong> Check OCI Email Delivery dashboard for delivery metrics</li></ol><h3>Share Your Experience</h3><p>Successfully configured OAC mail settings? Share your feedback or questions in the comments to help others in the Oracle Analytics community.</p><p><strong>Start delivering insights to your users today</strong> — configure your OAC mail server and enable automated notifications! 📊✉️</p><h3>📚 References</h3><ul><li><a href="https://docs.oracle.com/en-us/iaas/Content/Email/home.htm">Email Delivery</a></li><li><a href="https://docs.oracle.com/en-us/iaas/Content/Email/Reference/gettingstarted_topic-create-policy.htm">User Permissions</a></li><li><a href="https://docs.oracle.com/en-us/iaas/Content/Email/Tasks/managingapprovedsenders.htm">OCI Docs: Managing Approved Senders</a></li><li><a href="https://docs.oracle.com/en-us/iaas/Content/Email/Concepts/troubleshooting.htm">Troubleshooting</a></li><li><a href="https://blogs.oracle.com/cloud-infrastructure/post/step-by-step-instructions-to-send-email-with-oci-email-delivery">Oracle Blog: Step-by-Step Instructions to Send Email with OCI Email Delivery</a></li><li><a href="https://docs.oracle.com/en/cloud/paas/analytics-cloud/acabi/configure-email-settings.html">OAC Docs: Configure Email Server</a></li></ul><p>To learn more about Oracle Analytics Cloud,<br>visit <a href="https://www.oracle.com/business-analytics/analytics-platform/"><strong>https://www.oracle.com/business-analytics/analytics-platform</strong></a>/ , <br>follow <a href="https://twitter.com/oracleanalytics"><strong>twitter@OracleAnalytics</strong></a></p><p><strong>Disclaimer:</strong><em> The opinions and views shared in this blog are solely my own and do not represent the official stance or policy of any organization I am associated with. This content reflects my personal insights and should be interpreted as such.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=74dfe30e7693" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>