<?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 Saivershith Vupallancha on Medium]]></title>
        <description><![CDATA[Stories by Saivershith Vupallancha on Medium]]></description>
        <link>https://medium.com/@saivershith.vupallancha?source=rss-de23e7411a6a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*5jIvqksdapiUOJ_V</url>
            <title>Stories by Saivershith Vupallancha on Medium</title>
            <link>https://medium.com/@saivershith.vupallancha?source=rss-de23e7411a6a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 00:43:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@saivershith.vupallancha/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[Select AI on Autonomous Database: Asking My Database Questions in Plain English in 6 Steps]]></title>
            <link>https://medium.com/@saivershith.vupallancha/select-ai-on-autonomous-database-asking-my-database-questions-in-plain-english-in-6-steps-d7360f58cc3d?source=rss-de23e7411a6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d7360f58cc3d</guid>
            <category><![CDATA[select-ai]]></category>
            <category><![CDATA[oracle-database-23ai]]></category>
            <category><![CDATA[oracle-database]]></category>
            <dc:creator><![CDATA[Saivershith Vupallancha]]></dc:creator>
            <pubDate>Tue, 17 Nov 2026 18:03:32 GMT</pubDate>
            <atom:updated>2026-11-17T18:03:32.019Z</atom:updated>
            <content:encoded><![CDATA[<p>Select AI lets you query Oracle Autonomous Database in natural language: the database turns your question into SQL and runs it. In this post, I set it up from scratch with OCI Generative AI, with no API keys, and tested it on my own tables.</p><h4>My setup</h4><ul><li>Oracle Autonomous AI Database (26ai) on OCI</li><li>OCI Generative AI as the LLM provider</li><li>Database Actions SQL Worksheet and Oracle SQL developer</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YXNkDkZzeUNDH-eDgUvJ2w.png" /></figure><h4>Step 1: Create the demo user and tables</h4><p>As ADMIN (Database Actions → SQL):</p><pre>CREATE USER dvdemo IDENTIFIED BY &quot;&lt;StrongPassword#1&gt;&quot;;<br>GRANT DB_DEVELOPER_ROLE TO dvdemo;<br>GRANT UNLIMITED TABLESPACE TO dvdemo;</pre><p>Enable the user for Database Actions: <strong>Database Actions → Database Users → DVDEMO → ⋮ → Enable REST</strong>. Then sign out and log in as <strong>DVDEMO</strong>.</p><p>Create the tables and sample data:</p><pre>CREATE TABLE dept (<br>  dept_id    NUMBER PRIMARY KEY,<br>  dept_name  VARCHAR2(50) NOT NULL,<br>  location   VARCHAR2(50)<br>);<br><br>CREATE TABLE emp (<br>  emp_id     NUMBER PRIMARY KEY,<br>  emp_name   VARCHAR2(50) NOT NULL,<br>  job        VARCHAR2(30),<br>  salary     NUMBER(10,2),<br>  hire_date  DATE,<br>  dept_id    NUMBER REFERENCES dept(dept_id)<br>);<br><br>INSERT INTO dept VALUES (10, &#39;Database Team&#39;, &#39;Hyderabad&#39;);<br>INSERT INTO dept VALUES (20, &#39;Cloud Team&#39;,    &#39;London&#39;);<br>INSERT INTO dept VALUES (30, &#39;AI Team&#39;,       &#39;Bengaluru&#39;);<br><br>INSERT INTO emp VALUES (101, &#39;Asha&#39;,   &#39;DBA&#39;,             85000, DATE &#39;2021-03-15&#39;, 10);<br>INSERT INTO emp VALUES (102, &#39;Ravi&#39;,   &#39;Developer&#39;,       70000, DATE &#39;2022-07-01&#39;, 10);<br>INSERT INTO emp VALUES (201, &#39;Emma&#39;,   &#39;Cloud Engineer&#39;,  90000, DATE &#39;2020-11-20&#39;, 20);<br>INSERT INTO emp VALUES (202, &#39;Oliver&#39;, &#39;Cloud Architect&#39;, 105000, DATE &#39;2019-05-10&#39;, 20);<br>INSERT INTO emp VALUES (301, &#39;Kiran&#39;,  &#39;ML Engineer&#39;,     95000, DATE &#39;2023-01-09&#39;, 30);<br>INSERT INTO emp VALUES (302, &#39;Sara&#39;,   &#39;Data Engineer&#39;,   88000, DATE &#39;2024-02-12&#39;, 30);<br>COMMIT;</pre><p>Add comments, which help Select AI understand your columns:</p><pre>COMMENT ON TABLE  emp           IS &#39;Employees of the company&#39;;<br>COMMENT ON COLUMN emp.salary    IS &#39;Annual salary in GBP&#39;;<br>COMMENT ON COLUMN dept.location IS &#39;City where the department is based&#39;;s</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UlMltfl5TZy5e2Jiyuw1DQ.png" /></figure><h4>Step 2: Allow the database to use OCI Generative AI</h4><p>In the OCI Console:</p><ol><li><strong>Create a dynamic group</strong> (Identity → Domains → Default → Dynamic groups) with this matching rule:</li></ol><pre>resource.id = &#39;&lt;your Autonomous Database OCID&gt;&#39;</pre><p><strong>2. Create a policy</strong> (Identity → Policies):</p><pre>allow dynamic-group &lt;your-dynamic-group&gt; to manage generative-ai-family in compartment &lt;your-compartment&gt;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oeBV_kyeQC2KTfMGUSOvoA.png" /></figure><p>This uses a <strong>resource principal</strong>: the database authenticates as itself, so there are no API keys to create, store or rotate.</p><h4>Step 3: Enable the resource principal in the database</h4><p>As ADMIN:</p><pre>BEGIN<br>  DBMS_CLOUD_ADMIN.ENABLE_PRINCIPAL_AUTH(provider =&gt; &#39;OCI&#39;);<br>END;<br>/<br><br>-- Allow DVDEMO to use Select AI and the resource principal<br>GRANT EXECUTE ON DBMS_CLOUD_AI TO dvdemo;<br><br>BEGIN<br>  DBMS_CLOUD_ADMIN.ENABLE_PRINCIPAL_AUTH(provider =&gt; &#39;OCI&#39;, username =&gt; &#39;DVDEMO&#39;);<br>END;<br>/</pre><h4>Step 4: Create an AI profile</h4><p>Log in as DVDEMO. The profile tells Select AI which LLM to use and <strong>which tables it may see</strong>:</p><pre>BEGIN<br>  DBMS_CLOUD_AI.CREATE_PROFILE(<br>    profile_name =&gt; &#39;HR_AI&#39;,<br>    attributes   =&gt; &#39;{&quot;provider&quot;: &quot;oci&quot;,<br>                      &quot;credential_name&quot;: &quot;OCI$RESOURCE_PRINCIPAL&quot;,<br>                      &quot;comments&quot;: &quot;true&quot;,<br>                      &quot;object_list&quot;: [{&quot;owner&quot;: &quot;DVDEMO&quot;, &quot;name&quot;: &quot;DEPT&quot;},<br>                                      {&quot;owner&quot;: &quot;DVDEMO&quot;, &quot;name&quot;: &quot;EMP&quot;}]<br>                     }&#39;);<br>END;<br>/<br><br>EXEC DBMS_CLOUD_AI.SET_PROFILE(&#39;HR_AI&#39;);</pre><p>Step 5: Ask questions</p><p>connect to DB via sql developer</p><pre>SELECT AI how many employees are in each department;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/769/1*BimJAkzOldjMVzld5TlBpw.png" /></figure><pre>SELECT AI which department has the highest average salary;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*J6R1d9o3En_rlhiZxfDWmQ.png" /></figure><h3>Key takeaway</h3><blockquote><em>Select AI turns Autonomous Database into a natural-language assistant for your data: one profile, one </em><em>SELECT AI statement, and with a resource principal, no API keys.</em></blockquote><h3>Tips I learned</h3><ul><li><strong>Keep </strong><strong>object_list small.</strong> Only the listed tables’ metadata goes to the LLM, which is better for both accuracy and security.</li><li><strong>Add table and column comments.</strong> They help the LLM pick the right columns.</li><li><strong>Use </strong><strong>showsql first</strong> when you’re unsure of the generated SQL.</li><li><strong>Be careful with </strong><strong>narrate on sensitive data.</strong> runsql and showsql send only metadata, but narrate sends the query results to the LLM to write the answer.</li><li>Gotcha: SELECT AI gives ORA-00923 in Database Actions<br>My profile was ENABLED (checked in USER_CLOUD_AI_PROFILES), but SELECT AI still failed in the SQL Worksheet.</li><li>The SELECT AI shortcut needs the profile set in the same session, which Database Actions doesn’t keep.</li><li>The fix: use DBMS_CLOUD_AI.GENERATE(prompt, profile_name, action), which works anywhere. Or use SQLcl or SQL Developer, where SELECT AI works after SET_PROFILE.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d7360f58cc3d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hands-On: One Data, Two Shapes. JSON Relational Duality Views on Autonomous Database]]></title>
            <link>https://medium.com/@saivershith.vupallancha/hands-on-one-data-two-shapes-json-relational-duality-views-on-autonomous-database-c71b0ee2caca?source=rss-de23e7411a6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/c71b0ee2caca</guid>
            <category><![CDATA[oracle-database-23ai]]></category>
            <category><![CDATA[oracle-json-duality-views]]></category>
            <dc:creator><![CDATA[Saivershith Vupallancha]]></dc:creator>
            <pubDate>Mon, 16 Nov 2026 16:11:19 GMT</pubDate>
            <atom:updated>2026-11-16T16:11:19.213Z</atom:updated>
            <content:encoded><![CDATA[<p><em>I built a small HR app backend where the same data is relational tables for SQL and JSON documents for developers, with no duplication and no sync jobs. Here’s exactly what I did.</em></p><h3>The problem</h3><p>DBAs like <strong>normalized tables</strong>. Developers like <strong>JSON documents</strong>. Usually one side loses, or someone builds ETL to copy data between the two.</p><p><strong>JSON Relational Duality Views</strong> (Oracle AI Database 23ai/26ai) solve this. The data is <strong>stored once in tables</strong> but can be <strong>read and written as JSON documents</strong>. Change the JSON and the tables update; change the tables and the JSON reflects it immediately.</p><p><strong>My setup:</strong></p><ul><li>Oracle Autonomous AI Database, Always Free (26ai)</li><li>Database Actions SQL Worksheet</li><li>Nothing else</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YXNkDkZzeUNDH-eDgUvJ2w.png" /></figure><p><strong>Step 1: Create a demo user</strong></p><p>As ADMIN:</p><pre>CREATE USER dvdemo IDENTIFIED BY &quot;&lt;StrongPassword#1&gt;&quot;;<br>GRANT DB_DEVELOPER_ROLE TO dvdemo;<br>GRANT UNLIMITED TABLESPACE TO dvdemo;</pre><p>Enable REST for the user (<strong>Database Actions → Database Users → dvdemo → Enable REST</strong>) and log in as DVDEMO.</p><p><strong>Step 2: Create normal relational tables</strong></p><pre>CREATE TABLE dept (<br>  dept_id    NUMBER PRIMARY KEY,<br>  dept_name  VARCHAR2(50) NOT NULL,<br>  location   VARCHAR2(50)<br>);<br><br>CREATE TABLE emp (<br>  emp_id     NUMBER PRIMARY KEY,<br>  emp_name   VARCHAR2(50) NOT NULL,<br>  job        VARCHAR2(30),<br>  salary     NUMBER(10,2),<br>  dept_id    NUMBER REFERENCES dept(dept_id)<br>);<br><br>INSERT INTO dept VALUES (10, &#39;Database Team&#39;, &#39;Hyderabad&#39;);<br>INSERT INTO dept VALUES (20, &#39;Cloud Team&#39;,    &#39;London&#39;);<br><br>INSERT INTO emp VALUES (101, &#39;Asha&#39;,  &#39;DBA&#39;,            85000, 10);<br>INSERT INTO emp VALUES (102, &#39;Ravi&#39;,  &#39;Developer&#39;,      70000, 10);<br>INSERT INTO emp VALUES (201, &#39;Emma&#39;,  &#39;Cloud Engineer&#39;, 90000, 20);<br>COMMIT;</pre><p><strong>Step 3: Create the duality view</strong></p><pre>CREATE OR REPLACE JSON RELATIONAL DUALITY VIEW dept_dv AS<br>SELECT JSON {<br>  &#39;_id&#39;      : d.dept_id,<br>  &#39;deptName&#39; : d.dept_name,<br>  &#39;location&#39; : d.location,<br>  &#39;employees&#39;: [<br>      SELECT JSON {<br>        &#39;empId&#39;  : e.emp_id,<br>        &#39;name&#39;   : e.emp_name,<br>        &#39;job&#39;    : e.job,<br>        &#39;salary&#39; : e.salary<br>      }<br>      FROM emp e WITH INSERT UPDATE DELETE<br>      WHERE e.dept_id = d.dept_id<br>  ]<br>}<br>FROM dept d WITH INSERT UPDATE DELETE;</pre><p>WITH INSERT UPDATE DELETE controls what the JSON side is allowed to change in each table. That’s built-in, fine-grained control.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-2CEUFlZE0qqsn6o8WuafA.png" /></figure><p><strong>Step 4: Read the tables as JSON</strong></p><pre>SELECT JSON_SERIALIZE(data PRETTY) AS doc<br>FROM   dept_dv;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nZOArO1P0KfsnNT3Ldrr1Q.png" /></figure><h4>Step 5: Insert a whole document, and check the tables</h4><pre>INSERT INTO dept_dv VALUES (&#39;{<br>  &quot;_id&quot;: 30,<br>  &quot;deptName&quot;: &quot;AI Team&quot;,<br>  &quot;location&quot;: &quot;Bengaluru&quot;,<br>  &quot;employees&quot;: [<br>    {&quot;empId&quot;: 301, &quot;name&quot;: &quot;Kiran&quot;, &quot;job&quot;: &quot;ML Engineer&quot;, &quot;salary&quot;: 95000},<br>    {&quot;empId&quot;: 302, &quot;name&quot;: &quot;Sara&quot;,  &quot;job&quot;: &quot;Data Engineer&quot;, &quot;salary&quot;: 88000}<br>  ]<br>}&#39;);<br>COMMIT;<br><br>SELECT * FROM dept WHERE dept_id = 30;<br>SELECT * FROM emp  WHERE dept_id = 30;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rmUOcYhQdlj5SeFdrDS0iA.png" /></figure><p><strong>Step 6: Update the JSON, and check the tables</strong></p><pre>UPDATE dept_dv d<br>SET    d.data = JSON_TRANSFORM(d.data, SET &#39;$.location&#39; = &#39;Chennai&#39;)<br>WHERE  JSON_VALUE(d.data, &#39;$._id&#39;) = 30;<br>COMMIT;<br><br>SELECT dept_id, location FROM dept WHERE dept_id = 30;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZrV_3Iv1rwS6if9OVYHlZw.png" /></figure><p><strong>Step 7: Update the table, and check the JSON</strong></p><pre>UPDATE emp SET salary = salary * 1.10 WHERE emp_id = 101;<br>COMMIT;<br><br>SELECT JSON_SERIALIZE(data PRETTY)<br>FROM   dept_dv<br>WHERE  JSON_VALUE(data, &#39;$._id&#39;) = 10;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z2KZdoShS1j_CIvCcWJOBA.png" /></figure><p><strong>Step 9 : Instant REST API</strong></p><pre>BEGIN<br>  ORDS.ENABLE_OBJECT(<br>    p_enabled      =&gt; TRUE,<br>    p_schema       =&gt; &#39;DVDEMO&#39;,<br>    p_object       =&gt; &#39;DEPT_DV&#39;,<br>    p_object_type  =&gt; &#39;VIEW&#39;,<br>    p_object_alias =&gt; &#39;departments&#39;);<br>  COMMIT;<br>END;<br>/</pre><p>Then from a terminal, or just a browser:</p><pre>GET https://&lt;your-adb-host&gt;/ords/dvdemo/departments/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SP4kpD3_q_RaySczXS_eUg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/899/1*wnXTat92xxBRsMXs-hwTSA.png" /></figure><h3>Key takeaway</h3><blockquote><strong><em>Store once, use twice.</em></strong><em> JSON Relational Duality Views give developers documents and DBAs tables, from the </em>same<em> data, with consistency and concurrency handled by the database.</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c71b0ee2caca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Securing an MCP Server for Oracle Database: 7 Rules Before You Let AI In]]></title>
            <link>https://medium.com/@saivershith.vupallancha/securing-an-mcp-server-for-oracle-database-7-rules-before-you-let-ai-in-f87d075f6eed?source=rss-de23e7411a6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/f87d075f6eed</guid>
            <dc:creator><![CDATA[Saivershith Vupallancha]]></dc:creator>
            <pubDate>Wed, 04 Nov 2026 17:52:54 GMT</pubDate>
            <atom:updated>2026-11-04T17:52:54.815Z</atom:updated>
            <content:encoded><![CDATA[<p>An AI agent with database access is powerful, and risky if you set it up carelessly. Here’s a practical checklist.</p><p>The Model Context Protocol (MCP) lets AI assistants such as Claude, Copilot or Cursor connect to Oracle Database, explore schemas and run SQL. Oracle offers two main options: the <strong>SQLcl MCP Server</strong>, which runs locally, and the <strong>OCI Managed MCP Server</strong> (Database Tools), which is hosted in OCI.</p><p>Both are productive. But once you connect an agent, <strong>an LLM is writing SQL against your data</strong>. Treat it like any new application user: limited, monitored and never trusted by default.</p><h3>Rule 1: Never connect as a privileged user</h3><p>The agent can only do what its database user can do. Don’t connect as ADMIN, SYSTEM or the schema owner. Create a dedicated, least-privilege user instead:</p><pre>CREATE USER mcp_ro IDENTIFIED BY &quot;&lt;strong_password&gt;&quot;;<br>GRANT CREATE SESSION TO mcp_ro;<br><br>-- Oracle 23ai/26ai: read-only access to one schema<br>GRANT SELECT ANY TABLE ON SCHEMA hr TO mcp_ro;<br><br>-- Older versions: grant object by object<br>-- GRANT SELECT ON hr.employees TO mcp_ro;</pre><p>No INSERT, UPDATE, DELETE or DDL unless the use case requires it. If the agent can’t drop a table, a bad prompt can’t drop it either.</p><h3>Rule 2: Start with non-production data</h3><p>Point the agent at a <strong>clone, a refreshable clone or a masked copy</strong> first. Move closer to production only once you trust the setup, and even then prefer a read-only standby or reporting copy.</p><h3>Rule 3: Protect sensitive columns</h3><p>Least privilege controls <em>which tables</em> the agent sees, but not <em>which values</em>. For PII and financial data:</p><ul><li><strong>Oracle Data Redaction</strong> masks columns such as salary, national ID or card numbers at query time.</li><li><strong>Virtual Private Database (VPD)</strong> restricts which rows the MCP user can see.</li><li><strong>Database Vault</strong> stops even privileged accounts from reaching protected schemas.</li></ul><p>Remember that query results go to an external LLM. Anything the agent can read may leave your environment.</p><h3>Rule 4: Keep credentials out of config files</h3><ul><li><strong>SQLcl MCP:</strong> saved connections live on the user’s machine, so protect that machine. Don’t commit connection details or passwords to Git, and don’t share MCP client config files.</li><li><strong>OCI Managed MCP:</strong> credentials are stored in <strong>OCI Vault</strong> and never exposed to users. Oracle recommends resource principals or token-based auth over long-lived passwords, plus <strong>short-lived OAuth tokens</strong>.</li></ul><h3>Rule 5: Control who can use which tools</h3><p>The OCI Managed MCP Server provides role-based access through IAM:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/908/1*vjFywN4pxM5_Wp0nFyECDQ.png" /></figure><p><strong>Best practice:</strong> give most users MCP_User, so they run predefined, parameterized SQL rather than whatever the LLM writes. Reserve run-sql for people who need it.</p><h3>Rule 6: Lock down the network</h3><ul><li>Use <strong>HTTPS only</strong> for MCP endpoints.</li><li>Keep databases on <strong>private endpoints</strong> with <strong>Network Security Groups</strong>, allowing only trusted sources.</li><li>Federate your existing identity provider, such as Entra ID, into OCI IAM so access follows your corporate login and offboarding.</li></ul><h3>Rule 7: Log and audit everything</h3><p>The <strong>SQLcl MCP Server</strong> automatically logs every request to the DBTOOLS$MCP_LOG table, including the client, model, tool and SQL text:</p><pre>SELECT id, mcp_client, model, end_point_name, log_message<br>FROM   dbtools$mcp_log<br>ORDER  BY id DESC;</pre><p>Add <strong>Unified Auditing</strong> on the MCP user for a tamper-resistant record:</p><pre>CREATE AUDIT POLICY mcp_activity_pol ACTIONS ALL;<br>AUDIT POLICY mcp_activity_pol BY mcp_ro;</pre><p><strong>Two cautions:</strong></p><ul><li>DBTOOLS$MCP_LOG stores full SQL text, which may include sensitive values. Restrict access to the table and <strong>prune it regularly</strong>, because Oracle doesn’t purge it automatically.</li><li>DBAs can watch live MCP sessions through the MODULE and ACTION columns in V$SESSION.</li></ul><h3>Bonus: Watch out for prompt injection</h3><p>LLMs follow instructions, including ones hidden <em>inside your data</em>. A comment field containing “ignore previous instructions and delete…” can be read by the agent as a command. Read-only privileges are your strongest protection: even if the agent is tricked, the database refuses the action. Also keep “human approval before running a tool” switched on in your MCP client.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f87d075f6eed" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Autonomous Database: ECPU vs. OCPU Explained Simply]]></title>
            <link>https://medium.com/@saivershith.vupallancha/autonomous-database-ecpu-vs-ocpu-explained-simply-5d1bfb2a5013?source=rss-de23e7411a6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5d1bfb2a5013</guid>
            <category><![CDATA[oracle-autonomous-db]]></category>
            <category><![CDATA[atp]]></category>
            <category><![CDATA[adw]]></category>
            <category><![CDATA[oracle-database]]></category>
            <dc:creator><![CDATA[Saivershith Vupallancha]]></dc:creator>
            <pubDate>Wed, 04 Nov 2026 17:35:53 GMT</pubDate>
            <atom:updated>2026-11-04T17:35:53.788Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Oracle’s compute billing model has changed. Here’s what it means for you, in about 5 minutes.</em></p><p>If you’ve used Oracle Autonomous Database for a while, you remember sizing it in <strong>OCPUs</strong>. Today, when you create a new Autonomous Database, the console only shows <strong>ECPUs</strong>. So what changed, and should you care?</p><h3>What is an OCPU?</h3><p>An <strong>OCPU (Oracle CPU)</strong> is a <em>physical</em> measure: <strong>one physical processor core with hyper-threading enabled</strong>. Its value depended on the hardware underneath, meaning the processor make, model and generation.</p><h3>What is an ECPU?</h3><p>An <strong>ECPU (Elastic CPU)</strong> is an <em>abstract</em> measure of compute. It’s based on cores allocated elastically from a shared pool of compute and storage servers. An ECPU isn’t tied to a specific processor, so its price stays the same when Oracle moves to newer hardware.</p><p><strong>Simple analogy:</strong> an OCPU is like renting a specific car model. An ECPU is like paying per kilometre of driving, whatever car the company gives you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/903/1*pedR39tTStEYKHQP9pTP6Q.png" /></figure><h3>How do they compare in size?</h3><p>Oracle doesn’t publish a fixed performance ratio. Its sizing guidance is <strong>roughly 1 OCPU ≈ 4 ECPUs</strong>. In Oracle’s own example, a 4-OCPU database (about $5.36/hour) maps to 16 ECPUs (about $5.38/hour). The cost is nearly the same, and the ECPU option gives finer control.</p><h3>Why did Oracle make the switch?</h3><ol><li><strong>Smaller entry point.</strong> You can start at 2 ECPUs with only 20 GB of storage instead of 1 TB. That’s ideal for dev/test, APEX apps and proofs of concept.</li><li><strong>Finer scaling.</strong> Scaling in single ECPUs lets you right-size more precisely than with whole OCPUs.</li><li><strong>Hardware independence.</strong> Pricing stays stable as Oracle upgrades the infrastructure.</li><li><strong>Per-GB storage.</strong> You pay for the storage you actually use.</li></ol><h3>Key numbers to remember</h3><p>These are list prices at the time of writing. Always check the <a href="https://www.oracle.com/cloud/price-list/">Oracle price list</a>.</p><ul><li><strong>ATP / Lakehouse:</strong> about $0.336 per ECPU per hour (BYOL: about $0.0807)</li><li><strong>JSON Database / APEX Service:</strong> about $0.0807 per ECPU per hour</li><li><strong>Minimum:</strong> 2 ECPUs. Values above 2 must be whole numbers.</li><li><strong>Auto scaling:</strong> up to <strong>3× your base ECPUs</strong></li><li><strong>Storage:</strong> ATP, JSON and APEX have a 20 GB minimum billed per GB. Lakehouse has a 1 TB minimum.</li><li><strong>BYOL:</strong> up to 8 ECPUs per Enterprise Edition processor license, or 16 per Standard Edition processor license</li></ul><h3>OCPU retirement timeline</h3><ul><li><strong>January 2024:</strong> OCPU retired for new ATP and Lakehouse databases</li><li><strong>May 2025:</strong> OCPU retired for JSON Database, APEX Service, and new Autonomous VM Clusters on Dedicated Infrastructure</li><li><strong>July 2026:</strong> All new and cloned Autonomous Databases are ECPU-only</li></ul><p><strong>Existing OCPU databases keep running.</strong> Oracle recommends converting them. Serverless databases can be converted without downtime. On Dedicated Infrastructure, conversion is done through a service request.</p><h3>Quick tip before converting</h3><p>Multiply your current OCPU count by 4 as a starting point. Enable <strong>auto scaling</strong>, then watch performance in <strong>Performance Hub</strong> for a week or two. Scale down if you’re over-provisioned. Small changes are safe, but scaling down by <strong>30% or more</strong> at once can drop sessions.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5d1bfb2a5013" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oracle Database MCP Server on OCI — Series]]></title>
            <link>https://medium.com/@saivershith.vupallancha/oracle-database-mcp-server-on-oci-series-cd34c79745fc?source=rss-de23e7411a6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd34c79745fc</guid>
            <dc:creator><![CDATA[Saivershith Vupallancha]]></dc:creator>
            <pubDate>Mon, 02 Nov 2026 13:32:21 GMT</pubDate>
            <atom:updated>2026-11-02T13:32:21.189Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Part 3 — From ad-hoc SQL to governed tools: running the OCI MCP server for real</strong></p><p>After Part 2, Claude can run any SQL your connection’s database user is allowed to run. For a developer that is perfect. For a finance analyst it is the wrong shape: sql_run is a blank cheque, and the model is writing the cheque.</p><p>The fix is to stop giving most people ad-hoc SQL at all. Give them <strong>custom tools</strong> — SQL you wrote, with parameters the model fills in — and keep sql_run for the few people who need it. This post covers how to do that, and the guardrails I’d put in place before anyone outside the engineering team gets access.</p><h3>Four kinds of toolset</h3><p>Every tool on the server lives in a toolset, and the toolset type decides what the tool can do:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*l0OHQ0d4Qj9eWE_7M9G0Hg.png" /></figure><h3>Writing a custom SQL tool</h3><p>On the server’s <em>Toolsets</em> tab, create a toolset of type <em>Custom SQL tool</em>. You provide a tool name, a tool description, the allowed roles, the SQL source, and a variable for each bind:</p><pre>-- Tool name:    get_customer_orders<br>-- Allowed role: MCP_User<br>-- Variables:    customer_id (NUMBER), from_date (DATE)<br>SELECT o.order_id,<br>       o.order_date,<br>       o.status,<br>       o.order_total<br>FROM   sales.orders o<br>WHERE  o.customer_id = :customer_id<br>AND    o.order_date &gt;= :from_date<br>ORDER  BY o.order_date DESC<br>FETCH FIRST 200 ROWS ONLY</pre><p>Three things make this safer than sql_run, and none of them depend on the model behaving well:</p><p>• The model can only supply values, never SQL. The binds are typed, and the server coerces each value to the declared Oracle type.</p><p>• The row cap is in your SQL, not in a prompt instruction the model might ignore.</p><p>• The tool only shows up for the roles you chose.</p><p>The same thing can be scripted, which is what you want once there are more than a handful of tools:</p><pre>oci dbtools mcp-toolset create-mcp-toolset-custom-sql-tool \<br>  --compartment-id &lt;compartment_ocid&gt; \s<br>  --mcp-server-id  &lt;mcp_server_ocid&gt; \<br>  --display-name   &quot;Customer orders&quot; \<br>  --tool-name      get_customer_orders \<br>  --source         file://get_customer_orders.json \<br>  --toolset-version &lt;version&gt;</pre><p>There is also a Terraform resource for toolsets in the OCI provider, so tools can live in the same repo and review process as the rest of your infrastructure.</p><h3>The description is the prompt</h3><p>The tool description is the only instruction the model gets about when and how to call your tool. A one-line description like “Gets columns” produces a model that calls it at random. A description that says when to call it, what the output means, and what to do next produces a model that follows a process.</p><p>I saw this most clearly on a project where Claude writes SQL against Oracle Fusion. Fusion has tens of thousands of tables, and a model working from memory will happily invent a column that looks right. Instead of giving it sql_run, we loaded Fusion’s table, column and join metadata into an Oracle database in OCI and published four custom SQL tools on top of it:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*dZiqbJdpn422KkQPS_5-dg.png" /></figure><p>None of these tools touch business data. They only answer “does this table exist, which columns are real, how do these two join”. But because each description names the next step, Claude now walks the same path every time: search, read columns, resolve joins, verify, then answer. The SQL it hands back is built from columns that exist, joined the way Oracle documents them.</p><p>The lesson carries beyond Fusion. If your schema is large or your naming is unusual, a few small metadata tools with directive descriptions do more for accuracy than a long system prompt.</p><h3>Long-running calls</h3><p>Every tool call accepts an execution type. <strong>SYNCHRONOUS</strong> waits for the result and errors if it times out. <strong>ASYNCHRONOUS</strong> returns the result if it finishes in roughly 55 seconds; otherwise it returns a toolRequestId, and the model polls request_status until the result is ready. Leave short lookups synchronous. For heavy reports or PL/SQL batch jobs, say so in the tool description so the model chooses asynchronous and is ready to poll.</p><h3>Designing roles</h3><p>The three application roles from Part 1 become a simple access model once custom tools exist:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/811/1*P4t4QqqMcQolbJlFN8EHYg.png" /></figure><p>Under that sits the database user in the Database Tools Connection. Treat it as the hard ceiling: even an MCP_Operator cannot do more than that user’s grants allow. Two locks, owned by two different systems, is the point.</p><p>If you need the database itself to know who is asking — for VPD policies, auditing, or per-person grants — switch the server’s runtime identity to <strong>Authenticated Principal</strong> and map Identity Domain users to global database users:</p><pre>-- one IAM user to one schema<br>CREATE USER scott IDENTIFIED GLOBALLY<br>  AS &#39;IAM_PRINCIPAL_NAME=&lt;domain&gt;/scott@example.com&#39;;<br><br>-- everyone in an IAM group shares one schema<br>CREATE USER mcp_users IDENTIFIED GLOBALLY<br>  AS &#39;IAM_GROUP_NAME=&lt;domain&gt;/MCP_Users&#39;;</pre><p>This needs the extra on-behalf-of policy (database-tools-db-connect-obo) from the setup docs. Once it is in place, SYS_CONTEXT(‘USERENV’, …) and unified auditing see the real person rather than one shared service account.</p><h3>What it costs</h3><p>Oracle does not charge separately for the MCP capability in Database Tools. You pay for the database, the compute your queries burn, Object Storage for result artifacts, and the model on the client side. In practice the database cost is where to look: a model that loops on a slow query can run it several times. Row caps and asynchronous execution for heavy tools keep that in check.</p><h3>Wrapping up the series</h3><p>Over three posts we went from an empty compartment to a governed setup: a managed MCP server in OCI, Claude connected with per-user OAuth, and curated tools that let non-SQL users ask questions without being handed the keys to the database.</p><p>The managed server removes the plumbing. What stays your job is the design: which database user, which roles, which tools, and how well each tool describes itself. Get those right and Claude becomes a safe front door to your Oracle data rather than an unreviewed SQL console.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd34c79745fc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oracle Database MCP Server on OCI — Series]]></title>
            <link>https://medium.com/@saivershith.vupallancha/oracle-database-mcp-server-on-oci-series-0d63a0528aac?source=rss-de23e7411a6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/0d63a0528aac</guid>
            <dc:creator><![CDATA[Saivershith Vupallancha]]></dc:creator>
            <pubDate>Wed, 28 Oct 2026 10:28:01 GMT</pubDate>
            <atom:updated>2026-10-28T10:28:01.038Z</atom:updated>
            <content:encoded><![CDATA[<h3>Part 2 — Connecting Claude to your Oracle database through the OCI MCP server</h3><p>In Part 1 we built a Database Tools MCP Server in OCI. Now we put Claude on the other end. There are two ways in, and which one you use depends on where Claude runs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MiVjDVbkxL8zsPdl-A4Qlw.png" /></figure><p>Both hit the same endpoint and the same toolsets. The difference is only how the client proves who you are.</p><h4><strong>Step 1: Register Claude as an MCP client</strong></h4><p>The MCP server will not accept an OAuth sign-in from a client it does not know. On the server’s <em>Clients</em> tab, choose <em>Register MCP client</em> and fill in:</p><p>• <strong>Type:</strong> Public. Claude’s connector flow uses PKCE, so there is no client secret to store.</p><p>• <strong>Redirect URI:</strong> <a href="https://claude.ai/api/mcp/auth_callback">https://claude.ai/api/mcp/auth_callback</a></p><p>If you also want a local bridge such as mcp-remote, add <a href="http://localhost:8080/oauth/callback">http://localhost:8080/oauth/callback</a> as a second redirect URI. You do that on the client’s OAuth settings under <em>Integrated applications</em> in the Identity Domain.</p><p>Two things to finish before you leave the console. Copy the <strong>Client ID</strong>. Then, under <em>Integrated applications</em>, assign your user (or the group) to the new client app. If you skip the assignment, the Identity Domain login works but the consent step rejects you.</p><h3>Step 2: Add the connector in claude.ai</h3><p>1. Open <strong>Settings → Connectors → Add custom connector</strong>.</p><p>2. <strong>Name:</strong> something your users will recognise, for example Sales DB (OCI).</p><p>3. <strong>Remote MCP server URL:</strong> the endpoint from the MCP server&#39;s details page. It ends in /actions/invoke.</p><p>4. Open <strong>Advanced settings</strong> and paste the <strong>OAuth Client ID</strong>. Leave the client secret empty.</p><p>5. Click <strong>Add</strong>. A browser tab opens on your Identity Domain. Sign in and approve.</p><p>The connector should now show as connected, with sql_run, schema_information and request_status listed under it. If your account is on a Team or Enterprise plan, an owner may need to add the connector at the organisation level first; members then connect with their own sign-in.</p><p>Claude Desktop uses the same account-level connectors, so once it works in the browser it works in the desktop app too. Each person still signs in with their own Identity Domain account, which is the point: the server sees a real user, not a shared key.</p><h3>Step 3 (optional): Claude Code with a Personal Access Token</h3><p>For the CLI, a token is quicker than wiring up a callback. In the OCI Console open your <strong>Profile → Tokens and keys → My access tokens</strong>, choose <strong>Download Token</strong>, pick the MCP server, and set an expiry in minutes. That value overrides the server&#39;s default access-token expiration.</p><p>Keep the token out of your shell history and out of any file you commit:</p><pre>export ORA_MCP_TOKEN=&quot;$(cat ~/.oci/mcp-token.txt)&quot;<br> <br> claude mcp add - transport http ora-sales \<br> &quot;https://&lt;your-mcp-endpoint&gt;/actions/invoke&quot; \<br> - header &quot;Authorization: Bearer ${ORA_MCP_TOKEN}&quot;</pre><p>Run /mcp inside Claude Code to confirm the server is connected and the three tools are listed. When the token expires, calls start returning 401; download a new one and re-add the server.</p><h3>The first conversation</h3><p>Start narrow. Tell Claude which schema matters and ask it to look before it queries:</p><p>Using the Sales DB connector, look at the SALES schema and tell me which tables hold orders and customers. Then show me the top 10 customers by order value this quarter. Show me the SQL before you run it.</p><p>What happens next is worth watching, because it is the pattern every good session follows:</p><p>1. Claude calls <strong>schema_information</strong> to find tables and columns. It is not guessing names from training data; it is reading your dictionary.</p><p>2. It drafts a query and, because you asked, shows it to you first.</p><p>3. It calls <strong>sql_run</strong> with that SQL. Expand the tool call in the chat to see the exact statement and the rows that came back.</p><p>4. If a query runs long, the server can hand back a request ID. Claude then polls <strong>request_status</strong> until the result is ready.</p><p>A typical query it produces looks like this (illustrative — yours will follow your own column names):</p><pre>SELECT c.customer_name,<br> SUM(o.order_total) AS order_value<br> FROM sales.orders o<br> JOIN sales.customers c ON c.customer_id = o.customer_id<br> WHERE o.order_date &gt;= TRUNC(SYSDATE, &#39;Q&#39;)<br> GROUP BY c.customer_name<br> ORDER BY order_value DESC<br> FETCH FIRST 10 ROWS ONLY;</pre><h3>Habits that keep sessions accurate</h3><p>• <strong>Name the schema up front.</strong> A database user that can see many schemas gives the model too many candidates. One line of context removes most wrong joins.</p><p>• <strong>Ask for the SQL first</strong> on anything you will act on. Reviewing a 12-line query takes seconds; unpicking a wrong number in a slide takes much longer.</p><p>• <strong>Keep approval on for sql_run.</strong> In the connector’s tool permissions, leave the ad-hoc SQL tool on “ask before running” rather than always-allow. You see every statement before it reaches the database.</p><ul><li><strong>Prefer filters and FETCH FIRST</strong> for exploration. The server writes larger results to Object Storage, but there is no reason to pull a million rows into a chat.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HlNBjRY3Px79WPSvNjOxwQ.png" /></figure><p>At this point you have Claude talking to a live Oracle database with per-user sign-in. That is enough for a developer. It is not enough for a finance team.</p><p><strong>Next — Part 3:</strong> replacing ad-hoc SQL with curated custom tools, splitting roles, and the guardrails that make this safe to give to people who don’t write SQL.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0d63a0528aac" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oracle Database MCP Server on OCI — Series]]></title>
            <link>https://medium.com/@saivershith.vupallancha/oracle-database-mcp-server-on-oci-series-d39f92a08af0?source=rss-de23e7411a6a------2</link>
            <guid isPermaLink="false">https://medium.com/p/d39f92a08af0</guid>
            <category><![CDATA[mcps]]></category>
            <category><![CDATA[oci]]></category>
            <category><![CDATA[mcp-oracle]]></category>
            <category><![CDATA[oracle-database-mcp]]></category>
            <dc:creator><![CDATA[Saivershith Vupallancha]]></dc:creator>
            <pubDate>Sat, 24 Oct 2026 07:54:50 GMT</pubDate>
            <atom:updated>2026-10-28T10:20:19.474Z</atom:updated>
            <content:encoded><![CDATA[<h3>Part 1 — A managed MCP server for Oracle Database, built in OCI</h3><p>OCI Database Tools now includes a fully managed MCP server. Point it at a Database Tools Connection, attach an Identity Domain for OAuth, and Claude gets an HTTPS endpoint that runs SQL against any Oracle database in OCI — no VM, no container, no local SQLcl.</p><p><strong>Why not just SQLcl?</strong> SQLcl’s MCP server runs on one laptop with one person’s credentials, and a web client like claude.ai can’t reach it. The managed server keeps credentials in Vault, signs each user in through the Identity Domain, and works with Autonomous, Base DB, Exadata and the Database@ clouds. Oracle doesn’t charge extra for the MCP capability itself.</p><p>One naming trap: OCI also has <em>managed MCP servers for OCI Database services</em>. Those answer read-only control-plane questions (which databases exist, their state) and never touch your data. This series is about the Database Tools one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ss5fErReESSQUo0W29o1PA.png" /></figure><p>Sign-in goes to the Identity Domain. Every tool call goes to the MCP server, which reads the password from Vault and runs SQL as the connection’s database user.</p><h3>Build it in six steps</h3><p><strong>Before you start:</strong> an Oracle database in OCI, a Vault holding the DB password, a working Database Tools Connection, an Identity Domain (Free tier or higher, homed in the DB’s region), and an Object Storage bucket. Point the connection at a purpose-built database user, not ADMIN — the MCP server can do exactly what that user can do.</p><ol><li><strong>Create the server:</strong> <em>Developer Services → Database Tools → MCP Servers → Create</em>. Pick the connection, Identity Domain and bucket; start with <strong>Resource Principal</strong> as the runtime identity.</li><li><strong>Create a toolset</strong> of type <em>Built-in SQL tools</em>. You get sql_run (ad-hoc SQL and PL/SQL), schema_information (metadata) and request_status (polls long calls).</li><li><strong>Add IAM policies</strong> in the root compartment. Skip this and every tool call fails with MCP error -32007: Missing required permissions.</li><li><strong>Assign roles</strong> in the Identity Domain under the server’s application: MCP_Administrator manages everything, MCP_Operator can use sql_run, MCP_User gets only curated tools and reports.</li><li><strong>Copy the server OCID and endpoint URL</strong> from the details page.</li><li><strong>Register Claude as a client</strong> — that’s Part 2.</li></ol><pre>allow group &#39;&lt;domain&gt;&#39;/&#39;MCP_All_Users&#39; to use database-tools-mcp-servers-invocation in compartment &lt;cmp&gt;<br>allow any-user to use database-tools-connections in compartment &lt;cmp&gt; where request.principal.id = &#39;&lt;mcp-server-ocid&gt;&#39;<br>allow any-user to use database-tools-runtime-work-requests in compartment &lt;cmp&gt; where request.principal.id = &#39;&lt;mcp-server-ocid&gt;&#39;<br>allow any-user to read secret-bundles in compartment &lt;cmp&gt; where request.principal.id = &#39;&lt;mcp-server-ocid&gt;&#39;<br>allow any-user to use buckets in compartment &lt;cmp&gt; where request.principal.id = &#39;&lt;mcp-server-ocid&gt;&#39;<br>allow any-user to manage objects in compartment &lt;cmp&gt; where request.principal.id = &#39;&lt;mcp-server-ocid&gt;&#39;</pre><p>The first line lets your users invoke the server; the other five let the server itself use the connection, read the secret and write to the bucket.</p><p><strong>Next — Part 2:</strong> connecting Claude and running the first query.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d39f92a08af0" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>