<?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 Phani Turlapati on Medium]]></title>
        <description><![CDATA[Stories by Phani Turlapati on Medium]]></description>
        <link>https://medium.com/@phani-turlapati?source=rss-42c4d4e5acc7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zfl6gLiuamUkZ6N0HwfYIw.png</url>
            <title>Stories by Phani Turlapati on Medium</title>
            <link>https://medium.com/@phani-turlapati?source=rss-42c4d4e5acc7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 03:28:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@phani-turlapati/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[Kubernetes Is Fast. Your Database Clones Should Be Too.]]></title>
            <link>https://medium.com/oracledevs/kubernetes-is-fast-your-database-clones-should-be-too-faea37c46c5c?source=rss-42c4d4e5acc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/faea37c46c5c</guid>
            <category><![CDATA[oracle-cloud]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[oracle-database]]></category>
            <category><![CDATA[cloud-native]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Phani Turlapati]]></dc:creator>
            <pubDate>Wed, 12 Aug 2026 14:13:01 GMT</pubDate>
            <atom:updated>2026-08-18T13:49:46.896Z</atom:updated>
            <content:encoded><![CDATA[<h4>For cloud-native applications that need real persistence, ExaDB-XS thin clones help developers stand up production-like Oracle PDB environments on Kubernetes without paying the full-copy database tax each time</h4><p>Let’s face it, Kubernetes has become one of the default ways modern applications get deployed. If a team wants a new environment, they can spin up namespaces, apply Helm charts, roll out services, and get a fresh application stack up quickly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1PEeYrlKXnkZHvZY0AhPGw.png" /></figure><p>The awkward part usually starts one layer down.</p><p>Your app tier is easy to replicate. Your persistent backend is not.</p><p>Most real applications are not just containers and APIs. They need state. They need production-like data. They need a place to test schema changes, inventory workflows, new business rules, and API behavior without stepping on the source environment.</p><p>This is exactly where Oracle Exadata Database Service on Exascale Infrastructure, or ExaDB-XS, gets interesting. With Oracle AI Database 26ai on ExaDB-XS, you can create thin-cloned pluggable databases using redirect-on-write storage, which means <em>unchanged blocks</em> stay shared between parent and clone instead of being copied in full. What this really means is simple: you can give Kubernetes apps a persistent backend that is fast to clone, cheap to keep around, and safe to branch for development and testing.</p><p>I built a small retail operations demo to show that in practice.</p><figure><img alt="Retail operations demo video" src="https://cdn-images-1.medium.com/max/1024/1*1lnHD8C7m_rK7SZRGdq4BA.gif" /><figcaption>Retail Operations Demo</figcaption></figure><h3>Key takeaways</h3><ul><li>Kubernetes has largely standardized how teams deploy the app layer, but database environment replication is still a common bottleneck.</li><li>ExaDB-XS thin clones use redirect-on-write storage, so unchanged blocks stay shared with the parent PDB and only changed blocks are written separately in the clone.</li><li>A retail operations app is a good example because it needs real relational consistency across stores, warehouses, products, positions, and replenishment workflows.</li><li>This is not just a clone story. It is a converged data platform story, where the same Oracle backend can handle relational data, JSON-heavy app patterns, analytics, and future AI workflows.</li><li>The practical payoff is faster iteration with safer isolation: developers can change clone data without affecting the source application.</li></ul><h3>Why this matters</h3><p>Now picture the everyday dev/test loop for a cloud-native application.</p><p>A team wants to test a new feature branch. The Kubernetes part is straightforward. The problem is the data layer. If everyone points to the same shared database, environments are not really isolated. If you make full database copies all the time, storage cost and provisioning time add up fast. If you fall back to tiny synthetic datasets, you lose confidence because the environment no longer behaves like production.</p><p>That is why this matters architecturally. The orchestration layer is already fast. The backend needs to stop being the slow, expensive exception.</p><p>If teams want multi-pronged development, parallel feature testing, or a separate environment per developer or per sprint stream, the data tier has to keep up.</p><h3>What ExaDB-XS changes</h3><p>ExaDB-XS is Oracle’s Exadata Database Service on Exascale Infrastructure. Thin-cloned PDBs on ExaDB-XS are available with Oracle AI Database 26ai. They are built on redirect-on-write storage, so unchanged blocks are shared with the parent PDB while changes in the clone are written independently. In practice, that gives you a lightweight clone that still behaves like a real Oracle database environment.</p><p>The OCI CLI flow is direct:</p><pre>oci db pluggable-database create-local-clone \<br>  --cdb-id $TARGET_CDB_OCID \<br>  --source-pdb-id $SOURCE_PDB_OCID \<br>  --pdb-name pdb_retail_clone_1 \<br>  --is-thin-clone true</pre><p>Here’s the cool part: this is not a disaster recovery pattern. It is a developer workflow pattern. You are creating a safe, production-like backend for another app environment.</p><h3>The retail show-and-tell</h3><p>The demo application models retail inventory operations across:</p><ul><li>stores</li><li>warehouses</li><li>products</li><li>inventory positions</li><li>replenishment rules</li><li>orders and shipments</li></ul><p>The stack is simple:</p><ul><li>React for the UI</li><li>Node.js for the API</li><li>Kubernetes for app deployment and environment orchestration</li><li>Oracle Database on ExaDB-XS for the persistent backend</li></ul><p>The source environment runs against a production-like PDB seeded with realistic retail data. Then I clone that PDB and point a second copy of the app at the thin clone.</p><p>That gives me two app environments:</p><ol><li>A source app backed by the original retail PDB</li><li>A clone app backed by the thin-cloned PDB</li></ol><p>From a developer point of view, this is the interesting part. I can apply replenishment scenarios, add a store, edit a store, and change inventory behavior in the cloned app without touching the source app. Same application pattern. Same data shape. Different backend state.</p><p>That is exactly what teams want from a real test environment.</p><figure><img alt="Side-by-side retail inventory dashboards showing a production environment (right) and its ExaDB-XS thin clone (left) with similar inventory metrics and analytics." src="https://cdn-images-1.medium.com/max/1024/1*Ri-GRCXxVCF5mv5UhpyctA.png" /><figcaption>Retail Operation Application deployed on Kubernetes with ExaDB-XS as Backend (right) and its Clone (left)</figcaption></figure><h3><strong>Why this works better on a converged data platform</strong></h3><p>Retail apps are not only rows in tables anymore.</p><p>They need relational inventory and order state, JSON payloads coming in from APIs and services, search-like access patterns, operational analytics, and increasingly, AI context built from business data. That is exactly where a converged database story becomes useful.</p><p>Oracle AI Database lets you keep more of that application truth on one governed data platform instead of spreading it across multiple specialized systems and then wiring them back together through pipelines, duplication, and synchronization logic. From a developer point of view, that means fewer moving parts, fewer data handoffs, a cleaner consistency model, and less operational glue around the application.</p><p>That is already valuable for the application itself. But when you pair that converged model with ExaDB-XS thin cloning, the design gets even better. Now the same retail application can be branched into multiple development or test environments with persistent backends that still look and behave like the source system, without multiplying storage the same way full database copies do.</p><p>So this is bigger than a clone story. It is a converged database story plus a lightweight environment branching story. You can keep operational data, API-friendly access patterns, and realistic test environments moving together on the same backend.</p><p>That changes the development model in a useful way.</p><h3>Conclusion</h3><p>Kubernetes solved a big part of modern app delivery by standardizing how we package and deploy software. But the data layer is still where many teams slow down.</p><p>ExaDB-XS thin clones close that gap nicely. They give Oracle-backed Kubernetes applications a faster, lighter way to spin up persistent, production-like environments for development and testing. And because the backend is Oracle AI Database, the story is bigger than cloning. You also get a converged platform that can handle relational data, JSON-heavy developer workflows, analytics, and future AI use cases on the same foundation.</p><p>If you are building cloud-native apps and the app tier already moves faster than the data tier, this is worth trying.</p><h3>FAQ</h3><p><strong>What is ExaDB-XS thin cloning?</strong><br>It is a way to create a pluggable database clone on ExaDB-XS using redirect-on-write storage, so unchanged blocks are shared with the parent instead of copied in full.</p><p><strong>What are the prerequisites for this?</strong></p><p>You need ExaDB-XS, a CDB running Oracle AI Database 26ai if you want thin clone support, a source PDB to clone, and OCI CLI or Console permissions that allow you to create the target PDB. In practice, teams also need the right wallet and admin password inputs, plus network reachability between the app and database environments.</p><p><strong>Why is this useful for Kubernetes apps?</strong></p><p>Because Kubernetes makes the stateless app layer easy to reproduce. Thin-cloned PDBs make the stateful backend much easier to reproduce too.</p><p><strong>What happens when clone data changes?</strong></p><p>Changed blocks are written separately in the clone, while unchanged blocks remain shared with the parent through redirect-on-write behavior. That is why you can apply inventory scenarios, add stores, test schema changes, or modify business data in the clone without affecting the source PDB.</p><p><strong>Why does a converged data platform help here?</strong></p><p>Because modern applications rarely want only one data pattern. This retail example needs transactional state, API-friendly data access, analytics, and realistic backend branching for test environments. A converged Oracle backend lets more of that live on one platform, and thin cloning makes it much easier to reproduce that backend safely for development and testing.</p><p><strong>What makes the retail example a good fit?</strong></p><p>Retail operations combine transactional state, fast-changing inventory, branch testing, and realistic data needs. That makes it a strong show-and-tell scenario for thin-cloned backend environments.</p><p>Full Code and Demo: <a href="https://github.com/phani87/orcl-thin-clone-demo.git">https://github.com/phani87/orcl-thin-clone-demo.git</a></p><p><strong>Sources:</strong></p><ul><li>Oracle Exadata Database Service on Exascale Infrastructure overview: <a href="https://docs.oracle.com/en-us/iaas/exadb-xs/doc/overview-exadb-xs-service.html">https://docs.oracle.com/en-us/iaas/exadb-xs/doc/overview-exadb-xs-service.html</a></li><li>Managing databases on ExaDB-XS: <a href="https://docs.oracle.com/en-us/iaas/exadb-xs/doc/manage-databases-exadb-xs.html">https://docs.oracle.com/en-us/iaas/exadb-xs/doc/manage-databases-exadb-xs.html</a></li><li>OCI CLI `create-local-clone`: <a href="https://docs.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/db/pluggable-database/create-local-clone.html">https://docs.oracle.com/en-us/iaas/tools/oci-cli/latest/oci_cli_docs/cmdref/db/pluggable-database/create-local-clone.html</a></li><li>Oracle Database for Containers and Kubernetes: <a href="https://www.oracle.com/database/kubernetes-for-container-database/">https://www.oracle.com/database/kubernetes-for-container-database/</a></li><li>Oracle AI Database overview: <a href="https://www.oracle.com/database/">https://www.oracle.com/database/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=faea37c46c5c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oracledevs/kubernetes-is-fast-your-database-clones-should-be-too-faea37c46c5c">Kubernetes Is Fast. Your Database Clones Should Be Too.</a> was originally published in <a href="https://medium.com/oracledevs">Oracle Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Developers Should Care About Oracle Transactional Event Queue (TxEventQ)]]></title>
            <link>https://medium.com/oracledevs/why-developers-should-care-about-oracle-transactional-event-queue-txeventq-e432ed71a8b1?source=rss-42c4d4e5acc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/e432ed71a8b1</guid>
            <category><![CDATA[event-driven-architecture]]></category>
            <category><![CDATA[transactions]]></category>
            <category><![CDATA[oracle-database]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Phani Turlapati]]></dc:creator>
            <pubDate>Wed, 20 May 2026 14:43:48 GMT</pubDate>
            <atom:updated>2026-05-20T14:43:48.164Z</atom:updated>
            <content:encoded><![CDATA[<h4>Oracle TxEventQ is database-integrated transactional messaging that helps developers build event-driven workflows without bolting on a separate broker for every database-backed process.</h4><p>Modern application teams run into this pattern all the time.</p><p>You commit some business transaction, and that one commit needs to trigger a bunch of downstream work. A notification. A background task. A review flow. A customer-facing status update. Maybe even a second and third service that need to react.</p><p>That is where architecture starts to get noisy.</p><p>A simple application flow suddenly turns into a database write, a separate broker, retry logic, idempotency handling, consumer plumbing, monitoring, and a lot of custom interactions. And now the team is debugging not just business logic, but the handoff between systems.</p><p>This is exactly where <strong>Oracle Transactional Event Queues, or TxEventQ</strong>, gets interesting.</p><figure><img alt="Database native transactional event streaming using Transactional Event Queues" src="https://cdn-images-1.medium.com/max/1024/1*2XEEmHYxMdPA0HEVp_3Kiw.png" /><figcaption>Database native transactional event streaming</figcaption></figure><p>TxEventQ is Oracle AI Database-integrated messaging for event-driven workflows. It gives developers durable producer/consumer messaging, persistent messages, transactional enqueue and dequeue behavior, and a partitioned queue implementation with multiple event streams per queue. It is also the modern, optimized evolution of what used to be called AQ sharded queues.</p><p>Now picture this in a real workflow instead of a toy queue demo.</p><h3>Key takeaways</h3><ul><li><strong>TxEventQ helps developers keep transactions and events close together.</strong> When the application writes business data and enqueues an event in the same database workflow, there are fewer failure points between “data changed” and “work needs to happen.”</li><li><strong>It is built for event-driven workflows tied to operational data.</strong> TxEventQ supports persistent messages, producers, consumers, workflow-style processing, and a partitioned implementation with multiple event streams per queue.</li><li><strong>The worker model is simple to reason about.</strong> A worker dequeues a message, runs business logic, writes status updates, and commits. If processing fails before commit, the worker can roll back its database changes instead of leaving a half-finished workflow.</li><li><strong>The UI can show the event lifecycle.</strong> In the demo, progress is not guessed from queue internals. The API and worker write progress stages into a lab_result_event table, and the React UI polls a progress endpoint.</li><li><strong>The value is practical.</strong> Developers spend less time building glue code, platform teams operate fewer moving parts, and architects get a cleaner consistency model for database-backed workflows.</li></ul><h3>A better example: lab result routing</h3><p>I built a small application that routes lab results in a healthcare workflow.</p><p>The stack is simple:</p><ul><li>React for the UI</li><li>Flask for the API</li><li>Python worker using python-oracledb</li><li>Oracle AI Database for transactional data and TxEventQ</li></ul><p><strong>Here is the workflow.</strong></p><p>A user selects a lab order for a patient. They submit a result, for example a potassium result, an A1C result, or an LDL result. The API writes the result row into the database and immediately enqueues a LAB_RESULT_RECEIVED event into a transactional event queue. A worker dequeues that message, evaluates routing rules, creates provider notifications, decides whether the patient portal should see the result yet, and opens follow-up tasks when the result is abnormal or critical.</p><p>That is not theoretical queueing. That is a real application pattern.</p><p>And it is exactly the kind of flow where transactions and events belong together.</p><figure><img alt="Screenshot of a “Lab Result Routing Console” web application showing a selected patient lab order on the left and routing progress on the right. The selected order is for Alice Carter’s comprehensive metabolic panel, with a potassium result of 2.6 mmol/L entered against a reference range of 3.5–5.1. The routing panel shows the result moving through API, TEQ, worker, and completion stages, with event logs indicating the result was received, queued in TEQ, dequeued, evaluated by routing rules, and" src="https://cdn-images-1.medium.com/max/1024/1*ZJFykzlAFuPvNMmsZdG2-Q.png" /><figcaption>Healthcare lab result routing workflow powered by Oracle Transactional Event Queues (TEQ)</figcaption></figure><h3>Why this matters architecturally</h3><p>Let’s face it. The awkward part of event-driven application design is rarely the event itself.</p><p>It is the consistency problem.</p><ul><li>Did the database commit happen but the notification fail?</li><li>Did the event get published but the transaction roll back?</li><li>Did the background worker receive duplicate work?</li><li>Did a critical workflow stall because of a handoff between systems?</li></ul><p>When teams solve this by spreading one business action across too many components, the system works, but the operational surface grows fast.</p><p>Here is where Oracle AI Database changes the design in a useful way.</p><p>TxEventQ is part of the database platform. Producer applications enqueue messages, consumer applications dequeue messages, and messages can be stored persistently until they are processed. TxEventQ uses a highly optimized, partitioned implementation with multiple event streams per queue, while classic AQ queues remain useful for simpler workflow cases.</p><p>What this really means for developers is simple: you can keep transactional state and durable events much closer together.</p><p>That reduces one of the most common failure modes in event-driven applications: the gap between the database write and the event publish.</p><h3>The lab result flow in practice</h3><p>Here is the application flow we used.</p><ol><li>A user chooses a human-readable lab order in the React UI.</li><li>The Flask API inserts a lab_result row.</li><li>The API enqueues a LAB_RESULT_RECEIVED event into LAB_RESULT_TEQ.</li><li>A Python worker dequeues the event.</li><li>The worker evaluates routing rules.</li><li>The worker creates notifications and follow-up tasks.</li><li>The UI shows routing progress as the event moves through the system.</li></ol><p>The event itself is tiny. Something like this:</p><pre>{<br>  &quot;event_type&quot;: &quot;LAB_RESULT_RECEIVED&quot;,<br>  &quot;result_id&quot;: 10142<br>}</pre><p>That small payload is enough because the worker can retrieve the full context from the database: the patient, provider, test code, abnormal flag, critical flag, and release policy.</p><p>That is another important design choice.</p><p>The queue carries the event signal. Oracle AI Database remains the source of truth for the workflow state.</p><h3>How the worker model works</h3><p>A lot of queue demos stop at enqueue and dequeue. The interesting part is what happens around it.</p><p>In this demo, the Python worker runs as a separate process. It connects to Oracle AI Database, opens LAB_RESULT_TEQ, dequeues a message, reads the result context, applies routing rules, writes notifications and follow-up tasks, and then commits.</p><p>From a developer point of view, the model is clean:</p><pre>dequeue message<br>read result context<br>apply rules<br>write notifications/tasks<br>write progress event<br>commit</pre><p>If something fails before commit, the worker rolls back the database changes. That means we do not persist a half-created workflow where a provider notification exists but the result status never changed.</p><p>The Python API is straightforward too. python-oracledb exposes queue APIs such as Connection.queue(), Queue.enqone(), Queue.deqone(), and commit(). TxEventQ support is available through the driver, with mode and payload support depending on database and client versions. For example, RAW payloads are supported for single and array enqueue/dequeue with Oracle AI Database 19c or later, and Thick mode requires matching Oracle Client libraries.</p><p>In the demo, the API enqueues after the result row is inserted:</p><pre>payload = {<br>    &quot;event_type&quot;: &quot;LAB_RESULT_RECEIVED&quot;,<br>    &quot;result_id&quot;: result_id<br>}</pre><pre>queue = conn.queue(&quot;LAB_RESULT_TEQ&quot;)<br>msg = conn.msgproperties(payload=json.dumps(payload).encode(&quot;utf-8&quot;))<br>queue.enqone(msg)</pre><pre>conn.commit()</pre><p>The worker then dequeues and processes:</p><pre>msg = queue.deqone()</pre><pre>if msg is not None:<br>    payload = json.loads(msg.payload.decode(&quot;utf-8&quot;))<br>    process_result(conn, int(payload[&quot;result_id&quot;]))<br>    conn.commit()</pre><p>That is the core idea: the API does not do all the routing inline. It records the result, emits the event, and lets the worker own the asynchronous flow.</p><h3>How the UI shows TxEventQ progress</h3><p>The part I like most about this pattern is that the UI can actually show the event flow.</p><p>In our demo, the application displays progress like this:</p><ul><li>Result received by API</li><li>Queued in TEQ</li><li>Dequeued from TEQ</li><li>Routing rules evaluated</li><li>Notifications and tasks created</li><li>Routing complete</li></ul><p>That is a small detail, but it makes the architecture tangible.</p><p>The UI is not reading queue internals directly. Instead, the API and worker write application-level progress records into a lab_result_event table. The React app polls a Flask endpoint like this:</p><pre>GET /api/results/{result_id}/progress</pre><p>That endpoint reads the current workflow state from the database and returns a progress percentage plus the event timeline.</p><p>I am not just saying, “trust me, there is a queue in the middle.”</p><p>I am showing the operational lifecycle of an event-driven workflow inside the application itself.</p><p>This makes TxEventQ feel immediate and usable. It also makes debugging easier. If the workflow stalls, you can see the last completed stage. Did the API enqueue the event? Did the worker dequeue it? Did rule evaluation run? Did task creation fail?</p><p>That is practical observability, not just infrastructure plumbing.</p><h3>Why this feels good from a developer point of view</h3><p>In our example, the UI does not need to know about queue internals. It just submits a result and polls a progress endpoint.</p><p>The API does not need to orchestrate the whole routing flow inline. It writes the transaction, emits the event, and gets out of the way.</p><p>The worker owns the asynchronous work.</p><p>That separation makes the application cleaner.</p><p>The API is fast.</p><p>The worker is isolated.</p><p>The event history is visible.</p><p>The business rules stay close to the operational data.</p><p>And because the queue is integrated with Oracle AI Database, this is not a story about adding yet another external dependency just to move a workflow forward. TxEventQ can use database features such as persistent storage, recovery, security, SQL access to message properties/history/payload, and database transactions for enqueue and dequeue operations.</p><p>The developer benefit is not abstract. It shows up in day-to-day work:</p><ul><li>less custom glue code</li><li>fewer handoff failures</li><li>easier debugging</li><li>faster feature delivery</li><li>a smaller operational footprint</li></ul><p>That matters when teams are trying to build real applications, not just architecture diagrams.</p><h3>Where TxEventQ fits compared with Kafka, RabbitMQ, PostgreSQL, and MongoDB</h3><p>This is not a “one tool replaces every other tool” story. It is a design-fit story.</p><p>Kafka is a great fit for broad event streaming, cross-system event distribution, and log-based architectures. RabbitMQ is a strong external broker for general-purpose messaging, queue routing, acknowledgements, redelivery, and consumer management. RabbitMQ, for example, models queues as ordered message collections and supports acknowledgements and redelivery behavior through broker-managed queues.</p><p>TxEventQ is different because it is integrated with Oracle AI Database. If the event is born from a database transaction, that integration matters. You can keep the event close to the data that created it instead of introducing another handoff immediately after the commit.</p><p>PostgreSQL LISTEN and NOTIFY are useful for lightweight signaling, but NOTIFY is described as a simple interprocess communication mechanism. For larger or structured data, the usual pattern is to store the data in a table and send a notification as a signal. That is useful, but it is not the same as a built-in, scalable, transactional event queue designed for this kind of workflow.</p><p>MongoDB has change streams that let applications subscribe to real-time database changes, and MongoDB also supports multi-document transactions. Those are valuable capabilities, but they are not the same thing as a native transactional event queue tied to relational workflows, queue consumers, and database-backed workflow processing.</p><p>You do not always need a separate broker just because a workflow is asynchronous.</p><h3>Why the converged database story matters here</h3><p>This is where the bigger value shows up.</p><p>The lab result routing example is not only about queueing. It is about reducing the number of separate systems needed for one operational workflow.</p><ul><li>You have relational data for patients, providers, orders, results, and tasks.</li><li>You have event-driven routing logic.</li><li>You have operational status tracking.</li><li>You have API-facing application behavior.</li></ul><p>That combination is exactly where <a href="https://www.oracle.com/database/">Oracle AI Database</a> as a converged database becomes a real developer advantage.</p><p>Instead of pushing data out to a separate broker, duplicating workflow state, and stitching together multiple persistence layers, you can keep the workflow centered on one data platform that handles transactions and events together. That reduces handoffs, limits data movement, and keeps governance and consistency simpler.</p><ul><li><strong>For platform teams</strong>, that means fewer moving parts.</li><li><strong>For developers</strong>, it means less code and more focus on business results.</li><li><strong>For architects</strong>, it means a cleaner consistency model.</li></ul><h3>When should you use TxEventQ?</h3><p>Use TxEventQ when the event is tightly connected to Oracle AI Database state and the downstream work benefits from transactional consistency.</p><p>Good examples include:</p><ul><li>lab result routing</li><li>appointment confirmation</li><li>waitlist promotion</li><li>order fulfillment</li><li>claims processing</li><li>document approval</li><li>follow-up task creation</li><li>downstream notifications</li></ul><p>Use Kafka, RabbitMQ, or another external broker when the broker is already the shared event backbone across many systems, when the event stream is intentionally independent of the database transaction, or when the use case is broad cross-platform event streaming.</p><p>The question is not “queue or no queue.”</p><p>The better question is:</p><p><strong>Where should the event live relative to the transaction that created it?</strong></p><h3>Final thought</h3><p>If you are building workflows that start with a transaction and immediately fan out into background processing, notifications, state transitions, or downstream automation, it is worth asking a simple question:</p><p>Do you really need to bolt on another messaging layer for that pattern?</p><p>With Oracle Transactional Event Queues, you can keep events close to the transaction, keep workflow state close to the data, and build a cleaner event-driven application model on top of Oracle AI Database.</p><p>That is the real story here.</p><p>Not “here is a queue feature.”</p><p>It is “here is a simpler way to build event-driven applications.”</p><p>Full code: <a href="https://github.com/phani87/oracle-teq-lab-result-routing-demo.git">https://github.com/phani87/oracle-teq-lab-result-routing-demo.git</a></p><h3>FAQ</h3><h4>What is Oracle TxEventQ?</h4><p>Oracle Transactional Event Queues are database-integrated queues for event-driven applications. TxEventQ is the highly optimized, partitioned implementation of Oracle AI Database messaging that evolved from AQ sharded queues.</p><h4>Is TxEventQ only for database developers?</h4><p>No. The feature lives in Oracle AI Database, but the value is broader. App developers, platform engineers, and architects can use it for workflows where database transactions need to trigger asynchronous processing.</p><h4>Is dequeue transactional?</h4><p>In the application pattern shown here, the worker dequeues a message, performs database work, and commits after successful processing. The Python queue examples use explicit commit() calls after enqueue and dequeue operations, and enqueue visibility is tied to commit behavior by default.</p><h4>What happens on failure?</h4><p>In this demo, failure before commit rolls back the worker’s database changes. Production systems should also add idempotency checks, retry configuration, exception handling, and operational monitoring based on the workflow’s requirements.</p><h4>Should TxEventQ replace Kafka or RabbitMQ?</h4><p>No. Kafka and RabbitMQ are great tools for external broker-based architectures. TxEventQ is strongest when the event is born from Oracle AI Database state and the workflow benefits from keeping the event, transaction, and operational data close together.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e432ed71a8b1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oracledevs/why-developers-should-care-about-oracle-transactional-event-queue-txeventq-e432ed71a8b1">Why Developers Should Care About Oracle Transactional Event Queue (TxEventQ)</a> was originally published in <a href="https://medium.com/oracledevs">Oracle Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[JSON Relational Duality: Database natively speaks the developer language]]></title>
            <link>https://medium.com/oracledevs/oracle-json-relational-duality-database-natively-speaks-the-developer-language-01547b214944?source=rss-42c4d4e5acc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/01547b214944</guid>
            <category><![CDATA[json]]></category>
            <category><![CDATA[oracle-database-23ai]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[application-development]]></category>
            <category><![CDATA[oracle-database]]></category>
            <dc:creator><![CDATA[Phani Turlapati]]></dc:creator>
            <pubDate>Mon, 09 Jun 2025 13:02:17 GMT</pubDate>
            <atom:updated>2025-12-18T17:02:13.969Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s face it<strong>, JSON is the language of modern app development</strong>. Just like English is the go-to for global communication, <a href="https://www.oracle.com/database/what-is-json/"><strong>JavaScript Object Notation (JSON)</strong></a> has become <em>the</em> universal format for exchanging data across systems. It’s lightweight, flexible, and just makes life easier when you’re building or integrating applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pBNAhcq_5qBTbe9CaBsJiA.png" /></figure><p>Now here’s the cool part: <strong>Oracle Database natively speaks JSON too!</strong> Thanks to <a href="https://www.oracle.com/database/json-relational-duality/"><strong>JSON Relational Duality</strong></a>, you can build JSON views right on top of your relational tables. That means if you’ve got something like:</p><pre>{<br>  &quot;id&quot; : &quot;101&quot;,<br>  &quot;name&quot;: &quot;Alice&quot;,<br>  &quot;address&quot;: {<br>    &quot;street&quot;: &quot;123 Main St&quot;,<br>    &quot;city&quot;: &quot;Aliceburg&quot;,<br>    &quot;zip&quot;: &quot;21134&quot;<br>  }<br>}</pre><p>…you can treat it either as a JSON document <em>or</em> as columns in a table. Win-win! As a developer, you get to use friendly, readable JSON while DBAs and analysts can run SQL queries.</p><p>What this really means? Oracle is now a true<strong> unified data platform.</strong> No more juggling separate NoSQL and Relational Databases for different data types. It’s all in one place with shared security, governance, management and performance. That’s a massive simplification of the information supply chain.</p><p>In this blog, I’ll walk you through how I’m using <a href="https://www.oracle.com/database/technologies/appdev/soda.html"><strong>Simple Oracle Document Access (SODA)</strong></a><strong>. </strong>Oracle’s API that lets you interact with JSON documents inside the database. It’s like a bridge between SQL-style structure and <strong>NoSQL-style flexibility.</strong></p><p>For my example, I picked something super relevant: <strong>Smart Meters</strong>. These IoT devices generate data as JSON payloads, and I’ll show you how to process that data using a Python app<strong> </strong>and store it in relational tables<strong>.</strong></p><p>Without further ado, let’s get started!</p><h3>Step 1: Define a Relational Table in Oracle</h3><p>Let’s create a relational table to hold the structured data behind the JSON.</p><pre>-- create user and give relevant access<br>create user ph_electric_company identified by &lt;PASSWORD&gt;<br>/<br><br>grant dwrole to ph_electric_company<br>/<br><br>grant unlimited tablespace to ph_electric_company<br>/<br><br>--<br>-- Create tables that define the Utility company, Registered Meters with <br>-- that the company and Meter readings table to store the continues meter <br>-- readings<br>--<br><br>-- utility company table<br>create table electric_utility_company <br>   ( <br>    company_id varchar2(32 byte) default on null sys_guid() <br>     constraint company_id_pk primary key <br>     constraint company_id_nn not null,<br> company_name varchar2(100 byte), <br> company_address1 varchar2(200 byte), <br> company_address2 varchar2(100 byte), <br> company_city varchar2(100 byte), <br> company_state varchar2(100 byte), <br> company_country varchar2(100 byte), <br> company_zip number<br>   ) <br>/<br><br>--smart meter table<br>create table electric_smart_meter <br>   ( <br>    smart_meter_id varchar2(32 byte) default on null sys_guid()<br>     constraint smart_meter_id_pk primary key <br>     constraint smart_meter_id_nn not null,<br> company_id varchar2(32 byte), <br> smart_meter_address varchar2(250 byte), <br> installation_date date, <br> status varchar2(50 byte)<br>   ) <br>/<br><br>--smart meter readings table<br>create table electric_smart_meter_readings <br>   ( <br>    reading_id varchar2(32 byte) default sys_guid()<br>     constraint reading_id_pk primary key <br>     constraint reading_id_nn not null, <br> reading_timestamp timestamp (6), <br> smart_meter_id varchar2(32 byte), <br> active_energy_kwh number(10,2), <br> reactive_energy_kvarh number(10,2), <br> voltage_l1 number(6,2), <br> voltage_l2 number(6,2), <br> voltage_l3 number(6,2), <br> current_l1 number(6,2), <br> current_l2 number(6,2), <br> current_l3 number(6,2), <br> power_factor_l1 number(4,2), <br> power_factor_l2 number(4,2), <br> power_factor_l3 number(4,2), <br> temperatrue number(6,2)<br>   ) <br>/</pre><h3><strong>Step 2: Create a JSON Relational Duality View</strong></h3><p>This view lets us treat relational data as a JSON document:</p><pre>--<br>-- Create JSON Relational Duality views<br>--<br><br>-- JSON Relational Duality view combining data from Utility company and registered meters with the company<br>create or replace json relational duality view smart_meter_utility_dv  as <br>  select json {<br>    &#39;_id&#39; : uc.company_id,<br>    &#39;company_name&#39; : uc.company_name,<br>    &#39;address&#39; : uc.company_address1 || &#39;,&#39; || uc.company_address2 || &#39;,&#39; || uc.company_city || &#39;,&#39; ||uc.company_state || &#39;,&#39; || uc.company_country || &#39;,&#39; || uc.company_zip,<br>    &#39;meters&#39; : <br>       [select json {<br>         &#39;meter_id&#39; : sm.smart_meter_id,<br>         &#39;address&#39; : sm.smart_meter_address,<br>         &#39;installation_date&#39; : sm.installation_date,<br>         &#39;status&#39; : sm.status }<br>        from electric_smart_meter sm <br>        where sm.company_id = uc.company_id ]}<br>  from electric_utility_company uc with update insert<br>;<br><br>--JSON Relational Duality view on smart meter table and the readings table<br>create or replace force editionable json relational duality view smart_meter_reads_dv  as <br>  select json {<br>         &#39;_id&#39; : sm.smart_meter_id,<br>         &#39;meter_address&#39; : sm.smart_meter_address,<br>         &#39;installation_date&#39; : sm.installation_date,<br>--         &#39;utility_company_name&#39; : uc.company_name,<br>         &#39;status&#39; : sm.status,<br>         &#39;readings&#39; : <br>         [<br>            select json {<br>                &#39;reading_id&#39; : smr.reading_id,<br>                &#39;timestamp&#39; : smr.reading_timestamp,<br>                &#39;active_energy&#39; : smr.active_energy_kwh,<br>                &#39;reactive_energy&#39; : smr.reactive_energy_kvarh,<br>                &#39;temperature&#39; : smr.temperatrue,<br>                &#39;voltage&#39; : json {<br>                    &#39;l1&#39; : smr.voltage_l1,<br>                    &#39;l2&#39; : smr.voltage_l2,<br>                    &#39;l3&#39; : smr.voltage_l3<br>                },<br>                &#39;current&#39; : json{<br>                    &#39;l1&#39; : smr.current_l1,<br>                    &#39;l2&#39; : smr.current_l2,<br>                    &#39;l3&#39; : smr.current_l3<br>                },<br>                &#39;powerfactor&#39; : json{<br>                    &#39;l1&#39; : smr.power_factor_l1,<br>                    &#39;l2&#39; : smr.power_factor_l2,<br>                    &#39;l3&#39; : smr.power_factor_l3<br>                }<br>            }<br>            from electric_smart_meter_readings smr with update insert<br>            where smr.smart_meter_id = sm.smart_meter_id<br>         ]}<br>  from electric_smart_meter sm with update insert<br>;</pre><h3>Step 3: Insert Smart Meter JSON Using Python + SODA</h3><p>Here’s how you can use <strong>Oracle SODA with Python</strong> to insert this JSON directly:</p><h3>Requirements</h3><p>Install oracledb Python package:</p><pre>pip install oracledb</pre><p>So, for this I create a batch job like application that’ll automatically generate meter readings every 2 mins and insert them into the database</p><pre># batch job that has the list of meters and will automatically <br># generate JSON files every 2 minutes and insert the data into the database <br><br>import time<br>from meter_data_gen import generate_json_file<br>from update_meter_readings import run_batch_job<br>from smart_meter_database_conn import connect_to_oracldb, get_collection  # You&#39;ll implement this<br><br>def main():<br>    meter_ids = [<br>        &quot;2CDA63EB51E7311AE0638D01000A8456&quot;,<br>        &quot;2CDA63EB51E8311AE0638D01000A8456&quot;,<br>        &quot;2CDA63EB51E9311AE0638D01000A8456&quot;<br>    ]<br>    output_file = &quot;auto_meter_readings.json&quot;<br>    while True:<br>        print(&quot;Generating new readings...&quot;)<br>        generate_json_file(output_file, meter_ids)<br><br>        print(&quot;Updating Oracle JSON documents...&quot;)<br>        connection = connect_to_oracldb()<br>        try:<br>            collection = get_collection(connection, &#39;SMART_METER_READS_DV&#39;)<br>            run_batch_job(connection, collection, output_file)<br>        finally:<br>            connection.close()<br><br>            print(&quot;Sleeping for 2 minutes...\n&quot;)<br>            time.sleep(120)<br><br>if __name__ == &quot;__main__&quot;:<br>    main()</pre><pre># generate the JSON file baesd on all the relevant fields that needs to be inserted into the database<br><br>import json<br>import random<br>from datetime import datetime,UTC<br><br>def generate_reading(meter_id):<br>    return {<br>        &quot;meter_id&quot;: meter_id,<br>        &quot;timestamp&quot;: datetime.now(UTC).isoformat(),<br>        &quot;active_energy&quot;: round(random.uniform(90, 120), 2),<br>        &quot;reactive_energy&quot;: round(random.uniform(40, 60), 2),<br>        &quot;temperature&quot; : round(random.uniform(35,110),2),<br>        &quot;voltage&quot;: { &quot;L1&quot;: round(random.uniform(229, 232), 1), &quot;L2&quot;: round(random.uniform(229, 232), 1), &quot;L3&quot;: round(random.uniform(229, 232), 1) },<br>        &quot;current&quot;: { &quot;L1&quot;: round(random.uniform(10.0, 12.0), 1), &quot;L2&quot;: round(random.uniform(10.0, 12.0), 1), &quot;L3&quot;: round(random.uniform(10.0, 12.0), 1) },<br>        &quot;powerFactor&quot;: { &quot;L1&quot;: round(random.uniform(0.94, 0.99), 2), &quot;L2&quot;: round(random.uniform(0.94, 0.99), 2), &quot;L3&quot;: round(random.uniform(0.94, 0.99), 2) }<br>    }<br><br>def generate_json_file(output_path, meter_ids):<br>    readings = [generate_reading(mid) for mid in meter_ids]<br>    with open(output_path, &#39;w&#39;) as file:<br>        json.dump(readings, file, indent=2)</pre><pre># connect to Oracle Database 23ai and get collections which in this case is the JSON Relation Duality view<br><br>import oracledb<br><br><br>def connect_to_oracldb():<br>    &quot;&quot;&quot;<br>    Connect to Oracle Autonomous Database  and return the database object.<br>    &quot;&quot;&quot;<br>    library_dir = r&quot;/home/opc/Oracle/instantclient_23_7&quot;<br>    wallet_path = &quot;/network/admin/wallet&quot;<br>    config_dir = library_dir<br>    print (library_dir)<br><br>    try:<br>        oracledb.init_oracle_client(config_dir=library_dir)<br>    # Create a new client and connect to the server<br>        client = oracledb.connect(<br>                    user = &#39;ph_electric_company&#39;,<br>                    password = &#39;PASSWORD&#39;,<br>                    dsn=&#39;dns.SUBNET.VCN.oraclevcn.com:1521/pdb1&#39;<br>                    )<br>        print(&quot;Successfully connected to Oracle 23ai Database!&quot;)<br>        return client<br>    except oracledb.Error as e:<br>        print(f&quot;Error connecting to Oracle: {e}&quot;)<br>        return None<br>    <br>def get_collection(db, collection_name):<br>    print(collection_name)<br>    collection = db.getSodaDatabase().openCollection(collection_name)<br>    getMeterInformation(collection=collection)<br>    return collection<br><br>def getSodaKeyForMeter(collection, meterid):<br>    fiter_criteria = {&quot;_id&quot; : meterid}<br>    doc = collection.find().filter(fiter_criteria).getOne()<br>    if doc:<br>        print(&quot;SODA Key (_id):&quot;, doc.key)<br>        return doc.key<br>    else:<br>        print(&quot;No document found for meter_id&quot;)<br>        None</pre><pre># update the meter readings into the Oracle Database 23ai using the collections and the appropriate key<br><br>import json<br>from smart_meter_database_conn import getSodaKeyForMeter<br><br>def load_batch_file(filepath):<br>    with open(filepath, &#39;r&#39;) as file:<br>        return json.load(file)<br><br>def add_meter_reading(collection, meter_id, reading):<br>    print(f&quot;updating Meter ID: {meter_id} ......&quot;)<br>    doc = collection.find().key(meter_id).getOne()<br><br>    if doc:<br>        content = doc.getContent()<br>        content.setdefault(&quot;readings&quot;, []).append(reading)<br>        collection.find().key(meter_id).replaceOne(content)<br>        print(f&quot;Updated meter_id: {meter_id}&quot;)<br>    else:<br>        print(f&quot;meter_id not found: {meter_id}&quot;)<br><br>def run_batch_job(connection, collection, input_file):<br>    readings = load_batch_file(input_file)<br>    for entry in readings:<br>        meter_id = entry.pop(&quot;meter_id&quot;, None)<br>        soda_key =getSodaKeyForMeter(collection=collection, meterid=meter_id)<br>        print(meter_id)<br>        if meter_id:<br>            add_meter_reading(collection, soda_key, entry)<br>    connection.commit()</pre><p>That’s it. It’s as simple as that.</p><p>Now, the database speaks the language of developers<strong>. </strong>No more juggling hundreds of databases to store different types of data or managing a countless frankensystems. Just use <strong>Oracle Database 23ai</strong>, plug in your favorite development environment, and build scalable and resilient applications on the world’s most trusted data platform.</p><p>Let the database handle the complexity. You focus on the innovation.</p><p>Get yourself a Database instance with <a href="https://docs.oracle.com/en-us/iaas/Content/FreeTier/freetier_topic-Always_Free_Resources.htm#freetier_topic_Always_Free_Resources_Oracle_Database">Oracle Always Free Database Services</a> or Oracle Database Developer Cloud services and start building and consolidating your databases onto one unified data platform.</p><h3>References:</h3><ol><li>JSON Relational Duality: <a href="https://www.oracle.com/database/json-relational-duality/">https://www.oracle.com/database/json-relational-duality/</a></li><li>Oracle Database 23ai: <a href="https://www.oracle.com/database/23ai/">https://www.oracle.com/database/23ai/</a></li><li>LiveLab for JSON Relational Duality: <a href="https://livelabs.oracle.com/pls/apex/r/dbpm/livelabs/view-workshop?wid=3968">https://livelabs.oracle.com/pls/apex/r/dbpm/livelabs/view-workshop?wid=3968</a></li></ol><p><strong>About the Author:</strong></p><p>Phani Turlapati is a Database Product Manager at Oracle Inc. He’s been with Oracle for over 7 years. He started at the Solution Engineering Hub at Oracle focusing on various design solutions to help customer to value-add to their businesses. He’s a part of the Database PM Team focusing on all things database. Before Oracle, he had worked as a Software Engineer developing applications on the Java Platform.</p><p>The blog is my view and is not an official Oracle communication.</p><p>Feel free to comment on the above post. Your feedback is valuable!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=01547b214944" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oracledevs/oracle-json-relational-duality-database-natively-speaks-the-developer-language-01547b214944">JSON Relational Duality: Database natively speaks the developer language</a> was originally published in <a href="https://medium.com/oracledevs">Oracle Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What’s holding you back from moving your on-premises data center to the cloud?]]></title>
            <link>https://medium.com/oracledevs/whats-holding-you-back-from-moving-your-on-premises-data-center-to-the-cloud-6ff0ee81bbf6?source=rss-42c4d4e5acc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ff0ee81bbf6</guid>
            <category><![CDATA[data-center]]></category>
            <category><![CDATA[exit-strategy]]></category>
            <category><![CDATA[oracle-cloud]]></category>
            <category><![CDATA[oracle-database]]></category>
            <category><![CDATA[oracle-database-23ai]]></category>
            <dc:creator><![CDATA[Phani Turlapati]]></dc:creator>
            <pubDate>Tue, 13 May 2025 14:53:09 GMT</pubDate>
            <atom:updated>2025-06-05T16:35:27.237Z</atom:updated>
            <content:encoded><![CDATA[<blockquote><a href="https://www.linkedin.com/in/anantaahluwalia/">Ananta Ahluwalia</a>, Principal Cloud Architect</blockquote><blockquote><a href="https://www.linkedin.com/in/phaniturlapati/">Phani Turlapati</a>, Database Product Manager</blockquote><p><strong>Don’t miss out on the cost savings and convenience of the cloud.</strong></p><p>Achieve cost-optimization, elastic scalability, global expansion, innovation, and sovereignty with OCI Oracle Database offerings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RzLedS701BYuH145XqWHSQ.png" /><figcaption>Exiting data centers and embracing innovation in Cloud</figcaption></figure><p>Are you still running your business out of a data center? It’s time to reassess. You’ve spent years investing in real estate, facilities, hardware, software, and upkeep. It’s significant. But have you added up the total investment amount and the on-going cost? It’s expensive to maintain and can keep you locked into older hardware, depreciating assets, and trailing behind on innovative capabilities. Exiting your data center and migrating to the cloud could provide you with the new services and capabilities that your users are demanding, while reducing costs and administrative burden. Let’s address some of the lingering concerns that may be holding you back from delivering innovation in today’s environment.</p><p><em>Data sovereignty and security</em></p><p>Organizations must control the location of their applications and data. In addition to over 50 public regions in 25 countries, Oracle Cloud Infrastructure (OCI) offers Government Regions for highly classified operations in three countries, EU Sovereign Regions for EU-regulated operations, Isolated Regions for air-gapped options for security agencies and organizations requiring high security, and Dedicated Regions for an on-premises deployment at your chosen location. Also, OCI offers encryption both at-rest and in-motion.</p><p><em>Pricing and contractual commitments</em></p><p>Leaders are concerned with cloud cost management. OCI is designed for low-cost operation. OCI services cost the same in all global regions, which allows you to deploy to any region — including Commercial, Government, Sovereign, and Dedicated Cloud Regions — with a consistent budgetary experience. In addition, Oracle offers Universal Credits as a contractual offering that applies to all services, rather than as a subset. This enables organizations to change services, configurations, and even regions while still enjoying the same contractual rate. In addition, OCI offers Support Rewards that reduces your on-premises technical support by $0.25 for every $1 spent on OCI consumption. *</p><p><em>Legacy applications and network latency</em></p><p>Critical enterprise applications were written for on-premises environments, not the cloud. They expect high levels of performance, availability, and manageability, but those have historically meant trade-offs when moving to the cloud. Enterprise applications depend on quick and consistent network communications, i.e., low latency. OCI is designed with a flat, non-blocking network between customer resources that provides the same level of performance as on-premises data centers, enabling you to move workloads without re-designing them. In addition, organizations that leverage the power of Oracle Database can continue to run it the exact same way in the cloud as they did on-premises.</p><p>* Taxes cannot be paid with Support Rewards. See <a href="http://www.oracle.com/cloud/rewards">www.oracle.com/cloud/rewards</a> for details.</p><p>Summary:</p><p>Moving your on-premises workloads to the cloud can help you achieve your goals of agility, innovation, cost reduction, and data sovereignty. OCI offers over 150 services, including multiple Oracle Database options, that can help you seamlessly move your on-premises workloads as-is to the cloud.</p><p>Read our 2 part blog series, <a href="https://blogs.oracle.com/cloud-infrastructure/post/move-to-oci-barriers-to-data-center-exit">Part 1</a> and <a href="https://blogs.oracle.com/cloud-infrastructure/post/move-to-oci-benefits-of-data-center-exit">Part 2</a> or download the full <a href="https://oraclecloudarchitect.github.io/articles/Full%20Blog%20-%20Move%20Your%20on-premises%20Workloads%20to%20Oracle%20Cloud.pdf">blog</a> (Move your on-premises workloads to Oracle Cloud) to assess your readiness to exit your data center and manage your data more efficiently in the cloud.</p><p><strong>About the Author:</strong></p><p>Phani Turlapati is a Database Product Manager at Oracle Inc. He’s been with Oracle for over 7 years. He started at the Solution Engineering Hub at Oracle focusing on various design solutions to help customer to value-add to their businesses. He’s a part of the Database PM Team focusing on all things database. Before Oracle, he had worked as a Software Engineer developing applications on the Java Platform.</p><p>The blog is my view and is not an official Oracle communication.</p><p>Feel free to comment on the above post. Your feedback is valuable!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ff0ee81bbf6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oracledevs/whats-holding-you-back-from-moving-your-on-premises-data-center-to-the-cloud-6ff0ee81bbf6">What’s holding you back from moving your on-premises data center to the cloud?</a> was originally published in <a href="https://medium.com/oracledevs">Oracle Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Access you database with Database Tools on OCI]]></title>
            <link>https://medium.com/oracledevs/access-you-database-with-database-tools-on-oci-134972bc3b21?source=rss-42c4d4e5acc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/134972bc3b21</guid>
            <dc:creator><![CDATA[Phani Turlapati]]></dc:creator>
            <pubDate>Mon, 10 Mar 2025 18:22:40 GMT</pubDate>
            <atom:updated>2025-05-06T22:55:29.705Z</atom:updated>
            <content:encoded><![CDATA[<p>You can connect to your data in more ways you can imagine with Oracle database. From command line interfaces to IDEs and interactive tools, you have range of options. Commonly used tools include SQLcl, SQL*Plus, SQL Developer, VSCode, TOAD and many others.</p><p>Most of these tools require level of setup which can be as simple as running:</p><pre>sqlplus / as sysdba</pre><p>from within the database host machine or more complex configuration involving SSH tunnel, VPN access, identity keys, and host details. While Database Administrators and Database Developer typically require such level of access to tools to build efficient database solutions. There are scenarios where setting up these tools might not be ideal or feasible.</p><p>Sometimes, you just need a quick and easy way to run queries without additional setup — perhaps from a web browser, without installing anything extra. Let me show you my favorite of doing that using<strong> </strong><a href="https://docs.oracle.com/en-us/iaas/database-tools/home.htm"><strong>Database Tools</strong></a><strong> </strong>and<strong> </strong><a href="https://docs.oracle.com/en-us/iaas/database-tools/doc/using-sql-worksheet.html"><strong>SQL Worksheet</strong> </a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kJOw6ecnQFr8xtTeI9eA2A.png" /></figure><p>I am going to walk through steps on how to set that up.</p><ol><li>From the Developer Services select Database Tools</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/1*J74gxWzCC7HemWhVa6JL4g.png" /></figure><p>2. Create a connection with the database on OCI</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nu4JvZUM4xIZ_oCoKM_Jgg.png" /></figure><p>3. Fill in all the details as shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*_OaaB4YfNzWqR-tr7DWORQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*euOO79hzVapILsMU8V4fng.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dCW5DI7Mq1jRRZ86UPfs9Q.png" /></figure><p>4. Once the endpoint is created, you navigate to connections and create a SQL Worksheet and start executing your queries</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zif-LLwRz1nWPUYW-iYPbQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dI_jjxP4PjnpM9dEHqVh-w.png" /></figure><p>Database Tools provide a quick and seamless access to your database including Autonomous Database, Base Database service, Exadata Database on Dedicated Infrastructure, Exadata Database on Exascale Infrastructure and MySQL running on Oracle Cloud Infrastructure (OCI). Beyond executing queries, its also useful to do data modeling and track database change management (<a href="https://docs.oracle.com/en/database/oracle/sql-developer-command-line/22.2/sqcug/using-liquibase.html">liquibase</a>) and real-time monitoring making it a great alternative for database developers.</p><p>Try our <a href="https://www.oracle.com/cloud/free/">ADB free tier</a> or if your organization owns Exadatabase Database on Dedicated Infrastructure (ExaDB-D) or Exadata Database Cloud at Customer (ExaCC) then get access to zero-dollar <a href="https://www.oracle.com/cloud/free/">Autonomous Database Developer</a> database to try this feature out.</p><p><strong>References</strong></p><ol><li><a href="https://docs.oracle.com/en-us/iaas/database-tools/home.htm">Database Tools</a></li><li><a href="https://docs.oracle.com/en-us/iaas/database-tools/doc/database-actions.html">Database Actions</a></li><li><a href="https://docs.oracle.com/en-us/iaas/database-tools/doc/sql-worksheet-ui.html">About the SQL Workshee</a>t</li><li><a href="https://docs.oracle.com/en-us/iaas/database-tools/doc/liquibase-page.html">Using Liquibase</a></li></ol><p><strong>About the Author:</strong></p><p>Phani Turlapati is a Database Product Manager at Oracle Inc. He’s been with Oracle for over 7 years. He started at the Solution Engineering Hub at Oracle focusing on various design solutions to help customer to value-add to their businesses. He’s a part of the Database PM Team focusing on all things database. Before Oracle, he had worked as a Software Engineer developing applications on the Java Platform.</p><p>The blog is my view and is not an official Oracle communication.</p><p>Feel free to comment on the above post. Your feedback is valuable!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=134972bc3b21" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oracledevs/access-you-database-with-database-tools-on-oci-134972bc3b21">Access you database with Database Tools on OCI</a> was originally published in <a href="https://medium.com/oracledevs">Oracle Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[SQL/PLSQL Playbook: Reusable Code for Developers]]></title>
            <link>https://medium.com/oracledevs/sql-plsql-playbook-reusable-code-for-developers-c30bcd6e3b36?source=rss-42c4d4e5acc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/c30bcd6e3b36</guid>
            <dc:creator><![CDATA[Phani Turlapati]]></dc:creator>
            <pubDate>Tue, 24 Sep 2024 13:51:17 GMT</pubDate>
            <atom:updated>2025-05-06T22:59:02.875Z</atom:updated>
            <content:encoded><![CDATA[<p>As a database developer, you want to leverage code repositories for collaboration, version control, documentation, CI/CD pipelines, and more. You’d want to use the same code repositories that your application developers use for your databases too. For example, you could use GitHub to pull the required schema or table structures and install them on your test databases, put them through the same CI/CD pipeline, and so on. In this blog, I’ll show how you can connect to the code repository of your choice and simplify your version control and DevOps processes.</p><p>Now, you can connect your <a href="https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/dbms-cloud-repo-package.html">Autonomous Database to code repositories</a> like GitHub, AWS CodeCommit, and Azure Repos to streamline your DevOps processes. Like any typical DevOps process, you can create branches, update your code, merge them back into master branches, and install the latest version on your databases. You can easily export your most stable code, schemas, tables, procedures, packages, functions, and more to these repositories, then pull them into your test or development databases to enhance functionalities or deploy them in the production database, achieving a true DevOps process. This not only unifies your overall DevOps workflow but also enables databases to be an integral part of the process, allowing your company to have faster release cycles and bringing more competitive advantage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PBamnVUr9w4yzsEOcAAD1Q.jpeg" /></figure><p>Let’s see how we can achieve that. I am using Oracle Autonomous Database on Dedicated Infrastructure, but you can use this on your Autonomous Database Serverless as well.</p><pre>-- look at exisitng credetials<br>select * from all_credentials;<br><br>-- create GitHub credetials in ADB<br>begin <br>    dbms_cloud.drop_credential(&#39;phani_github_cred_1&#39;);<br>    dbms_cloud.create_credential(<br>        credential_name =&gt; &#39;phani_github_cred_1&#39;,<br>        username =&gt;&#39;&lt;User Email ID&gt;&#39;,<br>        password =&gt; &#39;&lt;GIT Repo Access Token&gt;&#39;<br>    );<br>end;<br>/<br><br>--Initailize the repo and export the object<br>declare <br>    my_repo clob;<br>    my_repo_name clob := &#39;oracle_sql_repo&#39;;<br>begin<br>    my_repo := dbms_cloud_repo.init_github_repo(<br>        credential_name =&gt; &#39;phani_github_cred_1&#39;,<br>        repo_name =&gt; my_repo_name,<br>        owner=&gt; &#39;phani87&#39;<br>    );<br><br>    dbms_output.put_line(my_repo);<br><br>    dbms_cloud_repo.create_repository(<br>        repo =&gt; my_repo,<br>        description =&gt; &#39;this is a test repo to create sql files and packages&#39;,<br>        private =&gt; true<br>    );<br><br>    dbms_cloud_repo.export_object(<br>        repo =&gt; my_repo,<br>        object_type =&gt; &#39;TABLE&#39;,<br>        object_name =&gt; &#39;AIRLINE_FLIGHT_DATA&#39;,<br>        file_path =&gt; &#39;table_ddl.sql&#39;<br>    );<br><br>end;<br>/<br><br>-- get the repo information<br>declare <br>    my_repo clob;<br>    my_repo_name clob := &#39;oracle_sql_repo&#39;;<br>begin<br>  my_repo := dbms_cloud_repo.init_github_repo(<br>        credential_name =&gt; &#39;phani_github_cred_1&#39;,<br>        repo_name =&gt; my_repo_name,<br>        owner=&gt; &#39;phani87&#39;<br>    );<br>  dbms_output.put_line(my_repo);<br><br>end;<br>/<br><br>-- use the repo information to list all the file and repositories<br>select * from dbms_cloud_repo.list_files(&#39;{&quot;provider&quot;:&quot;GITHUB&quot;,&quot;repo_name&quot;:&quot;oracle_sql_repo&quot;,&quot;credential_name&quot;:&quot;phani_github_cred_1&quot;,&quot;owner&quot;:&quot;phani87&quot;}&#39;)<br>/<br><br>select * from dbms_cloud_repo.list_repositories(&#39;{&quot;provider&quot;:&quot;GITHUB&quot;,&quot;repo_name&quot;:&quot;oracle_sql_repo&quot;,&quot;credential_name&quot;:&quot;phani_github_cred_1&quot;,&quot;owner&quot;:&quot;phani87&quot;}&#39;);            <br><br>-- create a test procedure to add to your repo<br>create or replace procedure list_obj_str_files (<br>        cloud_cred varchar2, <br>        bucket_name varchar2, <br>        tenancy_name varchar2<br>) is<br> total_files number := 0;<br>begin <br>  for x in (select object_name<br>            FROM   TABLE(<br>                   dbms_cloud.list_objects(<br>                       cloud_cred, <br>                       &#39;https://objectstorage.us-ashburn-1.oraclecloud.com/n/&#39; || tenancy_name || &#39;/b/&#39; || bucket_name || &#39;/o/&#39;<br>                   )<br>               ))<br>  loop<br>    total_files := total_files + 1;<br>  end loop;<br>  dbms_output.put_line(&#39;Total Files in bucket: &#39; || bucket_name || &#39; is: &#39; || total_files); <br>end;<br>/<br><br>--check the repo<br>DESCRIBE list_obj_str_files;<br><br>--test the procedure<br>set SERVEROUTPUT on <br>begin<br>    list_obj_str_files(<br>            cloud_cred =&gt; &#39;PHANI_CRED&#39;, <br>            bucket_name =&gt; &#39;phani-obj-str-adbd&#39;, <br>            tenancy_name =&gt; &#39;atpdpreview2&#39;);<br>end;<br>/<br>-- add the procedure to your repo<br>declare <br>    my_repo clob;<br>    my_repo_name clob := &#39;oracle_sql_repo&#39;;<br>begin<br>    my_repo := dbms_cloud_repo.init_github_repo(<br>        credential_name =&gt; &#39;phani_github_cred_1&#39;,<br>        repo_name =&gt; my_repo_name,<br>        owner=&gt; &#39;phani87&#39;<br>    );<br><br>    dbms_output.put_line(my_repo);<br><br>    dbms_cloud_repo.export_object(<br>        repo =&gt; my_repo,<br>        object_type =&gt; &#39;PROCEDURE&#39;,<br>        object_name =&gt; &#39;LIST_OBJ_STR_FILES&#39;,<br>        file_path =&gt; &#39;LIST_OBJ_STR_FILES_PROCEDURE.sql&#39;<br>    );<br><br>end;<br>/<br><br>-- remove files from the repo<br>declare <br>    my_repo clob;<br>    my_repo_name clob := &#39;oracle_sql_repo&#39;;<br>begin<br>    my_repo := dbms_cloud_repo.init_github_repo(<br>        credential_name =&gt; &#39;phani_github_cred_1&#39;,<br>        repo_name =&gt; my_repo_name,<br>        owner=&gt; &#39;phani87&#39;<br>    );<br>  dbms_cloud_repo.delete_file(<br>      repo        =&gt; my_repo,<br>      file_path   =&gt; &#39;LIST_OBJ_STR_FILES.sql&#39;,<br>      branch_name =&gt; &#39;main&#39;<br>  );<br>end;<br>/<br><br>-- drop the procedure from the database<br>drop procedure phani.list_obj_str_files;<br><br>-- install the procedure from the Github repo<br>declare <br>    my_repo clob;<br>    my_repo_name clob := &#39;oracle_sql_repo&#39;;<br>begin<br>    my_repo := dbms_cloud_repo.init_github_repo(<br>        credential_name =&gt; &#39;phani_github_cred_1&#39;,<br>        repo_name =&gt; my_repo_name,<br>        owner=&gt; &#39;phani87&#39;<br>    );<br>  dbms_cloud_repo.install_file(<br>      repo        =&gt; my_repo,<br>      file_path   =&gt; &#39;LIST_OBJ_STR_FILES_PROCEDURE.sql&#39;,<br>      branch_name =&gt; &#39;main&#39;<br>  );<br>end;<br>/<br><br>-- test the procedure after installation from the repo<br>set SERVEROUTPUT on <br>begin<br>    list_obj_str_files(<br>            cloud_cred =&gt; &#39;PHANI_CRED&#39;, <br>            bucket_name =&gt; &#39;phani-obj-str-adbd&#39;, <br>            tenancy_name =&gt; &#39;atpdpreview2&#39;);<br>end;<br>/<br><br>-- export object to a new branch<br>declare <br>    my_repo clob;<br>    my_repo_name clob := &#39;oracle_sql_repo&#39;;<br>begin<br>    my_repo := dbms_cloud_repo.init_github_repo(<br>        credential_name =&gt; &#39;phani_github_cred_1&#39;,<br>        repo_name =&gt; my_repo_name,<br>        owner=&gt; &#39;phani87&#39;<br>    );<br>  dbms_cloud_repo.export_object(<br>        repo =&gt; my_repo,<br>        object_type =&gt; &#39;TABLE&#39;,<br>        object_name =&gt; &#39;AIRLINE_PASSENGER_DATA&#39;,<br>        branch_name =&gt; &#39;PHANI_v1&#39;,<br>        file_path =&gt; &#39;AIRLINE_PASSENGER_DATA.sql&#39;<br>    );<br><br>end;<br>/</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ciBtL1NTXL1P2fgeqcDIDg.png" /><figcaption>Main branch with Oracle Code</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cLficCcXTKUiwrHJJTORIQ.png" /><figcaption>PL/SQL Procedure</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-ruMJrE6NP7DlftZfT-MMw.png" /><figcaption>New Branch with a different set of files</figcaption></figure><p>It becomes super easy for database developers to leverage the same tooling as the application developers. By adding these functionalities you can integrate into a uniform DevOps process. Try our <a href="https://www.oracle.com/cloud/free/">ADB free tier</a> or if your organization owns Exadatabase Database on Dedicated Infrastructure (ExaDB-D) or Exadata Database Cloud at Customer (ExaCC) then get access to zero-dollar <a href="https://www.oracle.com/cloud/free/">Autonomous Database Developer</a> database to try this feature out.</p><p><strong>About the Author:</strong></p><p>Phani Turlapati is a Database Product Manager at Oracle Inc. He’s been with Oracle for over 7 years. He started at the Solution Engineering Hub at Oracle focusing on various design solutions to help customer to value-add to their businesses. He’s a part of the Database PM Team focusing on all things database. Before Oracle, he had worked as a Software Engineer developing applications on the Java Platform.</p><p>The blog is my view and is not an official Oracle communication.</p><p>Feel free to comment on the above post. Your feedback is valuable!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c30bcd6e3b36" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oracledevs/sql-plsql-playbook-reusable-code-for-developers-c30bcd6e3b36">SQL/PLSQL Playbook: Reusable Code for Developers</a> was originally published in <a href="https://medium.com/oracledevs">Oracle Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chat with your data on Oracle Database]]></title>
            <link>https://medium.com/oracledevs/chat-with-your-data-on-oracle-database-d46f351d6a4a?source=rss-42c4d4e5acc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/d46f351d6a4a</guid>
            <category><![CDATA[converged-database]]></category>
            <category><![CDATA[oci-autonomous-database]]></category>
            <category><![CDATA[oracle-database-23ai]]></category>
            <category><![CDATA[oraclecloudinfrastructure]]></category>
            <dc:creator><![CDATA[Phani Turlapati]]></dc:creator>
            <pubDate>Tue, 20 Aug 2024 04:01:37 GMT</pubDate>
            <atom:updated>2025-05-06T22:59:00.279Z</atom:updated>
            <content:encoded><![CDATA[<h3>AI lets you chat with your data on Oracle Database</h3><p>AI is a transformative force that is shaping our lives today. Once only domain experts understood the complex science and mathematics, but now it has become an integral part of everyone’s everyday life. Generative AI (GenAI) has captured global attention, especially from companies. Companies are seeking to leverage AI to bring more productivity and simplify the tasks for their employees. And Oracle is here to help them do it. Oracle is at the forefront of research and development to bring AI to businesses and users without having to worry about technological complexities.</p><p>Oracle has been a pioneer in this space by providing the requisite technology to run those intensive Large Learning Models (LLMs) for GenAI. Oracle Databases have also evolved to use the basic structure to hold the data required to generate context and provide the output, i.e., Vector Datatype. <a href="https://docs.oracle.com/en/database/oracle/oracle-database/23/">Oracle Database 23ai</a>, which is the latest release can now do AI Vector Search that enables you to store data in the vector format that gives to the ability to do proximity search and generate relevant results from files, text and more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rZJu2-jZKdW9crh_5JS5uQ.jpeg" /></figure><p>But, I’m not here to talk about AI Vector Search, I wanted to talk about <a href="https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/sql-generation-ai-autonomous.html">Select AI</a>. As a business user, you don’t care where the data is, you care about the information from that data. Writing relevant SQL to get insights isn’t easy. You not only have to have a great understanding of your data but also you need to know how to efficiently write your SQL statements, especially if are dealing with large datasets. So what if I told you that you don’t have to do that anymore and it can be offloaded to AI, i.e., writing SQL? I know, mind-blowing! Now, let me show you how this can be done. For this blog, I am using Autonomous Database Dedicated (ADB-D), but you can use Autonomous Database Serverless too.</p><p>I used a data set that I generated using AI. It&#39;s a flight data set that consists of flight information and passenger information (see below for a sample dataset).</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fairtable.com%2Fembed%2FappBi4M6M8AREF66r%2FshrTvPFnZJZLWsAca&amp;display_name=Airtable&amp;url=https%3A%2F%2Fairtable.com%2FappBi4M6M8AREF66r%2FshrTvPFnZJZLWsAca&amp;image=https%3A%2F%2Fstatic.airtable.com%2Fimages%2Foembed%2Fairtable.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=airtable" width="800" height="533" frameborder="0" scrolling="no"><a href="https://medium.com/media/4c95f11fb6bb601086f8c277e8892ce0/href">https://medium.com/media/4c95f11fb6bb601086f8c277e8892ce0/href</a></iframe><p>Some pre-work is needed to set up the profile. First, you create a user and grant <a href="https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/dbms-cloud-ai-package.html">DBMS_CLOUD_AI</a> package access to the user. Then you let the database access the LLM models from OpenAI, <em>Cohere</em>, etc. or train your model with <a href="https://www.oracle.com/artificial-intelligence/generative-ai/generative-ai-service/">OCI GenAI service</a> and use that model.</p><pre>-- create the user (as ADMIN)<br>grant execute on DBMS_CLOUD_AI to PHANI;<br><br>-- allow your database to access the api from LLM provider of your choice (as ADMIN)<br>begin  <br>    DBMS_NETWORK_ACL_ADMIN.APPEND_HOST_ACE(<br>         host =&gt; &#39;api.cohere.ai&#39;,<br>         ace  =&gt; xs$ace_type(privilege_list =&gt; xs$name_list(&#39;http&#39;),<br>                             principal_name =&gt; &#39;PHANI&#39;,<br>                             principal_type =&gt; xs_acl.ptype_db)<br>   );<br>end;<br>/</pre><p>Create credentials that you’ll use in your database to access those models. Once data is loaded, create an AI profile, add objects that you’d like to chat with, and start chatting with your data.</p><pre><br>--create credetials to authenticate the request <br>exec DBMS_CLOUD.CREATE_CREDENTIAL(&#39;COHERE_CRED&#39;, &#39;cohere&#39;, &#39;your_api_token&#39;);<br><br>-- verify if data is loaded and accurate<br>select * from AIRLINE_FLIGHT_DATA;<br>select * from AIRLINE_PASSENGER_DATA;<br><br>--drop any ai profile that was previously created<br>begin<br>    dbms_cloud_ai.DROP_PROFILE(<br>        profile_name =&gt; &#39;cohere&#39;<br>    );<br>end;<br>/<br><br>-- create profile <br>begin<br>    dbms_cloud_ai.CREATE_PROFILE(<br>        &#39;cohere&#39;,<br>        &#39;{ &quot;provider&quot; : &quot;cohere&quot;,<br>           &quot;credential_name&quot; : &quot;cohere_cred&quot;,<br>           &quot;object_list&quot; : [<br>                            {&quot;owner&quot; : &quot;PHANI&quot;, &quot;name&quot; : &quot;AIRLINE_FLIGHT_DATA&quot;},<br>                            {&quot;owner&quot; : &quot;PHANI&quot;, &quot;name&quot; : &quot;AIRLINE_PASSENGER_DATA&quot;}<br>                           ]<br>        }&#39;<br>    );<br>end;<br>/<br><br>-- enable profile <br>begin<br>    dbms_cloud_ai.ENABLE_PROFILE(<br>        profile_name =&gt; &#39;cohere&#39;<br>    );<br>end;<br>/<br><br>--generate SQL for a prompt <br>select dbms_cloud_ai.GENERATE(<br>    prompt =&gt; &#39;what is the flight number where the average price paid is highest &#39;,<br>    profile_name =&gt; &#39;cohere&#39;,<br>    action =&gt; &#39;showsql&#39;<br>) from dual;<br><br>-- verify those SQL and results they generate <br>SELECT count(*) AS flights_originating_from_DFW<br>FROM &quot;PHANI&quot;.&quot;AIRLINE_FLIGHT_DATA&quot;<br>WHERE &quot;STARTING_AIRPORT&quot; = upper(&#39;dfw&#39;);<br><br>SELECT &quot;PHANI&quot;.&quot;AIRLINE_FLIGHT_DATA&quot;.&quot;FLIGHT_NUMBER&quot; <br>FROM &quot;PHANI&quot;.&quot;AIRLINE_FLIGHT_DATA&quot; <br>WHERE &quot;STARTING_AIRPORT&quot; = &#39;DFW&#39; AND &quot;DESTINATION_AIRPORT&quot; = &#39;SFO&#39;;<br><br>SELECT AVG(NUMBER_OF_PASSENGERS) AS avg_passengers_on_flight<br>FROM PHANI.AIRLINE_FLIGHT_DATA<br>WHERE &quot;STARTING_AIRPORT&quot; = &#39;DFW&#39;<br>AND &quot;DESTINATION_AIRPORT&quot; = &#39;SFO&#39;;<br><br>SELECT count(*) AS flights_count<br>FROM &quot;PHANI&quot;.&quot;AIRLINE_FLIGHT_DATA&quot;<br>WHERE &quot;STARTING_AIRPORT&quot; = upper(&#39;dfw&#39;) AND &quot;DESTINATION_AIRPORT&quot; = upper(&#39;sfo&#39;);<br><br>-- set profile to use &quot;select ai&quot;<br>EXEC DBMS_CLOUD_AI.set_profile(&#39;COHERE&#39;);<br><br>-- start chatting with your data<br>select ai how many flight originate from &#39;DFW&#39;<br><br>select ai how many flights run between dallas and san francisco airports (use airport codes)<br><br>select ai how many passangers were on flights on average in flights between dallas and san francisco airports (use airport codes)<br><br>select ai which is the busiest airport (use airport codes)<br><br>select ai what is the average price paid on each flight originating from dallas (use airport code)<br><br>select ai are there any international flights going out of united states airports or coming into united states airports (use airport codes)<br><br>select ai what is the flight number where the average price paid is highest <br><br>select ai which passanger has paid the highest price</pre><p>Some screenshots from my testing. It&#39;s pretty cool that you can chat with your data and get relevant answers from <em>your data</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i3LtN6w4s8xNpzUJxpjLIg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vHDUDuhsrNSiRSal7ANPnw.png" /></figure><p>My observation: A lot of the queries worked, but there was some trouble applying masks, joining tables, and more complex questions, but I am attributing that to pre-trained free models, I hope that production-level models will be more accurate in generating better insights!</p><p><strong>About the Author:</strong></p><p>Phani Turlapati is a Product Manager at Oracle Inc. He’s been with Oracle for over 7 years. He started at the Solution Engineering Hub at Oracle focusing on various design solutions to help customer to value-add to their businesses. He’s a part of the Database PM Team focusing on all things database. Before Oracle, he had worked as a Software Engineer developing applications on the Java Platform.</p><p>The blog is my view and is not an official Oracle communication.</p><p>Feel free to comment on the above post. Your feedback is valuable!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d46f351d6a4a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oracledevs/chat-with-your-data-on-oracle-database-d46f351d6a4a">Chat with your data on Oracle Database</a> was originally published in <a href="https://medium.com/oracledevs">Oracle Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Pipelines help you move your data into Autonomous Database]]></title>
            <link>https://medium.com/oracledevs/data-pipelines-help-you-move-your-data-into-autonomous-database-8ecc542066dc?source=rss-42c4d4e5acc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/8ecc542066dc</guid>
            <dc:creator><![CDATA[Phani Turlapati]]></dc:creator>
            <pubDate>Mon, 10 Jun 2024 04:02:29 GMT</pubDate>
            <atom:updated>2025-05-06T22:57:55.728Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s now an accepted norm to you want to have a single source of truth for all your data and <a href="https://blogs.oracle.com/cloud-infrastructure/post/autonomous-database-dedicated-perfect-home">Oracle Autonomous Databases is the perfect home</a> for this. Oracle Database is capable of hosting multiple datatypes like JSON, Parquet, avro, CSV, etc. and now with 23ai you have access to the <a href="https://docs.oracle.com/en/database/oracle/oracle-database/23/vecse/overview-ai-vector-search.html">Vector Datatype</a> too, thus making Oracle Database a truly <a href="https://blogs.oracle.com/cloud-infrastructure/post/converged-data-platform">converged data platform</a>. If you want all data to reside in Oracle Autonomous Database, how can we achieve an automated data movement into and away from Oracle Autonomous Databases? Well the answer lies in the title, i.e. Data Pipelines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DZv3vn4hIwnDU5dMTUIL7g.png" /></figure><p>As the name suggests, this is a continuous incremental data loading and unloading procedure which is completely automated. All you have to do is write a script to load data from sources like Oracle Object Storage, Amazon S3, Azure Blob Storage, Google Cloud Storage, etc. into Oracle Autonomous Database and define an interval for loading. Whenever the file pops-up in those storage locations the latest files are picked up and processed.</p><p>As for the use cases, there are many! For example, when there is batch loading of data, data pipelines can replace such manual processes (no need to invoke schedulers or extractors or intermediary code) and make it more real-time. Data pipelines can also be useful for data migration from various databases. It&#39;s all ease with no headaches of failures, retries or contingencies for fault tolerance.</p><p>I used Oracle Autonomous Database on Dedicated Infrastructure to test this out, but you can use any flavor of Autonomous Database. All I do is create the table, create a pipeline, test the pipeline, and run it!</p><pre>drop table financial_transactions;</pre><pre>create table financial_transactions(<br>    account varchar2(500),<br>    accountName varchar2(500),<br>    amount varchar2(500),<br>    bic varchar2(500),<br>    creditCardCVV number,<br>    creditCardIssuer varchar2(500),<br>    creditCardNumber number,<br>    currencyCode varchar2(500),<br>    currencyName varchar2(500),<br>    iban varchar2(500),<br>    routingNumber varchar2(500),<br>    transactionDescription varchar2(1500),<br>    transactionType varchar2(500)<br>);</pre><pre>begin <br>    dbms_cloud_pipeline.create_pipeline(<br>        pipeline_name =&gt; &#39;PHANI_PIPELINE&#39;,<br>        pipeline_type =&gt; &#39;LOAD&#39;,<br>        description   =&gt; &#39;load transaction data into database&#39;<br>    );<br>end;<br>/</pre><pre>begin<br>    dbms_cloud_pipeline.set_attribute(<br>        pipeline_name =&gt; &#39;PHANI_PIPELINE&#39;,<br>        attributes    =&gt; JSON_OBJECT(<br>            &#39;credential_name&#39; VALUE &#39;PHANI_CRED&#39;,<br>            &#39;location&#39; VALUE &#39;https://objectstorage.us-ashburn-1.oraclecloud.com/n/&lt;NAMESPACE&gt;/b/&lt;BUCKET&gt;/o/&#39;,<br>            &#39;table_name&#39; VALUE &#39;FINANCIAL_TRANSACTIONS&#39;,<br>            &#39;format&#39; VALUE &#39;{&quot;type&quot;:&quot;json&quot;, &quot;columnpath&quot;:[&quot;$.account&quot;, &quot;$.accountName&quot;, &quot;$.amount&quot;, &quot;$.bic&quot;, &quot;$.creditCardCVV&quot;, &quot;$.creditCardIssuer&quot;, &quot;$.creditCardNumber&quot;, &quot;$.currencyCode&quot;, &quot;$.currencyName&quot;, &quot;$.iban&quot;, &quot;$.routingNumber&quot;, &quot;$.transactionDescription&quot;, &quot;$.transactionType&quot;]}&#39;,<br>            &#39;priority&#39; VALUE &#39;HIGH&#39;,<br>            &#39;interval&#39; VALUE &#39;20&#39;)<br>    );<br>end;<br>/</pre><pre>begin <br>    dbms_cloud_pipeline.run_pipeline_once(<br>         pipeline_name =&gt; &#39;PHANI_PIPELINE&#39;<br>    );<br>end;<br>/</pre><pre>begin <br>  dbms_cloud_pipeline.start_pipeline(<br>      pipeline_name =&gt; &#39;PHANI_PIPELINE&#39;<br>  );<br>end;<br>/</pre><pre>select pipeline_name, status, status_table, OPERATION_ID from user_cloud_pipelines<br>   where pipeline_name = &#39;PHANI_PIPELINE&#39;;</pre><p>So with ease and low code you can automate data loading into the Oracle Autonomous Database.</p><p><strong>About the Author:</strong></p><p>Phani Turlapati is a Product Manager at Oracle Inc. He’s been with Oracle for over 6 years. He started out at Solution engineering hub at Oracle focusing on various design solutions to help customer to value-add to their businesses. He’s a part of Database PM Team focusing on all things database. Prior to Oracle he had worked as Software Engineer developing application on Java Platform.</p><p>The blog is my view and is not an official Oracle communication.</p><p>Feel free to comment on the above post. Your feedback is valuable!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8ecc542066dc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/oracledevs/data-pipelines-help-you-move-your-data-into-autonomous-database-8ecc542066dc">Data Pipelines help you move your data into Autonomous Database</a> was originally published in <a href="https://medium.com/oracledevs">Oracle Developers</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Search for text in your files using your database]]></title>
            <link>https://phani-turlapati.medium.com/search-for-text-in-your-files-using-your-database-4828c7f2f612?source=rss-42c4d4e5acc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/4828c7f2f612</guid>
            <dc:creator><![CDATA[Phani Turlapati]]></dc:creator>
            <pubDate>Fri, 03 May 2024 04:02:15 GMT</pubDate>
            <atom:updated>2024-05-09T14:44:22.038Z</atom:updated>
            <content:encoded><![CDATA[<p>Autonomous Database (ADB) is a powerful <a href="https://blogs.oracle.com/cloud-infrastructure/post/converged-data-platform">converged data platform</a> that is multi-modal, multi-tenant and multi-workload. It’s an ideal platform for developers to build next-gen applications without having to worry about managing or maintaining the platform. ADB has this cool feature of searching for text using simple commands. Let’s see why this is such an useful feature and how it works. I did this with Autonomous Database on Dedicated Infrastructure (ADB-D), but you can do this using any flavor of Autonomous Database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4HFoSOmpjEUClONucYYG2A.jpeg" /></figure><p>When you are an enterprise organization and you have tons of data to manage and you want to store that data in cost-efficient manner which you can do with <a href="https://cloud.oracle.com/">OCI</a> <a href="https://www.oracle.com/cloud/storage/object-storage/">Object Storage</a>. But as the data increases, how do you efficiently search within those files to get to the relevant files? This is where a simple text search with wildcard search capabilities comes in handy. Now you can do word-based searches on common file formats like JSON, CSV, or binary objects such as PDFs or Word docs using <a href="https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/dbms-cloud-subprograms.html#GUID-CC237BEC-92CF-4051-82BE-76ADBB57F4B5">DBMS_CLOUD API</a>. Let’s see how!</p><p>Step1: Create a credential.</p><p>Step2: Create an index using that credential on the object storage bucket.</p><pre>begin <br>dbms_cloud.CREATE_EXTERNAL_TEXT_INDEX (<br>        credential_name =&gt; &#39;PHANI_CRED&#39;,<br>        location_uri    =&gt; &#39;https://objectstorage.us-ashburn-1.oraclecloud.com/n/&lt;TENANCY_NAME&gt;/b/&lt;BUCKET_NAME&gt;/o/&#39;,<br>        index_name      =&gt; &#39;&lt;INDEX_NAME&gt;&#39;,<br>        format          =&gt; JSON_OBJECT (&#39;refresh_rate&#39; value 10)<br>);<br>end;<br>/</pre><p>Step3: Query the index to find the objects where your words reside.</p><pre>SELECT object_path, object_name FROM IND_IDX$TXTIDX WHERE CONTAINS(OBJECT_NAME, &#39;%rhode%&#39;) &gt; 0;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*oe91ldpEOdOjEVey9VdaKg.png" /></figure><p>Now you know in which files does the word “rhode” occur, and it’s really that simple. So what are you waiting for? Get your hands dirty with this using either Always Free Autonomous Database or Autonomous Database Developer on ADB-D.</p><p><strong>About the Author:</strong></p><p>Phani Turlapati is a Product Manager at Oracle Inc. He’s been with Oracle for over 6 years. He started out at Solution engineering hub at Oracle focusing on various design solutions to help customer to value-add to their businesses. He’s a part of Database PM Team focusing on all things database. Prior to Oracle he had worked as Software Engineer developing application on Java Platform.</p><p>The blog is my view and is not an official Oracle communication.</p><p>Feel free to comment on the above post. Your feedback is valuable!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4828c7f2f612" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cloning Oracle Pluggable Databases on DBCS]]></title>
            <link>https://phani-turlapati.medium.com/cloning-oracle-pluggable-databases-on-dbcs-cdb0079f40?source=rss-42c4d4e5acc7------2</link>
            <guid isPermaLink="false">https://medium.com/p/cdb0079f40</guid>
            <category><![CDATA[oracle-cloud]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[oracle-database]]></category>
            <category><![CDATA[oci]]></category>
            <category><![CDATA[oracle-19c]]></category>
            <dc:creator><![CDATA[Phani Turlapati]]></dc:creator>
            <pubDate>Mon, 30 May 2022 04:04:10 GMT</pubDate>
            <atom:updated>2022-05-30T04:04:10.114Z</atom:updated>
            <content:encoded><![CDATA[<p>Cloning pluggable database works to create a clone of a PDB or a non-CDB. The idea is to create a clone of current database to in its own container or in a separate database container. This blog will explore creation of a remote pluggable database across 2 separate Virtual Cloud Networks (VCNs) in Oracle Cloud Database Cloud Service ( DBCS).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1002/1*hjQU2WOq_ksHF2UxzJiJzg.jpeg" /></figure><p>To implement this first step would be signup for <a href="http://www.cloud.oracle.com/">Oracle Cloud</a>. Once you have signed up for Oracle cloud next step would be have databases created in 2 separate VCNs. The are many business reasons to do so, some may be around having database in a separate production VCN and Dev/Test database in a separate VCN either in the same region or across regions. When the databases are in separate VCNs then a gateway ( Local Peering Gateway or Remote Peering Gateway) is required.</p><p>Step 1: Setup <a href="https://docs.oracle.com/en-us/iaas/Content/Network/Tasks/localVCNpeering.htm">LPG</a> or <a href="https://docs.oracle.com/en-us/iaas/Content/Network/Tasks/remoteVCNpeering.htm">RPG using RPC</a>/<a href="https://docs.oracle.com/en-us/iaas/Content/Network/Tasks/scenario_d.htm">RPG using DRG</a>, in my case its an LPG</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kf2w1jiiKaJOk0hrQQHYoA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g_bSxoiX-Cj9PLvUsCib8Q.png" /></figure><p>Step 2: Connect to source Database</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5G34BYzU2pqhdkPrfl1VPQ.png" /></figure><p>Step 3: Create a <em>remote_clone</em> user to clone the pluggable database and alter the pluggable database in read-only mode</p><pre>create user remote_clone identified by &lt;Password&gt;;<br>grant create session, create pluggable database to remote_clone;<br>alter pluggable database pdb1 close;<br>alter pluggable database open read only;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SHXhLPJN3GC9sWxdMnu0ig.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/423/1*iJWMEXV8Oqtd6pfMi8iXig.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/488/1*G-WnyUJ39noHKaFIr63c8w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/1*J3KMDTQMXa37IFuwZ_NNBA.png" /></figure><p>Step 4: On your target database, make an entry in your <em>tnsnames.ora</em> file for the source database and create a database link.</p><blockquote>If you are unable to make the connection using db link then check the global name and if it is set to true then reset to false</blockquote><pre>CREATE DATABASE LINK db_link<br>  CONNECT TO remote_clone IDENTIFIED BY remote_clone_user USING &#39;sourcedb_pdb1&#39;;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DpD-IotbdZYxciIaFIYH2Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8AIJzyGZo4xC2EUBr5Xqfg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b3tdZrOymbtMXD-Ht8ZB5A.png" /></figure><p>Step 5: Once you can make connection, then create the pluggable database.</p><blockquote>If your database is encrypted it would prompt you with an error for a keystore password. Re-run the command with the keystore password</blockquote><pre>create pluggable database pdb_clone from pdb1@db_link;<br>or <br>create pluggable database pdb_clone from pdb1@db_link keystore identified by &lt;Keystore_passwd&gt;;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Te8tNmrnt2r62Shb_vXjNQ.png" /></figure><p>Step 6: Once the database is created and plugged, make sure that there are PDB is not in restricted state, if it is then look for the errors or violations, in most cases you’ll have to apply datapatch as shown below. Once that’s completed successfully you can open the PDB in read/write mode</p><pre>set linesize 200;<br>column name format a10;<br>column cause format a10;<br>column type format a10;<br>column message format a30;<br>column action format a30;<br><br>select name, cause, type, message, action from PDB_PLUG_IN_VIOLATIONS where status = &#39;PENDING&#39; and con_id = &amp;con_id;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I1EYCyqaI2EnadvOCH5QVA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z0M1UnHpnO2GLwcrqbG9Rw.png" /></figure><p>You have successfully cloned a PDB from a database in separate VCN to a container database residing in another VCN. Similarly, you can create a refreshable PDB from the source PDB.</p><p>References:</p><ol><li><a href="https://oracle-base.com/articles/12c/multitenant-clone-remote-pdb-or-non-cdb-12cr1">https://oracle-base.com/articles/12c/multitenant-clone-remote-pdb-or-non-cdb-12cr1</a></li><li><a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/multi/cloning-a-pdb.html">https://docs.oracle.com/en/database/oracle/oracle-database/19/multi/cloning-a-pdb.html</a></li><li>Remote Peering : <a href="https://docs.oracle.com/en-us/iaas/Content/Network/Tasks/remoteVCNpeering.htm">https://docs.oracle.com/en-us/iaas/Content/Network/Tasks/remoteVCNpeering.htm</a></li><li>Local Peering : <a href="https://docs.oracle.com/en-us/iaas/Content/Network/Tasks/localVCNpeering.htm">https://docs.oracle.com/en-us/iaas/Content/Network/Tasks/localVCNpeering.htm</a></li><li>Sign up for Oracle Cloud :</li></ol><p><strong>About Author:</strong></p><p>Phani Turlapati is a Product Manager at Oracle Inc. He’s been with Oracle for over 4 years. He started out at Solution engineering hub at Oracle focusing on various design solutions to help customer to value-add to their businesses. He’s a part of Database PM Team focusing on all things database. Prior to Oracle he had worked as Software Engineer developing application on Java Platform.</p><p>The blog is my view and is no way related to Oracle</p><p>Feel free to comment on the above post. Your feedback is valuable!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cdb0079f40" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>