<?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 Mahmoud Darwish on Medium]]></title>
        <description><![CDATA[Stories by Mahmoud Darwish on Medium]]></description>
        <link>https://medium.com/@mahmood.darweesh?source=rss-40d7a945a5b7------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*O46GdnWeCi3dXD2rJ2TUBA.png</url>
            <title>Stories by Mahmoud Darwish on Medium</title>
            <link>https://medium.com/@mahmood.darweesh?source=rss-40d7a945a5b7------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 23:48:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mahmood.darweesh/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[Moving from DBCS to ExaCS — The Things Nobody Puts in the Migration Guide!!]]></title>
            <link>https://medium.com/@mahmood.darweesh/moving-from-dbcs-to-exacs-the-things-nobody-puts-in-the-migration-guide-be3a02c7911e?source=rss-40d7a945a5b7------2</link>
            <guid isPermaLink="false">https://medium.com/p/be3a02c7911e</guid>
            <category><![CDATA[dbc]]></category>
            <category><![CDATA[oracle-db]]></category>
            <category><![CDATA[database-migration]]></category>
            <category><![CDATA[database-administration]]></category>
            <category><![CDATA[oracle-exadata]]></category>
            <dc:creator><![CDATA[Mahmoud Darwish]]></dc:creator>
            <pubDate>Thu, 09 Apr 2026 19:10:14 GMT</pubDate>
            <atom:updated>2026-04-09T19:10:14.018Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b4cM3SaqrUliViOPjrTb8Q.png" /></figure><p>I’ve done enough database migrations to stop believing in “smooth” ones. There are migrations that go according to plan, and migrations that teach you something. This one did both.</p><p>Earlier this year we migrated several core databases from Oracle Base Database Service (DBCS) on OCI to Oracle Exadata Database Service on Dedicated Infrastructure (ExaCS). Same region, same VCN, but a completely different platform under the hood. I want to share the real lessons from that project, not the architecture slides version.</p><h3>Why We Left DBCS??</h3><p>DBCS served us well for a couple of years. Managed backups, Data Guard through the console, straightforward patching, it’s a solid service. But as transaction volumes grew and SLAs got tighter, we started hitting walls that DBCS couldn’t solve.</p><p>Three specific pain points drove the decision:</p><p><strong>I/O latency.</strong> DBCS VM shapes use iSCSI block volumes for storage. It works, but it is not Exadata. Once you see latency numbers from Exadata’s RDMA over Converged Ethernet storage fabric, it’s hard to go back.</p><p><strong>Smart Scan.</strong> Our batch reporting jobs are heavy full-scan workloads. On DBCS, there is no storage offloading; every byte goes through the standard I/O path. On ExaCS, those same queries push predicate filtering down to the storage cells. The difference for analytics workloads is not marginal.</p><p><strong>Infrastructure flexibility.</strong> ExaCS allows multiple VM Clusters on the same dedicated Exadata infrastructure, each with scalable OCPUs and storage. The consolidation story and the performance consistency are in a different league from shared block storage.</p><p>So the decision was made. The harder question was how to get there.</p><h3>Pre-Migration: The Work That Actually Saves You…</h3><p>Before touching a single OCI resource, I ran a thorough workload analysis on the source DBCS environment. This is the step people rush, and it always costs them.</p><pre>## Workload fingerprint from the last 14 days on source DBCS<br>SELECT<br>    sql_id,<br>    ROUND(elapsed_time_total / 1000000, 2)          AS elapsed_sec,<br>    executions_total,<br>    ROUND(elapsed_time_total /<br>          NULLIF(executions_total, 0) / 1000000, 4) AS avg_elapsed_sec,<br>    buffer_gets_total,<br>    disk_reads_total,<br>    SUBSTR(sql_text, 1, 80)                          AS sql_preview<br>FROM<br>    dba_hist_sqlstat s<br>    JOIN dba_hist_sqltext t USING (sql_id)<br>WHERE<br>    snap_id BETWEEN (<br>        SELECT MIN(snap_id) FROM dba_hist_snapshot<br>        WHERE begin_interval_time &gt; SYSDATE - 14<br>    )<br>    AND (SELECT MAX(snap_id) FROM dba_hist_snapshot)<br>ORDER BY<br>    elapsed_time_total DESC<br>FETCH FIRST 25 ROWS ONLY;</pre><p><strong>Why capture this before the migration? </strong>Because on ExaCS, fast storage has a way of <em>revealing</em> bad SQL that slow block volume I/O was quietly masking. Queries that ran “acceptably” on DBCS because the I/O bottleneck hit first can suddenly look worse on ExaCS because the CPU overhead of a poor execution plan is now exposed. You want to identify those queries before you’re troubleshooting on the other side of a cutover window.</p><p>I also ran a feature usage check to avoid licensing surprises:</p><pre>SELECT<br>    name,<br>    detected_usages,<br>    currently_used<br>FROM<br>    dba_feature_usage_statistics<br>WHERE<br>    currently_used = &#39;TRUE&#39;<br>ORDER BY<br>    detected_usages DESC;</pre><p>ExaCS and DBCS include different licensed options; verify what your databases are actually using before you move them.</p><h3>Choosing the Migration Method</h3><p>Since both source and target were already inside OCI in the same VCN, we had four realistic options. We didn’t use the same method for every database; matching the tool to the workload saved us significant effort.</p><p><strong>Option 1: Data Guard Physical Standby Migration</strong></p><p>My preferred method for large, critical databases. Build ExaCS as a physical standby of the source DBCS, let it sync fully, then perform a controlled switchover. Application downtime is limited to the switchover itself, typically two to four minutes on a healthy configuration.</p><p>What makes this approach solid: it uses technology you already trust. You know how Data Guard behaves, you know how to read the lag metrics, and you know what a clean switchover looks like. That confidence is worth a lot compared to learning a new tool under pressure.</p><ul><li>First, verify the source is properly configured for Data Guard:</li></ul><pre>## Verify on SOURCE DBCS<br>SELECT<br>    log_mode,<br>    force_logging,<br>    db_unique_name<br>FROM<br>    gv$database;<br>## Expect: LOG_MODE=ARCHIVELOG, FORCE_LOGGING=YES<br>Set the Data Guard parameters on the source:<br><br>ALTER SYSTEM SET log_archive_config =<br>    &#39;DG_CONFIG=(dbcs_primary,exacs_standby)&#39; SCOPE=BOTH;<br>ALTER SYSTEM SET log_archive_dest_2 =<br>    &#39;SERVICE=exacs_standby ASYNC<br>     VALID_FOR=(ONLINE_LOGFILES,PRIMARY_ROLE)<br>     DB_UNIQUE_NAME=exacs_standby&#39; SCOPE=BOTH;<br>ALTER SYSTEM SET log_archive_dest_state_2 = ENABLE SCOPE=BOTH;<br>ALTER SYSTEM SET fal_server                = exacs_standby SCOPE=BOTH;<br>ALTER SYSTEM SET fal_client                = dbcs_primary  SCOPE=BOTH;<br>ALTER SYSTEM SET standby_file_management   = AUTO          SCOPE=BOTH;</pre><ul><li>Seed the standby using an RMAN backup to OCI Object Storage, restore it on the ExaCS target, then start Managed Recovery:</li></ul><pre>## On TARGET ExaCS — start managed recovery<br>ALTER DATABASE RECOVER MANAGED STANDBY DATABASE<br>    USING CURRENT LOGFILE DISCONNECT FROM SESSION;</pre><ul><li>Monitor lag obsessively in the days leading up to cutover. Both values should be at zero under normal load:</li></ul><pre>SELECT<br>    name,<br>    value,<br>    unit<br>FROM<br>    gv$dataguard_stats<br>WHERE<br>    name IN (&#39;transport lag&#39;, &#39;apply lag&#39;, &#39;apply finish time&#39;);</pre><p>If lag creeps during peak hours, you have a network throughput issue to solve before the migration window, not during it.</p><p>When you’re ready, the switchover sequence:</p><pre>## On SOURCE DBCS: initiate switchover<br>ALTER DATABASE COMMIT TO SWITCHOVER TO PHYSICAL STANDBY<br>    WITH SESSION SHUTDOWN;<br>## On TARGET ExaCS: convert to primary<br>ALTER DATABASE COMMIT TO SWITCHOVER TO PRIMARY<br>    WITH SESSION SHUTDOWN;<br>ALTER DATABASE OPEN;<br>## Verify<br>SELECT db_unique_name, database_role, open_mode FROM gv$database;</pre><p>The moment ALTER DATABASE OPEN completes on ExaCS, that’s your new primary. Update your application connection strings immediately.</p><p><strong>Option 2: RMAN Backup/Restore</strong></p><p>Take a full RMAN backup from DBCS to OCI Object Storage, then restore onto the ExaCS target. Simpler to set up, no standby infrastructure needed, but requires a downtime window proportional to database size. For databases under 500GB with an acceptable maintenance window, this is fast and reliable. For multi-terabyte environments, the restore window alone makes it impractical; RMAN Duplicate can also be utilized here if the downtime window can be approved.</p><p><strong>Option 3: Data Pump</strong> <strong>(For Non-Critical Applications)</strong></p><p>Best for smaller schemas or logical migrations where you’re also restructuring the data at the same time. Not practical for large transactional databases due to export/import overhead, but for dev/test environments or non-critical databases it’s the fastest option to set up and validate.</p><p><strong>Option 4: CREATE PLUGGABLE DATABASE FROM Source@DBLink</strong></p><p>This one is underused and underappreciated. If both source DBCS and target ExaCS are running CDB/PDB architecture, you can clone a PDB directly across a database link in a single SQL command. No Object Storage staging, no complex tooling, Oracle handles the data movement internally over the network.</p><p>The tradeoff: the source PDB must be in READ ONLY mode during the clone, so there is a defined application outage. This makes it ideal for medium-sized databases that already have a maintenance window, rather than for near-zero-downtime requirements.</p><ul><li>Setup on the source:</li></ul><pre>## On SOURCE DBCS — create a user for the clone operation<br>CREATE USER clone_link_user IDENTIFIED BY &quot;&lt;password&gt;&quot;<br>    CONTAINER = ALL;<br>GRANT CREATE SESSION,<br>      CREATE PLUGGABLE DATABASE,<br>      SELECT_CATALOG_ROLE<br>    TO clone_link_user<br>    CONTAINER = ALL;</pre><p>On the target ExaCS, create the database link and execute the clone:</p><pre>## On TARGET ExaCS CDB — create the database link<br>CREATE DATABASE LINK dbcs_source_link<br>    CONNECT TO clone_link_user<br>    IDENTIFIED BY &quot;&lt;password&gt;&quot;<br>    USING &#39;(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)<br>            (HOST=&lt;source_scan_name&gt;)(PORT=1521))<br>            (CONNECT_DATA=(SERVICE_NAME=&lt;source_cdb_service&gt;)))&#39;;<br>## Verify connectivity<br>SELECT * FROM DUAL@dbcs_source_link;<br>## On SOURCE DBCS — open PDB read only (brief outage starts here)<br>ALTER PLUGGABLE DATABASE pdb_prod CLOSE IMMEDIATE;<br>ALTER PLUGGABLE DATABASE pdb_prod OPEN READ ONLY;<br>## On TARGET ExaCS — execute the remote clone<br>CREATE PLUGGABLE DATABASE pdb_prod_exacs<br>    FROM pdb_prod@dbcs_source_link<br>    FILE_NAME_CONVERT = (<br>        &#39;+DATAC1&#39;,<br>        &#39;+DATAX1&#39;<br>    )<br>    STORAGE UNLIMITED<br>    TEMPFILE REUSE;<br>## Open the cloned PDB<br>ALTER PLUGGABLE DATABASE pdb_prod_exacs OPEN READ WRITE;<br>## On SOURCE DBCS — reopen for writes after traffic is redirected<br>ALTER PLUGGABLE DATABASE pdb_prod CLOSE IMMEDIATE;<br>ALTER PLUGGABLE DATABASE pdb_prod OPEN READ WRITE;</pre><p>Two things to get right before you execute this: FILE_NAME_CONVERT must correctly map source filesystem paths to valid ASM disk group locations on ExaCS; get this wrong, and you’ll hit an <strong>ORA-17502 file creation error</strong>. And verify the cloned PDB has registered with the ExaCS SCAN listener before updating connection strings.</p><p>We used this method for a reporting PDB around 80GB that already had a defined 2am maintenance window. The clone took 35 minutes. No Object Storage, no standby infrastructure, done before sunrise.</p><p><strong>DBCS-Specifics</strong>…</p><p>Migrating <em>from</em> DBCS has a few nuances worth calling out explicitly:</p><p><strong>TDE is mandatory on DBCS.</strong> Oracle Base Database Service enforces Transparent Data Encryption by default. This means keystore handling needs careful attention; make sure your TDE wallet password is known, documented, and synchronized between source and target before any cutover activity. It sounds obvious. It becomes non-obvious at 11pm when someone asks for it, and nobody wrote it down.</p><p><strong>RAC conversion happens automatically with Data Guard.</strong> If your source DBCS was single instance and your ExaCS target is RAC, the switchover handles the conversion. But your application needs to be ready; specifically, it needs to connect via the SCAN address rather than a single hostname. Hunt down every hardcoded connection string before your cutover window. There will be one you missed; the goal is to minimize how long it takes to find it.</p><p><strong>Backup configuration doesn’t transfer.</strong> Whatever automatic backup policy was running on your DBCS instance needs to be manually re-established on ExaCS post-migration. Easy to forget in the excitement of a successful cutover, and then you realize two days later that no backups have run. Put it on your post-migration checklist, not your memory.</p><h3>The Cutover Night</h3><p>We had a 2-hour window. Actual database activities took about 75 minutes, leaving a comfortable buffer for validation.</p><p>Two things saved us on the night. First, we validated SCAN resolution from all application servers the week before the window, not during it. We found one server with a stale /etc/hosts entry that would have caused a confusing connectivity failure mid-cutover. Second, we had a rehearsed rollback plan: switch the application back to the DBCS connection string, which we kept live until we were satisfied. We didn’t need it, but knowing we had a clean exit kept everyone on the bridge call calm.</p><h3>Post-Migration: The Quiet Wins</h3><p>After a week of hypercare monitoring, the results were clear. Peak-hour transaction processing time dropped noticeably. Batch reporting jobs that used to run overnight finished hours earlier. Smart Scan offloading on full-scan queries is a genuinely different experience compared to block volume I/O. RMAN backup times improved significantly. Oracle manages the physical infrastructure quarterly maintenance automatically.</p><p>Keep the source DBCS running for at least a full week after cutover. The first weekend batch cycle after migration is when edge cases surface. Don’t rush deprovisioning.</p><p>And once you see your first AWR report on ExaCS showing Smart Scan offloading at work, you’ll wonder why you waited as long as you did.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=be3a02c7911e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>