<?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 Adrian Capitanu on Medium]]></title>
        <description><![CDATA[Stories by Adrian Capitanu on Medium]]></description>
        <link>https://medium.com/@adrian.capitanu?source=rss-f6d0625ade73------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Adrian Capitanu on Medium</title>
            <link>https://medium.com/@adrian.capitanu?source=rss-f6d0625ade73------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 11:44:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@adrian.capitanu/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[Optimizing Cost with Oracle Autonomous AI Database]]></title>
            <link>https://medium.com/@adrian.capitanu/optimizing-cost-with-oracle-autonomous-ai-database-e72e014e3401?source=rss-f6d0625ade73------2</link>
            <guid isPermaLink="false">https://medium.com/p/e72e014e3401</guid>
            <category><![CDATA[exadata]]></category>
            <category><![CDATA[capacity-planning]]></category>
            <category><![CDATA[autonomous-database]]></category>
            <category><![CDATA[sizing]]></category>
            <category><![CDATA[ecpu]]></category>
            <dc:creator><![CDATA[Adrian Capitanu]]></dc:creator>
            <pubDate>Tue, 20 Oct 2026 14:11:33 GMT</pubDate>
            <atom:updated>2026-11-16T08:17:23.173Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>Part 1: Sizing Beyond CPU — Memory, Sessions and I/O</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hpLSwY6SpGaqD5kq6CLqvQ.png" /></figure><p>In this blog series I’ll explore how to get more value from Oracle Autonomous AI Database (ADB), focusing on ADB Serverless. Topics will include:</p><ul><li><strong>Sizing and autoscaling:</strong> aligning CPU, memory, connections and I/O capacity with workload needs.</li><li><strong>Included capabilities and integrated services:</strong> making use of features such as Diagnostics &amp; Tuning, Database Vault, Data Safe.</li><li><strong>Resilience and recovery:</strong> exploring options such as local backup-based disaster recovery.</li><li><strong>Development and AI integration:</strong> using integrated development and analytics tools, and connecting AI applications through the built-in MCP server without an additional MCP service fee.</li><li><strong>Cost efficiency:</strong> identifying practical opportunities to reduce expenditure while meeting application performance and availability targets.</li></ul><p>ADB combines automated database management with broad application and tool support, integrated security (e.g. mandatory encryption and patching), and Exadata performance, resilience and availability.</p><p><strong>Part 1 starts with sizing beyond CPU.</strong> CPU usage and storage are natural starting points for estimating cost, but memory, connected sessions and I/O also influence the ECPU capacity a workload needs. We’ll explore how these resources fit together, how to establish an initial baseline, and where autoscaling helps accommodate changing demand.</p><h3><strong>Establishing the CPU baseline</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xx7aEUVukGRZuK_eXzi5fg.png" /></figure><p>Two useful starting points when considering a migration to ADB are:</p><ul><li><strong>Compatibility assessment:</strong> running the <a href="https://docs.oracle.com/en/database/oracle/oracle-database/26/sutil/premigration-advisor-tool.html">Cloud Premigration Advisor Tool (CPAT)</a> to identify compatibility considerations and recommendations.</li><li><strong>Capacity planning:</strong> estimating resource requirements and cost, and establishing a starting configuration for successful operation after migration.</li></ul><p>For an initial cost estimate, it is natural to focus on compute (ECPUs) and storage. However, choosing the ECPU allocation also requires considering memory, connected sessions and I/O.</p><p>ECPUs are a billing metric and their count also influences other resource allocations. Oracle’s <a href="https://www.oracle.com/a/ocom/docs/autonomous-database-ecpu-faq.pdf">ECPU FAQ</a> provides guidance for moving from the previous OCPU model, where 1 OCPU represents 1 physical core, to ECPUs. This provides a starting reference for sizing, rather than a fixed equivalence between ECPUs and physical cores across different platforms. Notice the 1:4 ratio, used as a cost-based sizing reference for an existing Autonomous Database.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*HqRd1iz-Ji0WYhdjlurp5g.png" /></figure><p>Let’s start with a simple example: <strong>4 ECPUs configured as the baseline</strong>, with compute autoscaling enabled. Autoscaling allows the database to use up to <strong>12 ECPUs in total</strong>, accommodating additional demand without manually changing the baseline. The autoscaling is instant as the ADB can use up to 12 ECPUs as demand increases, while billing remains at the 4 ECPU baseline while consumption stays at or below it; additional consumption is billed as used.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/851/1*F9ADyGwfdHnAimgvrPecPQ.png" /><figcaption><em>With a baseline of 4 ECPUs and autoscaling ON, the database can scale up to 12 ECPUs</em></figcaption></figure><p>For the illustrative example below, assume the source database is an OLTP that uses an average of <strong>2.5 vCPUs</strong>, with a peak of <strong>6 vCPUs</strong>. Using an initial sizing assumption of 2 ECPUs per source vCPU (equivalent to 4 per core) gives an estimated average demand of <strong>5 ECPUs</strong> and a peak of <strong>12 ECPUs</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*kc3nW3qUWKsid0Y2qwSC7g.png" /></figure><p><a href="https://docs.oracle.com/en-us/iaas/autonomous-database-serverless/doc/autonomous-features-billing.html">Usage is measured each second and averaged across an hour</a>. Consequently, the average billed capacity depends on <strong>how long demand remains at each level</strong>, not just the average and peak CPU usage.</p><p>For this walkthrough, we’ll use an <strong>illustrative average billed capacity of approximately 6 ECPUs</strong>. This is an assumption for the example, rather than a value derived solely from the average and peak.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/657/1*fbv174iQKNigI6566vH5uw.png" /><figcaption>Baseline: 4 ECPUs; estimated average billed capacity: approximately 6.</figcaption></figure><p>This gives us an initial CPU-based estimate. However, the configured ECPU baseline also influences the memory and session capacity available to the database, while compute autoscaling can provide additional CPU and I/O resources. To complete the sizing picture, we need to examine the following measurements:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*kHk1msElD7cJBhzkBfRaBA.png" /></figure><p>See the notes at the end of the article for guidance on collecting these measurements.</p><p>Let’s take those resources one by one:</p><h3><strong>Memory: sizing the baseline for SGA and PGA</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yzJpNcDzjrbVmWqwxEg9mA.png" /></figure><p>Memory is another important part of ECPU sizing. In ADB Serverless, memory capacity follows the configured baseline; <a href="https://oracle-livelabs.github.io/adb/shared/workshops/freetier-indepth/index.html?lab=adb-auto-scaling">it does not automatically increase with CPU bursts</a>. Autoscaling can only provide additional CPU and I/O capacity, so the baseline must still accommodate the workload’s memory requirements.</p><p>The screenshots below show the observed SGA_TARGET and PGA_AGGREGATE_TARGET values <strong>divided by the baseline ECPU count</strong>, expressed in GB per ECPU, <em>observed in the tested configurations</em>:</p><p><strong>Autonomous Transaction Processing:</strong> a larger allocation to SGA relative to PGA</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/527/1*4xw0r1ph_WzB1EpoUhf0Zg.png" /><figcaption><strong>ATP:</strong> approximately 1.95 GB SGA and 0.73 GB PGA target per ECPU.</figcaption></figure><p><strong>Autonomous AI Lakehouse:</strong> more PGA, reflecting the memory demands of operations such as sorts and hash joins commonly used in data warehouse workloads.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/631/1*7G2IV-zWCUoVFRLjEjcK_Q.png" /><figcaption><strong>Lakehouse:</strong> approximately 0.83 GB SGA and 1.25 GB PGA target per ECPU.</figcaption></figure><p><em>These observations provide a reference for this example, rather than a published guarantee of memory per ECPU. When applying the same approach elsewhere, check the values in the target environment.</em></p><h4>Reassessing the source SGA</h4><p>Let’s return to our OLTP example. Assume the source database has a <strong>configured SGA of 30 GB</strong> and an <strong>observed peak PGA allocation of 5 GB</strong>. Applying the ratios shown above gives the following initial estimate:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*-bCiScPPunSe3rr9_r4V6w.png" /><figcaption>Baseline: 16 ECPUs; estimated average billed capacity: 16</figcaption></figure><p>Matching the source SGA configuration raises the baseline to 16 ECPUs.</p><p><strong>But does the workload actually need the same SGA size on ADB? </strong>In my experience a smaller SGA is often sufficient, particularly when moving from a non-Exadata platform.</p><p>There are two main reasons to examine that assumption:</p><ul><li><strong>The source SGA may have spare capacity.</strong> On a server with abundant RAM, a large SGA may have been configured without establishing how much was necessary to meet application targets.</li><li><strong>The target platform changes the performance equation.</strong> Exadata’s storage caching and processing capabilities (e.g. XRMEM/RDMA, Smart Scan) can reduce I/O costs and, for eligible operations, the amount of data returned to database servers. The benefit depends on the workload and its access patterns.</li></ul><p>This is an opportunity to validate a more efficient configuration — not a reason to disregard memory requirements.</p><p>The SGA Advisory and duration of sequential reads in AWR reports can help with a better estimation but in the end it is best to do actual testing on ADB to ensure the Application KPIs are met with a smaller SGA.</p><h4><strong>Using observed peak PGA</strong></h4><p>For the next step in our example, <strong>assume testing confirms that the SGA available at a 7 ECPU baseline is sufficient</strong>. PGA then becomes the memory component determining the proposed baseline:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/785/1*e0YLV61nnsUkx-Ns_K_ZAg.png" /><figcaption>With SGA assumed to fit, PGA determines the 7 ECPU baseline</figcaption></figure><p>The source system’s observed peak PGA allocation is 5 GB, giving an initial estimate of 7 ECPUs using the ratios above. We’ll retain that estimate for this exercise. Execution plans, parallelism and concurrency can change PGA consumption on ADB, so validate it under representative peak load with appropriate headroom.</p><h3><strong>Sessions: accounting for connection capacity</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lravTwJsKuGOJQxAMtBk0w.png" /></figure><p>ADB Serverless supports <a href="https://docs.oracle.com/en-us/iaas/autonomous-database-serverless/doc/predefined-database-services-names.html#ADBSB-GUID-610D50B3-A0F0-4059-B940-324E305C5F55">75 connected sessions per baseline ECPU</a>. Compute autoscaling does not increase this limit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*bby2R9RHA1v8TjwdEg_dDQ.png" /><figcaption>Each baseline ECPU supports up to 75 connected sessions; unchanged by autoscaling</figcaption></figure><p>This is a limit on connected sessions, including idle pooled connections. It is not a limit on the number of application users: connection pooling allows many users to share a smaller set of database connections.</p><p><strong>Why impose a session limit?</strong></p><p>Session limits help control memory consumption and support workload isolation. Excessive active concurrency can increase scheduling, context-switching and system (kernel) CPU overhead. Rapid connection creation can add further pressure during a connection storm. Also idle sessions still consume memory. Appropriately sized pools and connection reuse help manage these effects.</p><p><strong>Connection pooling and cost</strong></p><p>An application may maintain hundreds of database connections while actively using only a small proportion at any moment. Before increasing capacity solely to accommodate that connection count, review whether the pool sizes reflect the workload.</p><p>For example, <strong>20 application replicas with a maximum pool size of 50 can collectively open up to 1,000 database connections</strong>. Pool sizing therefore needs to account for the entire application deployment, including additional replicas and overlapping deployments.</p><p>Useful checks include:</p><ul><li><strong>Total connections:</strong> count connections across application instances, background workers, reporting tools and other clients.</li><li><strong>Actual demand:</strong> compare connected sessions with connections borrowed from pools and sessions actively performing database work.</li><li><strong>Application performance:</strong> monitor connection-acquisition delays, throughput and response times when adjusting pool sizes.</li><li><strong>Operating headroom:</strong> allow for workload peaks, application scaling and deployment overlap.</li></ul><p>A well-sized pool reuses connections and controls concurrent database work. Too few connections can cause waiting; too much active concurrency can increase contention and CPU overhead. Oracle’s Real-World Performance guidance explains how connection strategy and pool size affect database performance (check also the 3 youtube videos listed at the end of the blog):</p><p><a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/adfns/connection_strategies.html#GUID-90D1249D-38B8-47BF-9829-BA0146BD814A">Connection Strategies for Database Applications</a></p><p><a href="https://docs.oracle.com/en/database/oracle/oracle-database/26/jjucp/optimizing-real-world-performance.html#GUID-BC09F045-5D80-4AF5-93F5-FEF0531E0E1D">Real-World Performance Considerations with Respect to Connection Pool Sizes</a></p><p>In one Telco billing environment I worked with, 400 database sessions supported thousands of transactions per second coming from thousands of end users. Out of these 400 sessions about 25 were active on CPU on average. Let’s compare this to our case below.</p><p>Assume the application maintains a maximum of <strong>700 connected sessions</strong>. The 7 ECPU baseline estimated from memory provides a nominal limit of 525 sessions, so Session capacity becomes the next sizing consideration:</p><p><strong>700 ÷ 75 = 9.33, rounded up to 10 baseline ECPUs.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/774/1*S5lp8iTMAACNVgYGOR9GUw.png" /><figcaption>The large amount of sessions increases the need for more ECPUs</figcaption></figure><p>Notice that the application maintains up to 700 connected sessions, while <strong>only </strong>2.5 sessions are executing on CPU, on average (2.5 vCPUs or CPU Threads are active on CPU, on average). <strong>The connection-pool sizing should be reviewed in such cases!</strong></p><p>10 baseline ECPUs provide a nominal limit of 750 sessions, thus accommodating the observed peak of 700 sessions. Validate that the remaining headroom covers other clients, application scaling and deployment overlap.</p><p>The average billed capacity of approximately 11 ECPUs remains illustrative. It represents the 10 ECPU baseline plus assumed autoscaling usage over time.</p><h3><strong>I/O: checking throughput and IOPS</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*s6UaWIV_lNJStp0XGxYYrA.png" /></figure><p>The final resource dimension in our example is I/O. In the workloads I’ve assessed, I/O has rarely determined the ECPU baseline, given Exadata’s significant optimizations in this area, but I/O requirements should still be included in the sizing assessment.</p><p>Two useful starting measurements are:</p><ul><li><strong>Physical IOPS:</strong> the number of physical read and write operations per second.</li><li><strong>I/O throughput:</strong> the volume of data read and written per second, expressed in MB/s.</li></ul><p>Consider these alongside I/O latency and application response times. Small random reads and large sequential scans can place very different demands on storage, even when one of these measurements is similar.</p><p>In ADB Serverless, ECPU allocation influences I/O capacity. <strong>Compute autoscaling can provide up to three times the baseline CPU and I/O resources</strong>, allowing additional capacity to be used when the workload requires it.</p><p>To demonstrate the sizing method, let’s use hypothetical, rounded figures of approximately 5,000 IOPS and 125 MB/s per ECPU. N.B. these numbers depend on the active data set being in the Flash Cache; the size of the Flash Cache entitlement is <a href="https://docs.oracle.com/en-us/iaas/autonomous-database-serverless/doc/autonomous-auto-scale.html">10% of the ADB allocated storage</a>.<em> These figures are example inputs — not estimates of an ADB service entitlement — and should not be reused as sizing guidance. Actual results depend on the workload, database storage size and target environment.</em></p><p>Assume our source workload reaches peaks of <strong>7,000 physical IOPS and 85 MB/s:</strong></p><ul><li><strong>IOPS:</strong> 7,000 ÷ 5,000 = 1.4, rounded up to 2 ECPUs.</li><li><strong>Throughput:</strong> 85 ÷ 125 = 0.68, rounded up to 1 ECPU.</li></ul><p>Both estimates are below the 10 ECPU baseline already identified for sessions. Consequently, <strong>I/O does not increase the proposed baseline in this example</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*Jv5TDcuGUSkJ6G3JWsPy2g.png" /><figcaption>In my experience I/O very rarely drives the sizing</figcaption></figure><p>The approximately 11-ECPU billing estimate therefore remains unchanged.</p><p>Source I/O measurements provide a starting point, but the target workload may generate different physical I/O because of caching, execution plans, compression and storage offloading. Validate the application’s response times and throughput alongside the database’s I/O measurements.</p><h3><strong>Bringing the sizing together</strong></h3><p>In this example, CPU alone suggested a 4 ECPU baseline, while memory and sessions led to a 10 ECPU starting point. Assessing these requirements together helps avoid both under-sizing and unnecessary allocation. Cost savings follow when validated efficiencies allow a lower baseline or reduce autoscaling consumption.</p><h3><strong>Sizing notes</strong></h3><p><strong><em>Note 1</em></strong><em> — to get the performance metrics discussed above: use AWR, Enterprise Manager or Statspack, as applicable, to collect CPU, memory, session and physical I/O measurements over representative business periods, including peaks. Use equivalent monitoring data for non-Oracle sources.</em></p><p><strong><em>Note 2</em></strong><em> — For a greenfield environment capacity planning: start with expected transaction rates, query complexity, concurrency (how many users performing analytics/batch/data mining), data volumes and response-time targets, then refine the estimate through testing.</em></p><p><strong><em>Note 3</em></strong><em> — </em><strong><em>ADB-Dedicated deployments:</em></strong><em> assess I/O against the </em><a href="https://www.oracle.com/a/ocom/docs/engineered-systems/exadata/exadb-d-x11m-ds.pdf"><em>overall Exadata capacity</em></a><em> and the workloads sharing it. Dedicated also offers </em><a href="https://docs.oracle.com/en/cloud/paas/autonomous-database/dedicated/adbaa/plan-and-observe-capacity-for-autonomous-ai-database-on.html#GUID-141177A0-187E-475D-B759-ACA1E7D20AF0"><em>configurable memory per ECPU</em></a><em>; the Serverless sizing assumptions in this article should not be transferred directly.</em></p><p><strong><em>Note 4</em></strong><em> — </em><strong><em>Minimum allocation:</em></strong><em> ADB Serverless databases outside </em><a href="https://docs.oracle.com/en-us/iaas/autonomous-database-serverless/doc/elastic-pools-about.html"><em>Elastic Pools</em></a><em> start at 2 ECPUs; pool members can use 1 ECPU. Elastic pool sizing and billing will be covered separately.</em></p><p><em>Note 5 — </em><strong><em>Disaster recovery costs:</em></strong><em> Autonomous Data Guard Standby ECPU billing follows the Primary’s baseline ECPU count. Rightsizing the baseline can therefore reduce compute charges for both primary and standby databases; storage charges also apply. There is also the alternative local </em><a href="https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/backup-based-disaster-recover.html"><em>backup-based Disaster Recovery</em></a><em> that comes at no additional cost, or cross-region backup-based Disaster Recovery— this topic will also be discussed separately.</em></p><h3><strong>Further reading/watching</strong></h3><p>Real World Performance team — youtube videos on how to manage connections:</p><p><a href="https://www.youtube.com/watch?v=4FispWeLn0c&amp;list=PLKCk3OyNwIzvwEXdaubc6PQXwnQOAE9h2&amp;index=6">Real-World Performance — 2 — Bad Performance with Logons</a></p><p><a href="https://www.youtube.com/watch?v=Oo-tBpVewP4&amp;list=PLKCk3OyNwIzvwEXdaubc6PQXwnQOAE9h2&amp;index=17">Real-World Performance — 13 — Large Dynamic Connection Pools — Part 1</a></p><p><a href="https://www.youtube.com/watch?v=XzN8Rp6glEo&amp;list=PLKCk3OyNwIzvwEXdaubc6PQXwnQOAE9h2&amp;index=18">Real-World Performance — 14 — Large Dynamic Connection Pools — Part 2</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e72e014e3401" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Post-Quantum Cryptography Readiness in Oracle Autonomous AI Database: AES-256 at Rest and Hybrid…]]></title>
            <link>https://medium.com/@adrian.capitanu/post-quantum-cryptography-readiness-for-autonomous-database-aes-256-at-rest-and-hybrid-tls-in-54a1f3810ae8?source=rss-f6d0625ade73------2</link>
            <guid isPermaLink="false">https://medium.com/p/54a1f3810ae8</guid>
            <category><![CDATA[post-quantum-cryptography]]></category>
            <category><![CDATA[tde-encryption]]></category>
            <category><![CDATA[autonomous-database]]></category>
            <category><![CDATA[tls13]]></category>
            <category><![CDATA[encryption]]></category>
            <dc:creator><![CDATA[Adrian Capitanu]]></dc:creator>
            <pubDate>Mon, 05 Oct 2026 15:56:08 GMT</pubDate>
            <atom:updated>2026-12-04T15:51:55.130Z</atom:updated>
            <content:encoded><![CDATA[<h3>Post-Quantum Cryptography Readiness in Oracle Autonomous AI Database: AES-256 at Rest and Hybrid TLS 1.3 in Transit</h3><p>October, 2026</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iAsXCOT1RI4L8oLmDlPThw.png" /></figure><p>Quantum-safe database security should be considered across two distinct areas: data at rest and data in transit.</p><ul><li><strong>Data at rest:</strong> Autonomous AI Database uses Transparent Data Encryption (TDE) with AES-256.</li><li><strong>Data in transit:</strong> for TCPS connections, TLS 1.3 can negotiate a hybrid post-quantum key exchange such as X25519MLKEM768, combining classical X25519 ECDHE with ML-KEM-768, when both client and endpoint support it.</li></ul><p>For data in transit — a hybrid TLS key exchange mitigates the “<strong>harvest-now, decrypt-later” risk</strong> (an attacker records encrypted traffic today and waits for a future quantum computer to attack the classical key exchange) for new TLS sessions that actually negotiate the hybrid exchange. It does not retroactively protect traffic previously captured under a classical-only handshake.</p><p>Below I’ll be looking at both situations.</p><p><strong>I. The at-rest baseline: verify AES-256</strong></p><p>In a conventional Oracle Database 19c deployment, AES-128 is the default TDE tablespace algorithm unless an administrator changes it; in 26ai the default becomes AES-256. However on Autonomous AI Database Serverless, Oracle enforces AES-256 tablespace encryption including on 19c.</p><p>AES-256 is a symmetric algorithm with a substantial security margin in the post-quantum context. It is not itself a post-quantum public-key algorithm — its role is to protect the encrypted data once the encryption keys are safely managed. TDE protects a stolen datafile, backup, or underlying storage media.</p><pre>SELECT tablespace_name, encryptionalg<br>FROM v$encrypted_tablespaces<br>ORDER BY tablespace_name;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*ST92L2dnw_jOroWNhuoqVQ.png" /><figcaption>Data at rest is protected by TDE with AES-256, out of the box</figcaption></figure><p>Bear in mind — TDE does not remove the need for sound key management, access control, and backup protection.</p><p><strong>II. Verify the negotiated TLS 1.3 key exchange</strong></p><p>TLS key exchange is different compared to TDE and symmetric encryption — classical public-key cryptography used for TLS key establishment, including ECDHE/X25519, is vulnerable to a sufficiently capable quantum computer. A post-quantum transition is therefore needed for long-lived confidentiality.</p><p>Oracle 26ai supports ML-KEM (<strong>Module-Lattice-Based Key-Encapsulation Mechanism — </strong>post quantum encapsulation mechanism) and hybrid ML-KEM + ECDHE (classical) key establishment. Oracle recommends this <strong>hybrid mode </strong>during transition because both the classical and post-quantum components contribute to the TLS session secret.</p><p>I‘ve tested three TLS 1.3 key exchange groups against the same ADB:</p><p>→ <strong>X25519MLKEM768</strong> was the group my SQL*Plus connection negotiated. It pairs classical X25519 with ML-KEM-768, <a href="https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.203.pdf#page=49">NIST’s recommended default ML-KEM parameter set</a>.</p><p>→ <strong>SecP384r1MLKEM1024</strong> pairs classical P-384 with ML-KEM-1024. I tested this hybrid using python-oracledb Thin.</p><p>→ <strong>MLKEM1024</strong> uses ML-KEM-1024 on its own. I tested this with the same Python client because it is the key exchange group specified in the draft <a href="https://datatracker.ietf.org/doc/html/draft-becker-cnsa2-tls-profile-06#section-7.2">CNSA 2.0 TLS profile for U.S. National Security Systems</a>.</p><p>In all three cases, I verified the negotiated group in the server’s TLS ServerHello.</p><p>Let’s first do an openssl test trying to connect to the ADB host/port. N.B — this proves TLS 1.3 and hybrid key exchange negotiation with an Oracle ADB listener endpoint, but it is <strong>not yet proof of a complete authenticated database-client connection</strong>, more details further below:</p><pre>openssl s_client -connect adb.eu-frankfurt-1.oraclecloud.com:1521 -servername adb.eu-frankfurt-1.oraclecloud.com -tls1_3 -brief &lt;/dev/null</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jIXIUl7-WdQXuUSyc6MqWw.png" /><figcaption>Notice the negotiated hybrid exchange group (TLS 1.3 combining X25519 ECDHE with ML-KEM-768, making it post quantum ready).</figcaption></figure><p>Now let’s test an actual connection:</p><p>26ai version supported from the very beginning TLS 1.3, however this has been <a href="https://blogs.oracle.com/database/database-19c-now-supports-tls-1-3-post-quantum-cryptography">extended recently to 19.32</a>. So 19c gained TLS 1.3 and PQC capabilities in Release Update 19.32, using the next-generation cryptographic provider. A successful hybrid connection still depends on the database, listener, client driver, and underlying client runtime supporting the required path.</p><p>First run a tcpdump on port 1521 or 1522, whichever you’ll use to connect to the ADB:</p><pre>sudo tcpdump -i any -s0 -nn &#39;tcp port 1521&#39; -w /tmp/sqlplus_tls13.pcap</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RV6yfVPdJz2WtxOoTTgj2w.png" /><figcaption>tcpdump on the ADB port</figcaption></figure><p>I connected with SQL*Plus 23.26.3.0.0 (19.32+ also works) on port 1521 and inspected the capture with TShark 4.4.19.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*7GI92wbbGx5h33D0kDvW8g.png" /></figure><p>Then exit both and inspect the file with tshark. I’ve used here the latest version of tshark, but even with the default one you’d be able to see 4588 which is the <a href="https://www.iana.org/assignments/tls-parameters">IANA TLS group</a> <strong>X25519MLKEM768, </strong>so a hybrid exchange combining X25519 ECDHE (classical) with ML-KEM-768 (post quantum encapsulation):</p><pre>tshark -r /tmp/sqlplus_tls13.pcap -d tcp.port==1521,tls -Y &#39;tls.handshake.type == 2&#39; -V | egrep &#39;Version:|Cipher Suite:|Supported Version:|Key Share extension|Group:&#39;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bwTE4RfgiKT-jaBoUiPpZw.png" /><figcaption><strong>X25519MLKEM768 </strong>hybrid exchange combining X25519 ECDHE with ML-KEM-768</figcaption></figure><p>Notice the key exchange length — the ServerHello key share is 1,120 bytes: 32 bytes for the X25519 public key plus 1,088 bytes for the ML-KEM-768 ciphertext.</p><p>Adding below also the output for the other two tests using ML-KEM1024 — basically the ServerHello from each Python connection confirms the negotiated group. In the first capture, the ServerHello shows SecP384r1MLKEM1024 with a 1,665-byte server key share. In the second, it shows standalone MLKEM1024 with a 1,568-byte server key share:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f6EtJBnWYWGEHmO1fXRcpQ.png" /><figcaption>hybrid exchange<strong> </strong>SecP384r1MLKEM1024 and standalone MLKEM1024</figcaption></figure><p>—</p><p>Notes:</p><ol><li>ADB already provides this post quantum foundation, however the other moving pieces like Client versions (JDBC, Oracle Client, the use of ML-DSA algorithm for signing and verification) need also to adopt these standards. After validating all required client paths, a client can be configured to require TLS 1.3 and hybrid key exchange:</li></ol><pre>TLS_VERSION = TLSv1.3<br>TLS_KEY_EXCHANGE_GROUPS = (hybrid)</pre><p>That client will fail rather than fall back to TLS 1.2 or a classical-only group. This does not, by itself, globally prohibit other clients from using older protocols.</p><p>2. All the above works also for a 19.32+ sqlplus client connecting to 19c/26ai ADB but it needs one extra step — <a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/dbseg/switching-crypto-providers.html">enable the next-generation cryptographic provider</a> on the client side.</p><p>Oracle’s migration guidance recommends treating TLS 1.3, client validation, and PQC rollout as <a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/dbseg/tls-19c-migration-to-19.32-tls13.html">separate stages</a> — not one combined change.</p><p><strong>In summary</strong>: On my ADB-S instance I verified AES-256 tablespace encryption at rest. For data in transit I confirmed that my clients negotiated three TLS 1.3 key exchange groups that use post-quantum cryptography to establish the keys that protect database traffic. Two were hybrid (X25519MLKEM768 and SecP384r1MLKEM1024), and the third used standalone MLKEM1024.</p><p>Useful links:</p><ul><li><a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/dbseg/post-quantum-cryptography-reference.html#GUID-6D415764-1A64-4EF7-AAB1-03C4EB891189">Post-Quantum Cryptography in Oracle Database</a></li><li><a href="https://blogs.oracle.com/database/oracle-ai-database-26ai-pqc">Securing Oracle AI Database 26ai for the Quantum Era</a></li><li><a href="https://blogs.oracle.com/database/database-19c-now-supports-tls-1-3-post-quantum-cryptography">Oracle Database 19c Now Supports TLS 1.3, Post-Quantum Cryptography, and FIPS 140-3 Mode</a></li><li><a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/dbseg/switching-crypto-providers.html">Switching the Cryptographic Provider for Oracle Database 19c</a></li><li><a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/dbseg/tls-19c-migration-to-19.32-tls13.html#GUID-57983607-13BF-46C2-A30B-90D4C3BE01C0">Migrate from Oracle Database 19c TLS 1.2 to Oracle Database 19.32 with TLS 1.3</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54a1f3810ae8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Zero Data Loss Protection in Autonomous Database Serverless]]></title>
            <link>https://medium.com/@adrian.capitanu/zero-data-loss-protection-in-autonomous-database-serverless-da091463c516?source=rss-f6d0625ade73------2</link>
            <guid isPermaLink="false">https://medium.com/p/da091463c516</guid>
            <category><![CDATA[dataguard]]></category>
            <category><![CDATA[autonomous-database]]></category>
            <category><![CDATA[rpo-0]]></category>
            <category><![CDATA[automatic-failover]]></category>
            <dc:creator><![CDATA[Adrian Capitanu]]></dc:creator>
            <pubDate>Tue, 19 May 2026 10:05:43 GMT</pubDate>
            <atom:updated>2026-05-19T10:05:43.873Z</atom:updated>
            <content:encoded><![CDATA[<p>Starting this month (May 2026) the Oracle Autonomous Database Serverless supports <strong>Zero Data Loss Protection</strong> for local Autonomous Data Guard standby databases, bringing enterprise-grade resilience and automatic failover to mission-critical workloads with <strong>RPO = 0</strong>.</p><p>The Standby Lag can also be listed — see below it’s always 0:</p><blockquote>oci monitoring metric-data summarize-metrics-data `<br> — compartment-id ocid1.compartment.oc1.. `<br> — namespace oci_autonomous_database `<br> — query-text ‘<strong>PeerLag</strong>[1m]{deploymentType = “Shared”, resourceId = “ocid1.autonomousdatabase.oc1..”}.max()’ `<br> — output json |<br>ConvertFrom-Json |<br>ForEach-Object { $_.data[0].’aggregated-datapoints’ } |<br>Select-Object @{Name=’Timestamp’;Expression={$_.timestamp}}, @{Name=’<strong>PeerLag</strong>’;Expression={$_.value}} |<br>Format-Table -AutoSize</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/426/1*QU5nwux7Jnyh7hzgPPRyYA.png" /><figcaption>Apply Lag on the Standby using oci cli</figcaption></figure><p>When outages occur, organizations typically measure recovery in two dimensions:</p><ul><li><strong>Recovery Time Objective (RTO):</strong> How quickly the service can recover</li><li><strong>Recovery Point Objective (RPO):</strong> How much data can be lost</li></ul><p>Traditional disaster recovery architectures often require trade-offs between performance, operational complexity, and recovery guarantees. In many environments, even “high availability” configurations may still lose seconds or minutes of committed transactions during failover.</p><p>However with <strong>RPO = 0</strong>, every committed transaction is preserved — even during an unexpected outage or failover event. This is done via <strong>synchronous redo transport</strong> between the primary and standby databases:</p><ol><li>The application commits a transaction on the primary database</li><li>Redo information is generated</li><li>The redo is synchronously transmitted to the standby</li><li>The commit is acknowledged after the standby confirms receipt</li></ol><p>In addition automatic failover is also set to 0 and can be changed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MYatpFA6Yi8PdlsHbI03rA.png" /></figure><p>The feature provides:</p><ul><li><strong>Synchronous redo transport </strong>(committed transactions are protected with no performance impact)</li><li><strong>Automatic failover orchestration</strong></li><li>Fully managed operations by Oracle</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*109TDavCtK43IJmgt7Jvkg.png" /><figcaption>Key Benefits</figcaption></figure><p>References:</p><p><em>Oracle Blog — Announcing Zero Data Loss Protection on Autonomous AI Database<br> </em><a href="https://blogs.oracle.com/autonomous-ai-database/announcing-zero-data-loss-protection-on-autonomous-ai-database"><em>https://blogs.oracle.com/autonomous-ai-database/announcing-zero-data-loss-protection-on-autonomous-ai-database</em></a></p><p><em>Oracle Documentation — Autonomous Data Guard<br> </em><a href="https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-data-guard-about.html"><em>https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-data-guard-about.html</em></a></p><p><em>Oracle Documentation — Availability SLOs<br> </em><a href="https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/availability-slo.html"><em>https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/availability-slo.html</em></a></p><p><em>Oracle Documentation — Monitoring Metrics<br> </em><a href="https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-monitor-metrics-list.html#GUID-C52DF6AC-EF10-437A-AEEA-6E79A173AB7F"><em>https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-monitor-metrics-list.html#GUID-C52DF6AC-EF10-437A-AEEA-6E79A173AB7F</em></a></p><p><em>Oracle Documentation — What’s New in Autonomous Database Serverless (May 2025)<br> </em><a href="https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/whats-new-adwc.html#GUID-AE10A65D-323C-4127-88D9-80FF76992477"><em>https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/whats-new-adwc.html#GUID-AE10A65D-323C-4127-88D9-80FF76992477</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=da091463c516" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Using the new graphical interface for Database Replay to test new patches on Autonomous Database]]></title>
            <link>https://medium.com/@adrian.capitanu/using-database-replay-to-test-new-patches-on-autonomous-database-6701ed9def6e?source=rss-f6d0625ade73------2</link>
            <guid isPermaLink="false">https://medium.com/p/6701ed9def6e</guid>
            <category><![CDATA[patch-testing]]></category>
            <category><![CDATA[real-application-testing]]></category>
            <category><![CDATA[refreshable-clone]]></category>
            <category><![CDATA[autonomous-database]]></category>
            <dc:creator><![CDATA[Adrian Capitanu]]></dc:creator>
            <pubDate>Fri, 03 Oct 2025 06:18:53 GMT</pubDate>
            <atom:updated>2026-06-19T08:54:56.818Z</atom:updated>
            <content:encoded><![CDATA[<p>On Autonomous Database Serverless there are two patch levels:</p><ul><li><strong>Regular</strong> — meant for the Production environment</li><li><strong>Early </strong>— meant for Non-Production</li></ul><p>There is one week before the Early patch level is applied on top of the Regular, so ideally we’d use some automation to test the new patch before it’s applied in Production.</p><p>For this we’ll use <a href="https://docs.oracle.com/en-us/iaas/autonomous-database-serverless/doc/autonomous-real-application-testing.html"><strong>Real Application Testing</strong></a><strong> via Database Capture and Replay</strong> — basically capture an Application workload in Production and replay it on a <a href="https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/refreshable-clone-about.html"><strong>Refreshable Clone</strong></a><strong> </strong>using the Database Actions menu.</p><p>This can be tested also on a normal Full Clone, but we’ll focus on a Refreshable Clone, which can be used for various other purposes:</p><ul><li>offload read-only workloads from Production</li><li>have an almost in sync copy of Production (minutes or hours behind)</li><li>Test patches if it’s created in the Early patch level</li><li>Test upgrades if it’s created on the 26ai (assuming Prod is on 19c) etc</li></ul><p>In our example ProdADB is on the<strong> Regular</strong> patch level — ADBS-25.9.3.2 applied on 28 September, while the same patch was applied to the Refreshable Clone 1 week earlier on 20 September (<strong>Early</strong> patch level):</p><blockquote>SELECT distinct(PATCH_VERSION), PATCH_TIMESTAMP FROM DBA_CLOUD_PATCH_INFO order by PATCH_TIMESTAMP DESC;</blockquote><p><strong>ProdADB:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*dwLpNJJFZUZnO__9Hz8DCg.png" /></figure><p><strong>The Refreshable Clone</strong> is already on patch level 25.9.5.1, which will be applied within a week on Prod:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/952/1*nvEDeZOOfZ-E67kstPXYUg.png" /></figure><p>So we’ve got one week to run the relevant test on the Application workload and make sure there is no regression. For this we’ll use the new graphical interface for Real Application Testing, by capturing the workload on the Prod and replay it on Test.</p><p>I’m using Swingbench to generate workload on ProdADB:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KVS7eVY5vEKLXQ9_2Mo6zg.png" /></figure><p>Let’s start the capture by going to<strong> Database Actions</strong> &gt; <strong>View All database actions</strong> &gt; <strong>Administration</strong> &gt; <strong>Workload Capture/Replay</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9eHcEAJNyKuDC26ncTVdlQ.png" /></figure><p>The following screen will appear, listing the history of captures and replays — don’t mind them. In this case I’ve run some manual replays a while ago, with application workload captured on a BaseDB database and replayed on the ADB, with the purpose of migrating:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AxAGiIJMPtT1sWMLVZaSpw.png" /></figure><p>Click on <strong>Capture workload</strong>, give it a name and set a duration of 5 minutes (optional), then click <strong>Capture</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0acX0I37vygq24Xj8pMgTQ.png" /></figure><p>We’ll then see the Capture process starting and then in progress:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YetjyAQrz8YERHeN4riUDw.png" /></figure><p>We can also check the status in the ADB, we can see it completed:</p><blockquote>select * from DBA_CAPTURE_REPLAY_STATUS;</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/620/1*E3gz57ZExI5ULf-QFM6dhA.png" /></figure><p>As well as in the Console:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VNI5-kSTz1HHhlkjQ0U-lQ.png" /></figure><p>We’ll also get an email confirming the Capture has completed as well as it’s location in the Object Storage:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eXqiiAllHwvI9eDDQDDb4g.png" /></figure><p>Let’s now replay it against the Refreshable Clone which is on the newer patch level that will be applied in a few days on ProdADB, then check for potential regressions. Go the Refreshable ADB <strong>Administration &gt; Workload Capture/Replay</strong> and click on <strong>Replay workload &gt; Replay from Autonomous Database</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UjOu7d4Jx7M7GZjfTDQESA.png" /></figure><p>Choose the existing Capture and click <strong>Replay</strong>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uKUPZe5WkmQn0osJswz8Sg.png" /></figure><p>Looking at the Refreshable Clone Performance Hub we can see the workload being replayed, also via email:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/641/1*0SlBErUuKxgNBIhfdQYJQA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4NtuPdHEQeWXIJwHYEIwfw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C_SlirNYXO6oAVvH4NuxKA.png" /></figure><p>Once it is done we also get an email with the <strong>Replay Report</strong> where we can check how the Application performed with the new patch installed:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5317RxYpL_ykXilYiDJGlA.png" /></figure><p>And downloading the zip file and checking the Replay report we can notice no performance degradation:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/576/1*bZOcl2aG0-I4tmtTYpon2g.png" /></figure><p><strong>Conclusion </strong>— by combining Refreshable Clones with Real Application Testing Database Capture &amp; Replay and the Database Actions graphical interface — it‘s easier and more automated to test patches before they are applied in the Autonomous Database Production environment.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6701ed9def6e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Protecting the Autonomous Database  from runaway queries]]></title>
            <link>https://medium.com/@adrian.capitanu/protecting-the-autonomous-database-from-runaway-queries-eba925112bbb?source=rss-f6d0625ade73------2</link>
            <guid isPermaLink="false">https://medium.com/p/eba925112bbb</guid>
            <dc:creator><![CDATA[Adrian Capitanu]]></dc:creator>
            <pubDate>Sun, 27 Apr 2025 07:44:29 GMT</pubDate>
            <atom:updated>2025-04-27T07:44:29.474Z</atom:updated>
            <content:encoded><![CDATA[<h3>Protecting the Autonomous Database from runaway queries</h3><p>In this article we are going to see how to deal with a situation that can severely impact the Production database performance —<strong> runaway queries</strong>. Ideally these kind of situations are caught and solved during the Application testing phase, however that’s not always the case.</p><p>There are several ways to control how many resources a specific workload should consume in an Autonomous Database:</p><ol><li><strong>Serial run</strong> — use one of the services that run in serial mode: TP or LOW, thus limiting the amount of used resources. TPURGENT can also be used as long as there are no hints or object parallelism settings.</li></ol><p>To showcase this we’ll connect to the ADB using the LOW service and run a Create Table As Select and check the performance.</p><pre>create table T200 as select * from T100;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DuNFng9GOQ1iFLF2eDVjew.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eNbpnOtY7RyCwtv_vcJEtA.png" /></figure><p>By looking at the Performance Hub above we notice that we have 4 CPU threads (red line = Maximum Threads; <a href="https://www.oracle.com/a/ocom/docs/autonomous-database-ecpu-faq.pdf">remember 1 physical core = 2 threads = 4 ECPUs</a>, so this also means we have allocated 8 ECPUs to the ADB, auto-scaling OFF; with auto-scaling set to ON, the red line would have been at 12, or 3x more than the baseline).</p><p>Out of these 4 core threads we only use 1 (2 ECPUs, 1 average active session) because we use the LOW service and this way keep resource usage under control.</p><p>What would happen when running this on the HIGH service, thus using full parallelism? Notice below that it uses all the 4 core threads and actually given the <em>resmgr:cpu quantum</em> wait event it would have needed more CPU. With 8 ECPUs we got a degree of parallelism of 8:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*96bAf5bvXTA48ugqOBofuQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oDGOxsYCJH4C6_xwkjLjhQ.png" /></figure><p>The statement ran indeed 4x faster on HIGH compared to LOW, but it would have visibly impacted any other workload running on the ADB. Hence the recommendation to keep control by using one of the services using serial execution.</p><p>But what should we do if a user tries to run the CTAS on the HIGH service? We can apply the following:</p><p>2. <strong>Use the Resource Manager </strong>to implement limits for long running queries on the HIGH service.</p><p>We can do this from the <strong>Database Actions — Administration — Set Resource Management Rules</strong> or in the command line, by adding either a limit for the query length in seconds and/or on the IO done:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4p4nlWISdajkpzvvjfAr1Q.png" /></figure><p>After implementing the 500 MB IO limit: when trying to run again the CTAS using the HIGH service we get the expected “I/O data limit exceeded — call aborted” error:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/493/1*Xpw8spFcTtSohdETPnxLtw.png" /></figure><p>Also using the Resource Manager we can decide which Service gets priority when the CPU/IO resources are 100% used. For example decide that the large majority of the resources should go to TPURGENT since this is where the Application critical and performance sensitive workload is running:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*08jD6JOVjaNyZLg3IW3eNA.png" /></figure><p>The above can also be run in command line using the special CS_RESOURCE_MANAGER package in <a href="https://docs.oracle.com/en-us/iaas/autonomous-database-serverless/doc/cs-resource-manager.html">ADB Serverless</a> or the standard DBMS_RESOURCE_MANAGER package in ADB Dedicated. An example for ADB Serverless:</p><pre>BEGIN<br>   CS_RESOURCE_MANAGER.UPDATE_PLAN_DIRECTIVE(<br>      consumer_group =&gt; &#39;HIGH&#39;, <br>      io_megabytes_limit =&gt; 500, <br>      elapsed_time_limit =&gt; null);<br>END;<br>/<br><br>BEGIN<br>   CS_RESOURCE_MANAGER.UPDATE_PLAN_DIRECTIVE(<br>      consumer_group =&gt; &#39;TPURGENT&#39;, <br>      shares =&gt; 50);<br><br>END;<br>/</pre><p>3. A third method to control the used resources is via the <strong>user profile</strong>.</p><p>For example I’d like to limit the amount of blocks that a session can read from both memory and disk to the equivalent of 500 MB. Since on ADB the only block size is 8 KB this means 64,000 blocks. I’ll implement this for VOLDEMORT user, the only one using the POWERUSERS profile in my ADB:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WJtYgmyAXzIjDg3QNKnW2A.png" /></figure><p>Above we can see that initially we can create the table since there is no session IO limit, then once the limit is implemented and the session re-connected we get the expected error.</p><p>4. There is also the baseline we set at ADB level that will act as a hard limit, in our case 8 ECPUs, auto-scaling OFF. With auto-scaling ON we could use as much as 24 ECPUs.</p><p>In conclusion — there are a few ways to control the amount of resources consumed as well as prioritize the various workloads within an Autonomous Database.</p><p>— — —</p><p>Useful links:</p><p><a href="https://docs.oracle.com/en-us/iaas/autonomous-database-serverless/doc/cs-resource-manager.html">Using Oracle Autonomous Database Serverless</a></p><p><a href="https://www.oracle.com/a/ocom/docs/autonomous-database-ecpu-faq.pdf">https://www.oracle.com/a/ocom/docs/autonomous-database-ecpu-faq.pdf</a></p><p><a href="https://docs.oracle.com/en/database/oracle/oracle-database/23/arpls/DBMS_RESOURCE_MANAGER.html">https://docs.oracle.com/en/database/oracle/oracle-database/23/arpls/DBMS_RESOURCE_MANAGER.html</a></p><p><a href="https://docs.oracle.com/en/database/oracle/oracle-database/23/sqlrf/ALTER-RESOURCE-COST.html">https://docs.oracle.com/en/database/oracle/oracle-database/23/sqlrf/ALTER-RESOURCE-COST.html</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eba925112bbb" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>