<?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 Sarvesh soni on Medium]]></title>
        <description><![CDATA[Stories by Sarvesh soni on Medium]]></description>
        <link>https://medium.com/@sarveshsoni45092?source=rss-72877efd03ea------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*jOAhoswSONM0KBUu</url>
            <title>Stories by Sarvesh soni on Medium</title>
            <link>https://medium.com/@sarveshsoni45092?source=rss-72877efd03ea------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 09:20:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sarveshsoni45092/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[Oracle GoldenGate Microservices Architecture: A Journey from Classic to Modern]]></title>
            <link>https://medium.com/@sarveshsoni45092/oracle-goldengate-microservices-architecture-a-journey-from-classic-to-modern-0170d383e9bb?source=rss-72877efd03ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/0170d383e9bb</guid>
            <dc:creator><![CDATA[Sarvesh soni]]></dc:creator>
            <pubDate>Mon, 24 Nov 2025 08:03:29 GMT</pubDate>
            <atom:updated>2025-11-24T08:06:03.714Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ousRJkTJ3C25InqrTz0QmA.jpeg" /></figure><h3>Introduction: Why This Matters to DBAs</h3><p>As a DBA, I’ve been managing Oracle GoldenGate for years. When Oracle introduced the Microservices Architecture in version 12.3, I’ll admit I was skeptical. Another “modern” architecture to learn? More complexity? But after migrating several production systems, I can confidently say this is a game-changer for database administrators. Let me share my journey and help you understand why.</p><p>If you’re currently managing GoldenGate Classic, or you’re new to GoldenGate entirely, this guide will walk you through everything you need to know — from basic concepts to real-world implementation.</p><h3>Part 1: Understanding What We Had — Classic Architecture</h3><h3>The Classic Setup Every DBA Knows</h3><p>Remember when you first set up GoldenGate Classic? You SSH into your server, navigate to the GoldenGate home directory, and fire up GGSCI (GoldenGate Software Command Interface). It feels like home for us DBAs — command-line, straightforward, predictable.</p><pre>[oracle@ggserver ~]$ cd /u01/app/oracle/gg<br>[oracle@ggserver gg]$ ./ggsci</pre><pre>Oracle GoldenGate Command Interpreter for Oracle<br>Version 19.1.0.0.4 OGGCORE_19.1.0.0.0_PLATFORMS_191017.1054_FBO<br>Linux, x64, 64bit (optimized), Oracle 19c on Oct 17 2019 21:16:29<br>Operating system character set identified as UTF-8.</pre><pre>Copyright (C) 1995, 2019, Oracle and/or its affiliates. All rights reserved.</pre><pre>GGSCI (ggserver) 1&gt; info all</pre><pre>Program     Status      Group       Lag at Chkpt  Time Since Chkpt</pre><pre>MANAGER     RUNNING                                           <br>EXTRACT     RUNNING     EXT1        00:00:00      00:00:02    <br>EXTRACT     RUNNING     DPUMP1      00:00:00      00:00:01    <br>REPLICAT    RUNNING     REP1        00:00:00      00:00:00</pre><p>This is what we’ve been working with for years. Let me break down what each component does:</p><h3>Manager Process — The Boss</h3><p>The Manager is like the init process in Linux — it’s process ID 1 for GoldenGate. It starts everything else, manages ports, and performs housekeeping.</p><pre>GGSCI&gt; start manager<br>Manager started.</pre><pre>GGSCI&gt; info manager<br>Manager is running (IP port ggserver.7809, Process ID 12345).</pre><h3>Extract Process — The Data Capturer</h3><p>Extract reads the database redo logs (or archive logs) and captures all the changes. Here’s how we typically set it up:</p><pre>GGSCI&gt; dblogin userid ggadmin@orcl, password ggpassword<br>Successfully logged into database.</pre><pre>GGSCI&gt; add extract ext1, integrated tranlog, begin now<br>EXTRACT added.</pre><pre>GGSCI&gt; add exttrail /u01/app/oracle/gg/dirdat/lt, extract ext1<br>EXTTRAIL added.</pre><pre>GGSCI&gt; edit params ext1</pre><p>And then we write our parameter file:</p><pre>EXTRACT ext1<br>USERID ggadmin@orcl, PASSWORD ggpassword<br>EXTTRAIL /u01/app/oracle/gg/dirdat/lt<br>DDL INCLUDE ALL<br>TABLE scott.emp;<br>TABLE scott.dept;<br>TABLE hr.employees;<br>TABLE hr.departments;</pre><h3>Data Pump — The Network Sender</h3><p>Data Pump is just another Extract process that reads the trail files and sends them over the network:</p><pre>GGSCI&gt; add extract dpump1, exttrailsource /u01/app/oracle/gg/dirdat/lt<br>EXTRACT added.</pre><pre>GGSCI&gt; add rmttrail /u01/app/oracle/gg/dirdat/rt, extract dpump1<br>RMTTRAIL added.</pre><pre>GGSCI&gt; edit params dpump1</pre><p>Parameter file:</p><pre>EXTRACT dpump1<br>RMTHOST targetserver, MGRPORT 7809<br>RMTTRAIL /u01/app/oracle/gg/dirdat/rt<br>TABLE scott.emp;<br>TABLE scott.dept;<br>TABLE hr.employees;<br>TABLE hr.departments;</pre><h3>Replicat — The Data Applier</h3><p>On the target system, Replicat reads the trail files and applies the changes:</p><pre>GGSCI&gt; add replicat rep1, integrated, exttrail /u01/app/oracle/gg/dirdat/rt<br>REPLICAT added.</pre><pre>GGSCI&gt; edit params rep1</pre><p>Parameter file:</p><pre>REPLICAT rep1<br>USERID ggadmin@targetdb, PASSWORD ggpassword<br>ASSUMETARGETDEFS<br>MAP scott.emp, TARGET scott_copy.emp;<br>MAP scott.dept, TARGET scott_copy.dept;<br>MAP hr.employees, TARGET hr_copy.employees;<br>MAP hr.departments, TARGET hr_copy.departments;</pre><h3>The Pain Points We All Face</h3><p>As DBAs, we’ve all experienced these challenges with Classic:</p><ol><li><strong>3 AM Phone Calls</strong>: “The replication is lagging!” You SSH in, run INFO ALL, find an ABENDED process, check the ggserr.log, and manually restart.</li><li><strong>No Central Monitoring</strong>: You’ve probably written shell scripts like this:</li></ol><pre>#!/bin/bash<br># Check GoldenGate status<br>for server in ggserver1 ggserver2 ggserver3; do<br>    echo &quot;Checking $server...&quot;<br>    ssh oracle@$server &quot;/u01/app/oracle/gg/ggsci -c &#39;info all&#39;&quot;<br>done</pre><ol><li><strong>Manual Everything</strong>: Adding a new table? Edit params, stop extract, start extract. Repeat for pump. Repeat for replicat. Hope you didn’t typo anything.</li><li><strong>Security Audits</strong>: “How do you manage GoldenGate credentials?” Well… they’re in the parameter files… encrypted with ENCKEYS… which is on the same server…</li></ol><h3>Part 2: Enter Microservices Architecture — What’s Different?</h3><h3>First Look: It’s All About Services</h3><p>Instead of one Manager process controlling everything, Microservices Architecture splits responsibilities into five specialized services. Think of it as moving from a single-server database to a RAC environment — more components, but better availability and manageability.</p><p>Here’s what a running Microservices deployment looks like:</p><pre>[oracle@ggserver ~]$ curl -s https://localhost:9100/services/v2/deployments | python -m json.tool<br>{<br>    &quot;deployments&quot;: [<br>        {<br>            &quot;name&quot;: &quot;Production&quot;,<br>            &quot;status&quot;: &quot;running&quot;,<br>            &quot;services&quot;: [<br>                {<br>                    &quot;name&quot;: &quot;adminsrvr&quot;,<br>                    &quot;port&quot;: 9101,<br>                    &quot;status&quot;: &quot;running&quot;<br>                },<br>                {<br>                    &quot;name&quot;: &quot;distsrvr&quot;,<br>                    &quot;port&quot;: 9102,<br>                    &quot;status&quot;: &quot;running&quot;<br>                },<br>                {<br>                    &quot;name&quot;: &quot;recvsrvr&quot;,<br>                    &quot;port&quot;: 9103,<br>                    &quot;status&quot;: &quot;running&quot;<br>                },<br>                {<br>                    &quot;name&quot;: &quot;pmsrvr&quot;,<br>                    &quot;port&quot;: 9104,<br>                    &quot;status&quot;: &quot;running&quot;<br>                }<br>            ]<br>        }<br>    ]<br>}</pre><h3>The Five Services Explained (DBA Style)</h3><p><strong>1. Service Manager (Port 9100)</strong></p><ul><li>Think of it as the listener for GoldenGate</li><li>Always runs, manages all deployments</li><li>One Service Manager can handle multiple deployments (like DEV, TEST, PROD)</li></ul><p><strong>2. Admin Service (Port 9101)</strong></p><ul><li>This replaces the Manager process</li><li>Handles all Extract and Replicat operations</li><li>But here’s the magic: everything is REST API!</li></ul><p><strong>3. Distribution Service (Port 9102)</strong></p><ul><li>Replaces the Data Pump process</li><li>But so much smarter — handles routing, filtering, and transformation</li><li>Uses secure WebSockets instead of TCP</li></ul><p><strong>4. Receiver Service (Port 9103)</strong></p><ul><li>New component — receives data from Distribution Service</li><li>No more manual trail file management</li></ul><p><strong>5. Performance Metrics Service (Port 9104)</strong></p><ul><li>Real-time metrics!</li><li>No more parsing ggserr.log or report files</li><li>Direct integration with Grafana/Prometheus</li></ul><h3>Part 3: Setting Up Your First Microservices Deployment</h3><h3>Installation: Easier Than You Think</h3><p>Let me walk you through setting up Microservices on a fresh Oracle Linux server:</p><pre># As root, create the GoldenGate user<br>useradd -m oracle<br>passwd oracle</pre><pre># Create the directory structure<br>mkdir -p /u01/app/oracle/gg_ms<br>mkdir -p /u02/gg_deployments<br>chown -R oracle:oinstall /u01 /u02</pre><pre># As oracle user, set environment<br>su - oracle<br>cat &gt;&gt; ~/.bash_profile &lt;&lt; EOF<br>export OGG_HOME=/u01/app/oracle/gg_ms<br>export OGG_VAR_HOME=/u02/gg_deployments<br>export PATH=\$OGG_HOME/bin:\$PATH<br>EOF</pre><pre>source ~/.bash_profile</pre><h3>Creating the Service Manager</h3><p>Instead of just starting Manager like in Classic, we need to create a Service Manager:</p><pre># Create Service Manager using oggca (Oracle GoldenGate Configuration Assistant)<br>cd $OGG_HOME/bin</pre><pre># This creates an interactive setup - but here&#39;s the silent mode:<br>./oggca.sh -silent \<br>    -serviceManager \<br>    -serviceManagerPort 9100 \<br>    -user oggadmin \<br>    -password Welcome1</pre><p>Now you can access the web interface! Open your browser and go to: <a href="https://your-server:9100/">https://your-server:9100</a></p><h3>Creating Your First Deployment</h3><p>A deployment is like a separate GoldenGate instance. You can have multiple deployments (DEV, TEST, PROD) all managed by one Service Manager.</p><p>Using the REST API:</p><pre># Create a deployment called &quot;Production&quot;<br>curl -k -X POST https://localhost:9100/services/v2/deployments \<br>  -u oggadmin:Welcome1 \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{<br>    &quot;name&quot;: &quot;Production&quot;,<br>    &quot;port&quot;: 9101,<br>    &quot;enablePM&quot;: true,<br>    &quot;pmPort&quot;: 9104,<br>    &quot;enableDistribution&quot;: true,<br>    &quot;distPort&quot;: 9102,<br>    &quot;enableReceiver&quot;: true,<br>    &quot;recvPort&quot;: 9103,<br>    &quot;deploymentType&quot;: &quot;Standalone&quot;<br>  }&#39;</pre><p>Or use the web interface (much easier when starting out):</p><ol><li>Login to <a href="https://your-server:9100/">https://your-server:9100</a></li><li>Click “Add Deployment”</li><li>Fill in the form — it’s self-explanatory</li><li>Click Submit</li></ol><h3>Part 4: Creating Your First Replication — The New Way</h3><h3>Setting Up Database Credentials</h3><p>First big difference: credentials are stored securely in a credential store, not in parameter files!</p><pre># Using the Admin Service REST API<br>curl -k -X POST https://localhost:9101/services/v2/credentials/Oracle \<br>  -u oggadmin:Welcome1 \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{<br>    &quot;alias&quot;: &quot;sourcedb&quot;,<br>    &quot;connectionString&quot;: &quot;orcl.world&quot;,<br>    &quot;userName&quot;: &quot;ggadmin&quot;,<br>    &quot;password&quot;: &quot;ggpassword&quot;<br>  }&#39;</pre><p>Or using the new web-based AdminClient:</p><pre>OGG (https://localhost:9101) &gt; add credentialstore<br>Credential store created.</pre><pre>OGG (https://localhost:9101) &gt; alter credentialstore add user ggadmin@orcl password ggpassword alias sourcedb<br>Credential store altered.</pre><h3>Creating an Extract</h3><p>Here’s where it gets interesting. You can still use familiar commands, but through the AdminClient:</p><pre># Connect to AdminClient<br>cd $OGG_HOME/bin<br>./adminclient</pre><pre># Connect to the Admin Service<br>OGG&gt; connect <a href="https://localhost:9101/">https://localhost:9101</a> deployment Production as oggadmin password Welcome1</pre><pre># Now it feels familiar!<br>OGG (https://localhost:9101 Production) &gt; dblogin useridalias sourcedb<br>Successfully logged into database.</pre><pre>OGG (https://localhost:9101 Production) &gt; add extract ext1, integrated tranlog, begin now<br>Extract EXT1 added.</pre><pre>OGG (https://localhost:9101 Production) &gt; add exttrail lt, extract ext1<br>Exttrail added.</pre><pre>OGG (https://localhost:9101 Production) &gt; edit params ext1</pre><p>But here’s the powerful part — you can do the same thing via REST API:</p><pre>curl -k -X POST https://localhost:9101/services/v2/extracts \<br>  -u oggadmin:Welcome1 \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{<br>    &quot;name&quot;: &quot;EXT1&quot;,<br>    &quot;source&quot;: {<br>      &quot;persistent&quot;: {<br>        &quot;name&quot;: &quot;sourcedb&quot;<br>      }<br>    },<br>    &quot;mode&quot;: {<br>      &quot;type&quot;: &quot;integrated&quot;<br>    },<br>    &quot;begin&quot;: &quot;now&quot;,<br>    &quot;params&quot;: [<br>      &quot;Extract EXT1&quot;,<br>      &quot;UseridAlias sourcedb&quot;,<br>      &quot;ExtTrail lt&quot;,<br>      &quot;Table scott.emp;&quot;,<br>      &quot;Table scott.dept;&quot;,<br>      &quot;Table hr.employees;&quot;,<br>      &quot;Table hr.departments;&quot;<br>    ]<br>  }&#39;</pre><h3>Creating a Distribution Path (Goodbye Data Pump!)</h3><p>Instead of creating a Data Pump extract, we create a distribution path:</p><pre>curl -k -X POST https://localhost:9102/services/v2/paths \<br>  -u oggadmin:Welcome1 \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{<br>    &quot;name&quot;: &quot;path_to_target&quot;,<br>    &quot;source&quot;: {<br>      &quot;name&quot;: &quot;lt&quot;<br>    },<br>    &quot;target&quot;: {<br>      &quot;name&quot;: &quot;rt&quot;,<br>      &quot;remote&quot;: true,<br>      &quot;uri&quot;: &quot;wss://targetserver:9103&quot;<br>    },<br>    &quot;security&quot;: {<br>      &quot;credential&quot;: {<br>        &quot;user&quot;: &quot;oggadmin&quot;,<br>        &quot;password&quot;: &quot;Welcome1&quot;<br>      }<br>    }<br>  }&#39;</pre><p>This automatically handles:</p><ul><li>Network transmission</li><li>Encryption (WSS = WebSocket Secure)</li><li>Compression</li><li>Retry logic</li><li>Trail file management</li></ul><h3>Creating a Replicat on Target</h3><p>On the target server:</p><pre># First, create credentials for target database<br>curl -k -X POST https://targetserver:9101/services/v2/credentials/Oracle \<br>  -u oggadmin:Welcome1 \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{<br>    &quot;alias&quot;: &quot;targetdb&quot;,<br>    &quot;connectionString&quot;: &quot;targetdb.world&quot;,<br>    &quot;userName&quot;: &quot;ggadmin&quot;,<br>    &quot;password&quot;: &quot;ggpassword&quot;<br>  }&#39;</pre><pre># Create the Replicat<br>curl -k -X POST <a href="https://targetserver:9101/services/v2/replicats">https://targetserver:9101/services/v2/replicats</a> \<br>  -u oggadmin:Welcome1 \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{<br>    &quot;name&quot;: &quot;REP1&quot;,<br>    &quot;target&quot;: {<br>      &quot;name&quot;: &quot;targetdb&quot;<br>    },<br>    &quot;mode&quot;: {<br>      &quot;type&quot;: &quot;integrated&quot;,<br>      &quot;parallel&quot;: true,<br>      &quot;threads&quot;: 4<br>    },<br>    &quot;source&quot;: {<br>      &quot;name&quot;: &quot;rt&quot;<br>    },<br>    &quot;params&quot;: [<br>      &quot;Replicat REP1&quot;,<br>      &quot;UseridAlias targetdb&quot;,<br>      &quot;AssumeTargetDefs&quot;,<br>      &quot;Map scott.emp, Target scott_copy.emp;&quot;,<br>      &quot;Map scott.dept, Target scott_copy.dept;&quot;,<br>      &quot;Map hr.employees, Target hr_copy.employees;&quot;,<br>      &quot;Map hr.departments, Target hr_copy.departments;&quot;<br>    ]<br>  }&#39;</pre><p>Notice &quot;parallel&quot;: true and &quot;threads&quot;: 4? That&#39;s Parallel Replicat—processing changes 4x faster!</p><h3>Part 5: Real-World DBA Scenarios</h3><h3>Scenario 1: Adding a New Table to Replication</h3><p><strong>Classic Way:</strong></p><pre># Stop Extract<br>GGSCI&gt; stop extract ext1</pre><pre># Edit params<br>GGSCI&gt; edit params ext1<br># Add: TABLE finance.transactions;</pre><pre># Start Extract<br>GGSCI&gt; start extract ext1</pre><pre># Repeat for Data Pump<br>GGSCI&gt; stop extract dpump1<br>GGSCI&gt; edit params dpump1<br># Add: TABLE finance.transactions;<br>GGSCI&gt; start extract dpump1</pre><pre># Repeat for Replicat<br>GGSCI&gt; stop replicat rep1<br>GGSCI&gt; edit params rep1<br># Add: MAP finance.transactions, TARGET finance_copy.transactions;<br>GGSCI&gt; start replicat rep1</pre><p><strong>Microservices Way:</strong></p><pre># Update Extract without stopping!<br>curl -k -X PATCH https://localhost:9101/services/v2/extracts/EXT1 \<br>  -u oggadmin:Welcome1 \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{<br>    &quot;params&quot;: [<br>      &quot;Extract EXT1&quot;,<br>      &quot;UseridAlias sourcedb&quot;,<br>      &quot;ExtTrail lt&quot;,<br>      &quot;Table scott.emp;&quot;,<br>      &quot;Table scott.dept;&quot;,<br>      &quot;Table hr.employees;&quot;,<br>      &quot;Table hr.departments;&quot;,<br>      &quot;Table finance.transactions;&quot;<br>    ]<br>  }&#39;</pre><pre># The distribution path automatically picks it up!</pre><pre># Update Replicat<br>curl -k -X PATCH <a href="https://targetserver:9101/services/v2/replicats/REP1">https://targetserver:9101/services/v2/replicats/REP1</a> \<br>  -u oggadmin:Welcome1 \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{<br>    &quot;params&quot;: [<br>      &quot;Replicat REP1&quot;,<br>      &quot;UseridAlias targetdb&quot;,<br>      &quot;AssumeTargetDefs&quot;,<br>      &quot;Map scott.emp, Target scott_copy.emp;&quot;,<br>      &quot;Map scott.dept, Target scott_copy.dept;&quot;,<br>      &quot;Map hr.employees, Target hr_copy.employees;&quot;,<br>      &quot;Map hr.departments, Target hr_copy.departments;&quot;,<br>      &quot;Map finance.transactions, Target finance_copy.transactions;&quot;<br>    ]<br>  }&#39;</pre><h3>Scenario 2: Monitoring Replication Lag</h3><p><strong>Classic Way:</strong></p><pre>GGSCI&gt; lag extract ext1</pre><pre>Sending GETLAG request to EXTRACT EXT1 ...<br>Last record lag 0 seconds.<br>At EOF, no more records to process.</pre><pre>GGSCI&gt; stats extract ext1</pre><pre># Then parse through pages of output...</pre><p><strong>Microservices Way:</strong></p><pre># Get real-time metrics<br>curl -k https://localhost:9104/services/v2/metrics/extracts/EXT1 \<br>  -u oggadmin:Welcome1 | python -m json.tool</pre><pre>{<br>  &quot;response&quot;: {<br>    &quot;name&quot;: &quot;EXT1&quot;,<br>    &quot;status&quot;: &quot;running&quot;,<br>    &quot;metrics&quot;: {<br>      &quot;extractLag&quot;: 0.5,<br>      &quot;extractLagInSeconds&quot;: 0.5,<br>      &quot;sinceLastCheckpoint&quot;: 2.1,<br>      &quot;totalInserts&quot;: 1548923,<br>      &quot;totalUpdates&quot;: 892341,<br>      &quot;totalDeletes&quot;: 223419,<br>      &quot;totalOperations&quot;: 2664683,<br>      &quot;operationsPerSecond&quot;: 4523.7,<br>      &quot;bytesPerSecond&quot;: 892341<br>    }<br>  }<br>}</pre><p>Even better, set up Grafana dashboard:</p><pre># prometheus.yml configuration<br>scrape_configs:<br>  - job_name: &#39;goldengate&#39;<br>    metrics_path: &#39;/services/v2/metrics/prometheus&#39;<br>    scheme: &#39;https&#39;<br>    tls_config:<br>      insecure_skip_verify: true<br>    basic_auth:<br>      username: &#39;oggadmin&#39;<br>      password: &#39;Welcome1&#39;<br>    static_configs:<br>      - targets: [&#39;ggserver:9104&#39;]</pre><h3>Scenario 3: Handling Extract ABEND</h3><p><strong>Classic Way:</strong></p><pre># You get paged at 3 AM<br># SSH to server<br># Check status<br>GGSCI&gt; info extract ext1<br>EXTRACT    EXT1      Last Started 2024-01-10 02:00   Status ABENDED<br>Checkpoint Lag       00:00:00 (updated 01:00:12 ago)<br>Log Read Checkpoint  Oracle Redo Logs<br>                     2024-01-10 02:15:45  Thread 1, Seqno 1847, RBA 15284736<br>                     SCN 0.8451923 (8451923)</pre><pre># Check error<br>GGSCI&gt; view report ext1<br># Find OGG-00446: No data selecting position from checkpoint table</pre><pre># Fix and restart<br>GGSCI&gt; alter extract ext1, begin now<br>GGSCI&gt; start extract ext1</pre><p><strong>Microservices Way with Auto-Restart:</strong></p><pre>// Set up automatic restart when creating Extract<br>{<br>  &quot;name&quot;: &quot;EXT1&quot;,<br>  &quot;managedProcessSettings&quot;: {<br>    &quot;autoStart&quot;: true,<br>    &quot;autoRestart&quot;: true,<br>    &quot;maxRestartAttempts&quot;: 3,<br>    &quot;restartDelaySeconds&quot;: 60,<br>    &quot;disableOnFailure&quot;: false<br>  }<br>}</pre><p>Plus, get notified immediately:</p><pre># Configure webhook alert<br>curl -k -X POST https://localhost:9104/services/v2/alerts \<br>  -u oggadmin:Welcome1 \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{<br>    &quot;name&quot;: &quot;extract_down_alert&quot;,<br>    &quot;targetType&quot;: &quot;extract&quot;,<br>    &quot;targetName&quot;: &quot;EXT1&quot;,<br>    &quot;condition&quot;: {<br>      &quot;type&quot;: &quot;status&quot;,<br>      &quot;value&quot;: &quot;ABENDED&quot;<br>    },<br>    &quot;action&quot;: {<br>      &quot;type&quot;: &quot;webhook&quot;,<br>      &quot;url&quot;: &quot;https://your-monitoring-system.com/webhook&quot;,<br>      &quot;payload&quot;: {<br>        &quot;text&quot;: &quot;Extract EXT1 is down!&quot;,<br>        &quot;severity&quot;: &quot;critical&quot;<br>      }<br>    }<br>  }&#39;</pre><h3>Scenario 4: Performing a Coordinated Switchover</h3><p><strong>Classic Way:</strong></p><pre># On source - manually record position<br>GGSCI&gt; stop extract ext1<br>GGSCI&gt; info extract ext1, showch</pre><pre># Write down the checkpoint info<br># Stop data pump<br>GGSCI&gt; stop extract dpump1</pre><pre># On target<br>GGSCI&gt; stop replicat rep1<br>GGSCI&gt; alter replicat rep1, extseqno 123, extrba 456789<br>GGSCI&gt; start replicat rep1</pre><pre># Hope you got the position right!</pre><p><strong>Microservices Way:</strong></p><pre># Create a coordinated checkpoint<br>curl -k -X POST https://localhost:9101/services/v2/extracts/EXT1/checkpoint \<br>  -u oggadmin:Welcome1 \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{<br>    &quot;type&quot;: &quot;coordinated&quot;,<br>    &quot;description&quot;: &quot;Switchover checkpoint&quot;<br>  }&#39;</pre><pre># The checkpoint is automatically propagated through the distribution path!</pre><pre># On target, Replicat automatically uses coordinated checkpoint<br>curl -k -X POST <a href="https://targetserver:9101/services/v2/replicats/REP1/switchover">https://targetserver:9101/services/v2/replicats/REP1/switchover</a> \<br>  -u oggadmin:Welcome1 \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{<br>    &quot;useCoordinatedCheckpoint&quot;: true<br>  }&#39;</pre><h3>Part 6: Performance Tuning for DBAs</h3><h3>Parallel Replicat — Game Changer for Large Volumes</h3><p>In Classic, if your Replicat can’t keep up, you’re stuck. In Microservices, enable Parallel Replicat:</p><pre>{<br>  &quot;name&quot;: &quot;REP1&quot;,<br>  &quot;mode&quot;: {<br>    &quot;type&quot;: &quot;integrated&quot;,<br>    &quot;parallel&quot;: true,<br>    &quot;threads&quot;: 8,<br>    &quot;mapParallelism&quot;: 4,<br>    &quot;maxParallelAppliers&quot;: 8<br>  },<br>  &quot;performanceProfile&quot;: {<br>    &quot;batchSize&quot;: 1000,<br>    &quot;groupTransactionInterval&quot;: 1000,<br>    &quot;eagerSize&quot;: 10000<br>  }<br>}</pre><p>Real example from my production system:</p><ul><li><strong>Before</strong>: Single-threaded Replicat processing 2,000 transactions/second</li><li><strong>After</strong>: 8-thread Parallel Replicat processing 15,000 transactions/second</li></ul><h3>Network Optimization</h3><p>Distribution Service includes built-in compression and encryption:</p><pre>{<br>  &quot;name&quot;: &quot;path_to_target&quot;,<br>  &quot;compression&quot;: {<br>    &quot;enabled&quot;: true,<br>    &quot;type&quot;: &quot;LZ4&quot;,<br>    &quot;level&quot;: 3<br>  },<br>  &quot;encryption&quot;: {<br>    &quot;enabled&quot;: true,<br>    &quot;algorithm&quot;: &quot;AES256&quot;<br>  },<br>  &quot;streaming&quot;: {<br>    &quot;enabled&quot;: true,<br>    &quot;maxBandwidth&quot;: &quot;100MB&quot;<br>  }<br>}</pre><p>Results from my WAN replication:</p><ul><li>Network usage reduced by 70% with LZ4 compression</li><li>No noticeable CPU overhead</li><li>Encryption adds only 2–3% overhead</li></ul><h3>Part 7: Security Improvements DBAs Will Love</h3><h3>No More Cleartext Passwords</h3><p>Remember finding passwords in parameter files during security audits?</p><p><strong>Classic:</strong></p><pre>USERID ggadmin, PASSWORD AACAAAAAAAAAAAJALAKJSDFLKAJSDLFKJ, ENCRYPTKEY default</pre><p><strong>Microservices:</strong></p><pre># Credentials stored in secure wallet<br>curl -k -X POST https://localhost:9101/services/v2/credentials/Oracle \<br>  -u oggadmin:Welcome1 \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{<br>    &quot;alias&quot;: &quot;sourcedb&quot;,<br>    &quot;userName&quot;: &quot;ggadmin&quot;,<br>    &quot;password&quot;: &quot;StrongPassword123!&quot;<br>  }&#39;</pre><pre># In params, just reference the alias<br>&quot;params&quot;: [<br>  &quot;Extract EXT1&quot;,<br>  &quot;UseridAlias sourcedb Domain Oracle&quot;<br>]</pre><h3>Role-Based Access Control</h3><p>Different team members get different access:</p><pre># Create read-only user for monitoring team<br>curl -k -X POST https://localhost:9100/services/v2/users \<br>  -u oggadmin:Welcome1 \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{<br>    &quot;name&quot;: &quot;monitor_user&quot;,<br>    &quot;password&quot;: &quot;Monitor123!&quot;,<br>    &quot;role&quot;: &quot;viewer&quot;<br>  }&#39;</pre><pre># Create operator user for operations team<br>curl -k -X POST <a href="https://localhost:9100/services/v2/users">https://localhost:9100/services/v2/users</a> \<br>  -u oggadmin:Welcome1 \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{<br>    &quot;name&quot;: &quot;ops_user&quot;,<br>    &quot;password&quot;: &quot;Ops123!&quot;,<br>    &quot;role&quot;: &quot;operator&quot;<br>  }&#39;</pre><h3>Part 8: Migration Strategy for DBAs</h3><h3>My Recommended Approach</h3><p>Having migrated several production systems, here’s what works:</p><h4>Step 1: Run Parallel for a Month</h4><p>Install Microservices on the same server as Classic (different directories):</p><pre># Classic in:<br>/u01/app/oracle/gg_classic</pre><pre># Microservices in:<br>/u01/app/oracle/gg_microservices</pre><pre># Different ports:<br>Classic Manager: 7809<br>Service Manager: 9100-9104</pre><h4>Step 2: Migrate Non-Critical Systems First</h4><p>Start with your development or reporting replications:</p><pre># Export Classic configuration<br>./ggsci<br>GGSCI&gt; info extract ext_dev, detail<br>GGSCI&gt; view params ext_dev</pre><pre># Create equivalent in Microservices<br># Test thoroughly<br># Document differences</pre><h4>Step 3: Set Up Better Monitoring First</h4><p>Before migrating production, get monitoring in place:</p><pre># docker-compose.yml for monitoring stack<br>version: &#39;3&#39;<br>services:<br>  prometheus:<br>    image: prom/prometheus<br>    ports:<br>      - 9090:9090<br>    volumes:<br>      - ./prometheus.yml:/etc/prometheus/prometheus.yml<br>  <br>  grafana:<br>    image: grafana/grafana<br>    ports:<br>      - 3000:3000</pre><h4>Step 4: Migrate with Zero Downtime</h4><pre># 1. Create Microservices Extract reading from same point<br># 2. Let both run in parallel<br># 3. Verify data consistency<br># 4. Switch over downstream systems<br># 5. Decommission Classic Extract</pre><h3>Part 9: Troubleshooting Guide</h3><h3>Common Issues and Solutions</h3><h4>Issue 1: “Cannot connect to Admin Service”</h4><pre># Check if service is running<br>curl -k https://localhost:9101/services/v2/ping</pre><pre># Check certificate<br>openssl s_client -connect localhost:9101 -showcerts</pre><pre># Check firewall<br>firewall-cmd --list-ports</pre><h4>Issue 2: “Extract lag increasing”</h4><pre># Check integrated Extract registration<br>curl -k https://localhost:9101/services/v2/extracts/EXT1/info/registration \<br>  -u oggadmin:Welcome1</pre><pre># Check logmining server sessions<br>sqlplus / as sysdba<br>SQL&gt; SELECT sid, serial#, program FROM v$session WHERE program LIKE &#39;%GG%&#39;;</pre><pre># Increase parallelism<br>curl -k -X PATCH <a href="https://localhost:9101/services/v2/extracts/EXT1">https://localhost:9101/services/v2/extracts/EXT1</a> \<br>  -u oggadmin:Welcome1 \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{<br>    &quot;performanceProfile&quot;: {<br>      &quot;parallelism&quot;: 4<br>    }<br>  }&#39;</pre><h4>Issue 3: “Distribution path keeps disconnecting”</h4><pre># Check network connectivity<br>traceroute targetserver</pre><pre># Check WebSocket connection<br>wscat -c wss://targetserver:9103</pre><pre># Enable debug logging<br>curl -k -X PATCH <a href="https://localhost:9102/services/v2/paths/path_to_target">https://localhost:9102/services/v2/paths/path_to_target</a> \<br>  -u oggadmin:Welcome1 \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{<br>    &quot;debug&quot;: &quot;network&quot;,<br>    &quot;traceLevel&quot;: 2<br>  }&#39;</pre><h3>Part 10: Best Practices from the Trenches</h3><h3>1. Automate Everything</h3><p>Create scripts for common tasks:</p><pre>#!/usr/bin/env python3<br># check_goldengate.py - Daily health check</pre><pre>import requests<br>import json<br>from datetime import datetime</pre><pre>def check_extract_status(host, port, username, password):<br>    url = f&quot;https://{host}:{port}/services/v2/extracts&quot;<br>    response = requests.get(url, auth=(username, password), verify=False)<br>    extracts = response.json()<br>    <br>    for extract in extracts:<br>        name = extract[&#39;name&#39;]<br>        status = extract[&#39;status&#39;]<br>        lag = extract.get(&#39;lag&#39;, 0)<br>        <br>        if status != &#39;running&#39;:<br>            print(f&quot;ALERT: Extract {name} is {status}&quot;)<br>        elif lag &gt; 60:<br>            print(f&quot;WARNING: Extract {name} lag is {lag} seconds&quot;)<br>        else:<br>            print(f&quot;OK: Extract {name} is running with {lag} seconds lag&quot;)</pre><pre>if __name__ == &quot;__main__&quot;:<br>    check_extract_status(&#39;localhost&#39;, 9101, &#39;oggadmin&#39;, &#39;Welcome1&#39;)</pre><h3>2. Use Configuration as Code</h3><p>Store your configurations in Git:</p><pre># goldengate-config.yaml<br>deployment:<br>  name: Production<br>  <br>extracts:<br>  - name: EXT_SALES<br>    source: salesdb<br>    tables:<br>      - sales.orders<br>      - sales.order_items<br>      - sales.customers<br>    <br>  - name: EXT_HR<br>    source: hrdb<br>    tables:<br>      - hr.employees<br>      - hr.departments<br>      - hr.job_history</pre><pre>replicats:<br>  - name: REP_SALES<br>    target: warehousedb<br>    parallel: true<br>    threads: 4<br>    mappings:<br>      - source: sales.orders<br>        target: dw.fact_orders<br>      - source: sales.customers<br>        target: dw.dim_customers</pre><h3>3. Monitor Proactively</h3><p>Set up alerts for common issues:</p><pre># Alert for high lag<br>curl -k -X POST https://localhost:9104/services/v2/alerts \<br>  -u oggadmin:Welcome1 \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{<br>    &quot;name&quot;: &quot;high_lag_alert&quot;,<br>    &quot;condition&quot;: &quot;lag &gt; 300&quot;,<br>    &quot;notification&quot;: {<br>      &quot;email&quot;: &quot;dba-team@company.com&quot;,<br>      &quot;slack&quot;: &quot;#database-alerts&quot;<br>    }<br>  }&#39;</pre><pre># Alert for low throughput<br>curl -k -X POST <a href="https://localhost:9104/services/v2/alerts">https://localhost:9104/services/v2/alerts</a> \<br>  -u oggadmin:Welcome1 \<br>  -H &quot;Content-Type: application/json&quot; \<br>  -d &#39;{<br>    &quot;name&quot;: &quot;low_throughput_alert&quot;,<br>    &quot;condition&quot;: &quot;operationsPerSecond &lt; 100&quot;,<br>    &quot;notification&quot;: {<br>      &quot;email&quot;: &quot;dba-team@company.com&quot;<br>    }<br>  }&#39;</pre><h3>4. Document Your Setup</h3><p>Create runbooks for your team:</p><pre># GoldenGate Microservices Runbook</pre><pre>## Access URLs<br>- Service Manager: <a href="https://ggserver:9100/">https://ggserver:9100</a><br>- Admin Service: <a href="https://ggserver:9101/">https://ggserver:9101</a><br>- Metrics: <a href="https://ggserver:9104/">https://ggserver:9104</a><br>- Grafana: <a href="http://ggserver:3000/">http://ggserver:3000</a></pre><pre>## Common Operations</pre><pre>### Restart Extract<br>curl -k -X POST <a href="https://ggserver:9101/services/v2/extracts/%7Bname%7D/restart">https://ggserver:9101/services/v2/extracts/{name}/restart</a> \<br>  -u oggadmin:password</pre><pre>### Check Replication Lag<br>curl -k <a href="https://ggserver:9104/services/v2/metrics/lag">https://ggserver:9104/services/v2/metrics/lag</a> \<br>  -u oggadmin:password</pre><pre>### Add New Table<br>1. Update Extract params via API<br>2. Update Replicat params via API<br>3. No restart required!</pre><h3>Conclusion: Is It Worth the Migration?</h3><p>After managing both architectures in production, here’s my honest assessment:</p><h3>Why Microservices Wins</h3><ol><li><strong>No More 3 AM SSH Sessions</strong>: Everything is API-driven. I can fix issues from my phone.</li><li><strong>Real Monitoring</strong>: Integrated metrics mean I spot issues before they become problems.</li><li><strong>Security Audit Ready</strong>: No more explaining cleartext passwords in parameter files.</li><li><strong>Performance</strong>: Parallel Replicat alone made the migration worth it.</li><li><strong>DevOps Friendly</strong>: My automation scripts are cleaner, and integration with CI/CD is seamless.</li></ol><h3>When to Stick with Classic</h3><ul><li>You have a simple, stable setup that never changes</li><li>You’re on older database versions (pre-12c)</li><li>You have extensive Classic automation you can’t rewrite</li><li>You’re planning to retire the system soon</li></ul><h3>Final Thoughts</h3><p>The transition from Classic to Microservices felt daunting at first. New terminology, REST APIs instead of GGSCI, services instead of processes. But once I understood that it’s the same GoldenGate engine underneath — just with better management and monitoring — it clicked.</p><p>My advice? Start with a proof of concept. Install Microservices, replicate one non-critical table, and see the difference. Use the web interface initially — it helps visualize what’s happening. Then gradually move to API automation.</p><p>The investment in learning Microservices Architecture pays off quickly. Faster deployments, better monitoring, easier troubleshooting, and happier security auditors. As DBAs, we’re always looking for ways to make our systems more reliable and manageable. GoldenGate Microservices delivers on both counts.</p><p>Remember: you’re not losing your command-line interface — AdminClient still gives you that familiar feel. You’re gaining powerful APIs, real monitoring, and automation capabilities that make your life as a DBA significantly easier.</p><p>Happy replicating!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0170d383e9bb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Raft Replication in Oracle 23ai]]></title>
            <link>https://medium.com/@sarveshsoni45092/raft-replication-in-oracle-23ai-c291f329573c?source=rss-72877efd03ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/c291f329573c</guid>
            <category><![CDATA[oracle-database]]></category>
            <category><![CDATA[oracle-raft-replication]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[oracle-cloud]]></category>
            <category><![CDATA[replication]]></category>
            <dc:creator><![CDATA[Sarvesh soni]]></dc:creator>
            <pubDate>Tue, 07 Oct 2025 09:58:31 GMT</pubDate>
            <atom:updated>2025-10-07T09:58:31.331Z</atom:updated>
            <content:encoded><![CDATA[<p>Distributed databases must balance <strong>scale</strong>, <strong>availability</strong>, and <strong>consistency</strong>. In Oracle Database <strong>23ai</strong> (a rebrand of 23c emphasizing AI-era features), Oracle introduced <strong>Raft replication</strong> for its <strong>Globally Distributed (Sharded) Database</strong>. This built‑in, consensus‑based replication mode aims to simplify ops, deliver fast failover, and maintain strong consistency across shards.</p><blockquote><em>TL;DR: Raft replication is a </em><strong><em>native, consensus-based</em></strong><em> replication option for Oracle’s sharded databases. It offers automatic reconfiguration, leader election, strong consistency (commit on majority), and fast failover — at the cost of additional write latency and some operational constraints.</em></blockquote><h3>1) Core Concepts</h3><h3>Shards, Chunks, Chunk Sets &amp; Replication Units (RUs)</h3><ul><li>A <strong>shard</strong> is an independent Oracle database holding a subset of the global data.</li><li>A <strong>chunk</strong> is a set of table partitions (from a table family) that move together.</li><li>A <strong>chunk set</strong> groups chunks that share a replication topology.</li><li>A <strong>Replication Unit (RU)</strong> = one chunk set <strong>replicated across shards</strong> (usually RF=3: 1 leader + 2 followers).</li></ul><p>Each RU has one <strong>leader</strong> (accepts writes for that RU) and multiple <strong>followers</strong>. Oracle balances leadership across shards so no single shard becomes the universal hotspot.</p><h3>Raft Consensus &amp; Commit</h3><ol><li>Client write is routed to the <strong>RU leader</strong>.</li><li>Leader appends the change to a <strong>Raft log</strong> and sends it to followers.</li><li>When a <strong>majority</strong> of replicas acknowledge the commit record, the leader returns <strong>success</strong> to the client (strong consistency / no data loss under majority availability).</li><li>Followers <strong>apply</strong> the change <strong>asynchronously</strong> (after it’s durably committed), limiting leader-path latency.</li><li>If a leader fails, remaining replicas <strong>elect a new leader</strong> automatically.</li></ol><h3>Why it’s different (high level)</h3><ul><li><strong>Native to sharding</strong>: No external tooling to glue replication to shards.</li><li><strong>Active-active per shard</strong>: Every shard serves reads; the leader for an RU handles writes for its portion of data.</li><li><strong>Self-managing</strong>: Automatically reconfigures as shards are added/removed.</li></ul><h3>2) Enabling Raft Replication (at a glance)</h3><p>You enable Raft when creating the shard catalog and set the intended number of replication units <strong>before</strong> the first deploy.</p><pre>-- Create shard catalog with native (Raft) replication<br>GDSCTL&gt; CREATE SHARDCATALOG -repl native ...</pre><pre>-- (Optional) Set replication units count before first DEPLOY<br>-- e.g., -repunit 8 (exact syntax/flags per your environment)</pre><pre>-- Add shards and DEPLOY<br>GDSCTL&gt; ADD SHARD ...<br>GDSCTL&gt; DEPLOY</pre><blockquote><em>Note: After the first </em><strong><em>DEPLOY</em></strong><em>, the </em><strong><em>RU count is fixed</em></strong><em>. Plan RU granularity carefully for parallelism and future scaling.</em></blockquote><h3>3) Walkthrough Example</h3><p><strong>Topology</strong>: 3 shards (ShardA, ShardB, ShardC), replication factor RF=3, two RUs: RU1 and RU2.</p><ul><li>RU1 → <strong>Leader: ShardA</strong>, Followers: ShardB, ShardC</li><li>RU2 → <strong>Leader: ShardB</strong>, Followers: ShardA, ShardC</li></ul><p><strong>Write to RU1</strong></p><ol><li>Client INSERT hits RU1’s leader on <strong>ShardA</strong>.</li><li>ShardA logs entry, ships to ShardB/C.</li><li>Upon majority ack (ShardA + ShardB), commit is confirmed to client.</li><li>ShardC applies changes shortly after (async apply).</li></ol><p><strong>Leader failure</strong></p><ul><li>If <strong>ShardA</strong> fails, <strong>ShardB/C</strong> elect a new RU1 leader (say ShardB). Clients reconnect/route to the new leader. Downtime aims to be sub‑second in favorable networks.</li></ul><p><strong>Scale-out</strong></p><ul><li>Add <strong>ShardD</strong> → system splits/moves chunks and <strong>rebalances RUs</strong> so leadership and data distribution stay healthy — without manual replication reconfiguration.</li></ul><h3>4) How Raft Differs from Data Guard &amp; GoldenGate</h3><p>Capability <strong>Raft (23ai, sharded)</strong> <strong>Data Guard</strong> <strong>GoldenGate</strong> Primary model Consensus‑based, per‑RU <strong>leader/followers</strong> Primary ↔ Standby (physical/logical) CDC-based logical replication Integration with sharding <strong>Native</strong>, auto‑rebalance with shard changes Orthogonal, manual per‑shard setup Orthogonal, external pipelines Writes To RU leader (per data slice) To primary only To configured targets (often async) Consistency Strong (commit on majority) Strong (sync) or eventually consistent (async) Typically eventual (configurable) Failover Auto leader election, fast Managed switchover/failover Topology dependent Ops overhead <strong>Lower</strong> (built‑in) Medium (role mgmt, lag) Higher (processes, mapping, conflict handling)</p><h3>5) Limitations &amp; Operational Constraints (Current)</h3><ul><li><strong>Replication factor capped at 3</strong> (1 leader + 2 followers): tolerates <strong>one</strong> replica failure per RU.</li><li><strong>Automatic data distribution only</strong>: Raft isn’t supported with user‑defined or directory‑based distribution modes.</li><li><strong>Catalog DB not protected by Raft</strong>: protect the shard catalog via <strong>Data Guard</strong> (or equivalent HA) separately.</li><li><strong>RU count immutable after first DEPLOY</strong>: choose RU count up front.</li><li><strong>Chunk movement constraints</strong>: legacy MOVE CHUNK is unsupported; use RELOCATE CHUNK under RU constraints.</li><li><strong>Rack placement constraints</strong>: replicas of the same RU shouldn’t share a rack; violating placement will error.</li><li><strong>Consensus cost</strong>: writes wait for majority ack → higher latency than purely local commits.</li><li><strong>Leader transitions</strong>: brief unavailability during elections; clients must retry/re‑route.</li><li><strong>Follower apply lag</strong>: followers apply DML after commit acknowledgment (by design) → small apply lag is normal.</li></ul><blockquote><em>These reflect Oracle’s docs for 23ai/23c sharded Raft and may evolve. Always validate against the exact version you run.</em></blockquote><h3>6) Performance: Expectations &amp; What to Benchmark</h3><p>Oracle hasn’t published comprehensive third‑party benchmarks for 23ai Raft at the time of writing. You should validate in your <strong>own topology</strong> (in‑region vs cross‑region, link quality, workload mix). Focus on:</p><p><strong>Latency &amp; Throughput</strong></p><ul><li>Commit latency (p50/p95/p99) under variable RTT and fan‑out.</li><li>Sustained TPS/QPS as you scale <strong>RU count</strong> and shards.</li></ul><p><strong>Replica Behavior</strong></p><ul><li>Follower <strong>apply lag</strong> post‑commit.</li><li><strong>Catch‑up time</strong> after a follower outage (backlog replay throughput).</li></ul><p><strong>Resilience</strong></p><ul><li><strong>Failover time</strong> during leader death (time to resume successful writes).</li><li>Behavior during <strong>rebalancing</strong> (adding/removing shards): impact on latency/throughput.</li></ul><p><strong>Hotspots &amp; Balance</strong></p><ul><li>Leadership distribution across shards (avoid hotspots).</li><li>Resource overhead (CPU/memory/I/O/network) on leaders vs followers.</li></ul><p><strong>Suggested test plan</strong></p><ol><li>Start with RF=3, 3 shards, RU count sized for your write parallelism goals (e.g., 8–32 RUs per shardspace).</li><li>Run OLTP‑like workloads with controlled think‑time and payload sizes.</li><li>Vary network latency (same AZ, cross‑AZ, cross‑region) and packet loss.</li><li>Induce failures (kill leader, pause follower, drop link) and measure recovery.</li><li>Add a shard during load; observe rebalancing effects.</li></ol><h3>7) When to Pick Raft vs. Alternatives</h3><p>Choose <strong>Raft replication</strong> when you need:</p><ul><li><strong>Native sharded</strong> active‑active topology with low ops overhead.</li><li><strong>Strong consistency</strong> and <strong>fast failover</strong> within a region or well‑connected regions.</li><li><strong>Automatic reconfiguration</strong> as the cluster grows or changes.</li></ul><p>Prefer <strong>Data Guard</strong> when:</p><ul><li>You want DR/HA for a <strong>single, monolithic</strong> database (non‑sharded), or to protect the <strong>shard catalog</strong>.</li><li>You require proven, physical redo‑based protection with synchronous/no‑data‑loss modes.</li></ul><p>Prefer <strong>GoldenGate</strong> when:</p><ul><li>You need <strong>heterogeneous</strong> replication, data integration, or selective table/column replication.</li><li>You want looser coupling and transformation between systems.</li></ul><h3>8) References &amp; Further Reading</h3><ul><li>Oracle Database 23ai (23c) Sharding &amp; Raft Replication — Concepts &amp; Operations:</li><li>Concepts: <a href="https://docs.oracle.com/en/database/oracle/oracle-database/23/shard/raft-replication-concepts.html">https://docs.oracle.com/en/database/oracle/oracle-database/23/shard/raft-replication-concepts.html</a></li><li>Enabling Raft: <a href="https://docs.oracle.com/en/database/oracle/oracle-database/23/shard/enabling-raft-replication.html">https://docs.oracle.com/en/database/oracle/oracle-database/23/shard/enabling-raft-replication.html</a></li></ul><h3>Final Thoughts</h3><p>Raft replication in Oracle 23ai is a modern, <strong>built‑in</strong> answer to the realities of global, sharded OLTP: it favors <strong>operational simplicity</strong>, <strong>automatic healing</strong>, and <strong>predictable failure semantics</strong>. You pay for this with <strong>extra write latency</strong> and some <strong>topology constraints</strong>, but many teams find that a worthwhile trade for strong consistency and automated HA in distributed deployments. As always, verify with <strong>benchmarks in your own network geometry</strong> before committing to production.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c291f329573c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Future of Oracle DBA Jobs and How to Scale Your Career]]></title>
            <link>https://medium.com/@sarveshsoni45092/the-future-of-oracle-dba-jobs-and-how-to-scale-your-career-ec5bfbaf1589?source=rss-72877efd03ea------2</link>
            <guid isPermaLink="false">https://medium.com/p/ec5bfbaf1589</guid>
            <dc:creator><![CDATA[Sarvesh soni]]></dc:creator>
            <pubDate>Thu, 06 Mar 2025 07:13:20 GMT</pubDate>
            <atom:updated>2025-03-06T07:15:54.742Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BmgANKTaghuN5F-x15EYhw.jpeg" /></figure><p>The role of an Oracle Database Administrator (DBA) is evolving rapidly with the rise of cloud computing, automation, and AI-driven database management. While traditional DBA responsibilities such as installation, backup, performance tuning, and security remain crucial, the landscape is shifting towards <strong>cloud-based, automated, and DevOps-integrated database management</strong>. If you are an Oracle DBA or aspiring to become one, understanding these changes and upskilling accordingly will be key to career growth.</p><p><em>(Based on my experience working as an Oracle DBA at HCL, handling clients like PayPal and Avon, I have observed these industry shifts firsthand.)</em></p><h3>The Future of Oracle DBA Jobs</h3><h3>1. Cloud Adoption: The New Norm</h3><p>With more enterprises migrating to <strong>Oracle Cloud Infrastructure (OCI), AWS, Azure, and Google Cloud</strong>, the demand for cloud-savvy DBAs is increasing. Oracle Autonomous Database is taking over many manual DBA tasks by automating patching, tuning, and scaling. <strong>DBAs must adapt to cloud-based database management and hybrid architectures to stay relevant.</strong></p><h3>2. Automation &amp; DevOps: Reducing Manual Work</h3><p>Automation tools like <strong>Ansible, Terraform, and Oracle REST Data Services (ORDS)</strong> are transforming database administration. Companies are integrating database management into <strong>DevOps pipelines</strong> for seamless provisioning and maintenance. <strong>Learning scripting (Python, Shell) and automation tools will be a game-changer for DBAs.</strong></p><h3>3. Database as a Service (DBaaS): The Future of Deployment</h3><p>DBaaS solutions like <strong>AWS RDS for Oracle, Azure Database, and OCI Autonomous DB</strong> are becoming the go-to choice for enterprises. This reduces the need for on-premise DBAs while increasing demand for <strong>cloud-native database specialists</strong> who can optimize, secure, and manage multi-cloud databases efficiently.</p><h3>4. Big Data &amp; NoSQL: Expanding Database Expertise</h3><p>Many organizations are adopting <strong>Big Data (Hadoop, Spark) and NoSQL databases (MongoDB, Cassandra, DynamoDB)</strong> alongside traditional relational databases. The ability to <strong>manage both SQL and NoSQL environments</strong> will give DBAs a competitive edge.</p><h3>5. AI &amp; Machine Learning in Database Management</h3><p>AI-driven databases now use <strong>predictive analytics and self-healing capabilities</strong> to optimize performance. Understanding <strong>AI-powered database monitoring tools like Oracle OMC, AIOps, and Prometheus</strong> will become a valuable skill for DBAs.</p><h3>How to Scale Your Career as an Oracle DBA</h3><p>To stay ahead, <strong>DBAs must transition from traditional administration to strategic, cloud-focused roles</strong>. Here’s how:</p><h3>1. Gain Expertise in Cloud Platforms</h3><ul><li>Get certified in <strong>Oracle Cloud Infrastructure (OCI), AWS Certified Database — Specialty, or Microsoft Azure Database Administrator</strong>.</li><li>Learn <strong>cloud database migration, optimization, and security best practices</strong>.</li></ul><h3>2. Master Automation &amp; Scripting</h3><ul><li>Learn <strong>Python, Shell scripting, and SQL automation</strong>.</li><li>Use <strong>Ansible, Terraform, and OCI CLI</strong> for database infrastructure automation.</li></ul><h3>3. Explore DevOps &amp; CI/CD for Databases</h3><ul><li>Learn <strong>Liquibase or Flyway for database change management</strong>.</li><li>Understand <strong>Kubernetes and containerized database management</strong>.</li></ul><h3>4. Expand into Data Engineering &amp; Analytics</h3><ul><li>Learn <strong>ETL tools like Apache Airflow and DBT</strong>.</li><li>Gain knowledge of <strong>Data Warehousing (Snowflake, BigQuery) and Apache Spark</strong>.</li></ul><h3>5. Stay Updated with Advanced Database Features</h3><ul><li>Keep up with Oracle <strong>21c,23ai and upcoming versions</strong>.</li><li>Learn about <strong>Oracle In-Memory, JSON processing, and Blockchain tables</strong>.</li></ul><h3>6. Move Towards Database Architect or Cloud DBA Roles</h3><ul><li>Transition from <strong>DBA → Cloud DBA → Database Architect → Data Engineer</strong>.</li><li>Specialize in <strong>high-availability architectures, multi-cloud solutions, and database security</strong>.</li></ul><h3>Final Thoughts</h3><p>Oracle DBA jobs are <strong>not disappearing but evolving</strong>. To future-proof your career, upskill in <strong>cloud computing, automation, and DevOps</strong> while staying updated with <strong>emerging database technologies</strong>. If you focus on <strong>multi-cloud expertise, AI-driven automation, and DevOps for databases</strong>, you’ll be well-positioned for senior roles in <strong>database architecture and cloud engineering</strong>.</p><p>By embracing these changes, you can <strong>not only secure your career but also thrive as a next-generation database professional</strong>.</p><p><em>(This article is based on my experience as an Oracle DBA at HCL, working with clients like PayPal and Avon.)</em></p><p>Follow for more blogs on Databases and Data Science related fields.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ec5bfbaf1589" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>