<?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 Bharath Lingampeta on Medium]]></title>
        <description><![CDATA[Stories by Bharath Lingampeta on Medium]]></description>
        <link>https://medium.com/@bharath.lingampeta?source=rss-6c0a960a917b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vH3vOs5Vqyuod7csjp_wNw.jpeg</url>
            <title>Stories by Bharath Lingampeta on Medium</title>
            <link>https://medium.com/@bharath.lingampeta?source=rss-6c0a960a917b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 14:05:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@bharath.lingampeta/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[How I automated my Ticketing System APEX application with Interactive Agent Chat to perform…]]></title>
            <link>https://medium.com/@bharath.lingampeta/how-i-automated-my-ticketing-system-apex-application-with-interactive-agent-chat-to-perform-ed0c42b68b99?source=rss-6c0a960a917b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ed0c42b68b99</guid>
            <dc:creator><![CDATA[Bharath Lingampeta]]></dc:creator>
            <pubDate>Sat, 25 Jul 2026 12:02:06 GMT</pubDate>
            <atom:updated>2026-07-25T12:02:06.468Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>How I automated my Ticketing System APEX application with Interactive Agent Chat to perform automation of tasks</strong></h3><h3>Abstract</h3><p>This article details the successful automation of a ticketing system built on Oracle APEX by integrating an interactive AI agent chat. The solution streamlines incident creation, allowing administrators to log tickets efficiently through natural language interactions. We explore the application’s architecture, user experience, and the technical implementation leveraging Oracle’s DBMS_CLOUD_AI and DBMS_CLOUD_AI_AGENT packages, demonstrating a robust approach to enhancing enterprise application functionality with artificial intelligence.</p><h3>Prerequisites and Target Audience</h3><p>Before proceeding with the setup and application development described in this article, it is essential to ensure that the environment is properly configured.</p><h3>Prerequisites</h3><p>Readers should follow the comprehensive setup guide available at: <a href="https://medium.com/@bharath.lingampeta/build-your-own-ai-agents-using-oracle-autonomous-ai-database-robustness-and-advantages-33e370da2060?sharedUserId=bharath.lingampeta">Build Your Own AI Agents Using Oracle Autonomous AI Database: Robustness and Advantages</a></p><p>Key procedures include the utilization of the following Oracle packages: * DBMS_CLOUD_AI_AGENT.CREATE_TASK * DBMS_CLOUD_AI_AGENT.CREATE_TEAM</p><h3>Target Audience</h3><p>This article is intended for <strong>APEX Developers</strong>, <strong>AI Agent Developers</strong>, <strong>Oracle ATP Developers</strong>, and <strong>Application Developers</strong>. A foundational understanding of the Oracle Autonomous Database and familiarity with the aforementioned DBMS_CLOUD_AI_AGENT procedures is recommended for a successful implementation.</p><h3>Introduction</h3><p>Modern enterprise environments demand efficient and responsive support systems. Traditional ticketing systems, while functional, often involve manual data entry and navigation, which can be time-consuming and prone to errors. This article presents a novel approach to automating a ticketing system developed using Oracle APEX, by embedding an interactive AI agent chat. This integration significantly enhances the user experience by enabling natural language-driven task automation, specifically for incident creation.</p><h3>2. First let’s have overview of Application and then we can see how it is Enhanced with AI automated chat</h3><p>Our base application is a comprehensive ticketing system designed to manage customer interactions and incidents. It allows administrators to perform various functions, including viewing existing tickets, creating new incidents, summarizing incident details, and updating ticket statuses. The system provides a centralized dashboard for managing all support-related activities.</p><h3>3. Step 3, Enhancing User Interaction with AI Chat</h3><p>To elevate the efficiency of the ticketing system, an interactive AI agent chat feature was integrated. This agent empowers users to create tickets by simply providing details through a conversational interface, eliminating the need for manual form filling. The following sections illustrate the user journey and the underlying technical implementation.</p><h3>3.1 User Experience: Creating an Incident via AI Chat</h3><p>Upon accessing the ticketing system dashboard, Admins/users are presented with an option to engage with the AI agent.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*3Qsd7P7wrFwt1epy-rh5Qg.png" /></figure><p><em>The “All Tickets” dashboard, highlighting the “Chat with me” button for initiating AI interaction.</em></p><p>Clicking the “Chat with me” button launches the interactive AI chat assistant. Users can then input the details of the incident in a conversational manner.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*Nft6wo7gIN2DhTTr7MtORg.png" /></figure><p><em>The AI Chat Assistant interface, demonstrating how admins/user input ticket details interactively.</em></p><p>After providing the necessary information, the user initiates the ticket creation process. The AI agent processes the input and automates the incident creation within the APEX application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*heL43hMSzz7KNp0qian1xg.png" /></figure><p><em>Confirmation from the AI Chat Assistant that the ticket has been successfully created with a unique ID.</em></p><p>Once the ticket is created, closing the agent chat reveals the updated dashboard, where the newly created incident is visible, demonstrating the seamless integration and automation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*TF3-TTMSJtzEZRds04zl3g.png" /></figure><p><em>The ticketing system dashboard reflecting the newly created incident, demonstrating real-time updates.</em></p><h3>Technical Implementation Details</h3><p>This section delves into the technical aspects of integrating the AI agent with the Oracle APEX application.</p><h3>4.1 Prerequisites (Technical Summary)</h3><p>To implement this solution, certain Oracle Database features and packages are essential: * DBMS_CLOUD_AI package * DBMS_CLOUD_AI_AGENT package</p><p>These packages, in turn, rely on proper credential creation and agent profile configuration within the Oracle Autonomous Database.</p><h3>4.2 APEX Application Configuration</h3><h4>Step 1: Creating the AI Chat Region</h4><p>An APEX region is configured to host the interactive chat interface. This region is typically set as a static content region, allowing for flexible integration of UI elements.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*y758m0VtLcG5cAPS1IhVRA.png" /></figure><p><em>Oracle APEX Page Designer view, illustrating the configuration of the “AI Chat Assistant” region and its associated items (P1_CONVERSATION_ID, P1_AI_RESPONSE, P1_USER_INPUT, SUBMIT_PROMPT, closeChat).</em></p><p>The region includes several key items: * <strong>Response</strong>: A display-only item for the AI agent’s replies. * <strong>User Input</strong>: A text area for users to type their queries. * <strong>Submit Prompt</strong>: A button to send user input to the AI agent. * <strong>Close Agent</strong>: A button to close the chat interface and refresh the background page, ensuring the latest incident creations are displayed.</p><h4>Step 2: Dynamic Actions for Chat Interaction</h4><p>To manage the interaction flow, dynamic actions are configured for the “Submit Prompt” button. The primary dynamic action executes server-side code, which is responsible for invoking the AI agent conversation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/578/1*vkALvE2CiAwHKD3nVSzz7Q.png" /></figure><p><em>Configuration of dynamic actions for the “Submit Prompt” button, including server-side code execution for AI agent interaction.</em></p><p>This server-side code orchestrates the conversation with the AI agent, taking user input and performing the necessary logic to interact with the Oracle Autonomous Database (ATP) actions.</p><pre>DECLARE<br>    v_response        CLOB;<br>    v_params          CLOB;<br>    v_conversation_id VARCHAR2(4000) := :P1_CONVERSATION_ID;<br>BEGIN<br>    -- 1. If it&#39;s a new chat, generate a proper AI-system registered ID<br>    IF v_conversation_id IS NULL THEN<br>        v_conversation_id := DBMS_CLOUD_AI.CREATE_CONVERSATION;<br>        :P1_CONVERSATION_ID := v_conversation_id; -- Persist it in the APEX session<br>        INSERT INTO apex_ai_chat_history (conversation_id, user_name, message_text)<br>        VALUES (v_conversation_id, &#39;You&#39;, :P1_USER_INPUT);<br>        :P1_AI_RESPONSE := &#39;What can i do for you&#39;; --latest addition<br>    :P1_USER_INPUT:=null;--latest addition<br>    END IF;<br><br>    -- 2. Construct the params JSON with the valid, system-recognized ID<br>    v_params := JSON_OBJECT(&#39;conversation_id&#39; VALUE v_conversation_id);<br><br>    -- 3. Run the Agent Team<br>    v_response := DBMS_CLOUD_AI_AGENT.RUN_TEAM(<br>        team_name   =&gt; &#39;IT_SUPPORT_TEAM_V3&#39;,<br>        user_prompt =&gt; :P1_USER_INPUT,<br>        params      =&gt; v_params<br>    );<br>    INSERT INTO apex_ai_chat_history (conversation_id, user_name, message_text)<br>        VALUES (v_conversation_id, &#39;AI Agent&#39;, v_response);<br><br>    :P1_AI_RESPONSE := v_response; <br>    :P1_USER_INPUT:=null;--latest addition<br>EXCEPTION<br>    WHEN OTHERS THEN<br>        <br>        :P1_CONVERSATION_ID := NULL;<br>        RAISE;<br>END;</pre><p>Additional dynamic actions are configured to refresh the ticket summary region and clear the AI chat input fields after each interaction, ensuring a clean and updated interface.</p><h4>Step 3: AI Chat Button Configuration</h4><p>A dedicated button, “Chat with me,” is created to toggle the visibility of the AI chat region. This button is configured with a dynamic action that displays the chat interface when clicked.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/875/1*8X96JcDSJB7GzdPokQ1yzQ.png" /></figure><p><em>Configuration details for the “Chat with me” button, showing its placement and associated dynamic action to reveal the AI chat interface.</em></p><h3>5. Conclusion</h3><p>Integrating an interactive AI agent chat with an Oracle APEX ticketing system significantly streamlines the incident creation process, transforming a potentially cumbersome manual task into an intuitive conversational experience. This approach not only improves efficiency for administrators but also showcases the power of combining robust enterprise application development platforms like APEX with advanced AI capabilities provided by Oracle’s cloud services. The automation of such critical workflows demonstrates a clear path towards more intelligent and user-friendly business applications.</p><h3>References</h3><p>[1] Lingampeta, B. (n.d.). <em>Build Your Own AI Agents Using Oracle Autonomous AI Database: Robustness and Advantages</em>. Medium. <a href="https://medium.com/@bharath.lingampeta/build-your-own-ai-agents-using-oracle-autonomous-ai-database-robustness-and-advantages-33e370da2060?sharedUserId=bharath.lingampeta">https://medium.com/@bharath.lingampeta/build-your-own-ai-agents-using-oracle-autonomous-ai-database-robustness-and-advantages-33e370da2060?sharedUserId=bharath.lingampeta</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ed0c42b68b99" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Empowering Oracle APEX with Generative AI]]></title>
            <link>https://medium.com/@bharath.lingampeta/empowering-oracle-apex-with-generative-ai-fcd52b5a1071?source=rss-6c0a960a917b------2</link>
            <guid isPermaLink="false">https://medium.com/p/fcd52b5a1071</guid>
            <dc:creator><![CDATA[Bharath Lingampeta]]></dc:creator>
            <pubDate>Sun, 19 Jul 2026 02:02:46 GMT</pubDate>
            <atom:updated>2026-07-19T02:02:46.666Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Empowering Oracle APEX with Generative AI</strong></p><h3>Introduction</h3><p>Oracle Application Express (APEX) has long been a powerful low-code development platform, enabling developers to build scalable, secure enterprise applications with remarkable speed. With the advent of Generative AI, APEX further extends its capabilities, allowing users to create applications using natural language prompts. This article details a personal journey of integrating Generative AI into an APEX environment and leveraging it to effortlessly generate a functional application.</p><p>This guide will walk through the necessary configuration steps, from setting up web credentials for an AI provider to generating an application using the APEX Assistant. The process is designed to be straightforward, demonstrating how Generative AI can significantly accelerate application development within APEX.</p><h3>Prerequisites</h3><p><strong>Before diving into the configuration, ensure you have:</strong></p><p>· Access to an Oracle APEX environment (version 24.1 or higher is recommended for full Generative AI features).</p><p>· An account with a supported Generative AI provider (e.g., Cohere, OpenAI, OCI Generative AI) and an API key.</p><h3>Step 1: Configuring Web Credentials for AI Service</h3><p>Secure communication with external AI services is paramount. Oracle APEX utilizes Web Credentials to manage authentication details for these services. For Cohere, this typically involves setting up an HTTP Header-based credential.</p><p>1. To configure your Web Credential:</p><p>2. Navigate to Workspace Utilities &gt; Web Credentials.</p><p>3. Click Create/Edit to define a new credential.</p><p>4. Provide a descriptive Name (e.g., Credentials for bharathapex) and a Static ID.</p><p>5. Set the Authentication Type to HTTP Header.</p><p>6. Enter Authorization as the Credential Name.</p><p>7. Input your API key, prefixed with Bearer (I used Cohere Bearer YOUR_COHERE_API_KEY), into the Credential Secret field.</p><p>8. Specify the Valid for URLs to restrict the credential’s usage to your AI provider’s API endpoint (e.g., <a href="https://api.cohere.ai)./">https://api.cohere.ai).</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*TfHGnwHxdQzaBIDfvqqglg.png" /></figure><h3>Step 2: Setting Up the Generative AI Service in APEX</h3><p>With the Web Credential in place, the next step is to define the Generative AI Service within APEX. This service acts as the bridge between your APEX environment and the chosen AI provider.</p><p>1. To set up the Generative AI Service:</p><p>2. Navigate to Workspace Utilities &gt; Generative AI Services.</p><p>3. Click Create/Edit.</p><p>4. Select your AI Provider (e.g., Cohere).</p><p>5. Assign a Name and Static ID for the service (e.g., BHARATHAPEX).</p><p>6. Crucially, enable the Used by App Builder toggle. This allows the APEX Assistant to leverage this service for application generation.</p><p>7. Enter the Base URL for the AI provider’s API (e.g., <a href="https://api.cohere.ai)./">https://api.cohere.ai).</a></p><p>8. Select the Credential created in Step 1.</p><p>9. Specify the AI Model to be used (e.g., command-r-plus-08–2024).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*JvxUr8Ye5FrLjo0Z85oDeA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*CiZ-QBF3cfRXj-hNbPN9sg.png" /></figure><h3>Step 3: Creating an Application Using Generative AI</h3><p>With the Generative AI service configured, you can now leverage the APEX Assistant to create applications using natural language. This feature significantly streamlines the initial application development phase.</p><p>1. To create an application:</p><p>2. From the Workspace home page, click the App Builder icon.</p><p>3. Click Create.</p><p>4. Select Create App Using Generative AI.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*af_D8l7KVJC3PgL6QahJxw.png" /></figure><h3>Step 4: Interacting with the APEX Assistant</h3><p>The APEX Assistant provides a conversational interface where you can describe the application you want to build. It interprets your natural language input and proposes application pages and features.</p><p>Example prompt:</p><p>Create a IT Customer Service Application which can use below tables, to create tickets, update tickets , tickets summary and also create a Agent Chat which takes prompt from customer and create a ticket based on inputs WKSP_HELPDESK.CREATE_TICKET_TBL</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*TwV85gPhtzRtLy7_89xwaw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/1*u-j4r3uBrzQhNq4tw4BFlQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*F21RJX1mIIXaTMu6ezsPWQ.png" /></figure><h3>Step 5: Application Generation and Review</h3><p>Once confirmed, APEX will begin generating the application, including the specified pages and features. A progress indicator will show the status of the creation process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*2AHedRgKlTBrNnB7YMdKxw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*Lz0Cnc2qe81e-rYHPIXqbg.png" /></figure><h3>Step 6: Verifying Data Persistence</h3><p>To ensure the application is fully functional, it’s important to verify that data entered through the application is correctly persisted in the backend database. The generated application includes forms for data entry, such as the ‘Create Ticket Tbl’ form.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*zUPlkYZCFPxoE6VBjFCqcw.png" /></figure><h3>Conclusion</h3><p>Integrating Generative AI into Oracle APEX significantly enhances the development experience, allowing for rapid application prototyping and creation using natural language. By following the steps outlined in this guide — configuring web credentials, setting up the Generative AI service, and leveraging the APEX Assistant — developers can unlock a new level of productivity and innovation within the APEX platform.</p><p>Thanks, Bharath Lingampeta</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fcd52b5a1071" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Build your own AI Agents using Oracle Autonomous AI Database (Robustness and Advantages)]]></title>
            <link>https://medium.com/@bharath.lingampeta/build-your-own-ai-agents-using-oracle-autonomous-ai-database-robustness-and-advantages-33e370da2060?source=rss-6c0a960a917b------2</link>
            <guid isPermaLink="false">https://medium.com/p/33e370da2060</guid>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[oracle-autonomous-db]]></category>
            <dc:creator><![CDATA[Bharath Lingampeta]]></dc:creator>
            <pubDate>Fri, 10 Jul 2026 01:27:22 GMT</pubDate>
            <atom:updated>2026-07-10T01:27:22.936Z</atom:updated>
            <content:encoded><![CDATA[<p>Artificial Intelligence has shifted from generating static responses to performing dynamic, goal-oriented tasks. This shift is powered by Agentic AI, which enables systems to reason, plan, and execute actions autonomously [1]. Oracle Autonomous Database natively supports agentic workflows through the Select AI Agent framework, encapsulated in the DBMS_CLOUD_AI_AGENT package. This powerful capability allows developers to build intelligent, autonomous agents that can interact with enterprise data, utilize custom tools, and maintain conversational context all without moving data outside the database [2] [3].</p><p><strong><em>In this article, we will explore the concepts behind Select AI Agents, examine the architecture, and walk through a complete practical scenario of building a multi-agent system using Oracle Autonomous AI Database to act as an automated IT Helpdesk Ticketing Agent.</em></strong></p><p><strong>Understanding Agentic AI vs. Generative AI</strong></p><p>While traditional Generative AI (such as standalone Large Language Models) excels at content creation and answering isolated prompts, it lacks autonomy and the ability to act on its environment. Agentic AI bridges this gap by introducing reasoning and tool execution capabilities [2].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*M1QhKdqxNRCnkuOuZpk46g.png" /></figure><p><strong>The Select AI Agent Architecture</strong></p><p>The Select AI Agent framework is built on the ReAct (Reasoning and Acting) pattern. This pattern allows the agent to iteratively reason about a request, select appropriate tools, execute them, and observe the results before determining the next step [3].</p><p>The architecture consists of four primary layers:</p><p>1 Planning: The agent interprets the user’s request, breaks it down into actionable steps, and drafts a plan using session context.</p><p>2 Tool Use: The agent selects and runs tools. These can be built-in tools (like SQL generation or Web Search) or custom PL/SQL procedures.</p><p>3 Reflection: The agent evaluates the results from the tools against its expectations. If an error occurs or the result is unsatisfactory, it revises its plan and tries again.</p><p>4 Memory Management: The system stores session context (short-term memory) and user preferences (long-term memory) to maintain continuity across multi-turn interactions [3].</p><p><strong>Core Components of DBMS_CLOUD_AI_AGENT</strong></p><p>The DBMS_CLOUD_AI_AGENT package provides the subprograms necessary to manage the lifecycle of AI agents within the database [4].</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*7D7ZxLUXAN7HIxB31ZYMjg.png" /></figure><p><strong>Supported AI Providers</strong></p><p>Oracle Autonomous Database provides flexibility by supporting multiple AI providers through the DBMS_CLOUD_AI package. You can configure AI profiles to use models from [5]:</p><p>OCI Generative AI, OpenAI and OpenAI-compatible providers (e.g., Fireworks AI),Google Gemini, Anthropic Claude, Azure OpenAI Service, Cohere, Hugging Face, AWS Bedrock</p><p><strong><em>A working Scenario: Building an IT Ticketing AI Agent</em></strong></p><p>Let’s walk through a practical example of creating an IT Support agent that handles ticket creation and updates. This agent will interact with a customer, gather necessary details, create a ticket, and update the ticket history [6].</p><p><strong>Step 1: Prerequisites and Setup</strong></p><p>First, ensure that the necessary privileges are granted by the database administrator. The user requires EXECUTE privileges on both DBMS_CLOUD_AI and DBMS_CLOUD_AI_AGENT [7].</p><p><strong>Step 2: Database Schema Design (DDL)</strong></p><p>Here I am using two tables. The CREATE_TICKET_TBL stores the core ticket information. The UPDATE_TICKET_HISTORY_TBL acts as an audit log, tracking every status change and comment added to a ticket.</p><pre>- Create the main ticket table<br>CREATE TABLE CREATE_TICKET_TBL (<br>TICKET_ID NUMBER GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,<br>TICKET_TYPE VARCHAR2(50), - e.g., &#39;Hardware&#39;, &#39;Software&#39;, &#39;Access&#39;<br>CUSTOMER_NAME VARCHAR2(100),<br>CUSTOMER_ID NUMBER,<br>ASSIGN_TO VARCHAR2(100),<br>TICKET_DESC VARCHAR2(1000),<br>TICKET_PRIORITY VARCHAR2(20), - &#39;Low&#39;, &#39;Medium&#39;, &#39;High&#39;, &#39;Critical&#39;<br>TICKET_STATUS VARCHAR2(30) DEFAULT &#39;Open&#39;,<br>CREATION_DATE TIMESTAMP DEFAULT SYSTIMESTAMP<br>);<br> - Create the ticket history/audit table<br>CREATE TABLE UPDATE_TICKET_HISTORY_TBL (<br>HISTORY_ID NUMBER GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY,<br>TICKET_ID NUMBER,<br>PREVIOUS_STATUS VARCHAR2(30),<br>NEW_STATUS VARCHAR2(30),<br>LATEST_COMMENTS VARCHAR2(1000),<br>UPDATED_BY VARCHAR2(100), - The agent or user making the change<br>UPDATE_DATE TIMESTAMP DEFAULT SYSTIMESTAMP,<br>CONSTRAINT fk_ticket FOREIGN KEY (TICKET_ID) REFERENCES CREATE_TICKET_TBL(TICKET_ID)<br>);<br> - Insert sample data<br>INSERT INTO CREATE_TICKET_TBL (TICKET_TYPE, CUSTOMER_NAME, CUSTOMER_ID, ASSIGN_TO, TICKET_DESC, TICKET_PRIORITY, TICKET_STATUS)<br>VALUES (&#39;Hardware&#39;, &#39;Bharath Lingampeta&#39;, 101, &#39;IT_Support_Queue&#39;, &#39;Laptop screen is flickering&#39;, &#39;High&#39;, &#39;Open&#39;);<br>COMMIT;<br>Step 3: Create PL/SQL Functions for the Tools<br>The agent needs the ability to perform two actions: creating a new ticket and updating an existing ticket (which also logs the history). We wrap these in PL/SQL functions.<br> - Function to Create a New Ticket<br>CREATE OR REPLACE FUNCTION CREATE_NEW_TICKET (<br>p_ticket_type IN VARCHAR2,<br>p_customer_name IN VARCHAR2,<br>p_customer_id IN NUMBER,<br>p_ticket_desc IN VARCHAR2,<br>p_ticket_priority IN VARCHAR2<br>) RETURN CLOB IS<br>v_ticket_id NUMBER;<br>BEGIN<br>INSERT INTO CREATE_TICKET_TBL (<br>TICKET_TYPE, CUSTOMER_NAME, CUSTOMER_ID, ASSIGN_TO, TICKET_DESC, TICKET_PRIORITY, TICKET_STATUS<br>) VALUES (<br>p_ticket_type, p_customer_name, p_customer_id, &#39;IT_Support_Queue&#39;, p_ticket_desc, p_ticket_priority, &#39;Open&#39;<br>) RETURNING TICKET_ID INTO v_ticket_id;<br> - Also log the initial creation in history<br>INSERT INTO UPDATE_TICKET_HISTORY_TBL (<br>TICKET_ID, PREVIOUS_STATUS, NEW_STATUS, LATEST_COMMENTS, UPDATED_BY<br>) VALUES (<br>v_ticket_id, NULL, &#39;Open&#39;, &#39;Ticket created by AI Agent&#39;, &#39;AI_Agent&#39;<br>);<br>COMMIT;<br>RETURN &#39;Ticket created successfully. Your Ticket ID is: &#39; || v_ticket_id;<br>EXCEPTION<br>WHEN OTHERS THEN<br>RETURN &#39;Error creating ticket: &#39; || SQLERRM;<br>END;<br>/<br> - Function to Update an Existing Ticket<br>CREATE OR REPLACE FUNCTION UPDATE_TICKET_STATUS (<br>p_ticket_id IN NUMBER,<br>p_new_status IN VARCHAR2,<br>p_comments IN VARCHAR2<br>) RETURN CLOB IS<br>v_prev_status VARCHAR2(30);<br>BEGIN<br> - Get the current status<br>SELECT TICKET_STATUS INTO v_prev_status<br>FROM CREATE_TICKET_TBL<br>WHERE TICKET_ID = p_ticket_id;<br> - Update the main table<br>UPDATE CREATE_TICKET_TBL<br>SET TICKET_STATUS = p_new_status<br>WHERE TICKET_ID = p_ticket_id;<br> - Insert into history table<br>INSERT INTO UPDATE_TICKET_HISTORY_TBL (<br>TICKET_ID, PREVIOUS_STATUS, NEW_STATUS, LATEST_COMMENTS, UPDATED_BY<br>) VALUES (<br>p_ticket_id, v_prev_status, p_new_status, p_comments, &#39;AI_Agent&#39;<br>);<br>COMMIT;<br>RETURN &#39;Ticket &#39; || p_ticket_id || &#39; updated successfully to status: &#39; || p_new_status;<br>EXCEPTION<br>WHEN NO_DATA_FOUND THEN<br>RETURN &#39;Error: Ticket ID &#39; || p_ticket_id || &#39; not found.&#39;;<br>WHEN OTHERS THEN<br>RETURN &#39;Error updating ticket: &#39; || SQLERRM;<br>END;</pre><p><strong>Step 3: Create PL/SQL Functions for the Tools</strong></p><p>The agent needs the ability to perform two actions: creating a new ticket and updating an existing ticket (which also logs the history). We wrap these in PL/SQL functions.</p><pre>CREATE OR REPLACE FUNCTION CREATE_NEW_TICKET (<br>    p_ticket_type     IN VARCHAR2,<br>    p_customer_name   IN VARCHAR2,<br>    p_customer_id     IN NUMBER,<br>    p_ticket_desc     IN VARCHAR2,<br>    p_ticket_priority IN VARCHAR2<br>) RETURN CLOB IS<br>    v_ticket_id NUMBER;<br>BEGIN<br>    INSERT INTO CREATE_TICKET_TBL (<br>        TICKET_TYPE, CUSTOMER_NAME, CUSTOMER_ID, ASSIGN_TO, TICKET_DESC, TICKET_PRIORITY, TICKET_STATUS<br>    ) VALUES (<br>        p_ticket_type, p_customer_name, p_customer_id, &#39;IT_Support_Queue&#39;, p_ticket_desc, p_ticket_priority, &#39;Open&#39;<br>    ) RETURNING TICKET_ID INTO v_ticket_id;<br>    <br>    -- Also log the initial creation in history<br>    INSERT INTO UPDATE_TICKET_HISTORY_TBL (<br>        TICKET_ID, PREVIOUS_STATUS, NEW_STATUS, LATEST_COMMENTS, UPDATED_BY<br>    ) VALUES (<br>        v_ticket_id, NULL, &#39;Open&#39;, &#39;Ticket created by AI Agent&#39;, &#39;AI_Agent&#39;<br>    );<br>    <br>    COMMIT;<br>    RETURN &#39;Ticket created successfully. Your Ticket ID is: &#39; || v_ticket_id;<br>EXCEPTION<br>    WHEN OTHERS THEN<br>        RETURN &#39;Error creating ticket: &#39; || SQLERRM;<br>END;</pre><pre>Function to Update an Existing Ticket<br>CREATE OR REPLACE FUNCTION UPDATE_TICKET_STATUS (<br>    p_ticket_id       IN NUMBER,<br>    p_new_status      IN VARCHAR2,<br>    p_comments        IN VARCHAR2<br>) RETURN CLOB IS<br>    v_prev_status VARCHAR2(30);<br>BEGIN<br>    -- Get the current status<br>    SELECT TICKET_STATUS INTO v_prev_status <br>    FROM CREATE_TICKET_TBL <br>    WHERE TICKET_ID = p_ticket_id;<br>    <br>    -- Update the main table<br>    UPDATE CREATE_TICKET_TBL<br>    SET TICKET_STATUS = p_new_status<br>    WHERE TICKET_ID = p_ticket_id;<br>    <br>    -- Insert into history table<br>    INSERT INTO UPDATE_TICKET_HISTORY_TBL (<br>        TICKET_ID, PREVIOUS_STATUS, NEW_STATUS, LATEST_COMMENTS, UPDATED_BY<br>    ) VALUES (<br>        p_ticket_id, v_prev_status, p_new_status, p_comments, &#39;AI_Agent&#39;<br>    );<br>    <br>    COMMIT;<br>    RETURN &#39;Ticket &#39; || p_ticket_id || &#39; updated successfully to status: &#39; || p_new_status;<br>EXCEPTION<br>    WHEN NO_DATA_FOUND THEN<br>        RETURN &#39;Error: Ticket ID &#39; || p_ticket_id || &#39; not found.&#39;;<br>    WHEN OTHERS THEN<br>        RETURN &#39;Error updating ticket: &#39; || SQLERRM;<br>END;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*qQjyYlCpMOtqLEVNV77t9A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*ryAM96S3WLXATW53_hltSg.png" /></figure><p><strong>Now, we register our PL/SQL functions as tools for the agent.</strong></p><pre>    -- Tool for creating tickets<br>    DBMS_CLOUD_AI_AGENT.CREATE_TOOL(<br>        tool_name =&gt; &#39;Create_Ticket_Tool&#39;,<br>        attributes =&gt; &#39;{<br>            &quot;instruction&quot;: &quot;Use this tool to create a new IT support ticket. You must gather ticket type, customer name, customer ID, description, and priority from the user before calling this.&quot;,<br>            &quot;function&quot; : &quot;create_new_ticket&quot;<br>        }&#39;<br>    );<br> <br>    -- Tool for updating tickets<br>    DBMS_CLOUD_AI_AGENT.CREATE_TOOL(<br>        tool_name =&gt; &#39;Update_Ticket_Tool&#39;,<br>        attributes =&gt; &#39;{<br>            &quot;instruction&quot;: &quot;Use this tool to update the status of an existing ticket and add comments. You must ask the user for the Ticket ID, the new status, and the comment before calling this.&quot;,<br>            &quot;function&quot; : &quot;update_ticket_status&quot;<br>        }&#39;<br>    );</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*YZDYkjrst6_9QonnTDAf7Q.png" /></figure><p><strong>Step 5: Create the Task and Team</strong></p><p>The task defines the workflow the agent must follow, guiding it on how to interact with the user and which tools to select.</p><pre>BEGIN<br>  DBMS_CLOUD_AI_AGENT.CREATE_TASK(<br>    task_name =&gt; &#39;Manage_Tickets_Task&#39;,<br>    attributes =&gt; &#39;{<br>        &quot;instruction&quot;: &quot;Process user requests related to IT tickets:{query}. 1. Determine if the user wants to create a new ticket or update an existing one. 2. If creating a new ticket, ask for their name, ID, issue description, issue type (Hardware/Software/Access), and priority (Low/Medium/High/Critical). Once all info is gathered, use Create_Ticket_Tool. 3. If updating a ticket, ask for the Ticket ID, the new status (e.g., In Progress, Resolved, Closed), and a comment describing the update. Once gathered, use Update_Ticket_Tool.&quot;,<br>        &quot;tools&quot;: [&quot;Create_Ticket_Tool&quot;, &quot;Update_Ticket_Tool&quot;]<br>    }&#39;<br>  );<br>END;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*yxFGgFebWFm1FM76WbKQHg.png" /></figure><p><strong>Assemble the team and assign the task to our agent.</strong></p><pre>BEGIN<br>  DBMS_CLOUD_AI_AGENT.CREATE_TEAM(<br>     team_name  =&gt; &#39;IT_Support_Team&#39;,<br>     attributes =&gt; &#39;{<br>         &quot;agents&quot;: [{&quot;name&quot;:&quot;IT_Helpdesk_Agent&quot;, &quot;task&quot; : &quot;Manage_Tickets_Task&quot;}],<br>         &quot;process&quot;: &quot;sequential&quot;<br>     }&#39;<br>  );<br>END;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*66hdQCq6kqJhbMqQaHvUhw.png" /></figure><p><strong><em>Step 6: Here we go now to test the awesome AI agent ,lets Interact with the Agent</em></strong></p><p>You can interact with the agent directly using SQL by setting the team for the session and using the select ai agent syntax.</p><pre>SELECT AI AGENT I need to report an issue with my laptop;<br>SELECT AI AGENT My name is Bharath Version2. The battery is not charging. It is a Hardware issue, priority High.;<br>SELECT AI AGENT I need to update Ticket ID 1. Set the status to Resolved and add the comment &quot;Replaced the screen assembly.&quot;;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*103ORQrMYDd_sCOSVQK2MA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cNMOxnXu0Vmt--zt-s2Irw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hfnmH4af2YfmfzlIo7VhHg.png" /></figure><p><strong><em>The agent maintains the conversational context and intelligently selects whether to use the Create_Ticket_Tool or Update_Ticket_Tool based on the user’s intent, seamlessly interacting with your custom database schema.</em></strong></p><p><strong>Let’s check the database to see if all the records are created successfully</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*2v4F6EyOt6Ka1M72nnL_-g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*couaVSc7o9JzstAmTw967g.png" /></figure><p><strong><em>This can be later be useful for any OIC calls, or DB calls usage in OIC or in any Agent studio for new agents development which above core creation which easily automates the Ticketing tool with AI agentic enablement, For sure these can automate and drastically reduce the human interaction as its direct natural language chat which can take inputs directly from customers and creates or updates ticket, an important note is we need to think about security considerations before implementing any AI Agent based on customer requirements.</em></strong></p><p><strong>Monitoring and Observability</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*R3vfx16OKtTCYlgCHLreNQ.png" /></figure><p><strong>The Power, Robustness, and Advantages of DBMS_CLOUD_AI_AGENT</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*RP3Dl0Uo3V2zkWs04HmvpA.png" /></figure><p><strong>Resilient ReAct Loop with Self-Correction</strong></p><p>The ReAct (Reasoning and Acting) pattern embedded in the framework gives agents a built-in self-correction mechanism. When a tool call returns an unexpected result or an error, the agent does not simply fail. Instead, it enters a reflection cycle: it re-evaluates the observation, revises its plan, and attempts an alternative approach [3]. In the context of the IT Ticketing Agent, if Update_Ticket_Tool returns an error because a Ticket ID does not exist, the agent will reason about the failure, inform the user, and ask for a valid Ticket ID — rather than crashing or returning a cryptic error message. This loop continues until the agent either achieves its goal or reaches a defined exit condition.</p><p><strong>Human-in-the-Loop Control</strong></p><p>Not every decision in an enterprise workflow should be fully automated. The enable_human_tool attribute allows developers to designate specific points in a workflow where the agent must pause and seek human approval before proceeding [2]. This is critical for irreversible actions — such as closing a ticket, issuing a refund, or escalating a case to a senior engineer. The agent enters a WAITING_FOR_HUMAN state, which is preserved in the database, and resumes exactly where it left off once the human provides input via RUN_TEAM. This capability enables a spectrum of automation, from fully autonomous to fully supervised, within the same framework.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/914/1*4qveWpb3wHPVfT71kd3KKg.png" /></figure><p><strong>Conclusion</strong></p><p>The DBMS_CLOUD_AI_AGENT package transforms Oracle Autonomous Database from a passive data repository into an active, intelligent participant in business processes. By leveraging the ReAct pattern, built-in tools, and secure in-database execution, organizations can build robust agentic AI solutions — like the automated IT Ticketing Agent demonstrated here — that securely automate complex workflows while keeping computation close to the data.</p><p><strong>Artificial Intelligence, AI Agents, Oracle AI Autonomous DB</strong></p><p>Follow me for more Posts:</p><p><a href="https://www.linkedin.com/in/bharath-l-585801138/">https://www.linkedin.com/in/bharath-l-585801138/</a><br><a href="https://medium.com/@bharath.lingampeta">https://medium.com/@bharath.lingampeta</a></p><p><strong>Happy Learning :)</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33e370da2060" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Power of Oracle’s DBMS_CLOUD_AI for LLM Calls]]></title>
            <link>https://medium.com/@bharath.lingampeta/power-of-oracles-dbms-cloud-ai-for-llm-calls-b98e4b50af30?source=rss-6c0a960a917b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b98e4b50af30</guid>
            <dc:creator><![CDATA[Bharath Lingampeta]]></dc:creator>
            <pubDate>Sat, 20 Jun 2026 15:08:22 GMT</pubDate>
            <atom:updated>2026-06-20T15:36:24.681Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Power of Oracle’s DBMS_CLOUD_AI for LLM Calls</strong></p><h3>Introduction</h3><p>Oracle’s Autonomous Transaction Processing (ATP) database includes the built-in package DBMS_CLOUD_AI, which enables developers to connect database objects directly to external Large Language Model (LLM) providers. Instead of building custom middleware, developers can issue natural-language prompts from within SQL or PL/SQL and receive generated SQL, narrative responses, or explanations. This article demonstrates how to configure and use DBMS_CLOUD_AI with Cohere as the example LLM provider.</p><h3>Target Audience</h3><p>This guide is intended for Oracle AI developers, Oracle architects, Oracle Cloud Integration developers, Oracle AI agents, Oracle ATP developers, and Fusion implementers who want to integrate LLM-powered database interactions into Oracle-based solutions.</p><h3>Prerequisites</h3><p>· Access to an LLM provider API such as Cohere or OpenAI. This example uses Cohere.</p><p>· A provisioned Oracle Autonomous Transaction Processing (ATP) instance.</p><p>· Sufficient privileges to access and execute DBMS_CLOUD_AI.</p><h3>Sample Data</h3><p>For demonstration purposes, two sample tables are used: INB_INVOICE_HEADER and INB_INVOICE_LINES. Depending on the requirement, you can include any number of objects in the AI profile to improve contextual accuracy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*_K3MiPIajK6CNnc71y_53Q.png" /></figure><p><strong>Invoice Lines Sample Data</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*JOeDRq6JF--kNWwG7mrjdQ.png" /></figure><h3>Implementation Steps</h3><h3>Step 1: Obtain an LLM API Key</h3><p>Before creating an AI profile in Oracle ATP, obtain an API key from your chosen LLM provider. In this example, a trial key is created in Cohere.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/679/1*V1sTz13N_AJX7gFSTu3i6g.png" /></figure><h3>Step 2: Grant Execution Privileges on the AI Package</h3><p>Grant the EXECUTE privilege on DBMS_CLOUD_AI to the user who will run AI queries.</p><p>GRANT EXECUTE ON DBMS_CLOUD_AI TO XXX;</p><h3>Step 3: Configure Network Access Control</h3><p>Allow the database to make outbound HTTPS calls to the Cohere API endpoint using DBMS_NETWORK_ACL_ADMIN.</p><p>BEGIN<br> DBMS_NETWORK_ACL_ADMIN.APPEND_HOST_ACE(<br> host =&gt; ‘api.cohere.ai’,<br> ace =&gt; xs$ace_type(<br> privilege_list =&gt; xs$name_list(‘http’),<br> principal_name =&gt; ‘ADMIN’,<br> principal_type =&gt; xs_acl.ptype_db<br> )<br> );<br> END;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*wRt6ZGj29eYY3e-1i4avjA.png" /></figure><h3>Step 4: Create a Database Credential</h3><p>Store the Cohere API key securely as a database credential using DBMS_CLOUD.CREATE_CREDENTIAL.</p><p>BEGIN<br> DBMS_CLOUD.CREATE_CREDENTIAL(<br> credential_name =&gt; ‘BHARATHCOHERE’,<br> username =&gt; ‘BHARATHCOHERE’,<br> password =&gt; ‘your_cohere_api_key_here’<br> );<br> END;<br> /</p><p><strong>Database Credential Creation</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*0if_C0F9EAKA4E3KyfKAdw.png" /></figure><h3>Step 5: Create the AI Profile</h3><p>Create an AI profile that links the provider, credential, and list of database objects available to the LLM.This is purely based on client requirement we can add N number of tables , here i just used 2 tables for demonstration</p><p>BEGIN<br> DBMS_CLOUD_AI.CREATE_PROFILE(<br> profile_name =&gt; ‘BHARATHCOHEREPROFILE’,<br> attributes =&gt; ‘{<br> “provider”: “cohere”,<br> “credential_name”: “BHARATHCOHERE”,<br> “object_list”: [<br> {“owner”: “ADMIN”, “name”: “INB_INVOICE_HEADER”},<br> {“owner”: “ADMIN”, “name”: “INB_INVOICE_LINES”}<br> ]<br> }’<br> );<br> END;</p><h3>Executing AI Queries</h3><p>Once the AI profile is created, DBMS_CLOUD_AI.GENERATE can be used with different actions such as showsql, runsql, narrate, and explainsql.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*mu6_17TS6MwFmCAhwlstgQ.png" /></figure><h3>Action: showsql</h3><p>SELECT DBMS_CLOUD_AI.GENERATE(<br> prompt =&gt; ‘how many invoices exist’,<br> profile_name =&gt; ‘BHARATHCOHEREPROFILE’,<br> action =&gt; ‘showsql’<br> ) FROM DUAL;</p><p><strong>showsql Example</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*01zpGUt2e0EIBV_YrU10Ww.png" /></figure><h3>Action: runsql</h3><p>SELECT DBMS_CLOUD_AI.GENERATE(<br> prompt =&gt; ‘how many invoices exist’,<br> profile_name =&gt; ‘BHARATHCOHEREPROFILE’,<br> action =&gt; ‘runsql’<br> ) FROM DUAL;</p><p>The result confirms that there are 16 invoices in the sample dataset.</p><p><strong>runsql Example</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*mi_bioJVfOIYNUhL8a5M6A.png" /></figure><h3>Action: narrate</h3><p>SELECT DBMS_CLOUD_AI.GENERATE(<br> prompt =&gt; ‘how many invoices belong to CAPITAL ONE’,<br> profile_name =&gt; ‘BHARATHCOHEREPROFILE’,<br> action =&gt; ‘narrate’<br> ) FROM DUAL;</p><p>The LLM returns a natural-language response stating that there are 4 invoices that belong to CAPITAL ONE.</p><p><strong>narrate Example</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*vIr_5b1Z2w8MiciKRW5t6Q.png" /></figure><h3>Action: explainsql</h3><p>SELECT DBMS_CLOUD_AI.GENERATE(<br> prompt =&gt; ‘how many invoices belong to CAPITAL ONE’,<br> profile_name =&gt; ‘BHARATHCOHEREPROFILE’,<br> action =&gt; ‘explainsql’<br> ) FROM DUAL;</p><p><strong>explainsql Example</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*UaX5pJ0MT8oVK7W3Y76u8w.png" /></figure><h3>Shorthand AI Commands</h3><p>Oracle also supports shorthand AI syntax for quick interaction directly in SQL. This can simplify day-to-day experimentation and demonstrations.</p><p>SELECT AI how many Invoices exist;</p><p><strong>Shorthand Query: Total Invoice Count</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*ivVm6dsBhvw-nKbuWBTTjA.png" /></figure><p><strong>Shorthand Query: show generated SQL</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*txHp5a8RlKCe4Tps7N6nRQ.png" /></figure><p>SELECT AI how many invoices belong to CAPITAL ONE;</p><p><strong>Shorthand Query: CAPITAL ONE invoice count</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*TWR7dI-tS9qroPXNxMmMJw.png" /></figure><p>SELECT AI narrate give me all invoices list which belong to supplier CAPITAL ONE;</p><p><strong>Shorthand Query: Narrative invoice list</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*xXLJ4W76jfiet859UfT-iQ.png" /></figure><h3>Key Takeaways</h3><p>DBMS_CLOUD_AI provides a powerful and practical way to embed LLM-driven querying directly into Oracle ATP. It reduces integration effort, improves accessibility for business users, and supports multiple output styles, including SQL generation, direct execution, natural-language narration, and query explanation.</p><p>This approach is also well suited for Oracle Integration Cloud (OIC), where the generated results can be exposed as REST services for client consumption. In a future extension, these database-driven AI capabilities can be wrapped as reusable integration endpoints.</p><h3>Important Security Considerations</h3><p>Before implementing DBMS_CLOUD_AI in production, review all security, compliance, and data-governance requirements. If schema details or data are sent to an external LLM provider, the client or security team should explicitly approve that outbound flow. Where stricter control is required, Oracle native Generative AI services may be a more appropriate choice because they offer stronger data-governance alignment within the Oracle ecosystem.</p><p><strong>Stay tuned for my next article for extension of this about how to Use the same to create OIC AI rest call</strong></p><p><strong>Happy Learning , AI Agents, Artificial Intelligence, LLMS, Oracle OIC</strong></p><p>follow me <a href="https://www.linkedin.com/in/bharath-l-585801138/">https://www.linkedin.com/in/bharath-l-585801138/</a></p><p>Thankyou all</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b98e4b50af30" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[WHY OCI Objects PAR link is a good strategy to overcome Attachment issues via Notifications!!]]></title>
            <link>https://medium.com/@bharath.lingampeta/why-oci-objects-par-link-is-a-good-strategy-to-overcome-attachment-issues-via-notifications-d2e6da0f6a4d?source=rss-6c0a960a917b------2</link>
            <guid isPermaLink="false">https://medium.com/p/d2e6da0f6a4d</guid>
            <dc:creator><![CDATA[Bharath Lingampeta]]></dc:creator>
            <pubDate>Sat, 06 Jun 2026 19:11:16 GMT</pubDate>
            <atom:updated>2026-06-06T19:11:16.826Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>WHY OCI Objects PAR link is a good strategy to overcome Attachment issues via Notifications!!</strong></p><p><strong>Author: Bharath Lingampeta</strong><br> Topic: Oracle Cloud Infrastructure Object Storage, Oracle Integration Cloud, Pre-Authenticated Requests, Notifications</p><p><strong>summary</strong></p><p>Sending large files directly as email attachments from an integration is often fragile. Attachment size limits, mailbox policies, MIME encoding overhead, retry complexity, and operational troubleshooting can make a simple notification flow unnecessarily heavy. A more scalable pattern is to store the file in OCI Object Storage, generate a time-bound Pre-Authenticated Request (PAR) URL for the object, and send that URL to the recipient through an Oracle Integration Cloud (OIC) Notification action.</p><p>Oracle defines pre-authenticated requests as a way to let users access a bucket or object without requiring their own OCI credentials, as long as the PAR creator still has the required permissions and the request has not expired.<a href="#_ftn1">[1]</a> In practice, this makes PAR links a strong strategy for notification-driven file delivery: the integration sends a small email containing a secure download link, while the file itself remains in Object Storage</p><p><a href="#_ftnref1">[1]</a>Oracle Help Center, <a href="https://docs.oracle.com/en-us/iaas/Content/Object/Tasks/usingpreauthenticatedrequests.htm">Object Storage Pre-Authenticated Requests</a>.</p><p><strong>Why attachment-based notifications become a problem</strong></p><p>Oracle Integration notification emails are useful for runtime communication, but they are not designed to be a high-volume file transport mechanism. Oracle documents that notification emails have a total size limit, and the email body and attachments are both included when calculating that limit.<a href="#_ftn1">[1]</a> This becomes an architectural constraint when integrations need to send generated CSV files, reports, extracts, or zipped datasets to business users.</p><p><a href="#_ftnref1">[1]</a>Oracle Help Center, <a href="https://docs.oracle.com/en/cloud/paas/application-integration/integrations-user/send-notification-emails-during-stages-integration-notification-action.html">Send Notification Emails During Stages of the Integration with a Notification Action</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KaQBGKSs9WzNYLtRJishUA.png" /></figure><p><strong>Solution pattern</strong></p><p>The integration pattern is straightforward. The file is first available in OCI Object Storage. OIC receives or constructs the bucket, namespace, and object name. OIC then invokes the OCI Object Storage REST API to create a PAR. The response includes an accessUri, which is combined with the Object Storage host to form the full download URL. Finally, OIC sends the generated link to the recipient using a Notification action.</p><p><strong>PAR endpoint and request payload</strong></p><p>The REST call used by the integration creates a pre-authenticated request for an Object Storage bucket. The endpoint pattern used in the OIC configuration is:</p><p>POST /n/{namespace_name}/b/{bucket_name}/p/</p><p>body can be as below</p><p>{</p><p>“name”: “URLFile”,</p><p>“accessType”: “ObjectReadWrite”,</p><p>“timeExpires”: “2026–12–31T23:59:00Z”,</p><p>“objectName”: “inbound/data.csv”</p><p>}</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*5IzdmhY__Ftt4Yp4C1eFfg.png" /></figure><p>example create OIC as below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/314/1*bdJKdAZdTBtxh2FIk-Skww.png" /></figure><p>Please note: this is just example, as per business requirments you can loopover or pass values dynamically etc</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/606/1*VzCghyJsRCgvuy6WrTC-ng.png" /></figure><p>Configuring the OCI REST invoke in OIC</p><p>After the trigger is configured, the integration invokes the OCI Object Storage endpoint that creates the PAR. The invoke resource URI is parameterized using namespace and bucket values. This keeps the integration reusable because the same flow can work for different buckets or namespaces when those values are supplied at runtime.</p><p>The configured invoke endpoint is named GeneratePARLink in the sample flow. Its relative resource URI is:</p><p>/n/{namespace_name}/b/{bucket_name}/p/</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/614/1*QTYSuhLAIaRAPz_X6uYkMA.png" /></figure><p>please note this is just a sample mapping, as per requirements you can use it dynamically with xslt transformations, for eachetc</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*urAcQh_837u69GVJcGh3RQ.png" /></figure><p><strong>Sending the PAR link through an OIC Notification action</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/666/1*IYNUoTyo56m2VGNZ3920bQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*R4oVUk1t0OBg4NGFg7U0GA.png" /></figure><p><strong>Validating the email and file download</strong></p><p>The final validation is user-centered. The recipient receives an email with the download link, clicks the PAR URL, and retrieves the object directly from OCI Object Storage. In the sample, the object is a CSV file that opens in Excel after download. This confirms the key design benefit: the email notification remains small, while Object Storage handles file delivery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*hQk-ljFoBkCksdz8wzqPeQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*XwuomxBMP5lXBSsin4jMsA.png" /></figure><p><strong>Why this is a good strategy</strong></p><p>This pattern works well because it separates message delivery from file delivery. OIC sends the user a notification, but Object Storage serves the file. The integration becomes easier to maintain because it avoids embedding large payloads in the notification step. The user experience also improves because recipients receive a direct link and can download the file when needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/901/1*HLSnqmpVe1TBv0JazWJECg.png" /></figure><p>Happy learning :)</p><p>Bharath</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d2e6da0f6a4d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The easy way to access OCI buckets!! the PLSQL WAY!!]]></title>
            <link>https://medium.com/@bharath.lingampeta/the-easy-way-to-access-oci-buckets-the-plsql-way-4e53874a7a22?source=rss-6c0a960a917b------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e53874a7a22</guid>
            <dc:creator><![CDATA[Bharath Lingampeta]]></dc:creator>
            <pubDate>Sat, 30 May 2026 22:45:26 GMT</pubDate>
            <atom:updated>2026-05-30T22:45:26.871Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Audience: </strong>Oracle Cloud administrators, database developers, and support engineers who need to read, query, load, or write Object Storage files from Oracle Autonomous Transaction Processing.</p><p><strong>Purpose and Scope</strong></p><p>This document explains how to access files stored in an Oracle Cloud Infrastructure Object Storage bucket from Oracle Autonomous Transaction Processing, commonly called ATP. ATP is part of Oracle Autonomous Database, and the standard database-side interface for working with cloud files is the PL/SQL package <strong>DBMS_CLOUD</strong>. Oracle documentation describes DBMS_CLOUD as the package used to load data from Object Storage into database tables, create external tables over files, list objects, read objects, and write files back to Object Storage.<a href="#_ftn1">[1]</a> <a href="#_ftn2">[2]</a></p><p>The document covers two supported authentication approaches. The first and recommended approach is resource principal authentication, where the ATP database is authorized through OCI IAM policies and no user credential is stored in the database. The second approach is a stored database credential, where ATP stores an Object Storage credential such as an OCI auth token in encrypted form and uses it in DBMS_CLOUD calls.<a href="#_ftn3">[3]</a> <a href="#_ftn4">[4]</a></p><p><strong>Prerequisites</strong></p><p>Before configuring ATP, collect the bucket details and decide which authentication model you will use. You need the ATP database name or OCID if you plan to use resource principal authentication, the compartment where the ATP instance or bucket exists, the Object Storage namespace, the bucket name, the OCI region, and the file names or prefixes that ATP must access.</p><p><strong>Authentication Option A: Resource Principal, Recommended</strong></p><p>Resource principal authentication lets ATP authenticate to OCI services as the database resource itself. Oracle documentation explains that a resource principal uses temporary session credentials so the database can authenticate to OCI APIs, and it avoids manually creating and managing user credentials in the database.<a href="#_ftn1">[1]</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*Nj4LOrmy6Iq8e26RJrXAOA.png" /></figure><p>Create an IAM Policy for Object Storage</p><p>Allow dynamic-group &lt;dynamic_group_name&gt; to read objects in compartment &lt;compartment_name&gt;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*8w9XG73NzlasRtAf2ROJCg.png" /></figure><p>create dynamic group</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*A2soYZzmgXoZ6UFnD-A0-g.png" /></figure><p>create policy</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*mRT2jrah8eYxyykr4JycWg.png" /></figure><p>Enable Resource Principal in ATP</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/647/1*cyxLTAo9lIe2SjMD1rhdiQ.png" /></figure><p>example bucket in OIC</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*tKS7Ylr9t3kZ3FrHdJ9T9g.png" /></figure><p>example objects listed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/825/1*g0mkSqrvm8HGAw5giyH9jQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*x5XzXFjnKsEjf1A4uA0odQ.png" /></figure><p>use above method to list objects</p><p>query the data directly if you know the structure of CSV</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*s98A4lhGrpV35941K_KrIw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*x_RzZg1GxZUYxDIMYpyJMQ.png" /></figure><p>This approach is useful for data validation, exploration, and lightweight reporting. For repeated high-performance queries, consider loading the data into ATP tables or using partitioned external tables for large organized file sets.</p><p><strong>Use Case 3: Load Bucket Files into an ATP Table</strong></p><p>Use DBMS_CLOUD.COPY_DATA when the file content should be stored in an ATP table. Oracle documentation describes COPY_DATA as the procedure used to load data from cloud files into an existing table.<a href="#_ftn1">[1]</a></p><p>BEGIN</p><p>DBMS_CLOUD.COPY_DATA(</p><p>table_name =&gt; ‘CHANNELS’,</p><p>credential_name =&gt; ‘OCI$RESOURCE_PRINCIPAL’,</p><p>file_uri_list =&gt; ‘https://objectstorage.&lt;region&gt;.oraclecloud.com/n/&lt;namespace&gt;/b/&lt;bucket_name&gt;/o/channels.csv&#39;,</p><p>format =&gt; JSON_OBJECT(‘delimiter’ VALUE ‘,’, ‘skipheaders’ VALUE ‘1’)</p><p>);</p><p>END;</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/940/1*S1MycWUoqQmxzhoaXPitjw.png" /></figure><p>ATP records load operations in views such as USER_LOAD_OPERATIONS. These records help identify log and bad-file tables for failed or partially rejected loads.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/270/1*cw-85W2r8gVyeX_Wp6E4OQ.png" /></figure><p><strong>Use Case 5: Write or Export Data from ATP to Object Storage</strong></p><p>ATP can also write data back to Object Storage. DBMS_CLOUD.EXPORT_DATA exports query results to Object Storage, while DBMS_CLOUD.PUT_OBJECT uploads a file or BLOB.<a href="#_ftn1">[1]</a></p><p>The following example exports rows from an ATP table to Object Storage as CSV. The credential must have permission to write objects to the target bucket.</p><p><strong>BEGIN</strong></p><p><strong>DBMS_CLOUD.EXPORT_DATA(</strong></p><p><strong>credential_name =&gt; ‘OCI$RESOURCE_PRINCIPAL’,</strong></p><p><strong>file_uri_list =&gt; ‘https://objectstorage.&lt;region&gt;.oraclecloud.com/n/&lt;namespace&gt;/b/&lt;bucket_name&gt;/o/exports/channels_export&#39;,</strong></p><p><strong>query =&gt; ‘SELECT * FROM channels’,</strong></p><p><strong>format =&gt; JSON_OBJECT(‘type’ VALUE ‘csv’, ‘header’ VALUE true)</strong></p><p><strong>);</strong></p><p><strong>END;</strong></p><p>/</p><p>After exporting, confirm that the output objects exist.</p><p>SELECT object_name,</p><p>bytes,</p><p>last_modified</p><p>FROM DBMS_CLOUD.LIST_OBJECTS(</p><p><strong>Common File Format Examples</strong></p><p>The format parameter is important because it tells ATP how to interpret source files. Oracle notes that Autonomous Database supports multiple source file formats and compressed data formats.<a href="#_ftn1">[1]</a> The exact options depend on file type and database version, so confirm details in the Oracle DBMS_CLOUD format options documentation for your environment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2fQDPZXepXmDMWYb3xQwqA.png" /></figure><p><strong>Troubleshooting Guide</strong></p><p>Most ATP-to-Object Storage issues are caused by an incorrect URI, missing IAM permissions, an expired or invalid auth token, or a mismatch between file content and table definition. Start troubleshooting with LIST_OBJECTS, because it isolates authentication and Object Storage path access before you debug file parsing.</p><p><strong>Security Best Practices</strong></p><p>For production, prefer resource principal authentication because it avoids storing long-lived user tokens in the database and uses OCI IAM policies to authorize ATP as a resource. Scope policies narrowly to the needed bucket, compartment, and action. Grant read objects when ATP only needs to query or load files, and grant manage objects only when ATP must create, overwrite, or delete objects.</p><p>Protect stored credentials carefully when auth tokens are used. Generate tokens for a dedicated service user rather than a personal administrator account, rotate tokens according to your security policy, and remove unused credentials with DBMS_CLOUD.DROP_CREDENTIAL. Never hard-code credentials in application source code or shared SQL scripts.</p><p>Object names and prefixes should be designed for governance and performance. Use predictable folder-like prefixes such as landing/source/system/date= or exports/application/date= so policies, lifecycle rules, and SQL file filters are easier tomanage. For large datasets, consider partitioned external tables rather than a single external table over many unrelated files.</p><p><strong>Conclusion</strong></p><p>ATP accesses OCI Object Storage through DBMS_CLOUD by using a bucket URI and a valid authentication method. For most OCI-native deployments, resource principal authentication is the recommended design because it is secure, centrally governed through IAM, and does not require storing user auth tokens in ATP. After authentication is configured, the main access patterns are straightforward: use LIST_OBJECTS to verify files, CREATE_EXTERNAL_TABLE to query files in place, COPY_DATA to load files into ATP tables, GET_OBJECT to read individual objects, and EXPORT_DATA or PUT_OBJECT to write results back to Object Storage.</p><p><em>Please subsribe me :)</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e53874a7a22" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OIC Gen 3 (HOW TO) Automate OIC Instance errors as Notifications to Administrators]]></title>
            <link>https://medium.com/@bharath.lingampeta/oic-gen-3-how-to-automate-oic-instance-errors-as-notifications-to-administrators-da1ad20b307a?source=rss-6c0a960a917b------2</link>
            <guid isPermaLink="false">https://medium.com/p/da1ad20b307a</guid>
            <dc:creator><![CDATA[Bharath Lingampeta]]></dc:creator>
            <pubDate>Sun, 24 May 2026 12:30:41 GMT</pubDate>
            <atom:updated>2026-05-24T12:30:41.911Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>OIC Gen 3 (HOW TO) Automate OIC Instance errors as Notifications to Administrators</strong></p><p><strong>1. Overview and Objective</strong></p><p>This implementation guide explains how to build an Oracle Integration Cloud (OIC) Gen 3 scheduled orchestration that monitors failed integration runs from the last six hours and sends an HTML email notification containing the Instance ID, Integration Name, Error Message, and Error Date. The solution uses the OIC Monitoring REST API endpoint for integration errors and formats the response records into an HTML table before sending the notification.</p><p>The guide has been recreated using the actual OIC environment screenshots from the working implementation. The configuration shown here reflects the final successful design, including the corrected REST host, query parameter limit, For Each loop source, and row-concatenation expression.</p><p><em>Implementation objective: Automatically call the OIC Monitoring REST API for the last six hours of integration errors, transform each error item into an HTML table row, and email the consolidated result to the support or operations team.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*P1H-pVKNzPx77mAGS6VVZg.png" /></figure><p><strong>2. Solution Architecture</strong></p><p>The implementation is built as a scheduled orchestration that calls the OIC Monitoring REST API, evaluates whether error records are present, and then formats the returned items into an HTML body. If no errors are returned, the no-error route can send a simple informational notification or end the flow, depending on operational preference. If errors are returned, the integration loops through each error item and appends a table row to a string variable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*Wj-4P2tavMet06kVch0hKg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/907/1*AASkY6NaALJ8I5ymIrH9uQ.png" /></figure><p><strong>3.1 REST Connection Notes</strong></p><p>The REST connection should point to the instance-specific OIC host. A previous 401 Unauthorized issue was resolved by replacing the design host with the correct instance runtime host. The connection must also use the correct confidential application scope; otherwise, the token request may return invalid_request or the API call may fail authorization.</p><p><strong>Trigger Configuration for Manual Testing</strong></p><p>The implementation screenshots show a REST trigger configured for testing the orchestration. The trigger operation is named default, the operation description is getoicerrors, and the relative resource URI is /getoicerrors. The trigger uses the POST method and accepts a JSON request payload.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/691/1*U-V0rBhgnE0mFbVl8yy4VQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/680/1*UpU9mJMwfmX5qnT88OBRXg.png" /></figure><p><strong>5. REST Invoke Configuration for OIC Monitoring Errors API</strong></p><p>The REST invoke is the core step that retrieves recent integration errors from the OIC Monitoring REST API. The endpoint is configured as a GET operation against /ic/api/integration/v1/monitoring/errors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/503/1*ucY2HMGHdn3_uDsk6jJKAw.png" /></figure><p><strong>5.1 Query Parameters</strong></p><p>The REST invoke must include query parameters that restrict the response to the last six hours and expand the integration details so that the integration name can be included in the email. The final working implementation uses limit=25 because using limit=100 returned a Bad Request error in the environment, indicating that the requested limit exceeded the allowed maximum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*1-3aBOckx2WSerB6_dPZDw.png" /></figure><p>The API call should effectively be configured as follows:</p><p>/ic/api/integration/v1/monitoring/errors?q={timewindow:’6h’}&amp;offset=0&amp;expand=integration&amp;limit=25</p><p>response configuration , please take example from rest call documenation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/650/1*nKH471yGs-vhE2PwewTfzA.png" /></figure><p><strong>Variable Design</strong></p><p>The email body is assembled using string variables. The recommended design is to initialize an HTML header, an empty table-row accumulator, and an HTML footer. During the For Each loop, each monitoring error item appends one &lt;tr&gt; row to the table-row variable. After the loop completes, a final variable concatenates the header, rows, and footer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*92fbPL3OmMC3AqoAs16M0A.png" /></figure><p><strong>HTML Header Template</strong></p><p>Use the following HTML header as the value of varEmailHeader. This template creates the greeting, explanatory text, and table header row.</p><p>Hi,&lt;br/&gt;&lt;br/&gt;</p><p>Below are the OIC integration errors from the last 6 hours.&lt;br/&gt;&lt;br/&gt;</p><p>&lt;table <strong>border</strong>=”1&quot; cellpadding=”6&quot; cellspacing=”0&quot; style=”border-collapse:collapse;width:100%;font-family:Arial, sans-serif;font-size:12px;”&gt;</p><p>&lt;tr style=”background-color:#f2f2f2;font-weight:bold;”&gt;</p><p>&lt;th&gt;Instance ID&lt;/th&gt;</p><p>&lt;th&gt;Integration Name&lt;/th&gt;</p><p>&lt;th&gt;Error Message&lt;/th&gt;</p><p>&lt;th&gt;Error Date&lt;/th&gt;</p><p>&lt;/tr&gt;</p><p><strong>Switch or If Condition for Error Records</strong></p><p>After the REST invoke returns the monitoring response, the integration uses a Switch action to evaluate whether error records were returned. The screenshot shows a route checking whether totalRecordsCount = 0. This route can be used for the no-error branch, while the default or alternate branch handles the error-record path.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/733/1*-14NrxlXflyR_joAYCXX3g.png" /></figure><p>. Switch route checking totalRecordsCount = 0 for the no-error scenario</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/891/1*dOsPKCJC6Qjcn_3PfEF7TA.png" /></figure><p>For Each Loop Configuration</p><p>When error records exist, the For Each action must iterate over the repeating items element from the REST invoke response. In this implementation, the current element name is f0_items, and the repeating element points to the items array in the response wrapper.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*pfq3E7ADLPFfuwgSIDgc_g.png" /></figure><p>Append HTML Rows Inside the For Each Loop</p><p>Inside the For Each loop, an Assign action appends the current error record to varTableRows. This is the critical expression that creates the dynamic rows for the final HTML table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/728/1*OK4U2Rt2N9d4tUWLE4ekNQ.png" /></figure><p>Assign action inside the For Each loop appending one HTML table row per error record.</p><p>Use the following working expression for varTableRows:</p><p>fn:concat($varTableRows,’&lt;tr&gt;&lt;td&gt;’ ,$f0_items/ns18:items/ns18:id,’&lt;/td&gt;&lt;td&gt;’,$f0_items/ns18:items/ns18:integration/ns18:name,’&lt;/td&gt;&lt;td&gt;’,$f0_items/ns18:items/ns18:errorMessage,’&lt;/td&gt;&lt;td&gt;’,$f0_items/ns18:items/ns18:creationDate,’&lt;/td&gt;&lt;/tr&gt;’)</p><p><strong>Build the Final Email Body</strong></p><p>After the For Each loop completes, another Assign action builds the final email body by concatenating the header, accumulated rows, and footer. In the screenshot, the final body variable is named Build_Final_Email_Body. If your integration uses varFinalEmailBody instead, the same logic applies; only the variable name is different.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*P3EFhTfnc9Ph-j2E5xD_nA.png" /></figure><p>Figure 10. Assign action building the final email body from the header, accumulated rows, and footer.</p><p>Use the following expression:</p><p>fn:concat($varEmailHeader, $varTableRows, $varEmailFooter)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/993/1*HGE_LhUT_u5rFHdepqEeAg.png" /></figure><p>The Notification body can be configured as follows:</p><p>&lt;html&gt;&lt;body&gt;{varFinalEmailBody}&lt;/body&gt;&lt;/html&gt;</p><p><strong>12. Final Email Output</strong></p><p>The final output is an HTML email from the OIC Mail Service containing one row per integration error returned by the monitoring API. The table includes the four required columns: Instance ID, Integration Name, Error Message, and Error Date.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*R-RVPM2JyOViJKxO5j1Dfw.png" /></figure><p><strong>Troubleshooting Notes from the Implementation</strong></p><p>During implementation, several configuration issues were identified and resolved. These notes are included so the same errors can be diagnosed quickly in similar OIC Gen 3 environments.</p><p>Symptom</p><p>Root Cause</p><p>Resolution</p><p>OAuth token request returned 400 invalid_request</p><p>Missing or incorrect scope in the OCI Identity Domain Confidential Application.</p><p>Add the correct OIC resource scope to the confidential application and update the REST connection.</p><p>REST invoke returned 401 Unauthorized</p><p>The REST connection was using the OIC design host rather than the instance-specific runtime host.</p><p>Use the instance-specific OIC host: <a href="https://bharathoic-yourvalue.integration.us-phoenix-1.ocp.oraclecloud.com./">https://bharathoic-yourvalue.integration.us-phoenix-1.ocp.oraclecloud.com.</a></p><p>REST invoke returned 400 Bad Request with limit error</p><p>limit=100 exceeded the maximum accepted value in the environment.</p><p>Reduce the query parameter to limit=25.</p><p>Email table rendered incorrectly</p><p>HTML rows were being appended with malformed opening tags.</p><p>Start every row with &lt;tr&gt;&lt;td&gt; and end with &lt;/td&gt;&lt;/tr&gt;.</p><p>Integration name was unavailable in mapper</p><p>The API response did not include expanded integration details.</p><p>Set expand=integration in the REST invoke query parameters.</p><p>Happy learning :)</p><p>Bharath</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da1ad20b307a" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OCI Identity Domain Confidential Application with Client Credentials Enabled for Oracle Integration…]]></title>
            <link>https://medium.com/@bharath.lingampeta/oci-identity-domain-confidential-application-with-client-credentials-enabled-for-oracle-integration-027c16daacab?source=rss-6c0a960a917b------2</link>
            <guid isPermaLink="false">https://medium.com/p/027c16daacab</guid>
            <dc:creator><![CDATA[Bharath Lingampeta]]></dc:creator>
            <pubDate>Sun, 17 May 2026 18:08:18 GMT</pubDate>
            <atom:updated>2026-05-17T18:08:18.472Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>OCI Identity Domain Confidential Application with Client Credentials Enabled for Oracle Integration Cloud</strong></p><p><strong><em>Audience:</em></strong><em> this is solely intended to OIC developers, architects, and users who have good understanding of Oracle CLOUD OIC and OCIas part of Oracle suggested documentation, to increase the security it suggests to use OAUTH authentication for connections in OIC. so lets start :)</em></p><p><strong>Abstract</strong></p><p>This article explains how to configure an OCI Identity Domain Confidential Application with the Client Credentials grant enabled and then use that application from Oracle Integration Cloud (OIC) through a REST connection secured by OAuth client credentials. The walkthrough is based on the provided OCI Console and OIC screenshots, with sensitive values such as the client ID, client secret, identity domain identifiers, and tenant-specific host values redacted.</p><p>The intended outcome is a reusable security configuration where OIC can request an OAuth access token from the OCI Identity Domain token endpoint and use that token to invoke OIC REST APIs or protected integration endpoints. Oracle describes a confidential application as an application that runs on a protected server, and the Identity Domain console workflow includes selecting a domain, opening Integrated applications, and adding a Confidential Application.<a href="https://docs.oracle.com/en-us/iaas/Content/Identity/applications/add-confidential-application.htm">1</a> Oracle also states that OAuth 2.0 client credentials are used for programmatic interaction with services that use OAuth 2.0, including Oracle Integration, and that the generated access token authorizes REST API access according to the selected scopes.<a href="https://docs.oracle.com/en-us/iaas/Content/Identity/access/working-with-oauth-20-client-credentials.htm">2</a></p><p><strong><em>Security note: </em></strong><em>The screenshots in this document have been sanitized. Any client identifier, client secret, application identifier, identity-domain hostname, token endpoint component, and tenant-specific OIC host value shown in the original screenshots has been redacted or generalized.</em></p><p><strong>Scenario and Prerequisites</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/895/1*DS9j2lrvz8lrLYXaairBjg.png" /></figure><p><strong>Architecture Overview</strong></p><p>In this pattern, the Identity Domain confidential application acts as the OAuth client. OIC stores the client ID and client secret inside a REST connection that uses the OAuth Client Credentials security policy. When the connection is tested or used by an integration, OIC calls the Identity Domain token endpoint, obtains an access token, and then invokes the configured OIC REST resource using the granted scope.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*-pQb7yMqLxI3XDIAgTaWzg.png" /></figure><p>Step 1: Navigate to Identity Domains in OCI</p><p>Open the OCI Console navigation menu and go to Identity &amp; Security. Under the Identity section, choose Domains. This is the entry point for managing identity-domain users, applications, policies, and security settings.</p><p>Oracle’s documentation for adding a confidential application follows the same general path: select the domain where changes are required, open Integrated applications, and choose Add application.<a href="https://docs.oracle.com/en-us/iaas/Content/Identity/applications/add-confidential-application.htm">1</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/520/1*E0GJ-uDSpda6pzrAO-lCWQ.png" /></figure><p>Step 2: Open the Default Domain and Add an Integrated Application</p><p>After opening Domains, select the required identity domain. In the provided screenshots, the Default domain is active. Within the domain details page, open the Integrated applications tab and click Add application</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*OGIVt0Z9LJAW_LzSrQ6BgQ.png" /></figure><p>The Integrated applications tab is where applications are registered in the identity domain. For this use case, the application must be added as a Confidential Application, because the credential exchange is performed by a backend or server-side component rather than by an interactive browser-only client. Oracle’s documentation specifically describes confidential applications as applications that run on a protected server.<a href="https://docs.oracle.com/en-us/iaas/Content/Identity/applications/add-confidential-application.htm">1</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*5Z9rQZS9afhJAmx2YnCmUA.png" /></figure><p>Step 3: Review the Confidential Application Details</p><p>After creating the application, open its details page. The screenshot shows the application information, including the description OIC Confidential APP, the application type Confidential Application, and grant enforcement enabled.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*attoCNcpBD7pNOyG2rv6lA.png" /></figure><p>Step 4: Verify OAuth Authorization Grant Types, focus on enabled flags as those are required to generate client id and secret, which is used for later purposes for connection creations in OIC as an example</p><p>Open the application’s OAuth configuration area and review the Authorization section. In the screenshot, Client credentials is enabled. The screenshot also shows Refresh token enabled, while several interactive or user-delegated grants such as authorization code and implicit are disabled.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/623/1*clTSi_nqtpvny2Ks1Evyqg.png" /></figure><p>Step 5: Capture the Client ID and Client Secret Securely</p><p>The OAuth configuration page also displays the Client ID and provides access to the Client secret. The screenshot shows the client configuration enabled and the client secret masked. In this document, all client identifiers and secret values are redacted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*DOOaabecIXdkuuiNcrPGYg.png" /></figure><p><em>The client ID and client secret are entered later in the OIC REST connection. The client secret should be handled as a password. It should not be pasted into tickets, screenshots, shared documents, or source code repositories. If a secret is accidentally exposed, regenerate it from the application page and update all dependent connections.</em></p><p>Step 6: Review OIC Resource Scopes</p><p>The OIC-related resource information appears under the application’s configured resources. The screenshot shows resource entries associated with an OIC instance and includes scopes such as a consumer access scope and an /ic/api/-style OIC API scope. The tenant-specific URL values are redacted in the screenshot used here.</p><p>example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*tKTqcdDU8gh0fV5RDG3WrA.png" /></figure><p>This step is important because the scope supplied in the OIC REST connection must match the resource access granted to the confidential application. If the scope is missing, malformed, or not granted to the application, the token request can fail or the resulting token may not have sufficient access to call the target endpoint.</p><p>Step 7: Review Application Roles</p><p>The App roles section shows the roles associated with the OIC resource. In the screenshot, the roles include ServiceAdministrator, ServiceDeveloper, and ServiceInvoker.</p><p>for example i added all as its demo purpose</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*SylLDabaRaySgXyW-_8JZA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/897/1*wkx2Hg33SGGoYFvcNJseIg.png" /></figure><p>Step 8: Create or Open the OIC REST Connection (just to cross check)</p><p>Move to Oracle Integration Cloud and open Design. From the left navigation, select Connections. The screenshot shows the OIC Design navigation with Connections selected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/1*jZa_z35uupMjqmIvIxW8qg.png" /></figure><p>Create a REST connection or open the existing connection that will use the confidential application. In the provided screenshots, the connection is named OIC_MONITORING_REST_CONN and is configured as a trigger-and-invoke capable REST connection.</p><p>Step 9: Configure the OIC REST Connection Properties and Security</p><p>In the OIC REST connection configuration, set the connection type to REST API Base URL and enter the OIC base URL. Then configure the Security policy as OAuth Client Credentials.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/703/1*JAR_p6QVrBLMnrlfnpRcCg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/894/1*qgGxxP9JDCjQMGuVm9BKow.png" /></figure><p>This setup lets OIC exchange the client credentials for an access token. Oracle’s IAM documentation states that OAuth client credentials enable the generation of a secure token for REST API endpoint access, and that Oracle Integration is one of the services using OAuth 2.0 in this context.<a href="https://docs.oracle.com/en-us/iaas/Content/Identity/access/working-with-oauth-20-client-credentials.htm">2</a></p><p>Step 10: Configure Optional Security Scope</p><p>Expand Optional security and enter the required Scope. The screenshot shows the scope field populated with an OIC resource URL pattern. The tenant-specific scope value is redacted in the sanitized screenshot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*w8c1S8eniyCSOLgKUGe98Q.png" /></figure><p>Step 11: Test and Activate the Connection</p><p>After entering the connection URL, access token URI, client ID, client secret, and scope, save the connection and use the Test action in OIC. A successful test confirms that OIC can reach the token endpoint, authenticate the confidential application, obtain a token, and validate the configured REST connection.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*YZUt1BqWFCqku_l7zxqkvg.png" /></figure><p>Validation Checklist</p><p>Before handing over the configuration, validate each layer. The confidential application should exist in the correct identity domain, the client credentials grant should be enabled, the client secret should be known only to authorized administrators, the OIC resources and app roles should represent the intended access, and the OIC connection should test successfully.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/864/1*71oca-h9Usq1RL5lSM4TvQ.png" /></figure><p><strong>Security Best Practices</strong></p><p>Client credentials should be managed with the same discipline as production passwords. The client secret should be visible only during secure setup, stored only in approved systems, and rotated when staff changes, environments are cloned, or screenshots are accidentally shared. Oracle’s documentation emphasizes that token access depends on the selected scopes and recommends using the minimum required access level.<a href="https://docs.oracle.com/en-us/iaas/Content/Identity/access/working-with-oauth-20-client-credentials.htm">2</a></p><p>Separate confidential applications should be considered for separate environments such as development, test, and production. This prevents a connection or secret intended for one environment from being reused in another. It also simplifies rotation because each OIC environment can be updated independently.</p><p><strong>Conclusion</strong></p><p>The screenshots demonstrate a complete pattern for enabling OAuth client credentials for OIC through an OCI Identity Domain confidential application. The process starts in OCI under Identity &amp; Security &gt; Domains, continues through Integrated applications by creating or reviewing a Confidential Application, and then validates that Client credentials is enabled. The OIC resource scopes and app roles provide the authorization context, while the OIC REST connection stores the token endpoint, client ID, client secret, and scope used at runtime.</p><p>When configured correctly, this approach provides a secure machine-to-machine authentication model for OIC REST calls. The key success factors are accurate scope configuration, secure handling of the client secret, least-privilege role assignment, and successful connection testing inside OIC.</p><p>Happy Learning :)</p><p>please follow me :)</p><p><a href="https://www.linkedin.com/in/bharath-l-585801138/">https://www.linkedin.com/in/bharath-l-585801138/</a></p><p>Thankyou</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=027c16daacab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OIC GEN3 Architect Solutions and Developer Approaches]]></title>
            <link>https://medium.com/@bharath.lingampeta/oic-gen3-architect-solutions-and-developer-approaches-ecc0fbca1cce?source=rss-6c0a960a917b------2</link>
            <guid isPermaLink="false">https://medium.com/p/ecc0fbca1cce</guid>
            <dc:creator><![CDATA[Bharath Lingampeta]]></dc:creator>
            <pubDate>Sat, 16 May 2026 17:16:41 GMT</pubDate>
            <atom:updated>2026-05-16T17:16:41.470Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>OIC GEN3 Architect Solutions and Developer Approaches</strong></p><p><strong><em>Audience: OIC Developers, OIC Architects, OCI Admins, Oracle Fusion Developers</em></strong></p><p><em>Practical Limits and Better Design Approaches</em></p><p>Author: Bharath Lingampeta</p><h3>Introduction</h3><p>Oracle Integration Cloud, commonly known as OIC, provides a wide range of adapters that make application, database, file, and enterprise system integrations easier to build. In OIC Gen 3, these adapters help developers connect systems quickly, reduce custom coding, and accelerate integration delivery.</p><p>However, successful enterprise integration is not only about knowing which adapter to use. It is also about understanding each adapter’s practical limits and designing solutions that work reliably at scale. Timeouts, payload sizes, API throttling, large file handling, and long-running operations can all affect performance if they are not considered during the design phase.</p><p><em>Key message: Adapters are useful building blocks, but strong integration architecture comes from designing around their limits.</em></p><p>This document summarizes common OIC Gen 3 adapter limitations and provides practical design approaches that can help create scalable, stable, and maintainable integrations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6d-SH2_S8al20n1m1gCyYg.png" /></figure><h3>REST Adapter</h3><p>The REST Adapter is commonly used to integrate OIC with external APIs and cloud applications. It is flexible and widely adopted, but REST-based integrations can face challenges when requests are long-running, payloads are large, or the target system applies API rate limits.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f5fUmMOJrZ0FLlPGnRlkmQ.png" /></figure><p>A common design issue occurs when developers try to process heavy workloads in a single synchronous call. If the target API takes too long to respond, the integration may fail because of the timeout. Similarly, when very large datasets are exchanged in one request, payload limits and memory usage can affect performance.</p><p>A better approach is to use asynchronous orchestration for long-running jobs. For large datasets, the integration should use pagination so that records are processed in smaller groups. If the target API applies throttling, the integration should include retry logic with exponential backoff. For very large payloads, the design should use stage files, object storage, or file-based handoff patterns instead of passing all data directly through a single REST message.</p><h3>Database Adapter</h3><p>The Database Adapter is useful for connecting OIC with on-premises and cloud databases. It supports operations such as stored procedure calls, SQL queries, inserts, updates, and polling. While it is powerful, database integrations require careful design when large volumes of data are involved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*v8iHIq48Xg17icGJGWAK_Q.png" /></figure><p>A frequent performance problem occurs when an integration tries to poll or retrieve millions of rows in one operation. This can increase database load, slow down integration execution, and create timeout risks.</p><p>The recommended approach is to retrieve data in manageable chunks, typically between 1,000 and 10,000 records depending on the database, network, and transformation complexity. Integrations should use sequence numbers, indexed columns, timestamps, or pagination keys to identify the next batch of records. For high-volume processing, OIC can publish chunk identifiers into a streaming or queue-based mechanism, allowing multiple integrations to process different chunks in parallel.</p><h3>FTP Adapter</h3><p>The FTP Adapter is commonly used for file-based integrations. It is helpful when systems exchange flat files, CSV files, XML files, or large unstructured files. Since FTP-based processing is file-oriented, it is usually not considered a real-time integration pattern.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ckaO6tnWdz3l8Ogq1vLkVA.png" /></figure><p>When very large structured files are processed directly, parsing and transformation can become slow or memory-intensive. This is especially true when the file includes many records and requires schema-based validation or mapping.</p><p>A better design is to split large files into smaller batches before processing. After files are successfully processed, they should be moved to an archive location to avoid duplicate processing and to support audit requirements. For large files, segmented reading can help process data in sections rather than loading the entire file at once. If near real-time behavior is required, the FTP process can be combined with an event trigger or notification mechanism so that files are picked up as soon as they arrive.</p><h3>SOAP Adapter</h3><p>The SOAP Adapter is used for integrations with SOAP-based web services. Many enterprise and legacy systems still rely on SOAP services, especially where formal contracts and XML schemas are required. However, SOAP messages can become large because of XML structure, namespaces, and detailed schemas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mD85QOwzsjjanLqAtSqbVQ.png" /></figure><p>Large SOAP payloads can slow down integration execution, especially when complex XML transformations are involved. Long-running service operations may also exceed synchronous timeout limits.</p><p>The recommended approach is to reduce XML payload size by sending only the required fields. Developers should use selective schemas where possible instead of importing or processing unnecessary schema structures. Heavy operations should be moved to an asynchronous integration pattern, where the request is accepted quickly and the result is processed later through a callback, polling, or status-check mechanism.</p><h3>ERP Adapter</h3><p>The ERP Adapter is commonly used to integrate OIC with Oracle Fusion Cloud ERP and related SaaS applications. It supports many business operations, but enterprise SaaS integrations must still follow the limits and processing behavior of the target application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TktrRf-86Y0YyAGf05-MYw.png" /></figure><h3>Additional OIC Gen 3 Design Considerations</h3><p>In addition to adapter-specific limits, there are two important OIC Gen 3 behavior changes that should be checked during design review, migration, enhancement work, and regression testing. These changes are important because they can affect existing integrations, custom monitoring dashboards, audit tables, and downstream programs that were originally designed with earlier assumptions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*21_-L6VqYJLkUinjzTboQg.png" /></figure><h3>Design Mindset: Developer View vs. Architect View</h3><p>A developer may often ask whether a specific adapter can handle a requirement. This is a valid question, but it is only the starting point. In enterprise integration, the better question is how the solution should be designed so that it remains reliable under real production conditions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*riE8WHuLwfEKzA7Ga6s_tw.png" /></figure><h3>Recommended Best Practices</h3><p>OIC Gen 3 integrations should be designed with scalability, observability, and operational support in mind. Long-running processes should be asynchronous. Large datasets should be chunked, paginated, or handled through file-based patterns. API calls should include retry and throttling strategies. Monitoring should be designed from the beginning rather than added after production issues occur.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4swuLi2HRHaFb-ea262jvA.png" /></figure><p><em>Final takeaway: In OIC Gen 3, strong integration design means not only asking whether an adapter can handle a requirement, but also deciding how to design around its limits.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cUCEDaORvGJ2Bdqlfw18gg.png" /></figure><p>Happy Learning :), thankyou</p><p>Follow me:<br><a href="https://www.linkedin.com/in/bharath-l-585801138/">https://www.linkedin.com/in/bharath-l-585801138/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ecc0fbca1cce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[OCI Document Understanding usage in OIC]]></title>
            <link>https://medium.com/@bharath.lingampeta/oci-document-understanding-usage-in-oic-b9484c61395c?source=rss-6c0a960a917b------2</link>
            <guid isPermaLink="false">https://medium.com/p/b9484c61395c</guid>
            <dc:creator><![CDATA[Bharath Lingampeta]]></dc:creator>
            <pubDate>Mon, 11 May 2026 02:01:57 GMT</pubDate>
            <atom:updated>2026-05-11T02:01:57.683Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>OCI Document Understanding usage in OIC</strong></p><p>This is new feature capability from Oracle Integration 3.0</p><p><strong>Prereq:</strong> OIC GEN3 instance, access to OCI Document understanding, Access to OCI object storage</p><p>Step1: check the OCI Document understanding capabilities</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*cfhCPJrKyL7hsZ-WjNyeiA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/420/1*-WDdP4NjVjI1B427D68V2Q.png" /></figure><p>Upload a sample invoice pdf from your local and see if text is extracted perfectly, currently I used below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*7rGd8DH4ZCEcC2QqAKJEqw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*cxT8YPgyYTO6O-Ec_ZFSMw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*P5wX9mQioAST1ZVENZ8dBA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*NdbHRj26j7WpO5rMZDsT7g.png" /></figure><p>So it means its working fine</p><p>Now the next important steps are here to utilize this feature in GEN3 OIC</p><p>Upload the sample INVOICE PDF to your bucket location</p><p>I uploaded as below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*w0nD5mbDUMRXyyShs2PC6g.png" /></figure><p>DOCUNDERSTANDING333.pdf</p><p>The next step is create OIC to utilize Document understanding OCI feature to extract data</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/694/1*L1nq0I8N6FQhzYxXcT6s8w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*GeJclWBELgWOtGOiWD3K8w.png" /></figure><p>In real time we can loop over all objects as per business requirements, as of now I am just showing only one invoice</p><p>Request payload</p><p>{</p><p>“InvoicePDFName”:”demo.pdf”</p><p>}</p><p>And response as</p><p>{“response”:”success”}</p><p>Now save and drag the object storage</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*aejorwQgG3MZMvAEzbKc0w.png" /></figure><p>Prerequisite important note, sometimes OIC cant see the compartment or bucket etc in OIC program</p><p><strong>Giving OIC access to OCI Object Storage</strong></p><p>allow dynamic-group OIC to manage all-resources in compartment asgcomp</p><p>example for my case</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*wy-bagAihrll0xljv3xOAw.png" /></figure><p>Allow dynamic-group bahrathg to manage object-family in compartment OciBucketComp</p><p>Allow dynamic-group bahrathg to inspect compartments in compartment OciBucketComp</p><p>Now go back to OIC instance and configure the things as below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*tFzfunWYXxoCrN3rZor_gw.png" /></figure><p>After continue, as of now just map the invoicepdf to read data from bucket, as of realtime we can use loop over the list of bucket objects, that’s a separate test case as primary intention of this OIC is to show document AI OCI processing capabilities</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*nc1-reTXhOF2S8FYx2Uyaw.png" /></figure><p>Now add action as below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*iC0-wY4Oq7k_50oiEW1Nmg.png" /></figure><p>Select Analyze document and select as invoice</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/716/1*egs5PDwCRCtARgHJRMUpoA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*sA3-hYLJ-dj7KVbuyxG9HQ.png" /></figure><p>Run the OIC now, and see that the data is extracted</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*MvWgONOKRWriFBGDiEx8Qg.png" /></figure><p><strong>Conclusion: we can leverage the OCI Document AI capabilities to utilize in OIC as part of existing GEN3 actions, and is useful component which can be utilized for many business scenarios</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b9484c61395c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>