<?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 Kulith Jayakody on Medium]]></title>
        <description><![CDATA[Stories by Kulith Jayakody on Medium]]></description>
        <link>https://medium.com/@kulith-jayakody?source=rss-6bf8cdd75c97------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*FBnd9c-RWL8S-CKe</url>
            <title>Stories by Kulith Jayakody on Medium</title>
            <link>https://medium.com/@kulith-jayakody?source=rss-6bf8cdd75c97------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 05:02:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kulith-jayakody/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 AI Database 26ai True Cache -Complete Hands-On Lab]]></title>
            <link>https://medium.com/@kulith-jayakody/oracle-ai-database-26ai-true-cache-complete-hands-on-lab-e990d077e3e0?source=rss-6bf8cdd75c97------2</link>
            <guid isPermaLink="false">https://medium.com/p/e990d077e3e0</guid>
            <category><![CDATA[hands-on-tutorials]]></category>
            <category><![CDATA[cache]]></category>
            <category><![CDATA[oracle-true-cache]]></category>
            <category><![CDATA[oracle-database]]></category>
            <dc:creator><![CDATA[Kulith Jayakody]]></dc:creator>
            <pubDate>Thu, 20 Aug 2026 16:31:28 GMT</pubDate>
            <atom:updated>2026-08-20T16:31:28.259Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*T02TgdIOvdzW2UVv_emb_w.png" /></figure><p>Oracle True Cache is an in-memory, read-only cache for Oracle AI Database. It behaves similarly to an Active Data Guard read-only replica, but unlike a physical standby, True Cache is mostly diskless and fetches database blocks from the primary database as required.</p><p>This lab demonstrates how to configure a single True Cache instance for an Oracle AI Database 26ai primary, verify redo transport and apply, route read traffic through True Cache, observe cache misses and warm-cache behavior and monitor True Cache health.</p><p>The primary database is required to run in ARCHIVELOG mode before True Cache can be configured. DBCA automatically configures the required redo transport parameters.</p><h3>Lab Environment</h3><p>This lab uses two Oracle Linux servers.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/cdc52a065629c135c6594d37e9082b20/href">https://medium.com/media/cdc52a065629c135c6594d37e9082b20/href</a></iframe><p>The database configuration used throughout the lab is:</p><pre>Primary Database<br>----------------<br>DB_NAME          = OTCTEST<br>DB_UNIQUE_NAME   = OTCTEST<br>SID              = OTCTEST<br>PDB              = OTCPDB<br><br><br>True Cache<br>----------<br>DB_NAME          = OTCTEST<br>DB_UNIQUE_NAME   = OTCTEST_TC<br>SID              = OTCTC<br>PDB              = OTCPDB</pre><p>This guide assumes:</p><ul><li>Oracle AI Database 26ai full edition</li><li>Single-instance primary database</li><li>CDB/PDB architecture</li><li>TDE is not configured</li><li>Listener port 1521</li><li>Oracle software is installed under:<br>/u01/app/oracle/product/23.0.0/dbhome_1</li></ul><p>True Cache in Oracle AI Database 26ai does not support a non-CDB primary database.</p><h3>Prerequisites</h3><p>Install the Oracle AI Database preinstallation RPM on both servers:</p><pre>sudo dnf -y install oracle-ai-database-preinstall-26ai</pre><p>Install the Oracle AI Database 26ai software on both servers.</p><p>However:</p><ul><li>Create the normal Oracle database only on DB_SERVER.</li><li>Install the Oracle software only on TC_SERVER.</li><li>Do not create a regular database on TC_SERVER.</li></ul><p>Ensure both servers can resolve each other.</p><p>Add the following entries to /etc/hosts on both servers:</p><pre>192.10.100.65 testserver-h<br>192.10.100.66 testserver-k</pre><p>Verify:</p><pre>ping testserver-k<br>ping testserver-h</pre><p>Also ensure TCP port 1521 is reachable between the servers.</p><h3>Phase 1: Create the Primary Oracle Database</h3><p>Create the Oracle AI Database 26ai primary on:</p><pre>DB_SERVER<br>192.10.100.66<br>testserver-k</pre><p>Use:</p><pre>Database Name : OTCTEST<br>PDB Name : OTCPDB</pre><p>After database creation:</p><pre>export ORACLE_HOME=/u01/app/oracle/product/23.0.0/dbhome_1<br>export ORACLE_SID=OTCTEST<br>export PATH=$ORACLE_HOME/bin:$PATH</pre><pre>sqlplus / as sysdba</pre><p>Verify:</p><pre>SELECT name,<br> db_unique_name,<br> database_role,<br> open_mode,<br> log_mode<br>FROM v$database;</pre><p>The database should be the primary database:</p><pre>DATABASE_ROLE = PRIMARY<br>OPEN_MODE = READ WRITE</pre><h3>Phase 2: Enable ARCHIVELOG Mode</h3><p>Check whether archive logging is already enabled:</p><pre>ARCHIVE LOG LIST;</pre><p>If the database is running in NOARCHIVELOG mode:</p><pre>SHUTDOWN IMMEDIATE;<br>STARTUP MOUNT;<br>ALTER DATABASE ARCHIVELOG;<br>ALTER DATABASE OPEN;</pre><p>Verify:</p><pre>ARCHIVE LOG LIST;</pre><p>or:</p><pre>SELECT log_mode FROM v$database;</pre><p>Expected:</p><pre>ARCHIVELOG</pre><p>True Cache requires the primary database to operate in ARCHIVELOG mode because redo must be transported to True Cache.</p><p>Do <strong>not</strong> manually configure True Cache-related:</p><pre>LOG_ARCHIVE_CONFIG<br>LOG_ARCHIVE_DEST_n</pre><p>DBCA configures these automatically.</p><h3>Phase 3: Create the Lab Schema</h3><p>Connect to the primary:</p><pre>sqlplus / as sysdba</pre><p>Switch to the PDB:</p><pre>ALTER SESSION SET CONTAINER=OTCPDB;</pre><p>Create the lab user:</p><pre>CREATE USER tc_lab IDENTIFIED BY “TcLab#2026”;<br><br>GRANT CREATE SESSION, CREATE TABLE TO tc_lab;<br><br>ALTER USER tc_lab QUOTA UNLIMITED ON USERS;</pre><p>Connect as the lab user:</p><pre>CONN tc_lab/”TcLab#2026&quot;@localhost:1521/OTCPDB</pre><p>Create the test table:</p><pre>CREATE TABLE orders<br>(<br> order_id NUMBER PRIMARY KEY,<br> customer_id NUMBER,<br> order_date DATE,<br> status VARCHAR2(20),<br> amount NUMBER(10,2),<br> payload VARCHAR2(200)<br>);</pre><p>Load 100,000 rows:</p><pre>INSERT INTO orders<br>SELECT level,<br> MOD(level,10000) + 1,<br> SYSDATE — MOD(level,365),<br> CASE MOD(level,4)<br> WHEN 0 THEN ‘NEW’<br> WHEN 1 THEN ‘PAID’<br> WHEN 2 THEN ‘SHIPPED’<br> ELSE ‘COMPLETE’<br> END,<br> ROUND(DBMS_RANDOM.VALUE(10,5000),2),<br> RPAD(‘TRUECACHE-’,200,’X’)<br>FROM dual<br>CONNECT BY level &lt;= 100000;<br><br>COMMIT;</pre><p>Verify:</p><pre>SELECT COUNT(*) FROM orders;</pre><p>Expected:</p><pre>COUNT(*)<br> — — — — <br>100000</pre><h3>Phase 4: Create the Primary and True Cache Services</h3><p>For this lab, two application services will be used:</p><pre>TCAPP</pre><p>for the primary database, and:</p><pre>TCAPP_TC</pre><p>for True Cache.</p><p>Connect to the primary:</p><pre>sqlplus / as sysdba</pre><p>Switch to the PDB:</p><pre>ALTER SESSION SET CONTAINER=OTCPDB;</pre><p>Create both services and associate the primary service with its True Cache counterpart:</p><pre>DECLARE<br> db_params DBMS_SERVICE.SVC_PARAMETER_ARRAY;<br>BEGIN<br><br>DBMS_SERVICE.CREATE_SERVICE(<br> ‘TCAPP_TC’,<br> ‘TCAPP_TC’,<br> db_params<br> );<br><br>db_params(‘true_cache_service’) := ‘TCAPP_TC’;<br><br>DBMS_SERVICE.CREATE_SERVICE(<br> ‘TCAPP’,<br> ‘TCAPP’,<br> db_params<br> );<br><br>END;<br>/</pre><p>Start only the primary service on the primary:</p><pre>EXEC DBMS_SERVICE.START_SERVICE(‘TCAPP’);</pre><p>Verify:</p><pre>SELECT name,<br> true_cache_service<br>FROM dba_services<br>WHERE name IN (‘TCAPP’,’TCAPP_TC’)<br>ORDER BY name;</pre><p>Expected:</p><pre>NAME TRUE_CACHE_SERVICE<br> — — — — — — — — — — — — — — <br>TCAPP TCAPP_TC<br>TCAPP_TC</pre><p>Confirm that TCAPP is active:</p><pre>SELECT service_id,<br> name,<br> true_cache_service<br>FROM v$active_services<br>WHERE name=’TCAPP’;</pre><h3>Phase 5: Prepare the Primary Listener for True Cache Registration</h3><p>Verify the primary listener:</p><pre>lsnrctl services LISTENER</pre><p>You should see:</p><pre>Service “TCAPP”</pre><p>If required:</p><pre>ALTER SYSTEM REGISTER;</pre><p>Determine the active listener.ora rather than assuming its location.</p><p>Run:</p><pre>lsnrctl status LISTENER</pre><p>If a listener parameter file is shown, edit that file.</p><p>For this lab, the relevant configuration is:</p><pre>LISTENER =<br>  (DESCRIPTION_LIST =<br>    (DESCRIPTION =<br>      (ADDRESS =<br>        (PROTOCOL = TCP)<br>        (HOST = testserver-k)<br>        (PORT = 1521)<br>      )<br>    )<br>  )<br><br>VALID_NODE_CHECKING_REGISTRATION_LISTENER=ON<br><br>REGISTRATION_INVITED_NODES_LISTENER=(192.10.100.65)</pre><p>If an invited-node list already exists, add 192.10.100.65 instead of overwriting the existing entries.</p><p>Reload or restart the listener after modifying the configuration:</p><pre>lsnrctl reload LISTENER</pre><p>Verify again:</p><pre>lsnrctl services LISTENER</pre><h3>Phase 6: Prepare the True Cache Server</h3><p>Switch to:</p><pre>TC_SERVER<br>192.10.100.65<br>testserver-h</pre><p>Set the environment:</p><pre>su — oracle<br><br>export ORACLE_HOME=/u01/app/oracle/product/23.0.0/dbhome_1<br>export ORACLE_SID=OTCTC<br>export PATH=$ORACLE_HOME/bin:$PATH</pre><p>Verify that a normal database has not already been created using SID OTCTC:</p><pre>ps -ef | grep pmon</pre><p>There should be no:</p><pre>ora_pmon_OTCTC</pre><h3>Phase 7: Verify Connectivity to the Primary</h3><p>The most important requirement is that TC_SERVER can connect to the primary using an Easy Connect string.</p><p>Test:</p><pre>sqlplus sys@//192.10.100.66:1521/OTCTEST as sysdba</pre><p>The connection must succeed before continuing.</p><p>Optionally, create TNS aliases on TC_SERVER.</p><p>Edit:</p><pre>vi $ORACLE_HOME/network/admin/tnsnames.ora</pre><p>Add:</p><pre>OTCTEST =<br>  (DESCRIPTION =<br>    (ADDRESS =<br>      (PROTOCOL = TCP)<br>      (HOST = 192.10.100.66)<br>      (PORT = 1521)<br>    )<br>    (CONNECT_DATA =<br>      (SERVER = DEDICATED)<br>      (SERVICE_NAME = OTCTEST)<br>    )<br>  )<br><br>OTCPDB =<br>  (DESCRIPTION =<br>    (ADDRESS =<br>      (PROTOCOL = TCP)<br>      (HOST = 192.10.100.66)<br>      (PORT = 1521)<br>    )<br>    (CONNECT_DATA =<br>      (SERVER = DEDICATED)<br>      (SERVICE_NAME = OTCPDB)<br>    )<br>  )</pre><p>Test:</p><pre>tnsping OTCTEST</pre><h3>Phase 8: Copy the Primary Password File</h3><p>On DB_SERVER:</p><pre>cd $ORACLE_HOME/dbs</pre><p>Locate:</p><pre>orapwOTCTEST</pre><p>Copy it to TC_SERVER.</p><p>For example:</p><pre>scp orapwOTCTEST oracle@192.10.100.65:/tmp/orapwOTCTEST</pre><p>On TC_SERVER:</p><pre>chmod 600 /tmp/orapwOTCTEST</pre><p>The primary password file can be copied to any location accessible to DBCA on the True Cache node.</p><p>Using /tmp also keeps the copied source password file separate from the password file DBCA manages for the new True Cache instance.</p><p>If you have already copied it into:</p><pre>$ORACLE_HOME/dbs/orapwOTCTEST</pre><p>that can still be supplied to -passwordFileFromSourceDB; simply use that path in the DBCA command.</p><h3>Phase 9: Create True Cache Storage</h3><p>True Cache is mostly diskless, but some storage is still required for:</p><ul><li>Control files</li><li>Standby redo logs</li><li>Temporary files</li></ul><p>Oracle DBCA uses -datafileDestination for these files.</p><p>As root on TC_SERVER:</p><pre>mkdir -p /u01/app/oracle/oradata/OTCTEST_TC<br><br>chown -R oracle:oinstall /u01/app/oracle/oradata/OTCTEST_TC<br><br>chmod 750 /u01/app/oracle/oradata/OTCTEST_TC</pre><p>Return to the Oracle user:</p><pre>su — oracle<br><br>export ORACLE_HOME=/u01/app/oracle/product/23.0.0/dbhome_1<br>export ORACLE_SID=OTCTC<br>export PATH=$ORACLE_HOME/bin:$PATH</pre><h3>Phase 10: Create the True Cache Instance</h3><p>Check whether a listener already exists on TC_SERVER:</p><pre>lsnrctl status LISTENER</pre><p>If a listener already exists, DBCA can use:</p><pre>-listeners LISTENER</pre><p>If no listener exists, DBCA can create one using:</p><pre>-createListener LISTENER:1521</pre><p>Both options are supported by dbca -createTrueCache.</p><h4>If LISTENER Already Exists</h4><p>Run:</p><pre>$ORACLE_HOME/bin/dbca -silent -createTrueCache \<br>-dbUniqueName OTCTEST_TC \<br>-sid OTCTC \<br>-sourceDBConnectionString 192.10.100.66:1521/OTCTEST \<br>-passwordFileFromSourceDB /tmp/orapwOTCTEST \<br>-datafileDestination /u01/app/oracle/oradata/OTCTEST_TC \<br>-sgaTargetInMB 2048 \<br>-pgaAggregateTargetInMB 1024 \<br>-listeners LISTENER</pre><h4>If No Listener Exists</h4><p>Run:</p><pre>$ORACLE_HOME/bin/dbca -silent -createTrueCache \<br>-dbUniqueName OTCTEST_TC \<br>-sid OTCTC \<br>-sourceDBConnectionString 192.10.100.66:1521/OTCTEST \<br>-passwordFileFromSourceDB /tmp/orapwOTCTEST \<br>-datafileDestination /u01/app/oracle/oradata/OTCTEST_TC \<br>-sgaTargetInMB 2048 \<br>-pgaAggregateTargetInMB 1024 \<br>-createListener LISTENER:1521</pre><p>If you copied the password file into $ORACLE_HOME/dbs, substitute that path accordingly.</p><p>DBCA may prompt:</p><pre>Enter Remote DB SYS user password:</pre><p>Enter the SYS password for OTCTEST.</p><p>dbca -createTrueCache is the DBCA command used on the True Cache node. The -dbUniqueName, -sourceDBConnectionString, password file, SID, SGA/PGA, listener, and data-file destination parameters used above are supported options.</p><h3>Phase 11: Verify the True Cache Instance</h3><p>On TC_SERVER:</p><pre>export ORACLE_SID=OTCTC<br><br>sqlplus / as sysdba</pre><p>Run:</p><pre>SET LINES 250<br><br>SELECT name,<br> db_unique_name,<br> database_role,<br> open_mode<br>FROM v$database;</pre><p>Expected:</p><pre>NAME DB_UNIQUE_NAME DATABASE_ROLE OPEN_MODE<br> — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — <br>OTCTEST OTCTEST_TC TRUE CACHE READ ONLY WITH APPLY</pre><p>The two most important values are:</p><pre>DATABASE_ROLE = TRUE CACHE<br>OPEN_MODE = READ ONLY WITH APPLY</pre><p>READ ONLY WITH APPLY confirms that redo apply is active.</p><p>Verify the True Cache parameter:</p><pre>SHOW PARAMETER true_cache</pre><p>Expected:</p><pre>true_cache = TRUE</pre><p>Check the instance:</p><pre>SELECT instance_name,<br> host_name,<br> version<br>FROM v$instance;</pre><p>Expected:</p><pre>INSTANCE_NAME = OTCTC</pre><h3>Phase 12: Verify the PDB and Application Schema</h3><p>Check the PDBs:</p><pre>SHOW PDBS;</pre><p>Verify that OTCPDB is available.</p><p>Switch to it:</p><pre>ALTER SESSION SET CONTAINER=OTCPDB;</pre><p>Verify that the application schema has reached True Cache:</p><pre>SELECT username<br>FROM dba_users<br>WHERE username=’TC_LAB’;</pre><p>Expected:</p><pre>TC_LAB</pre><h3>Phase 13: Verify Redo Apply Progress</h3><p>Return to CDB$ROOT:</p><pre>ALTER SESSION SET CONTAINER=CDB$ROOT;</pre><p>Check:</p><pre>SELECT current_scn FROM v$database;</pre><p>Generate some activity on the primary and execute the query several times.</p><p>The SCN should continue advancing.</p><p>Check the standby redo logs:</p><pre>SET LINES 250<br><br>SELECT thread#,<br> sequence#,<br> ROUND(bytes/1024/1024) AS size_mb<br>FROM v$standby_log<br>ORDER BY thread#, sequence#;</pre><p>True Cache uses standby redo logs to receive redo from the primary.</p><h3>Phase 14: Verify True Cache Health</h3><p>On TC_SERVER:</p><pre>SET LINES 250<br><br>COLUMN true_cache_name FORMAT A20<br>COLUMN primary_name FORMAT A20<br>COLUMN status FORMAT A20<br>COLUMN remote_version FORMAT A20<br><br>SELECT true_cache_name,<br> primary_name,<br> status,<br> remote_version,<br> current_scn<br>FROM v$true_cache;</pre><p>You want:</p><pre>TRUE_CACHE_NAME PRIMARY_NAME STATUS<br> — — — — — — — — — — — — — — — — — — — -<br>OTCTEST_TC OTCTEST HEALTHY</pre><p>The important value is:</p><pre>STATUS = HEALTHY</pre><p>Now run the same query on the primary database:</p><pre>SELECT true_cache_name,<br> primary_name,<br> status,<br> remote_version,<br> current_scn<br>FROM v$true_cache;</pre><p>The primary should also show OTCTEST_TC.</p><h3>Phase 15: Verify DBCA Configured Redo Transport</h3><p>On DB_SERVER:</p><pre>export ORACLE_SID=OTCTEST<br><br>sqlplus / as sysdba</pre><p>Check:</p><pre>SHOW PARAMETER log_archive_config</pre><p>Then:</p><pre>SET LINES 300<br><br>COLUMN destination FORMAT A60<br>COLUMN error FORMAT A60<br><br>SELECT dest_id,<br> status,<br> target,<br> destination,<br> db_unique_name,<br> error<br>FROM v$archive_dest<br>WHERE status &lt;&gt; ‘INACTIVE’<br>ORDER BY dest_id;</pre><p>You should see a destination associated with:</p><pre>OTCTEST_TC</pre><p>The ERROR column should be empty for the True Cache destination.</p><p>This is why the True Cache destination was not configured manually earlier: Oracle DBCA automatically configures the required primary redo transport settings.</p><h3>Phase 16: Verify the True Cache Service Definition</h3><p>The primary previously created:</p><pre>TCAPP<br>TCAPP_TC</pre><p>with:</p><pre>TCAPP -&gt; TRUE_CACHE_SERVICE -&gt; TCAPP_TC</pre><p>True Cache inherits these database service definitions from the primary.</p><p>On TC_SERVER:</p><pre>sqlplus / as sysdba</pre><p>Switch to:</p><pre>ALTER SESSION SET CONTAINER=OTCPDB;</pre><p>Verify:</p><pre>SELECT name,<br> true_cache_service<br>FROM dba_services<br>WHERE name IN (‘TCAPP’,’TCAPP_TC’)<br>ORDER BY name;</pre><p>Expected:</p><pre>NAME TRUE_CACHE_SERVICE<br> — — — — — — — — — — — — — — <br>TCAPP TCAPP_TC<br>TCAPP_TC</pre><h3>Phase 17: Start the True Cache Application Service</h3><p>Still inside OTCPDB:</p><pre>EXEC DBMS_SERVICE.START_SERVICE(‘TCAPP_TC’);</pre><p>Verify:</p><pre>SELECT service_id,<br> name<br>FROM v$active_services<br>WHERE name=’TCAPP_TC’;</pre><p>Expected:</p><pre>TCAPP_TC</pre><p>Force listener registration:</p><pre>ALTER SYSTEM REGISTER;</pre><p>From the operating system:</p><pre>lsnrctl services LISTENER</pre><p>You should see:</p><pre>Service “TCAPP_TC”</pre><p>registered with the local True Cache listener.</p><h3>Phase 18: Test a Direct True Cache Connection</h3><p>Before configuring remote listener routing, first prove that True Cache works directly.</p><p>Connect to:</p><pre>192.10.100.65</pre><p>using:</p><pre>sqlplus tc_lab/”TcLab#2026&quot;@//192.10.100.65:1521/TCAPP_TC</pre><p>Run:</p><pre>SELECT COUNT(*) FROM orders;</pre><p>Expected:</p><pre>100000</pre><p>Confirm where the session is running:</p><pre>SELECT SYS_CONTEXT(‘USERENV’,’SERVER_HOST’) AS server_host,<br> SYS_CONTEXT(‘USERENV’,’SERVICE_NAME’) AS service_name<br>FROM dual;</pre><p>Expected conceptually:</p><pre>SERVER_HOST = testserver-h<br>SERVICE_NAME = TCAPP_TC</pre><p>This proves that the query is running against True Cache rather than the primary.</p><h3>Phase 19: Configure Remote Listener Registration</h3><p>Remote listener registration allows the primary listener to advertise the True Cache application service.</p><p>This is especially useful for the JDBC 26ai transparent True Cache connection model.</p><p>On TC_SERVER, first check whether DBCA has already populated either of the relevant parameters:</p><pre>sqlplus / as sysdba</pre><pre>SHOW PARAMETER remote_listener<br>SHOW PARAMETER listener_networks</pre><p>Validate these parameters if the True Cache service is not appearing at the remote listener.</p><p>If REMOTE_LISTENER is already correctly configured, do not overwrite it unnecessarily.</p><p>If it is not configured, add a TNS alias on TC_SERVER:</p><pre>vi $ORACLE_HOME/network/admin/tnsnames.ora</pre><p>Add:</p><pre>PRIMARY_LISTENER =<br>  (DESCRIPTION =<br>    (ADDRESS =<br>      (PROTOCOL = TCP)<br>      (HOST = 192.10.100.66)<br>      (PORT = 1521)<br>    )<br>  )</pre><p>Test:</p><pre>tnsping PRIMARY_LISTENER</pre><p>Then configure:</p><pre>ALTER SYSTEM SET REMOTE_LISTENER=’PRIMARY_LISTENER’ SCOPE=BOTH;</pre><p>Verify:</p><pre>SHOW PARAMETER remote_listener</pre><p>Force registration:</p><pre>ALTER SYSTEM REGISTER;</pre><h3>Phase 20: Verify Remote Registration on the Primary Listener</h3><p>On DB_SERVER:</p><pre>lsnrctl services LISTENER</pre><p>Look for:</p><pre>Service “TCAPP_TC”</pre><p>The important part is that the handler should appear as a remote service associated with the True Cache host.</p><p>Conceptually:</p><pre>Service “TCAPP_TC” has 1 instance(s).<br>…<br> REMOTE SERVER<br> (ADDRESS=(PROTOCOL=TCP)(HOST=testserver-h)(PORT=1521))</pre><p>If TCAPP_TC does not appear:</p><p>1. Verify TCAPP_TC is active on True Cache.<br>2. Verify REMOTE_LISTENER or LISTENER_NETWORKS.<br>3. Verify the primary listener’s VNCR configuration includes 192.10.100.65.<br>4. Force registration again:</p><pre>ALTER SYSTEM REGISTER;</pre><h3>Phase 21: Connect Through the Primary Listener</h3><p>Once remote registration is working:</p><pre>sqlplus tc_lab/”TcLab#2026&quot;@//192.10.100.66:1521/TCAPP_TC</pre><p>Notice that the client contacts:</p><pre>192.10.100.66</pre><p>which is the primary database listener.</p><p>Now run:</p><pre>SELECT SYS_CONTEXT(‘USERENV’,’SERVER_HOST’) AS server_host,<br> SYS_CONTEXT(‘USERENV’,’SERVICE_NAME’) AS service_name<br>FROM dual;</pre><p>The session should still execute on:</p><pre>testserver-h<br>TCAPP_TC</pre><p>Conceptually:</p><pre>Client<br>   |<br>   | 192.10.100.66:1521/TCAPP_TC<br>   |<br>   v<br>Primary Listener<br>   |<br>   | REMOTE SERVER<br>   |<br>   v<br>192.10.100.65<br>   |<br>   v<br>True Cache</pre><h3>Phase 22: Prove That True Cache Fetches Blocks from the Primary</h3><p>On TC_SERVER, connect as SYS:</p><pre>sqlplus / as sysdba</pre><p>First discover the True Cache-related statistics available in your build:</p><pre>SET LINES 250<br>COLUMN name FORMAT A55<br><br>SELECT name,<br> value<br>FROM v$sysstat<br>WHERE LOWER(name) LIKE ‘%truecache%’<br> OR LOWER(name) LIKE ‘%true cache%’<br>ORDER BY name;</pre><p>One particularly useful statistic is:</p><pre>TrueCache: block requests to primary</pre><p>This is the total number of block-fetch requests sent from True Cache to the primary database.</p><p>Other request/message statistics may also be visible.</p><p>Record the relevant values.</p><p>Now connect as the application user:</p><pre>sqlplus tc_lab/”TcLab#2026&quot;@//192.10.100.65:1521/TCAPP_TC</pre><p>Run:</p><pre>SELECT COUNT(*), ROUND(SUM(amount),2) FROM orders;</pre><p>Reconnect as SYS and run the statistics query again:</p><pre>SELECT name,<br> value<br>FROM v$sysstat<br>WHERE LOWER(name) LIKE ‘%truecache%’<br> OR LOWER(name) LIKE ‘%true cache%’<br>ORDER BY name;</pre><p>The block-request counters should increase if True Cache needed to fetch uncached blocks from the primary.</p><p>The process is:</p><pre>Query ORDERS<br>     |<br>     v<br>True Cache Buffer Cache<br>     |<br>  Cache Miss<br>     |<br>     v<br>Request Blocks<br>     |<br>     v<br>Primary OTCTEST<br>     |<br>     v<br>Return Blocks<br>     |<br>     v<br>True Cache Memory<br>     |<br>     v<br>Return Result</pre><p>True Cache fetches data from the primary when requested data is not already cached.</p><h3>Phase 23: Demonstrate Warm-Cache Behavior</h3><p>Run the same query again:</p><pre>SELECT COUNT(*), ROUND(SUM(amount),2) FROM orders;</pre><p>Then check the True Cache statistics again.</p><p>The first execution generally causes more primary block fetches because True Cache must populate its cache.</p><p>Subsequent executions can make greater use of blocks already resident in memory.</p><p>Conceptually:</p><pre>First Query<br>     |<br>     +--&gt; Cache Misses<br>     |<br>     +--&gt; Fetch Blocks from Primary<br>     |<br>     +--&gt; Cache Blocks<br><br><br>Later Query<br>     |<br>     +--&gt; Blocks Already Cached<br>     |<br>     +--&gt; More Work Served Locally</pre><p>Do not expect the block-fetch counters to remain completely unchanged. Oracle may still fetch blocks for consistency, metadata, cache replacement, or other database activity.</p><h3>Phase 24: Monitor True Cache Performance</h3><p>On TC_SERVER:</p><pre>SET LINES 250<br><br>COLUMN name FORMAT A35<br>COLUMN value FORMAT A25<br>COLUMN unit FORMAT A35<br><br>SELECT name,<br> value,<br> unit<br>FROM v$true_cache_stat<br>ORDER BY name;</pre><p>Oracle currently documents metrics including:</p><pre>apply lag<br>transport lag<br>single block fetch latency<br>multiblock fetch latency<br>list of blocks fetch latency<br>prewarm progress</pre><p>For example:</p><pre>SELECT name,<br> value,<br> unit<br>FROM v$true_cache_stat<br>WHERE name IN<br>(<br> ‘transport lag’,<br> ‘apply lag’,<br> ‘single block fetch latency’,<br> ‘multiblock fetch latency’,<br> ‘list of blocks fetch latency’<br>)<br>ORDER BY name;</pre><p>These metrics are particularly useful for measuring:</p><ul><li>Redo transport delay</li><li>Redo apply delay</li><li>Block-fetch latency between True Cache and the primary</li></ul><h3>Phase 25: Demonstrate Automatic Cache Maintenance</h3><p>Connect to True Cache:</p><pre>sqlplus tc_lab/”TcLab#2026&quot;@//192.10.100.65:1521/TCAPP_TC</pre><p>Read a specific row:</p><pre>SELECT order_id,<br> status,<br> amount<br>FROM orders<br>WHERE order_id=42;</pre><p>Record the current value.</p><p>Now connect to the primary:</p><pre>sqlplus tc_lab/”TcLab#2026&quot;@//192.10.100.66:1521/TCAPP</pre><p>Update the row:</p><pre>UPDATE orders<br>SET status=’REFUNDED’<br>WHERE order_id=42;<br><br>COMMIT;</pre><p>Return to True Cache:</p><pre>sqlplus tc_lab/”TcLab#2026&quot;@//192.10.100.65:1521/TCAPP_TC</pre><p>Run:</p><pre>SELECT order_id,<br> status,<br> amount<br>FROM orders<br>WHERE order_id=42;</pre><p>After the corresponding redo is transported and applied, you should see:</p><pre>42 REFUNDED</pre><p>No application-level cache invalidation was required.</p><p>True Cache uses redo to maintain cached blocks when the corresponding data changes on the primary.</p><h3>Phase 26: Monitor Transport and Apply Lag</h3><p>On TC_SERVER:</p><pre>SELECT name,<br> value,<br> unit,<br> time_computed,<br> data_time<br>FROM v$true_cache_stat<br>WHERE name IN<br>(<br> ‘transport lag’,<br> ‘apply lag’<br>);</pre><p><strong>Transport lag<br></strong>The degree to which transporting redo to True Cache trails redo generation on the primary.</p><p><strong>Apply lag<br></strong>The degree to which data on True Cache trails the primary because redo has not yet been propagated and applied.</p><p>In this local lab:</p><pre>192.10.100.66 &lt;--&gt; 192.10.100.65</pre><p>the values should normally remain low unless the systems or network are under load.</p><h3>Phase 27: Generate Continuous Redo</h3><p>Connect to the primary:</p><pre>sqlplus tc_lab/”TcLab#2026&quot;@//192.10.100.66:1521/TCAPP</pre><p>Generate updates:</p><pre>BEGIN<br> FOR i IN 1..1000 LOOP<br><br>UPDATE orders<br> SET amount = amount + 1<br> WHERE order_id = MOD(i,100000) + 1;<br><br>END LOOP;<br><br>COMMIT;<br>END;<br>/</pre><p>On True Cache, monitor:</p><pre>SELECT current_scn<br>FROM v$database;</pre><p>and:</p><pre>SELECT name,<br> value,<br> unit<br>FROM v$true_cache_stat<br>WHERE name IN<br>(<br> ‘transport lag’,<br> ‘apply lag’<br>);</pre><p>This provides a simple demonstration of True Cache continuously tracking changes occurring on the primary database.</p><h3>Phase 28: Confirm That True Cache Is Read Only</h3><p>Connect directly to True Cache:</p><pre>sqlplus tc_lab/”TcLab#2026&quot;@//192.10.100.65:1521/TCAPP_TC</pre><p>Try:</p><pre>UPDATE orders SET status=’TEST’ WHERE order_id=1;</pre><p>With DML redirection <strong>not enabled</strong>, the update should fail because True Cache itself is read-only.</p><p>The normal architecture for this lab is:</p><pre>READS<br>  |<br>  +------&gt; True Cache<br><br><br>WRITES<br>  |<br>  +------&gt; Primary Database</pre><h3>Phase 29: Final Health Check</h3><p>On TC_SERVER:</p><pre>SET LINES 250<br><br>SELECT name,<br> db_unique_name,<br> database_role,<br> open_mode,<br> current_scn<br>FROM v$database;</pre><p>Expected:</p><pre>NAME = OTCTEST<br>DB_UNIQUE_NAME = OTCTEST_TC<br>DATABASE_ROLE = TRUE CACHE<br>OPEN_MODE = READ ONLY WITH APPLY</pre><p>Check True Cache health:</p><pre>SELECT true_cache_name,<br> primary_name,<br> status,<br> remote_version,<br> current_scn<br>FROM v$true_cache;</pre><p>Expected:</p><pre>TRUE_CACHE_NAME = OTCTEST_TC<br>PRIMARY_NAME = OTCTEST<br>STATUS = HEALTHY</pre><p>Check redo lag:</p><pre>SELECT name,<br> value,<br> unit<br>FROM v$true_cache_stat<br>WHERE name IN<br>(<br> ‘transport lag’,<br> ‘apply lag’<br>);</pre><p>Finally verify the application service:</p><pre>ALTER SESSION SET CONTAINER=OTCPDB;<br><br>SELECT service_id,<br> name<br>FROM v$active_services<br>WHERE name=’TCAPP_TC’;</pre><h3>Final Lab Architecture</h3><p>At the end of the lab, the environment looks like this:</p><pre>                                DB_SERVER<br>                              192.10.100.66<br>                              testserver-k<br>                          +-------------------+<br>                          | Oracle AI DB 26ai |<br>                          |                   |<br>                          | DB: OTCTEST       |<br>                          | PDB: OTCPDB       |<br>                          | ROLE: PRIMARY     |<br>                          |                   |<br>                          | Service: TCAPP    |<br>                          +---------+---------+<br>                                    |<br>                                    |<br>                            Redo Transport<br>                                    |<br>                                    v<br>                          +---------+---------+<br>                          | Oracle True Cache |<br>                          |                   |<br>                          | TC_SERVER         |<br>                          | 192.10.100.65     |<br>                          | testserver-h      |<br>                          |                   |<br>                          | DB_NAME           |<br>                          | = OTCTEST         |<br>                          |                   |<br>                          | DB_UNIQUE_NAME    |<br>                          | = OTCTEST_TC      |<br>                          |                   |<br>                          | SID = OTCTC       |<br>                          | PDB = OTCPDB      |<br>                          |                   |<br>                          | Service: TCAPP_TC |<br>                          |                   |<br>                          | TRUE CACHE        |<br>                          | READ ONLY         |<br>                          | WITH APPLY        |<br>                          +-------------------+</pre><p>The primary database remains the authoritative system of record.</p><p>True Cache provides a read-only caching layer that retrieves uncached database blocks from the primary and maintains cached blocks using redo.</p><h3>What This Lab Demonstrated</h3><p>By completing this lab, we verified:</p><pre>1. Oracle True Cache creation using Oracle AI Database 26ai DBCA.<br>2. Automatic redo transport configuration between the primary and True Cache.<br>3. A database role of TRUE CACHE.<br>4. An open mode of READ ONLY WITH APPLY.<br>5. V$TRUE_CACHE reporting a healthy relationship with the primary.<br>6. Primary and True Cache application services using TCAPP and TCAPP_TC.<br>7. Direct application connections to True Cache.<br>8. Remote registration of the True Cache service through the primary listener.<br>9. Database-block fetching from the primary during cache misses.<br>10. Increased use of locally cached blocks during repeated reads.<br>11. Automatic propagation of primary database changes through redo apply.<br>12. Monitoring of transport lag, apply lag, and block-fetch latency.<br>13. Continuous redo synchronization between the primary and True Cache.</pre><p>True Cache therefore provides a database-native way to offload appropriate read workloads from Oracle AI Database while Oracle itself handles cache population and consistency.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e990d077e3e0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oracle True Cache Explained: Why It Matters, How It Works and Where to Use It]]></title>
            <link>https://medium.com/@kulith-jayakody/oracle-true-cache-explained-why-it-matters-how-it-works-and-where-to-use-it-e69c24a7bb42?source=rss-6bf8cdd75c97------2</link>
            <guid isPermaLink="false">https://medium.com/p/e69c24a7bb42</guid>
            <category><![CDATA[oracle-true-cache]]></category>
            <category><![CDATA[oracle-database]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[caching]]></category>
            <dc:creator><![CDATA[Kulith Jayakody]]></dc:creator>
            <pubDate>Thu, 20 Aug 2026 03:43:58 GMT</pubDate>
            <atom:updated>2026-08-20T03:58:32.590Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8NmM_FPgxUfnJfl1yw2ngQ.png" /></figure><p>Modern applications generate a large amount of database read traffic.</p><p>A customer opens an online store and browses products. A banking application displays account history. A telecom portal retrieves subscriber information. A dashboard refreshes the same operational data every few seconds.</p><p>Many of these operations have something in common: <strong>the application reads the same or similar data repeatedly while only a small portion of that data is being modified.</strong></p><p>Traditionally, organizations deal with this problem by scaling the database vertically, deploying read replicas or introducing caching technologies such as Redis or Memcached in front of the database.</p><p>Oracle True Cache provides another approach.</p><p>Oracle True Cache is an in-memory, read-only cache for Oracle AI Database. Unlike a traditional application cache, it understands Oracle Database internally, can execute normal database queries, retrieves database blocks automatically when required, and keeps cached data synchronized with the primary database using redo.</p><p>This makes True Cache useful for applications where the primary Oracle database is handling significant read traffic in addition to its transactional workload.</p><h3>The Problem: Scaling Read-Heavy Applications</h3><p>Consider a typical transactional application.</p><p>The database may be responsible for operations such as:</p><ul><li>Creating orders</li><li>Processing payments</li><li>Updating customer information</li><li>Recording transactions</li><li>Updating inventory</li></ul><p>At the same time, it might also be serving significantly larger numbers of read operations:</p><ul><li>Viewing products</li><li>Loading dashboards</li><li>Looking up customer information</li><li>Displaying transaction history</li><li>Searching reference information</li><li>Checking order status</li></ul><p>A simplified architecture looks like this:</p><pre>                               Application<br>                                    |<br>                         +----------+----------+<br>                         |                     |<br>                       READS                 WRITES<br>                         |                     |<br>                         +----------+----------+<br>                                    |<br>                                    v<br>                            +----------------+<br>                            | Primary Oracle |<br>                            |    Database    |<br>                            +----------------+</pre><p>Everything reaches the same database.</p><p>As application usage increases, even relatively simple queries can consume significant CPU, memory, and I/O when they are executed frequently enough.</p><p>One obvious solution is to make the primary database larger.</p><p>But scaling the primary is not always the most efficient approach.</p><p>If a large percentage of the workload consists of repeated reads, a better architectural question may be:</p><blockquote>Do all of those reads actually need to be processed by the primary database?</blockquote><p>That is the problem True Cache is designed to address.</p><h3>What Is Oracle True Cache?</h3><p>At a high level, True Cache sits between read-heavy application workloads and the primary Oracle AI Database.</p><pre>                               Application<br>                                    |<br>                                    |<br>                                Read Query<br>                                    |<br>                                    v<br>                            +----------------+<br>                            |   True Cache   |<br>                            +-------+--------+<br>                                    |<br>                              Cache Miss<br>                                    |<br>                                    v<br>                            +----------------+<br>                            | Primary Oracle |<br>                            |    Database    |<br>                            +----------------+</pre><p>The application can direct read-only workloads toward True Cache while transactional workloads continue to use the primary database.</p><p>The important thing is that True Cache is not simply storing key-value pairs.</p><p>It is an Oracle Database aware cache.</p><p>True Cache is:</p><ul><li>In-memory</li><li>Read-only</li><li>Consistent</li><li>Automatically managed</li><li>Mostly diskless</li></ul><p>It can serve database queries while avoiding the requirement to maintain another complete physical copy of all primary database datafiles.</p><p>This makes it different from many other caching architectures.</p><h3>How Does True Cache Work?</h3><p>The easiest way to understand True Cache is by following a query.</p><p>Assume an application sends the following logical request:</p><pre>Find customer order 10501</pre><p>The request reaches True Cache.</p><p>True Cache first determines whether the database blocks required to answer that query are already available in its memory.</p><pre>                                Query<br>                                  |<br>                                  v<br>                            +------------+<br>                            | True Cache |<br>                            +-----+------+<br>                                  |<br>                           Is block cached?<br>                            /          \<br>                          YES           NO<br>                           |             |<br>                           v             v<br>                      Return data    Primary DB<br>                                         |<br>                                     Fetch block<br>                                         |<br>                                         v<br>                                     True Cache<br>                                         |<br>                                         v<br>                                     Return data</pre><p>If the required block is already cached, True Cache can use it locally.</p><p>If the block is not available, True Cache obtains it from the primary database.</p><p>The fetched block can then remain in the True Cache buffer cache.</p><p>This means True Cache naturally becomes populated according to application activity.</p><p>Frequently accessed data becomes hot and remains useful in memory, while data that the application never accesses does not need to be copied simply because it exists in the primary database.</p><p>That distinction becomes very important when comparing True Cache with Active Data Guard.</p><h3>How Does True Cache Stay Synchronized?</h3><p>Caching data is relatively easy.</p><p><strong>Keeping cached data correct is the difficult part.</strong></p><p>Suppose the application has already accessed a customer record and the corresponding database block is now stored in True Cache.</p><p>Later, another transaction updates that customer on the primary database.</p><p>A conventional application cache may require explicit logic to invalidate or update its cached representation.</p><p>True Cache instead uses Oracle’s redo infrastructure.</p><p>Conceptually:</p><pre>                            Primary Database<br>            <br>                             UPDATE CUSTOMER<br>                                   |<br>                                   v<br>                                 COMMIT<br>                                   |<br>                                   v<br>                             Redo Generated<br>                                   |<br>                                   v<br>                             Redo Transport<br>                                   |<br>                                   v<br>                               True Cache<br>                                   |<br>                                   v<br>                               Redo Apply<br>                                   |<br>                                   v<br>                          Cached block updated</pre><p>After a block has been cached, Oracle uses redo apply to keep the cached version synchronized with changes occurring on the primary.</p><p>This is one of True Cache’s biggest architectural advantages.</p><p>The application does not need to understand which Oracle blocks changed or manually maintain database level cache consistency.</p><h3>Why Is True Cache Useful?</h3><p>True Cache is useful in several areas.</p><h4>Reducing Read Load on the Primary Database</h4><p>Imagine an application generating:</p><pre>50,000 reads/sec<br>2,000 writes/sec</pre><p>Without any read offloading, the primary handles approximately:</p><pre>52,000 operations/sec</pre><p>If an appropriate portion of those read workloads can be served through True Cache, the primary can spend more of its resources on the transactional workload that only it should handle.</p><p>This can free primary database resources such as:</p><ul><li>CPU</li><li>Buffer cache</li><li>I/O bandwidth</li><li>Sessions</li></ul><h3>Improving Response Time for Frequently Accessed Data</h3><p>True Cache is primarily memory oriented.</p><p>When a frequently requested block is already in the cache, the query can use that cached copy rather than repeatedly obtaining the data from primary database storage.</p><p>Consider an e-commerce application.</p><p>A popular product page may be viewed tens of thousands of times:</p><pre>                                Product 105<br>                                    |<br>                  +-----------------+------------------+<br>                  |                 |                  |<br>                User A            User B             User C<br>                  |                 |                  |<br>                  +-----------------+------------------+<br>                                    |<br>                                    v<br>                                True Cache<br>                                    |<br>                               Cached blocks</pre><p>The product may change only rarely, while being read continuously.</p><p>This is precisely the sort of workload where caching becomes valuable.</p><p>The key factor is the <strong>working set</strong>: the subset of database data that applications repeatedly access.</p><p>True Cache can retain that working set in memory without requiring the entire database to fit into memory.</p><h3>Scaling Reads Without Continuously Scaling the Primary</h3><p>Vertical scaling eventually becomes expensive.</p><p>Instead of continually adding CPU and memory to a single database system purely to accommodate more SELECT traffic, True Cache enables read capacity to be moved outside the primary database.</p><p>Conceptually:</p><pre>                                 Primary<br>                                    |<br>                      +-------------+-------------+<br>                      |             |             |<br>                      v             v             v<br>                 True Cache 1  True Cache 2  True Cache 3<br>                      |             |             |<br>                      v             v             v<br>                    App A         App B         App C</pre><p>This creates another scaling dimension specifically for read workloads.</p><h3>True Cache vs Active Data Guard</h3><p>Oracle DBAs familiar with Data Guard will probably notice something immediately when learning True Cache:</p><p><strong>The architecture looks surprisingly similar to a standby database.</strong></p><p>That observation is correct.</p><p>Both technologies use concepts including:</p><ul><li>Redo generation</li><li>Redo transport</li><li>Redo apply</li><li>Read-only database access</li></ul><p>However, their objectives are different.</p><h4>Active Data Guard</h4><p>A physical standby maintains an exact physical replica of the production database using Redo Apply. Data Guard physical standby databases are a technology for data protection, high availability, and disaster recovery.</p><p>Conceptually:</p><pre>                          Primary Database<br>                              10 TB<br>                                |<br>                                | Redo<br>                                v<br>                         Physical Standby<br>                              10 TB</pre><p>The standby maintains the database datafiles and can participate in role transitions such as switchover and failover.</p><h4>True Cache</h4><p>True Cache does not maintain another complete copy of those 10 TB of datafiles.</p><p>Instead:</p><pre>                         Primary Database<br>                              10 TB<br>                                |<br>                      +---------+---------+<br>                      |                   |<br>                    Redo             Block fetches<br>                      |                   |<br>                      v                   v<br>                            True Cache<br>                          Mostly memory</pre><p>True Cache retrieves data as needed and keeps frequently accessed data in memory.</p><p>That leads to a useful comparison:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bdb788fb59ed5433badd1976f87a519f/href">https://medium.com/media/bdb788fb59ed5433badd1976f87a519f/href</a></iframe><p>True Cache therefore <strong>does not replace Data Guard</strong>.</p><p>An organization may reasonably use both:</p><pre>                                 Primary<br>                                    |<br>                      +-------------+-------------+<br>                      |                           |<br>                      |                           |<br>                      v                           v<br>               Active Data Guard              True Cache<br>                      |                           |<br>                   HA / DR                 Read scalability<br>                Data protection               Performance</pre><p>They address different architectural requirements.</p><h3>True Cache vs Redis and Traditional Application Caching</h3><p>Another natural comparison is Redis.</p><p>True Cache should not simply be described as “Oracle’s Redis.”</p><p>Redis and True Cache have overlapping use cases, but they operate at different layers.</p><p>A typical application managed caching architecture looks something like:</p><pre>                              Application<br>                                   |<br>                                   v<br>                              Cache Lookup<br>                                   |<br>                           +-------+-------+<br>                           |               |<br>                          HIT             MISS<br>                           |               |<br>                           |               v<br>                           |           Oracle DB<br>                           |               |<br>                           |          Build object<br>                           |               |<br>                           |         Store in cache<br>                           |               |<br>                           +-------+-------+<br>                                   |<br>                                   v<br>                              Application</pre><p>The application often needs to understand:</p><ul><li>Cache keys</li><li>Expiration rules</li><li>Object serialization</li><li>Cache population</li><li>Cache invalidation</li><li>Stale data handling</li></ul><p>Updates can introduce another problem:</p><pre>                            Database changed<br>                                   |<br>                                   v<br>                     Is the cached value still valid?<br>                                   |<br>                                   v<br>                    Application/cache invalidation logic</pre><p>Cache invalidation is famously one of the more complicated aspects of distributed application design.</p><p>True Cache approaches the problem from inside Oracle Database:</p><pre>                               Application<br>                                    |<br>                                    v<br>                                True Cache<br>                                    |<br>                               Cache miss?<br>                                    |<br>                                    v<br>                                 Primary<br>                                    |<br>                                    |<br>                                   Redo<br>                                    |<br>                                    v<br>                                True Cache</pre><p>Oracle Database handles the database block caching and maintains cached blocks using redo.</p><p>This can simplify applications where a separate cache was being introduced primarily to prevent repeated Oracle reads.</p><p>However, this does <strong>not</strong> mean True Cache eliminates every use case for Redis.</p><h3>Real-World True Cache Use Cases</h3><p>True Cache becomes easier to understand when considered through actual application workloads.</p><h4>1. E-Commerce Platforms</h4><p>E-commerce systems often have a very high read-to-write ratio.</p><p>Users continuously browse:</p><ul><li>Product information</li><li>Categories</li><li>Pricing</li><li>Product attributes</li><li>Availability information</li><li>Customer order history</li></ul><p>But transactional activity such as:</p><ul><li>Creating orders</li><li>Processing payments</li><li>Updating inventory</li><li>Changing customer details</li></ul><p>must still be written to the primary database.</p><p>A True Cache architecture could therefore look like:</p><pre>                        E-Commerce Application<br>                                 |<br>                      +----------+----------+<br>                      |                     |<br>                   Browsing             Transactions<br>                      |                     |<br>                      v                     v<br>                  True Cache            Primary DB<br>                      |                     |<br>                Product reads           New orders<br>                Catalog reads            Payments<br>                Order history            Updates<br>                      ^                     |<br>                      |                     |<br>                      +-------- Redo -------+</pre><p>Popular catalog data naturally becomes part of the cache’s hot working set.</p><h4>2. Banking and Financial Applications</h4><p>Financial systems can generate enormous read workloads.</p><p>Examples include:</p><ul><li>Account summaries</li><li>Transaction history</li><li>Product information</li><li>Branch information</li><li>Historical reporting</li><li>Reference data</li></ul><p>Meanwhile operations such as:</p><ul><li>Money transfers</li><li>Payments</li><li>Account modifications</li><li>Ledger updates</li></ul><p>remain on the primary.</p><p>One important consideration here is <strong>data freshness</strong>.</p><p>True Cache queries reflect committed data according to the current redo-apply position, so each use case must be evaluated according to how much apply lag is acceptable. True Cache query freshness depends on redo-apply lag.</p><p>A workflow that must immediately confirm the outcome of a newly committed financial transaction may require more careful routing.</p><p>True Cache should therefore be applied selectively rather than simply routing every SELECT away from the primary.</p><h4>3. Telecommunications</h4><p>Telecommunications platforms frequently manage millions of subscribers.</p><p>Common read workloads include:</p><ul><li>Subscriber profiles</li><li>Package information</li><li>Current plan details</li><li>Product catalogs</li><li>Historical usage</li><li>Reference information</li></ul><p>Transactional workloads include:</p><ul><li>Provisioning changes</li><li>Billing events</li><li>Package activation</li><li>Subscriber updates</li></ul><p>Offloading frequently accessed subscriber and product information can reduce read pressure on the core transactional database.</p><h4>4. News and Media Platforms</h4><p>News platforms demonstrate the read/write imbalance particularly well.</p><p>An article might be:</p><pre>Written once<br>Updated twice<br>Read 2,000,000 times</pre><p>The workload therefore looks something like:</p><pre>                               Article<br>                                  |<br>                      +-----------+-----------+<br>                      |           |           |<br>                   Reader 1    Reader 2    Reader N<br>                      |           |           |<br>                      +-----------+-----------+<br>                                  |<br>                                  v<br>                              True Cache</pre><p>Frequently accessed article metadata, categories, content-related queries, and other database-backed information can become hot in the cache.</p><p>This is an almost textbook example of a read-heavy workload.</p><h4>5. Customer Portals and Mobile Applications</h4><p>Modern customer portals repeatedly load similar information whenever users navigate between screens.</p><p>Examples include:</p><ul><li>Customer profile</li><li>Order history</li><li>Policy information</li><li>Previous transactions</li><li>Product information</li><li>Dashboard summaries</li><li>Configuration/reference information</li></ul><p>If thousands of users repeatedly request this data, significant primary resources can be consumed simply rendering application screens.</p><p>True Cache provides a potential read offload layer while allowing transactional changes to continue on the primary database.</p><h4>6. Operational Dashboards</h4><p>Operational dashboards often refresh continuously.</p><p>Imagine 500 internal users viewing a dashboard that refreshes every ten seconds.</p><p>Even when the underlying data changes relatively slowly, the database may receive thousands of repeated queries every minute.</p><pre>     Dashboard A ----+<br>     Dashboard B ----+<br>     Dashboard C ----+----&gt; Same operational queries<br>     Dashboard D ----+             |<br>                                   v<br>                               True Cache</pre><h4>7. Geographically Distributed Applications</h4><p>True Cache can also become useful when application latency is affected by geography.</p><p>Consider a primary database hosted in one location:</p><pre>                            Primary Database<br>                               Singapore<br>                                   |<br>                      +------------+------------+<br>                      |                         |<br>                      v                         v<br>                   Europe                    Australia<br>                      |                         |<br>                 Applications              Applications</pre><p>Every query must cross a long-distance network path.</p><p>A cache closer to the read workload can potentially reduce that dependency for frequently accessed information:</p><pre>                             Primary DB<br>                             Singapore<br>                                 |<br>                       +---------+---------+<br>                       |                   |<br>                       v                   v<br>                  True Cache           True Cache<br>                    Europe             Australia<br>                       |                   |<br>                       v                   v<br>                   EU Apps              AU Apps</pre><p>True Cache still communicates with the primary when blocks must be fetched and continuously receives redo, so network architecture remains important. But once useful blocks are resident, applications can benefit from having read capacity closer to their execution environment.</p><h3>Application Integration and True Cache</h3><p>One question remains:</p><p><strong>How does an application decide whether to use the primary database or True Cache?</strong></p><p>The simplest architecture maintains separate read and read/write connections.</p><p>Conceptually:</p><pre>                              Application<br>                                   |<br>                       +-----------+-----------+<br>                       |                       |<br>                 Read connection         Write connection<br>                       |                       |<br>                       v                       v<br>                  True Cache               Primary DB</pre><p>Oracle AI Database 26ai also includes driver-level integration.</p><p>With the Oracle JDBC Thin driver, applications can use a logical connection where the read-only state determines whether operations use True Cache or the primary database. Using the standard JDBC setReadOnly(true) and setReadOnly(false) behavior is recommended for this purpose. Internally, the True Cache enabled JDBC connection can maintain physical connections to both the primary and True Cache.</p><p>Conceptually:</p><pre>                          Logical Connection<br>                                  |<br>                       +----------+----------+<br>                       |                     |<br>                  Read-only              Read/write<br>                       |                     |<br>                       v                     v<br>                  True Cache              Primary</pre><p>This is significant because read/write routing doesn’t necessarily need to result in completely separate application architectures.</p><h3>Scaling Beyond One True Cache</h3><p>A production architecture does not need to contain only one True Cache.</p><p>Multiple caches can be introduced for scalability and availability.</p><pre>                               Primary DB<br>                                   |<br>                    +--------------+--------------+<br>                    |              |              |<br>                    v              v              v<br>               True Cache A   True Cache B   True Cache C<br>                    |              |              |<br>                    v              v              v<br>                  App A          App B          App C</pre><p>Another architecture could use multiple True Caches for the same dataset:</p><pre>                                 Primary<br>                                    |<br>                            +-------+-------+<br>                            |               |<br>                            v               v<br>                        True Cache 1   True Cache 2<br>                            ^               ^<br>                            |               |<br>                            +-------+-------+<br>                                    |<br>                               Applications</pre><h3>When True Cache May Not Be the Right Choice</h3><p>No technology fits every workload.</p><p>True Cache is particularly suitable for <strong>read-heavy workloads with a reusable working set</strong>, but there are cases where its benefits may be limited.</p><h4>Mostly Write-Heavy Workloads</h4><p>If the majority of workload consists of INSERT, UPDATE, DELETE, and transactional operations, there may simply not be enough read activity to justify a caching tier.</p><h4>Little Data Reuse</h4><p>Imagine a workload that continuously scans completely different data and rarely queries the same blocks twice.</p><p>True Cache can fetch those blocks, but if they are not reused, the benefit of caching them is reduced.</p><p>The strongest cache workloads generally have a meaningful hot working set.</p><h4>Working Set Much Larger Than Available Memory</h4><p>True Cache doesn’t magically make memory unlimited.</p><p>If the actively queried working set is much larger than available cache memory, useful blocks may continuously age out and need to be fetched again.</p><p>Memory sizing therefore matters.</p><p>Oracle’s normal buffer-cache architecture is designed around keeping frequently accessed data blocks in memory, and True Cache builds on this general concept.</p><h4>Workloads Requiring Immediate Read-After-Write Visibility</h4><p>True Cache is maintained through redo transport and apply.</p><p>There is therefore a concept of apply lag.</p><p>For workloads where a read must immediately see a transaction that has just committed on the primary, application routing and consistency requirements need to be considered carefully.</p><h4>Disaster Recovery Requirements</h4><p>If the requirement is:</p><blockquote>“If my production database is lost, I need another full database that can become primary.”</blockquote><p>the technology to investigate is Data Guard, not True Cache.</p><p>True Cache solves a different problem.</p><h3>Where True Cache Fits in the Bigger Architecture</h3><p>A useful way of thinking about True Cache is as a dedicated read scaling layer around the primary Oracle database.</p><pre>                                Users<br>                                  |<br>                                  v<br>                             Application<br>                                  |<br>                        +---------+---------+<br>                        |                   |<br>                      READS               WRITES<br>                        |                   |<br>                        v                   v<br>                  +------------+      +-------------+<br>                  | True Cache |      | Primary DB  |<br>                  +-----+------+      +------+------+<br>                        ^                    |<br>                        |                    |<br>                        |        REDO        |<br>                        +--------------------+</pre><p>The responsibilities are different.</p><p><strong>Primary Database</strong></p><p>The primary remains:</p><ul><li>The system of record</li><li>The transactional database</li><li>The authoritative source of data</li><li>The destination for normal writes</li></ul><p><strong>True Cache</strong></p><p>True Cache becomes responsible for:</p><ul><li>Read offloading</li><li>Caching hot database blocks</li><li>Increasing read scalability</li><li>Reducing repeated primary queries</li><li>Potentially reducing read latency</li></ul><p>This separation allows organizations to scale read workloads independently from transactional workloads.</p><h3>True Cache Is More Than Just a Faster SELECT</h3><p>The most interesting part of True Cache isn’t simply that queries can execute somewhere other than the primary database.</p><p>The more important architectural idea is that Oracle has combined <strong>database-native caching with its existing redo and consistency infrastructure</strong>.</p><p>The lifecycle becomes:</p><pre>                      Application requests data<br>                                |<br>                                v<br>                      True Cache checks memory<br>                                |<br>                           +----+----+<br>                           |         |<br>                          HIT       MISS<br>                           |         |<br>                           |         v<br>                           |     Fetch block<br>                           |     from primary<br>                           |         |<br>                           +----+----+<br>                                |<br>                                v<br>                            Use block</pre><p>And later:</p><pre>                          Primary data changes<br>                                   |<br>                                   v<br>                                  Redo<br>                                   |<br>                                   v<br>                               True Cache<br>                                   |<br>                                   v<br>                        Cached blocks maintained</pre><h3>Conclusion</h3><p>Oracle True Cache adds an interesting new scaling option for Oracle AI Database environments.</p><p>It is not simply a smaller standby database.</p><p>It is not a replacement for Data Guard.</p><p>And it should not automatically be viewed as a replacement for technologies such as Redis.</p><p>True Cache is better understood as a <strong>database-native, in-memory read-scaling layer for Oracle AI Database</strong>.</p><p>It uses familiar Oracle mechanisms such as redo transport and redo apply, but applies them toward a different objective: keeping frequently accessed data close to read workloads without maintaining another complete physical database copy. It is positioned for performance and scalability rather than disaster recovery.</p><p>For applications with substantial repeated read traffic, this can provide several advantages:</p><ul><li>Less read pressure on the primary database</li><li>Additional horizontal read capacity</li><li>In-memory access to frequently requested data</li><li>Automatic maintenance of cached database blocks</li><li>Less need for custom database-cache synchronization logic</li><li>Driver-level integration for applications that can distinguish read-only from transactional work</li></ul><p>The technology becomes particularly compelling when a database is serving a small number of writes but an extremely large number of repeated reads.</p><p>Instead of asking:</p><blockquote>How much larger should we make the primary database?</blockquote><p>True Cache introduces another question:</p><blockquote>How many of these reads actually need to reach the primary database at all?</blockquote><p>That is where Oracle True Cache becomes useful.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e69c24a7bb42" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Troubleshooting Oracle GoldenGate Downstream Mining]]></title>
            <link>https://medium.com/@kulith-jayakody/troubleshooting-oracle-goldengate-downstream-mining-33737ad2201b?source=rss-6bf8cdd75c97------2</link>
            <guid isPermaLink="false">https://medium.com/p/33737ad2201b</guid>
            <category><![CDATA[oracle-database]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[oracle-goldengate]]></category>
            <category><![CDATA[troubleshooting]]></category>
            <dc:creator><![CDATA[Kulith Jayakody]]></dc:creator>
            <pubDate>Sat, 15 Aug 2026 14:49:04 GMT</pubDate>
            <atom:updated>2026-09-15T04:15:25.887Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NdprfCSX1DCbd6EtcgibZA.png" /></figure><p>When configuring an Oracle GoldenGate downstream mining architecture, you may encounter issues that are not necessarily caused by GoldenGate itself. Delays can occur because of Data Guard redo transport problems, missing archived redo logs, incorrect standby redo log configuration, mining database recovery issues, LogMiner registration problems, or the Extract process itself.</p><p>Downstream mining is used to reduce the workload on the source database by moving the redo mining activity away from the production environment. Instead of running Extract directly against the source database, the source archived redo logs are transported to a separate downstream mining database. Extract then mines the redo from that mining database and writes the captured changes to GoldenGate trail files.</p><p>The downstream mining database can be placed on the source server, the target server, or a completely separate server, depending on the available operating system resources and workload requirements. In many cases, placing the mining database outside the production server helps reduce CPU, memory, and I/O usage on the source environment.</p><p>However, this architecture also introduces additional moving parts. Compared to a traditional source-side Extract configuration, downstream mining requires you to consider not only the Extract process, but also redo transport, archived redo availability, standby redo logs, LogMiner registration, dictionary redo, and mining database health.</p><p>Because of this, troubleshooting downstream mining requires a more systematic approach. Restarting Extract blindly should not be the first step. Instead, the correct approach is to follow the redo flow from the source database to the mining database, and then from LogMiner to Extract.</p><p>In this article, I will discuss some of the issues I personally encountered while working with Oracle GoldenGate downstream mining architecture and explain the troubleshooting steps that helped me identify and resolve them. I specifically refer to archive log mining architecture here, not real-time mining.</p><h3>Scope of this article</h3><p>The troubleshooting examples in this article are based on archive log only downstream mining. Real-time downstream mining is mentioned only where it affects interpretation, such as standby redo log configuration and mining database archiving.</p><h3>Quick Architecture Recap</h3><p>Downstream mining can generally be configured in two ways. You can transport redo directly from the source database to the downstream mining database, or, if a Data Guard standby database is available, you can cascade the redo through the standby database to the mining database.</p><h4>Standard Downstream Mining</h4><pre>Source DB<br>   ↓<br>Downstream Mining DB<br>   ↓<br>Extract<br>   ↓<br>Trail Files<br>   ↓<br>Pump<br>   ↓<br>Replicat<br>   ↓<br>Target Database</pre><p>In a standard downstream mining configuration, redo generated by the source database is shipped directly to the downstream mining database. Extract runs on the mining database side and mines the received redo from there.</p><h4>Cascaded Downstream Mining Through a Data Guard Standby</h4><pre>Source DB<br>   ↓<br>Standby DB<br>   ↓<br>Downstream Mining DB<br>   ↓<br>Extract<br>   ↓<br>Trail Files<br>   ↓<br>Pump<br>   ↓<br>Replicat<br>   ↓<br>Target Database</pre><p>In a cascaded configuration, the source database ships redo to the standby database, and the standby database then ships the redo to the downstream mining database. This approach can be useful when you want to reduce direct dependency on the production database and make use of an existing Data Guard environment.</p><p>In both architectures, the key point is the same: Extract is not mining directly from the source database. It depends on the redo that reaches the downstream mining database.</p><h3>Troubleshooting Mindset</h3><p>When troubleshooting an Oracle GoldenGate downstream mining issue, your first instinct should not be to restart Extract. Your first priority should be to examine the flow of redo.</p><p>A general rule of thumb I use is:</p><ol><li>Was redo generated on the source database?</li><li>Was the redo archived?</li><li>Was the redo shipped from the source or standby database?</li><li>Was the redo received by the downstream mining database?</li><li>Was the redo registered or made visible to LogMiner?</li><li>Is Extract mining the redo?</li><li>Is Extract writing data to the trail files?</li><li>Are the Pump and Replicat processes processing the trail data correctly?</li></ol><p>This approach helps you identify where the delay actually begins. In downstream mining, Extract may be running normally, but it cannot mine redo that has not arrived at the mining database or has not been registered with LogMiner.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/f8ef6d45c2e233ac113b4dcbd0a6f7b4/href">https://medium.com/media/f8ef6d45c2e233ac113b4dcbd0a6f7b4/href</a></iframe><p>The main idea is simple:</p><blockquote>First prove where the redo stopped. Then troubleshoot that layer.</blockquote><h3>Before Troubleshooting</h3><p>Before any troubleshooting effort begins, capture the current state of the GoldenGate environment. This gives you a baseline and helps avoid unnecessary restarts or configuration changes.</p><p>The following GGSCI commands have been extremely useful in my troubleshooting work.</p><h4>INFO ALL</h4><pre>GGSCI&gt; INFO ALL</pre><p>INFO ALL gives a basic overview of the processes running in the GoldenGate environment. This is usually the first command I run because it quickly shows the status of Manager, Extract, Pump and Replicat processes.</p><p>It provides information such as:</p><ul><li>Process type</li><li>Process status</li><li>Group name</li><li>Lag at checkpoint</li><li>Time since checkpoint</li></ul><p>Example output:</p><pre>Program     Status      Group       Lag at Chkpt  Time Since Chkpt<br><br>MANAGER     RUNNING<br>EXTRACT     RUNNING     X_SRC       00:00:35      00:00:09<br>REPLICAT    RUNNING     R_TGT       00:00:00      00:00:10</pre><p>The <strong>Status </strong>column shows the current state of the process. Common values are:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/37450f16d319273c26d246a64cd9108b/href">https://medium.com/media/37450f16d319273c26d246a64cd9108b/href</a></iframe><p>Lag at Chkpt shows the replication delay measured at the last GoldenGate checkpoint. Time Since Chkpt shows how long ago that checkpoint was written.</p><p>It is important to understand that Time Since Chkpt is not the actual data lag. It tells you how fresh or stale the displayed checkpoint information is.</p><p>In a downstream mining architecture where the mining database is on the same host as the target database, you may see Extract and Replicat processes running from the same GoldenGate home.</p><p><strong>INFO EXTRACT &lt;extract_name&gt;, DETAIL</strong></p><pre>GGSCI&gt; INFO EXTRACT &lt;extract_name&gt;, DETAIL</pre><p>This command gives a detailed overview of the Extract process.</p><p>It can show information such as:</p><ul><li>Extract status</li><li>Checkpoint lag</li><li>Current checkpoint position</li><li>SCN being processed</li><li>Trail file prefix</li><li>Current trail sequence</li><li>RBA position</li><li>Trail file size</li></ul><p>The RBA, or Relative Byte Address, identifies the exact byte position inside a trail file or redo/log file where Extract or Replicat is currently reading or writing.</p><p>This command is useful when you need to understand exactly where Extract is positioned and whether the checkpoint is moving forward.</p><p><strong>LAG EXTRACT &lt;extract_name&gt;</strong></p><pre>GGSCI&gt; LAG EXTRACT &lt;extract_name&gt;</pre><p>This command is used to check the current lag of an Extract process.</p><p>A small amount of lag can be normal. However, the meaning of lag depends on the type of downstream mining configuration.</p><p>If the Extract is configured for archive log only mining and not real-time mining, lag can be higher because the redo must first be archived at the source or standby database, transported to the mining database, and then mined by Extract.</p><p>Therefore, when reviewing lag, always consider whether Extract is mining from archived redo logs only or from real-time redo.</p><p><strong>SEND EXTRACT &lt;extract_name&gt;, STATUS</strong></p><pre>GGSCI&gt; SEND EXTRACT &lt;extract_name&gt;, STATUS</pre><p>This command shows the current status of the Extract process.</p><p>It is useful for checking whether Extract is actively processing data, waiting for redo, recovering, or stopped at a particular position.</p><p>Example:</p><pre>Sending STATUS request to EXTRACT X_SRC ...<br><br>EXTRACT X_SRC<br>  Current status: Recovery complete: Processing data</pre><p>A status like Recovery complete: Processing data generally means that Extract has completed recovery and is processing available redo. However, if lag continues to increase, you still need to verify whether new redo is reaching the mining database and whether LogMiner can see it.</p><p><strong>SEND EXTRACT &lt;extract_name&gt;, SHOWTRANS</strong></p><pre>GGSCI&gt; SEND EXTRACT &lt;extract_name&gt;, SHOWTRANS</pre><p>This command shows open transactions currently known to Extract.</p><p>It is useful when investigating long running transactions. A long running transaction can make lag appear worse because Extract may need to wait until the transaction commits before certain changes can be fully processed.</p><p>Example:</p><pre>GGSCI&gt; SEND EXTRACT X_SRC, SHOWTRANS<br><br>Sending SHOWTRANS request to EXTRACT X_SRC ...<br>No transactions found.</pre><p>If the output shows No transactions found, then there are no open transactions currently being tracked by Extract. In that case, the lag is likely caused by something else, such as redo transport, LogMiner registration, missing archived logs, or downstream apply.</p><p><strong>VIEW REPORT &lt;extract_name&gt;</strong></p><pre>GGSCI&gt; VIEW REPORT &lt;extract_name&gt;</pre><p>This command opens the report file for the Extract process.</p><p>The Extract report is one of the most important files to review during troubleshooting. It contains startup information, parameter details, database connection messages, mining related messages, warnings, and errors.</p><p>When reviewing the report, search for keywords such as:</p><pre>ERROR<br>WARNING<br>OGG-<br>Logmining server<br>checkpoint<br>recovery<br>dictionary<br>archive log<br>SCN</pre><p>This is especially useful when Extract has abended, is waiting for dictionary redo, or is unable to continue because a required redo log is missing.</p><p><strong>VIEW GGSEVT</strong></p><pre>GGSCI&gt; VIEW GGSEVT</pre><p>This command displays the GoldenGate event log.</p><p>Unlike the Extract report, which focuses on one process, GGSEVT contains messages for the overall GoldenGate environment. This includes Manager, Extract, Pump and Replicat messages.</p><p>It is useful when you want to check whether multiple processes were affected around the same time, or whether there were environment-level issues such as process restarts, communication errors, or trail file problems.</p><h3>GoldenGate CLI Is Not Enough</h3><p>The GGSCI commands above are useful for capturing the GoldenGate process state, but they do not always show the full root cause.</p><p>In downstream mining, Extract depends on the mining database and the LogMiner server. Therefore, you also need to investigate from the database side.</p><p>The GoldenGate CLI can tell you that Extract is waiting or lagging, but database views can help you answer deeper questions:</p><ul><li>Has the mining database received the required archived redo log?</li><li>Is the redo registered with the Extract’s LogMiner session?</li><li>Is LogMiner waiting for a missing file?</li><li>Is the capture process waiting for dictionary redo?</li><li>Is the issue actually on the Replicat side rather than the Extract side?</li></ul><p>The next step in troubleshooting is to combine GGSCI output with database level diagnostics from the source, standby, mining and target databases.</p><h3>Database Level Diagnostics for Downstream Mining</h3><p>While GGSCI commands are useful for checking the GoldenGate process state, they do not always show the full reason behind a delay. In downstream mining, Extract depends on the mining database LogMiner server. Therefore, some issues must be diagnosed from the database side as well.</p><p>A downstream Extract mines redo from a separate mining database instead of directly mining redo at the source database. In real-time mining, redo can be processed from online or standby redo logs immediately, while in archive mining mode, redo is not processed until it is archived into redo log files.</p><p>The most useful mining side views are:</p><ul><li>V$GOLDENGATE_CAPTURE</li><li>DBA_LOGMNR_SESSION</li><li>DBA_LOGMNR_LOG</li><li>V$ARCHIVED_LOG</li><li>V$ARCHIVE_DEST</li><li>V$ARCHIVE_DEST_STATUS</li></ul><p>These views help you answer one important question:</p><blockquote>Has the redo required by Extract reached the mining database, and has it been added to the LogMiner session used by Extract?</blockquote><h3>Checking the Integrated Capture State</h3><p>The first database level check I usually perform on the mining database is against V$GOLDENGATE_CAPTURE.</p><pre>SET LINES 250<br>COLUMN state FORMAT A25<br>COLUMN extract_name FORMAT A15<br>COLUMN capture_name FORMAT A25<br>COLUMN bytes_of_redo_mined FORMAT A20<br><br>SELECT capture_name,<br>       extract_name,<br>       state,<br>       total_messages_captured,<br>       total_messages_enqueued,<br>       total_messages_sent,<br>       bytes_of_redo_mined<br>FROM   v$goldengate_capture;</pre><p>V$GOLDENGATE_CAPTURE shows information about the GoldenGate capture process that sends Logical Change Records, or LCRs, to the GoldenGate Extract process. It also shows the LogMiner session ID associated with the capture process.</p><p>The STATE column is especially important. Some useful states include:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2db6f0fd9628c63c5ebf9fdd04ac6648/href">https://medium.com/media/2db6f0fd9628c63c5ebf9fdd04ac6648/href</a></iframe><p>If BYTES_OF_REDO_MINED, TOTAL_MESSAGES_CAPTURED, and TOTAL_MESSAGES_SENT are increasing, then LogMiner and Extract are progressing. If these values remain unchanged while lag increases, the problem is likely before or inside the mining layer.</p><h3>Mapping Extract to Its LogMiner Session</h3><p>After confirming the capture process state, the next step is to identify which LogMiner session belongs to the Extract.</p><pre>-- Run on Mining DB<br><br>SET LINESIZE 250<br>SET PAGESIZE 1000<br><br>COLUMN extract_name FORMAT A12<br>COLUMN capture_name FORMAT A20<br>COLUMN logminer_session FORMAT A20<br><br>SELECT c.extract_name,<br>       c.capture_name,<br>       c.logminer_id,<br>       s.name AS logminer_session,<br>       s.source_database<br>FROM   v$goldengate_capture c<br>JOIN   dba_logmnr_session s<br>       ON s.id = c.logminer_id<br>WHERE  c.extract_name = &#39;X_SRC&#39;;</pre><p>This query is useful because the GoldenGate Extract name and the internal LogMiner session are not always the same thing. The LOGMINER_ID from V$GOLDENGATE_CAPTURE links the GoldenGate capture process to the LogMiner session.</p><p>Once you know the LogMiner session ID, you can check which archived redo logs are actually registered with that LogMiner session.</p><h3>Checking Logs Registered With LogMiner</h3><p>One issue I encountered was that the archived redo logs physically existed on the mining database, but they were not registered with the LogMiner session used by Extract. This is an important distinction.</p><p>A file can exist in ASM or the filesystem, but Extract cannot mine it unless LogMiner knows about it.</p><p>Use the following query to check for gaps in the logs registered with the Extract’s LogMiner session:</p><pre>-- Run on Mining DB<br><br>SET LINESIZE 250<br>SET PAGESIZE 1000<br><br>WITH logs AS<br>(<br>    SELECT l.thread#,<br>           l.sequence#,<br>           l.first_scn,<br>           l.next_scn,<br>           l.name,<br>           LAG(l.sequence#) OVER<br>             (PARTITION BY l.thread#<br>              ORDER BY l.sequence#) AS previous_sequence,<br>           LAG(l.next_scn) OVER<br>             (PARTITION BY l.thread#<br>              ORDER BY l.sequence#) AS previous_next_scn<br>    FROM   dba_logmnr_log l<br>    JOIN   v$goldengate_capture c<br>           ON c.logminer_id = l.logmnr_session_id<br>    WHERE  c.extract_name = &#39;X_SRC&#39;<br>    AND l.keep = &#39;YES&#39;<br>)<br>SELECT thread#,<br>       previous_sequence + 1 AS missing_sequence_from,<br>       sequence# - 1         AS missing_sequence_to,<br>       previous_next_scn     AS missing_scn_from,<br>       first_scn             AS missing_scn_to<br>FROM   logs<br>WHERE  previous_sequence IS NOT NULL<br>AND    sequence# &gt; previous_sequence + 1<br>ORDER BY thread#,<br>         missing_sequence_from;</pre><p>DBA_LOGMNR_LOG displays archived logs registered with active LogMiner session. It includes the LogMiner session ID, archive log name, source thread number, sequence number, first SCN and next SCN.</p><p>This query is useful because it shows gaps from LogMiner’s perspective, not just from the filesystem perspective.</p><p>For example, if the output shows:</p><pre>THREAD#  MISSING_SEQUENCE_FROM  MISSING_SEQUENCE_TO  MISSING_SCN_FROM  MISSING_SCN_TO<br>-------  ---------------------  -------------------  ----------------  --------------<br>1        804203                 804203               92997000000       92998000000</pre><p>Then Extract may be waiting because LogMiner does not have sequence 804203 registered for the capture session.</p><h3>Missing Archive Sequences</h3><p>Missing archive sequences are one of the most common downstream mining problems. In a normal source side Extract configuration, Extract reads from the source database redo directly. In downstream mining, the redo must travel through redo transport and must be available on the mining database.</p><p>This means you need to check the redo sequence at multiple points:</p><ol><li>Source database</li><li>Standby database, if cascaded transport is used</li><li>Downstream mining database</li><li>LogMiner registered log list</li></ol><p>Start by checking the latest archived sequence from the source database:</p><pre>select max(sequence#),THREAD# from gV$ARCHIVED_LOG group by thread#;</pre><p>On the redo source or cascading standby, check destination status:</p><pre>SELECT destination,<br>       status,<br>       archived_thread#,<br>       archived_seq#,<br>       applied_thread#,<br>       applied_seq#,<br>       error<br>FROM   v$archive_dest_status<br>WHERE  status &lt;&gt; &#39;DEFERRED&#39;<br>AND    status &lt;&gt; &#39;INACTIVE&#39;<br>ORDER BY destination;</pre><p>V$ARCHIVE_DEST_STATUS shows runtime and configuration information for redo transport destinations, including the most recent archived and applied thread/sequence numbers and any error text.</p><p>If the source or standby shows a higher archived sequence than the mining database, the issue is likely redo transport. If the mining database has the sequence but DBA_LOGMNR_LOG does not, the issue is likely LogMiner registration.</p><h3>Mapping an Extract SCN to an Archive Log</h3><p>When troubleshooting GoldenGate, do not rely only on sequence numbers. Extract and LogMiner often report positions using SCNs. Therefore, you should know how to identify which archive log contains a specific SCN.</p><pre>SET LINESIZE 250<br>COLUMN name FORMAT A90<br><br>SELECT thread#,<br>       sequence#,<br>       first_change#,<br>       next_change#,<br>       first_time,<br>       next_time,<br>       name<br>FROM   v$archived_log<br>WHERE  93022885124 BETWEEN first_change# AND next_change# - 1<br>ORDER BY thread#, sequence#;</pre><p>Replace 93022885124 with the SCN shown in the Extract checkpoint or Extract status output.</p><p>V$ARCHIVED_LOG contains archived log information from the control file. The FIRST_CHANGE# column shows the first change number in the archived log, and NEXT_CHANGE# shows the first change in the next log.</p><p>This is extremely useful when Extract reports that it is stuck around a particular SCN. Once you identify the archive sequence containing that SCN, check whether that sequence exists on:</p><ul><li>Source database</li><li>Standby database</li><li>Mining database</li><li>LogMiner registered log list</li></ul><h3>Manually Registering Missing Logs With LogMiner</h3><p>In my case, some archive logs had to be manually registered with the capture process.</p><p>Example:</p><pre>ALTER DATABASE REGISTER LOGICAL LOGFILE<br>&#39;+DATA/MINEDB/SRC_CASCADE_ARCH/src_1_804203_859865870.arc&#39;<br>FOR &#39;OGG$CAP_X_SRC&#39;;<br><br>ALTER DATABASE REGISTER LOGICAL LOGFILE<br>&#39;+DATA/MINEDB/SRC_CASCADE_ARCH/src_1_802229_859865870.arc&#39;<br>FOR &#39;OGG$CAP_X_SRC&#39;;</pre><p>Use the following syntax for explicit log file assignment:</p><pre>ALTER DATABASE REGISTER LOGICAL LOGFILE<br>   file_name FOR capture_process;</pre><p>The file must already exist at the downstream mining database site, and the capture_process must be the capture process that will use that redo log file. Capture process is equivalent to the LogMiner session name in this context.</p><p>This command should not be used blindly. Before registering a file manually, verify:</p><ul><li>The file physically exists on the mining database</li><li>The file belongs to the correct source database</li><li>The capture process name is correct</li><li>The log is not already registered</li></ul><p>After registering the log, rerun the DBA_LOGMNR_LOG gap query and check whether the missing sequence has disappeared.</p><h3>Extract Waiting for Redo</h3><p>One common status is:</p><pre>Current status: Recovery complete: Processing data</pre><p>This usually means Extract has completed recovery and is actively processing available data. However, if lag continues to increase while this status remains unchanged, you need to verify whether new redo is reaching the mining database.</p><p>I use the following checklist:</p><pre>1. Check Extract lag from GGSCI<br>2. Check V$GOLDENGATE_CAPTURE state<br>3. Check whether BYTES_OF_REDO_MINED is increasing<br>4. Check latest source archived sequence<br>5. Check latest sequence received at mining database<br>6. Check DBA_LOGMNR_LOG for registered logs<br>7. Check for missing logfiles</pre><p>If V$GOLDENGATE_CAPTURE.STATE shows WAITING FOR REDO, there are two possibilities:</p><ul><li>There is genuinely no new redo activity from the source database</li><li>The next required redo log has not reached or has not been registered with the mining database</li></ul><h3>Extract Waiting for Dictionary Redo</h3><p>Another important state is:</p><pre>WAITING FOR DICTIONARY REDO</pre><p>This means the capture process is waiting for redo logs containing the LogMiner dictionary build. Capture process cannot begin scanning redo until all log files containing the dictionary build have been added to the capture process session.</p><p>This can happen when:</p><ul><li>Extract was registered at a specific SCN</li><li>The dictionary build redo was generated but not shipped</li><li>Older required archive logs were deleted</li><li>The mining database received redo logs, but LogMiner did not receive all dictionary related sequences</li><li>The dictionary related sequence was not registered with the LogMiner session</li></ul><p>To investigate, check dictionary markers in V$ARCHIVED_LOG:</p><pre>SELECT thread#,<br>       sequence#,<br>       first_change#,<br>       next_change#,<br>       dictionary_begin,<br>       dictionary_end,<br>       name<br>FROM   v$archived_log<br>WHERE  dictionary_begin = &#39;YES&#39;<br>OR     dictionary_end   = &#39;YES&#39;<br>ORDER BY thread#, sequence#;</pre><p>V$ARCHIVED_LOG includes DICTIONARY_BEGIN and DICTIONARY_END, which indicate whether the archived redo log contains the beginning or end of a LogMiner dictionary.</p><p>If the dictionary logs are missing from the mining database, restore or copy them from the source/standby and register them with the capture process if required.</p><h3>Redo Transport Issues</h3><p>In cascaded downstream mining, redo transport becomes one of the most important areas to troubleshoot.</p><p>The flow is:</p><pre>Source DB → Standby DB → Downstream Mining DB → LogMiner → Extract</pre><p>If the standby receives redo but the mining database does not, the issue is likely between the standby and mining database.</p><p>Check archive destinations on the redo shipping database:</p><pre>SET LINESIZE 250<br>COLUMN destination FORMAT A20<br>COLUMN error FORMAT A60<br>COLUMN db_unique_name FORMAT A20<br>COLUMN valid_now FORMAT A20<br>COLUMN valid_type FORMAT A20<br>COLUMN valid_role FORMAT A20<br><br>SELECT dest_id,<br>       status,<br>       target,<br>       destination,<br>       db_unique_name,<br>       valid_now,<br>       valid_type,<br>       valid_role,<br>       error<br>FROM   v$archive_dest<br>ORDER BY dest_id;</pre><p>V$ARCHIVE_DEST shows Data Guard archive destinations, including destination status, target type, destination path or service, validation status, valid redo type, valid role, DB_UNIQUE_NAME and error text.</p><p>Pay close attention to:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/475f847cc809817c5b1c30950348203a/href">https://medium.com/media/475f847cc809817c5b1c30950348203a/href</a></iframe><p>A common issue in cascaded setups is incorrect VALID_FOR. For example, if the standby is supposed to ship standby redo logs to the mining database, but the destination is configured for the wrong redo type or role, redo may not be transported as expected.</p><p>VALID_NOW can report values such as WRONG VALID_TYPE, WRONG VALID_ROLE, or INACTIVE, which are useful indicators when troubleshooting redo transport configuration problems.</p><h3>Mining Database Archive Configuration</h3><p>Do not forget that the mining database itself must be healthy.</p><p>I recommend enabling archiving at the downstream mining database. Archiving is required for real-time integrated capture and is also recommended for archive log only capture because integrated Extract writes state information in the database. Archiving and regular backups help recover this state information if anything goes wrong at the mining database.</p><p>Check the mining database archive mode:</p><pre>ARCHIVE LOG LIST;</pre><p>Also check filesystem or ASM space where foreign archived logs are stored. Downstream mining database recovery area must not be used to store foreign archived logs or archive standby redo logs.</p><p>This is a practical point. If the mining database FRA or archive destination fills up, redo receiving and mining can stop even though Extract itself is not the root cause.</p><h3>Do Not Blame Downstream Mining Before Checking Replicat</h3><p>Sometimes the Extract and mining side are working correctly, but the lag is caused by Replicat. This is especially true when Extract is mining and writing trail files, but changes are not appearing quickly at the target.</p><p>The following views are useful for Integrated Replicat diagnostics.</p><pre>SET LINESIZE 300<br>COLUMN state FORMAT A20<br>COLUMN current_position FORMAT A20<br>COLUMN apply_name FORMAT A10<br><br>SELECT apply_name,<br>       sid,<br>       serial#,<br>       state,<br>       current_position,<br>       total_messages_received,<br>       total_available_messages,<br>       total_transactions_received,<br>       total_commits,<br>       total_errors<br>FROM   v$gg_apply_receiver<br>WHERE  apply_name = &#39;OGG$R_TGT&#39;;</pre><p>V$GG_APPLY_RECEIVER displays information about the message receiver of the Replicat process.</p><p>To check apply servers:</p><pre>COLUMN transaction_id FORMAT A30<br><br>SELECT server_id,<br>       state,<br>       transaction_id,<br>       message_sequence,<br>       total_messages_applied,<br>       TO_CHAR(SYSDATE,&#39;YYYY-MM-DD HH24:MI:SS&#39;) AS check_time<br>FROM   v$gg_apply_server<br>WHERE  apply_name = &#39;OGG$R_TGT&#39;<br>ORDER BY server_id;</pre><p>V$GG_APPLY_SERVER displays information about each GoldenGate apply server. Oracle documents states such as WAIT DEPENDENCY, which means an apply server is waiting to apply an LCR until another dependent transaction has been applied. This can happen when Integrated Replicat is running with parallelism greater than one.</p><p>If one transaction appears to be stuck, check it in V$GOLDENGATE_TRANSACTION:</p><pre>SELECT transaction_id,<br>       cumulative_message_count,<br>       total_message_count<br>FROM   v$goldengate_transaction<br>WHERE  transaction_id = &#39;61.29.1647467&#39;;</pre><p>If the Extract side is progressing but Replicat apply servers are waiting, the problem is not downstream mining. It is an apply side issue.</p><h3>Stopping Integrated Replicat Apply Safely</h3><p>In one troubleshooting case, I had to stop the Integrated Replicat apply process manually from the database side.</p><pre>BEGIN<br>  DBMS_APPLY_ADM.STOP_APPLY(<br>    apply_name =&gt; &#39;OGG$R_TGT&#39;,<br>    force      =&gt; TRUE<br>  );<br>END;<br>/</pre><p>This should be used carefully. I would not present this as the first troubleshooting step. It is better to first check GGSCI, the Replicat report, apply receiver state, apply server state, and target database wait events.</p><p>Use this only when you have confirmed that:</p><ul><li>The issue is on the Replicat/apply side</li><li>The apply process is not stopping cleanly from GoldenGate</li><li>You understand the impact on replication delay</li><li>You have captured the current transaction/apply state first</li></ul><h3>How to Identify the Responsible Layer</h3><p>The most useful way to troubleshoot downstream mining is to isolate the responsible layer.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0adb89694b3edda017aa150c27252a73/href">https://medium.com/media/0adb89694b3edda017aa150c27252a73/href</a></iframe><p>This is the main troubleshooting principle:</p><blockquote>First prove where the redo stopped. Then troubleshoot that layer only.</blockquote><h3>Practical Troubleshooting Flow</h3><p>When I face downstream mining lag, I follow this order:</p><pre>1. Check INFO ALL<br>2. Check LAG EXTRACT<br>3. Check SEND EXTRACT STATUS<br>4. Check VIEW REPORT extract_name<br>5. Check V$GOLDENGATE_CAPTURE<br>6. Check the LogMiner session for the Extract<br>7. Check registered/missing logs in DBA_LOGMNR_LOG<br>8. Compare source, standby, and mining archive sequences<br>9. Check V$ARCHIVE_DEST and V$ARCHIVE_DEST_STATUS<br>10. If Extract is healthy, check Pump and Replicat</pre><p>This avoids wasting time restarting GoldenGate processes when the real problem is missing redo transport or LogMiner registration.</p><h3>Preventive Best Practices</h3><p>Based on the issues I faced, these are the preventive practices I recommend:</p><ol><li>Keep a longer archive retention period on the source, standby and mining database until downstream mining is stable.</li><li>Monitor archive sequence gaps between source, standby and mining database.</li><li>Do not delete archive logs from the mining database before Extract has mined them.</li><li>Keep foreign archived logs separate from the mining database FRA.</li><li>Regularly check V$ARCHIVE_DEST.ERROR.</li><li>Keep a saved copy of all Extract registration commands.</li><li>Document the capture process name, Extract name, LogMiner session ID, source DBID and source resetlogs information.</li><li>Monitor V$GOLDENGATE_CAPTURE.STATE, especially WAITING FOR REDO and WAITING FOR DICTIONARY REDO.</li><li>Do not assume every lag is an Extract issue, check Pump and Replicat before concluding.</li></ol><h3>Conclusion</h3><p>Troubleshooting Oracle GoldenGate downstream mining requires a different mindset from troubleshooting a normal source side Extract. In a source side Extract configuration, most capture issues are close to the source database and Extract process. In downstream mining, the redo must pass through transport, the mining database, LogMiner registration, integrated capture, Extract, trail files, Pump and Replicat.</p><p>The best approach is to follow the redo path step by step:</p><pre>Source redo generation<br>→ Archive/standby redo creation<br>→ Redo transport<br>→ Mining database reception<br>→ LogMiner registration<br>→ Integrated Extract mining<br>→ Trail file generation<br>→ Pump transfer<br>→ Replicat apply</pre><p>In downstream mining, the real question is not simply:</p><blockquote>Is Extract running?</blockquote><p>The better question is:</p><blockquote>Has the redo required by Extract reached the mining database, has LogMiner registered it and is GoldenGate able to convert it into trail data?</blockquote><p>Once you answer that question, the root cause becomes much easier to isolate.</p><h3>References</h3><ul><li><a href="https://docs.oracle.com/en/middleware/goldengate/core/19.1/ggcab/configuring-downstream-mining-database.html">Oracle GoldenGate Documentation: Configuring a Downstream Mining Database</a></li><li><a href="https://docs.oracle.com/en/middleware/goldengate/core/21.3/coredoc/extract-configure-extract-downstream-deployment.html">Oracle GoldenGate Documentation: Configuring Extract for a Downstream Deployment</a></li><li><a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/refrn/V-GOLDENGATE_CAPTURE.html">Oracle Database Reference: V$GOLDENGATE_CAPTURE</a></li><li><a href="https://docs.oracle.com/en/database/oracle/oracle-database/18/refrn/DBA_LOGMNR_LOG.html">Oracle Database Reference: DBA_LOGMNR_LOG</a></li><li><a href="http://docs.oracle.com/en/database/oracle/oracle-database/19/refrn/V-ARCHIVE_DEST.html">Oracle Database Reference: V$ARCHIVE_DEST</a></li><li><a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/refrn/V-ARCHIVE_DEST_STATUS.html">Oracle Database Reference: V$ARCHIVE_DEST_STATUS</a></li><li><a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/refrn/V-GG_APPLY_RECEIVER.html">Oracle Database Reference: V$GG_APPLY_RECEIVER</a></li><li><a href="https://docs.oracle.com/en/database/oracle/oracle-database/19/refrn/V-GG_APPLY_SERVER.html">Oracle Database Reference: V$GG_APPLY_SERVER</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=33737ad2201b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oracle GoldenGate 19c Downstream Integrated Capture with ADG Fetch Redirection and Cascaded…]]></title>
            <link>https://medium.com/@kulith-jayakody/oracle-goldengate-19c-downstream-integrated-capture-with-adg-fetch-redirection-and-cascaded-bb42f50d3647?source=rss-6bf8cdd75c97------2</link>
            <guid isPermaLink="false">https://medium.com/p/bb42f50d3647</guid>
            <category><![CDATA[oracle-goldengate]]></category>
            <category><![CDATA[active-data-guard]]></category>
            <category><![CDATA[oracle-database]]></category>
            <category><![CDATA[data-replication]]></category>
            <category><![CDATA[data-integration]]></category>
            <dc:creator><![CDATA[Kulith Jayakody]]></dc:creator>
            <pubDate>Thu, 13 Aug 2026 05:36:22 GMT</pubDate>
            <atom:updated>2026-08-13T05:36:22.976Z</atom:updated>
            <content:encoded><![CDATA[<h3>Oracle GoldenGate 19c <strong>Downstream </strong>Integrated Capture with ADG Fetch Redirection and Cascaded Archived Redo from Oracle Database 11.2.0.4</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qxwSQF9Jmp4zUNId" /></figure><p>This article demonstrates Oracle GoldenGate 19c downstream Integrated Extract using archived redo cascaded through an Oracle Active Data Guard standby. <strong><em>FETCHUSERIDALIAS </em></strong>is used to redirect supported runtime fetch operations to the ADG standby, reducing the need for Extract to query the production primary database directly.</p><p>Oracle GoldenGate downstream capture is specifically designed to offload the primary/production database from where the data is being captured.</p><p>This architecture is useful for reducing the source database involvement and overhead but at the cost of additional implementation complexity compared to the normal GoldenGate configuration.</p><h3>Environment</h3><p>Unlike a conventional GoldenGate topology with a source and target database, downstream Integrated Extract introduces a separate mining database where the LogMiner server processes the source redo.</p><p>The mining database can be configured on the same host as the target database or a separate host. In this lab, I provisioned both the mining database and the target database on the same host.</p><p>Below is the environment used for this lab:</p><p>Source/Standby Platform : AIX on POWER, 64-bit<br>Mining/Target Platform : AIX on POWER, 64-bit<br>Source Database : 11.2.0.4<br>Standby Database : 11.2.0.4<br>Mining Database : 19c<br>Target Database : 19c<br>GoldenGate : 19c</p><h3>Important Clarification</h3><p>This configuration does not use the full Oracle GoldenGate ADG Redirection feature introduced for Oracle Database 21c and later. Instead, it uses Oracle GoldenGate 19c downstream Integrated Extract with archived redo cascaded through the Active Data Guard standby, while <strong><em>FETCHUSERIDALIAS </em></strong>redirects supported runtime fetch operations to the ADG standby. Administrative operations such as <strong><em>REGISTER EXTRACT</em></strong> and <strong><em>ADD SCHEMATRANDATA</em></strong> are still performed using a connection to the primary source database.</p><p>Oracle Database 11g Release 2 cascading redo transport is not supported in Data Guard configurations containing an Oracle RAC primary database or configurations managed by Data Guard Broker. The source database used in this lab is single instance.</p><h4>Phase 1: OS Setup &amp; Installation</h4><p>The mining/target host requires GoldenGate binaries to be installed.</p><p><strong>Setting up the GoldenGate Mining/Target Host:</strong></p><p>1. Create the GoldenGate home and grant the necessary permissions.</p><pre>mkdir -p /u01/app/oracle/product/ogg19<br>chown -R oracle:oinstall /u01/app/oracle/product/ogg19<br>chmod -R 775 /u01/app/oracle/product/ogg19</pre><p>2. Edit .bash_profile:</p><pre>export OGG_HOME=/u01/app/oracle/product/ogg19</pre><p>3. Install the GoldenGate software:</p><pre>unzip /u01/soft/&lt;goldengate_software&gt;<br><br>cd /u01/soft/&lt;goldengate_software&gt;/Disk1<br><br>./runInstaller</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*QeQymViHPPsMVwu-" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*aFgnNnZ2KZBRjtHI" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*PInu9IBHXqc7dzmz" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/639/0*t6lsmikQOQMYb0so" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*aYG3EeRDQdPRa--S" /></figure><p>4. From the Oracle GoldenGate directory run the GGSCI program.</p><p>Set DB environment:</p><pre>. oraenv<br>cd $OGG_HOME</pre><pre>./ggsci<br><br>GGSCI&gt; CREATE SUBDIRS<br>GGSCI&gt; EDIT PARAMS MGR</pre><pre>PORT 7809</pre><pre>GGSCI&gt; START MGR<br>GGSCI&gt; INFO MGR</pre><h4>Phase 2: Database Preparation</h4><p>Source database preparation:</p><p>A GoldenGate user must be created in the source database. This user will be used to access the database by the GoldenGate processes for any operations that the ADG standby database cannot fulfill.</p><pre>SHOW PARAMETER COMPATIBLE;</pre><blockquote>Verify that the source database COMPATIBLE parameter is set to 11.2.0.4 or higher. This is required for the Oracle 11.2.0.4 Integrated Capture capabilities used in this configuration.</blockquote><p>In the Source Database:</p><p>1. Enable <strong><em>ARCHIVELOG </em></strong>&amp; Logging: The database must be in <strong><em>ARCHIVELOG </em></strong>mode with minimal supplemental logging enabled.</p><pre>ARCHIVE LOG LIST;</pre><pre>-- Run as SYSDBA if ARCHIVELOG mode is disabled<br>SHUTDOWN IMMEDIATE;<br>STARTUP MOUNT;<br>ALTER DATABASE ARCHIVELOG;<br>ALTER DATABASE OPEN;</pre><pre>ALTER DATABASE FORCE LOGGING;<br>ALTER DATABASE ADD SUPPLEMENTAL LOG DATA;</pre><p>2. Create GoldenGate User</p><pre>CREATE TABLESPACE GG_TBS DATAFILE ‘/path/to/&lt;DB_NAME&gt;/gg_tbs01.dbf’ SIZE 100M AUTOEXTEND ON;<br>CREATE USER GGADMIN11G IDENTIFIED BY &lt;password&gt; DEFAULT TABLESPACE GG_TBS QUOTA UNLIMITED ON GG_TBS;<br>GRANT CONNECT, RESOURCE, DBA TO GGADMIN11G;</pre><pre>GRANT SELECT ANY DICTIONARY TO GGADMIN11G;<br>GRANT FLASHBACK ANY TABLE TO GGADMIN11G;</pre><pre>BEGIN<br> DBMS_GOLDENGATE_AUTH.GRANT_ADMIN_PRIVILEGE(<br> GRANTEE =&gt; ‘GGADMIN11G’,<br> PRIVILEGE_TYPE =&gt; ‘CAPTURE’,<br> GRANT_SELECT_PRIVILEGES =&gt; TRUE,<br> DO_GRANTS =&gt; TRUE<br> );<br>END;<br>/</pre><pre>ALTER SYSTEM SET ENABLE_GOLDENGATE_REPLICATION=TRUE SCOPE=BOTH;</pre><p>In the Mining Database:</p><p>3. Enable <strong><em>ARCHIVELOG</em></strong>.</p><p><strong><em>ARCHIVELOG </em></strong>mode is recommended on the downstream mining database because Integrated Extract stores capture state in the mining database, allowing that state to be protected through database backups and recovery.</p><pre>ARCHIVE LOG LIST;</pre><pre>-- Run as SYSDBA if ARCHIVELOG mode is disabled<br>SHUTDOWN IMMEDIATE;<br>STARTUP MOUNT;<br>ALTER DATABASE ARCHIVELOG;<br>ALTER DATABASE OPEN;</pre><p>4. Create GoldenGate User</p><pre>CREATE TABLESPACE GG_TBS DATAFILE ‘/path/to/&lt;DB_NAME&gt;/gg_tbs01.dbf’ SIZE 100M AUTOEXTEND ON;<br>CREATE USER GGADMMINE IDENTIFIED BY &lt;password&gt; DEFAULT TABLESPACE GG_TBS QUOTA UNLIMITED ON GG_TBS;<br>GRANT CONNECT, RESOURCE, DBA TO GGADMMINE;</pre><pre>GRANT SELECT ANY DICTIONARY TO GGADMMINE;<br>GRANT FLASHBACK ANY TABLE TO GGADMMINE;</pre><pre>BEGIN<br> DBMS_GOLDENGATE_AUTH.GRANT_ADMIN_PRIVILEGE(<br> GRANTEE =&gt; ‘GGADMMINE’,<br> PRIVILEGE_TYPE =&gt; ‘CAPTURE’,<br> GRANT_SELECT_PRIVILEGES =&gt; TRUE,<br> DO_GRANTS =&gt; TRUE<br> );<br>END;<br>/</pre><pre>ALTER SYSTEM SET ENABLE_GOLDENGATE_REPLICATION=TRUE SCOPE=BOTH;</pre><pre>ALTER SYSTEM SET STREAMS_POOL_SIZE=&lt;appropriate_size&gt; SCOPE=BOTH;</pre><p>In the Target Database:</p><p>5. Verify Target Database Configuration.</p><pre>ARCHIVE LOG LIST;</pre><blockquote>In this lab, the target database is also configured in ARCHIVELOG mode. Although this is useful for backup and recovery purposes, ARCHIVELOG mode is not required solely because the database is being used as a GoldenGate replication target.</blockquote><p>6. Create GoldenGate User</p><pre>CREATE TABLESPACE GG_TBS DATAFILE ‘/path/to/&lt;DB_NAME&gt;/gg_tbs01.dbf’ SIZE 100M AUTOEXTEND ON;<br>CREATE USER GGADMIN IDENTIFIED BY &lt;password&gt; DEFAULT TABLESPACE GG_TBS QUOTA UNLIMITED ON GG_TBS;<br>GRANT CONNECT, RESOURCE, DBA TO GGADMIN;</pre><pre>GRANT SELECT ANY DICTIONARY TO GGADMIN;<br>GRANT FLASHBACK ANY TABLE TO GGADMIN;</pre><pre>BEGIN<br> DBMS_GOLDENGATE_AUTH.GRANT_ADMIN_PRIVILEGE(<br> GRANTEE =&gt; ‘GGADMIN’,<br> PRIVILEGE_TYPE =&gt; ‘APPLY’,<br> GRANT_SELECT_PRIVILEGES =&gt; TRUE,<br> DO_GRANTS =&gt; TRUE<br> );<br>END;<br>/</pre><pre>ALTER SYSTEM SET ENABLE_GOLDENGATE_REPLICATION=TRUE SCOPE=BOTH;</pre><pre>ALTER SYSTEM SET STREAMS_POOL_SIZE=&lt;appropriate_size&gt; SCOPE=BOTH;</pre><p><strong>There is no need to create a user in the standby database since the user created in the source will propagate into the standby side as well.</strong></p><blockquote>Ensure that STREAMS_POOL_SIZE is appropriately sized on MINEDB for Integrated Extract and on TARGETDB for Integrated Replicat. Size it according to the number of integrated processes and workload.</blockquote><blockquote>DBA is used here only for lab simplicity. Oracle recommends granting only the privileges required by Extract/Replicat in production.</blockquote><blockquote>I will be using a single schema at first to replicate. The schema will be called SCHEMA1.</blockquote><h4>Phase 3: Configure Cascaded Redo Transport on the Standby Database</h4><p>Execute the following on <strong><em>SOURCEDB</em></strong>, <strong><em>STANDBYDB</em></strong>, and <strong><em>MINEDB</em></strong>, replacing the values with the actual <strong><em>DB_UNIQUE_NAME </em></strong>values:</p><pre>ALTER SYSTEM SET LOG_ARCHIVE_CONFIG=’DG_CONFIG=(SOURCEDB,STANDBYDB,MINEDB)’ SCOPE=BOTH;</pre><p>Redo transport between the cascading standby and <strong><em>MINEDB </em></strong>must be authenticated. If remote password-file authentication is used, ensure that the sending database and <strong><em>MINEDB </em></strong>use compatible password files with the same SYS password. Configure the password file according to the storage method used by the environment, such as filesystem or ASM.</p><pre>SHOW PARAMETER remote_login_passwordfile;</pre><p>Ensure that the <strong><em>MINEDB </em></strong>Oracle Net service is resolvable and reachable from the standby host. Configure the appropriate tnsnames.ora entry and use <strong><em>tnsping MINEDB</em></strong> to verify Oracle Net resolution. Redo-transport authentication should then be validated separately.</p><p>Configure the appropriate <strong><em>LOG_ARCHIVE_DEST_n </em></strong>on the standby database to cascade archived redo to the mining database.</p><blockquote>Use an available dest in the standby database and change the LOG_ARCHIVE_DEST, SERVICE, DB_UNIQUE_NAME and TEMPLATE as required from the below command.</blockquote><pre>ALTER SYSTEM SET LOG_ARCHIVE_DEST_3=<br>‘SERVICE=MINEDB<br>ARCH<br>OPTIONAL<br>NOREGISTER<br>REOPEN=60<br>VALID_FOR=(STANDBY_LOGFILES,STANDBY_ROLE)<br>DB_UNIQUE_NAME=MINEDB<br>TEMPLATE=+DATA/MINEDB/SRC_CASCADE_ARCH/SRC_%t_%s_%r.arc’<br>SCOPE=BOTH;<br><br>ALTER SYSTEM SET LOG_ARCHIVE_DEST_STATE_3=ENABLE SCOPE=BOTH;</pre><p>Validate the dest:</p><pre>SELECT dest_id,<br>  status,<br>  destination,<br>  db_unique_name,<br>  error<br>FROM v$archive_dest_status<br>WHERE dest_id = 3;</pre><pre>STATUS = VALID<br>ERROR = NULL</pre><p>Check whether the configured location is receiving archived redo logs as expected.</p><h4>Phase 4: Add schema-level supplemental logging</h4><p>Create <strong><em>CREDENTIALSTORE </em></strong>to add user credentials.</p><pre>GGSCI&gt; ADD CREDENTIALSTORE</pre><p>Add source, standby, mining and target user credentials:</p><pre>GGSCI&gt; ALTER CREDENTIALSTORE ADD USER ggadmin11g@SOURCEDB PASSWORD &lt;password&gt; ALIAS sourcegg<br>GGSCI&gt; ALTER CREDENTIALSTORE ADD USER ggadmin11g@STANDBYDB PASSWORD &lt;password&gt; ALIAS standbygg<br>GGSCI&gt; ALTER CREDENTIALSTORE ADD USER ggadmmine@MINEDB PASSWORD &lt;password&gt; ALIAS mininggg<br>GGSCI&gt; ALTER CREDENTIALSTORE ADD USER ggadmin@TARGETDB PASSWORD &lt;password&gt; ALIAS targetgg</pre><blockquote>Since the target and the mining database are in the same host, a single GGSCI client will be used throughout the lab.</blockquote><pre>GGSCI&gt; DBLOGIN USERIDALIAS sourcegg<br>GGSCI&gt; ADD SCHEMATRANDATA SCHEMA1 PREPARECSN NOWAIT</pre><blockquote>SCHEMATRANDATA is used to add supplemental logging for a whole schema at once. Alternatively TRANDATA can be used to add supplemental logging for a single table. PREPARECSN prepares the source tables for instantiation so that Oracle Data Pump includes their instantiation SCNs in the export. After import, Replicat can use ENABLE_INSTANTIATION_FILTERING to ignore trail records that precede each table’s instantiation SCN.</blockquote><p>Validate:</p><pre>GGSCI&gt; INFO SCHEMATRANDATA SCHEMA1</pre><h4>Phase 5: Register the downstream Integrated Extract</h4><p>Connect to both the source and mining databases through GGSCI:</p><pre>GGSCI&gt; DBLOGIN USERIDALIAS sourcegg<br>GGSCI&gt; MININGDBLOGIN USERIDALIAS mininggg<br><br>GGSCI&gt; REGISTER EXTRACT X_SRC DATABASE</pre><h4>Phase 6: Add the downstream Extract</h4><p>Create the Extract</p><pre>GGSCI&gt; ADD EXTRACT X_SRC, INTEGRATED TRANLOG, BEGIN NOW</pre><p>Add the local trail</p><pre>GGSCI&gt; ADD EXTTRAIL ./dirdat/xa, EXTRACT X_SRC</pre><h4>Phase 7: Create the Extract parameter file</h4><pre>GGSCI&gt; EDIT PARAMS X_SRC</pre><pre>EXTRACT X_SRC<br>NOUSERID<br>TRANLOGOPTIONS MININGUSERALIAS mininggg<br>TRANLOGOPTIONS INTEGRATEDPARAMS (DOWNSTREAM_REAL_TIME_MINE N)<br>FETCHUSERIDALIAS standbygg<br>EXTTRAIL ./dirdat/xa<br><br>TABLE SCHEMA1.*;</pre><blockquote>NOUSERID removes the normal runtime source USERID/USERIDALIAS connection from the Extract parameter file. FETCHUSERIDALIAS provides a connection to the Active Data Guard standby when Extract needs to fetch source-table data that is not fully available from the redo stream.</blockquote><p>Tables with <strong><em>FULL </em></strong>support can normally be captured entirely from redo. Objects reported as <strong><em>ID KEY</em></strong> require the <strong><em>FETCHUSERIDALIAS </em></strong>connection in this downstream sourceless Extract configuration. You can find the support mode of tables using the following query:</p><pre>SELECT owner,<br>  table_name,<br>  support_mode<br>FROM dba_goldengate_support_mode<br>WHERE owner = ‘SCHEMA1’;</pre><h4>Phase 8: Start Extract before performing the initial load</h4><p>Start the Extract process:</p><pre>GGSCI&gt; START EXTRACT X_SRC</pre><p>Verify the Extract is running without any issues:</p><pre>GGSCI&gt; INFO EXTRACT X_SRC, DETAIL<br>GGSCI&gt; LAG EXTRACT X_SRC</pre><p>Check the log file for any errors:</p><pre>GGSCI&gt; VIEW REPORT X_SRC</pre><h4>Phase 9: Perform the SCHEMA1 initial Data Pump export</h4><p>Perform the export from the source database.</p><blockquote>Make sure the EXPDP_DIR object is created beforehand in the database and also a sufficiently privileged account is used for the export.</blockquote><pre>expdp dpadmin@SOURCEDB DIRECTORY=EXPDP_DIR DUMPFILE=SCHEMA1_init_load.dmp LOGFILE=SCHEMA1_init_load.log SCHEMAS=SCHEMA1</pre><h4>Phase 10: Import Schema to Target Database</h4><p>Transfer the dump file to the target server.</p><p>Import the dump file:</p><pre>impdp dpadmin@TARGETDB DIRECTORY=EXPDP_DIR DUMPFILE=SCHEMA1_init_load.dmp LOGFILE=SCHEMA1_import.log SCHEMAS=SCHEMA1</pre><h4>Phase 11: Create a GoldenGate checkpoint table</h4><pre>GGSCI&gt; DBLOGIN USERIDALIAS targetgg<br>GGSCI&gt; ADD CHECKPOINTTABLE ggadmin.gg_checkpoint</pre><p>Validate:</p><pre>GGSCI&gt; INFO CHECKPOINTTABLE ggadmin.gg_checkpoint</pre><blockquote>A checkpoint table transactionally stores Replicat’s recovery position in the target database, allowing Replicat to restart reliably from a consistent position after interruptions or failures.</blockquote><h4>Phase 12: Create Integrated Replicat</h4><pre>GGSCI&gt; DBLOGIN USERIDALIAS targetgg<br><br>GGSCI&gt; ADD REPLICAT R_TGT, INTEGRATED, EXTTRAIL ./dirdat/xa, CHECKPOINTTABLE ggadmin.gg_checkpoint<br><br>GGSCI&gt; EDIT PARAMS R_TGT</pre><pre>REPLICAT R_TGT<br>USERIDALIAS targetgg<br>DBOPTIONS ENABLE_INSTANTIATION_FILTERING<br>DBOPTIONS SOURCE_DB_NAME SOURCEDB<br><br>MAP SCHEMA1.*, TARGET SCHEMA1.*;</pre><blockquote>ENABLE_INSTANTIATION_FILTERING causes Replicat to use the per-table instantiation SCNs imported by Oracle Data Pump and discard trail records that precede each table’s instantiation point. SOURCE_DB_NAME needs the source database’s GLOBAL_NAME. Find the GLOBAL_NAME using SELECT GLOBAL_NAME FROM GLOBAL_NAME;</blockquote><h4>Phase 13: Start Replicat</h4><pre>GGSCI&gt; START REPLICAT R_TGT</pre><p>Verify the Replicat is running without any issues:</p><pre>GGSCI&gt; INFO REPLICAT R_TGT, DETAIL<br>GGSCI&gt; LAG REPLICAT R_TGT<br>GGSCI&gt; STATS REPLICAT R_TGT, TOTAL</pre><p>Check the log file for any errors:</p><pre>GGSCI&gt; VIEW REPORT R_TGT</pre><h3>Basic Flow — Initial Creation</h3><p>Below are the basic steps of the initial creation of a GoldenGate Extract and Replicat configuration in this lab.</p><pre>ADD SCHEMATRANDATA + PREPARECSN<br>↓<br>REGISTER EXTRACT<br>↓<br>ADD EXTRACT<br>↓<br>START EXTRACT<br>↓<br>TAKE DUMP<br>↓<br>IMPORT DUMP<br>↓<br>ADD CHECKPOINTTABLE<br>↓<br>ADD REPLICAT<br>↓<br>START REPLICAT</pre><h3>Basic Flow — Adding New Schemas</h3><p>Below are the steps you need to follow when adding new schemas to an existing Extract and Replicat.</p><pre>ADD SCHEMATRANDATA + PREPARECSN<br>↓<br>STOP REPLICAT<br>↓<br>STOP EXTRACT<br>↓<br>ADD NEW SCHEMA TO EXTRACT<br>↓<br>START EXTRACT<br>↓<br>TAKE DUMP<br>↓<br>IMPORT DUMP<br>↓<br>ADD NEW SCHEMA TO REPLICAT<br>↓<br>START REPLICAT</pre><h3>Important Details</h3><ul><li>I did not configure a separate GoldenGate data pump Extract in this scenario because the mining database and target database reside on the same host, allowing the downstream Integrated Extract to write directly to the local trail consumed by Replicat.</li><li>Although separate Extract and Replicat processes can be created for individual schemas, doing so increases both GoldenGate process overhead and database side resource consumption. Unless workload isolation or performance requirements justify separate processes, consolidating multiple schemas into fewer Extract/Replicat groups can reduce overall memory and operational overhead.</li></ul><h3>Troubleshooting</h3><ol><li>After immediately starting the Extract, the <strong><em>LAG AT CHKPT</em></strong> increases and the Extract does not start correctly.</li></ol><p>One possible cause is that the downstream LogMiner session does not have access to the archived redo containing the required LogMiner dictionary.</p><pre>SELECT capture_name,<br>  extract_name,<br>  state,<br>  total_messages_captured,<br>  total_messages_enqueued,<br>  total_messages_sent,<br>  bytes_of_redo_mined<br>FROM v$goldengate_capture;</pre><p>If the capture remains in <strong><em>DICTIONARY INITIALIZATION</em></strong> for an unusually long period, inspect the registered LogMiner redo and Extract/report logs. A <strong><em>WAITING FOR DICTIONARY REDO</em></strong> state specifically indicates that LogMiner is waiting for redo files containing the required dictionary build.</p><p>Check the logminer_id and <strong><em>FIRST_SCN</em></strong>:</p><pre>SELECT capture_name,<br>  status,<br>  client_status,<br>  logminer_id,<br>  TO_CHAR(first_scn,<br>  ‘FM99999999999999999999’) AS first_scn,<br>  TO_CHAR(start_scn,<br>  ‘FM99999999999999999999’) AS start_scn,<br>  TO_CHAR(captured_scn,<br>  ‘FM99999999999999999999’) AS captured_scn,<br>  error_number,<br>  error_message<br>FROM dba_capture<br>WHERE capture_name = ‘OGG$CAP_X_SRC’;</pre><blockquote>Change the capture_name as required.</blockquote><p>Identify the source archive containing <strong><em>FIRST_SCN </em></strong>on the Source Database.</p><pre>SET LINES 300<br>COLUMN name FORMAT A50<br>SELECT thread#,<br>  sequence#,<br>  TO_CHAR(first_change#,<br>  ‘FM99999999999999999999’) AS first_scn,<br>  TO_CHAR(next_change#,<br>  ‘FM99999999999999999999’) AS next_scn,<br>  dictionary_begin,<br>  dictionary_end,<br>  completion_time,<br>  name<br>FROM v$archived_log<br>WHERE thread# = 1<br>AND first_change# &lt;= &lt;FIRST_SCN&gt;<br>AND next_change# &gt; &lt;FIRST_SCN&gt;<br>AND standby_dest = ‘NO’<br>ORDER BY sequence#;</pre><blockquote>THREAD# = 1 is used in this example because the source database is single instance.</blockquote><p>If the file exists physically but not registered, register it manually in the mining database.</p><pre>ALTER DATABASE REGISTER LOGICAL LOGFILE ‘+DATA/MINEDB/SRC_CASCADE_ARCH/SRC_1_795931_859865870.arc’ FOR ‘OGG$CAP_X_SRC’;</pre><blockquote>Change the logfile path to the one you configured in the LOG_ARCHIVE_DEST_n destination and make sure to add the correct log file number as well.</blockquote><p>If the file does not exist physically you may have to manually copy the archived redo logfile to the mining server and register it.</p><p>Verify that the capture state progresses to <strong><em>CAPTURING CHANGES</em></strong> or <strong><em>WAITING FOR REDO</em></strong>.</p><pre>SELECT capture_name,<br>  extract_name,<br>  state,<br>  total_messages_captured,<br>  total_messages_enqueued,<br>  total_messages_sent,<br>  bytes_of_redo_mined<br>FROM v$goldengate_capture;</pre><p>The Extract lag should then begin to decrease.</p><p>2. After all configurations have been successfully completed and the GoldenGate processes are running smoothly after a while the Extract stops processing logs and the lag increases.</p><p>One possible cause is a gap in the archived redo logs available to the downstream LogMiner session. Check the Extract report and capture state first, then verify whether the required archived redo sequences are available to the mining database using the below query:</p><pre>SET LINESIZE 250<br>SET PAGESIZE 1000<br>WITH logs AS<br>(<br>  SELECT l.thread#,<br>  l.resetlogs_scn,<br>  l.sequence#,<br>  l.first_scn,<br>  l.next_scn,<br>  l.name,<br>  LAG(l.sequence#) OVER<br>  (PARTITION BY l.thread#, l.resetlogs_scn<br>  ORDER BY l.sequence#) AS previous_sequence,<br>  LAG(l.next_scn) OVER<br>  (PARTITION BY l.thread#, l.resetlogs_scn<br>  ORDER BY l.sequence#) AS previous_next_scn<br>  FROM dba_logmnr_log l<br>  JOIN v$goldengate_capture c<br>  ON c.logminer_id = l.logmnr_session_id<br>  WHERE c.extract_name = ‘X_SRC’<br>)<br>SELECT thread#,<br>  resetlogs_scn,<br>  previous_sequence + 1 AS missing_sequence_from,<br>  sequence# — 1 AS missing_sequence_to,<br>  previous_next_scn AS missing_scn_from,<br>  first_scn AS missing_scn_to<br>FROM logs<br>WHERE previous_sequence IS NOT NULL<br>AND sequence# &gt; previous_sequence + 1<br>ORDER BY resetlogs_scn,<br>  thread#,<br>  missing_sequence_from;</pre><p>Transfer the missing archived redo logs to the mining server and copy them to the correct location using the correct naming convention you used.</p><p>Register the archived redo logs with the mining database</p><pre>ALTER DATABASE REGISTER LOGICAL LOGFILE ‘+DATA/MINEDB/SRC_CASCADE_ARCH/SRC_1_802347_859865870.arc’ FOR ‘OGG$CAP_X_SRC’;</pre><blockquote>Change the location of the logfile to the location you configured in the log dest and make sure to add the correct log file number as well.</blockquote><p>The Extract lag should gradually decrease.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bb42f50d3647" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an End-to-End CI/CD Deployment Workflow on Oracle Cloud Infrastructure Using OCI DevOps…]]></title>
            <link>https://medium.com/@kulith-jayakody/building-an-end-to-end-ci-cd-deployment-workflow-on-oracle-cloud-infrastructure-using-oci-devops-78661b62dd83?source=rss-6bf8cdd75c97------2</link>
            <guid isPermaLink="false">https://medium.com/p/78661b62dd83</guid>
            <category><![CDATA[ci-cd-pipeline]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[oracle-cloud]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[oraclecloudinfrastructure]]></category>
            <dc:creator><![CDATA[Kulith Jayakody]]></dc:creator>
            <pubDate>Thu, 06 Aug 2026 17:35:37 GMT</pubDate>
            <atom:updated>2026-08-06T17:49:11.174Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building an End-to-End CI/CD Deployment Workflow on Oracle Cloud Infrastructure Using OCI DevOps and GitHub</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Os70zwy4tMWagMWJ_1nIgg.png" /></figure><p>Continuous Integration and Continuous Deployment, commonly known as CI/CD, has become an important part of modern application delivery. Instead of manually packaging application files, copying them to servers, restarting services and validating the deployment each time, a CI/CD workflow allows these steps to be automated and repeated with less manual effort.</p><p>In this article, I will provide an overview of how a CI/CD workflow can be designed using OCI DevOps and other Oracle Cloud Infrastructure services by referencing a CI/CD deployment project I created. The goal of the project was to build a practical deployment workflow for a multi component Laravel based application consisting of a frontend, backend and middleware layer.</p><p>The project uses OCI DevOps build pipelines, deployment pipelines, OCI Vault, OCI Artifact Registry, OCI Compute, OCI Networking, OCI Load Balancer, OCI Logging, OCI Notifications and GitHub integration.</p><h3>Project Objective</h3><p>The objective of this project was to create a working CI/CD workflow where changes pushed to GitHub can be built, packaged, stored as artifacts and deployed to OCI Compute instances.</p><p>The application architecture was separated into three components:</p><p>Frontend<br>Backend<br>Middleware</p><p>Each component had its own GitHub repository, build pipeline, deployment pipeline and target Ubuntu server.</p><p>The high-level goal was to achieve the following flow:</p><p><em>GitHub commit<br>↓<br>OCI DevOps trigger<br>↓<br>OCI DevOps build pipeline<br>↓<br>OCI Artifact Registry<br>↓<br>OCI DevOps deployment pipeline<br>↓<br>OCI DevOps Shell stage<br>↓<br>Ubuntu application server<br>↓<br>Nginx<br>↓<br>OCI Load Balancer<br>↓<br>End user</em></p><h3>High-Level Architecture</h3><p>The architecture used in this project is shown below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/646/1*mu7AlGp02X2C4VHy3USZRg.png" /></figure><p>This design allowed each application component to be managed independently while still following the same deployment pattern.</p><h3>OCI Services Used</h3><p>The project used the following Oracle Cloud Infrastructure services:</p><ul><li>OCI DevOps</li><li>OCI Vault</li><li>OCI Artifact Registry</li><li>OCI Compute</li><li>OCI Networking</li><li>OCI Load Balancer</li><li>OCI Logging</li><li>OCI Notifications</li><li>OCI Events</li></ul><h3>GitHub Integration with OCI DevOps</h3><p>The first part of the setup is to connect GitHub with OCI DevOps.</p><p>I created a GitHub Personal Access Token and stored it securely in OCI Vault. Then I created an OCI DevOps external connection using the GitHub connection type and selected the Vault secret containing the token.</p><p>This connection allowed OCI DevOps to access the required GitHub repositories during build pipeline execution.</p><p>For this project, the repositories were separated as follows:</p><ul><li>frontend repository</li><li>backend repository</li><li>middleware repository</li></ul><p>This separation helped keep each application component independently buildable and deployable.</p><h3>Build Pipeline Design</h3><p>Each component had its own OCI DevOps build pipeline.</p><p>The build pipelines followed this pattern:</p><p><em>Managed Build<br>↓<br>Deliver Artifacts<br>↓<br>Trigger Deployment</em></p><p>Having separate build pipelines meant that the components could be built independently. This ensures that the pipelines did not interfere with one another. This helps in keeping the CI/CD workflow modular and easy to troubleshoot.</p><p>The Managed Build stage was responsible for running the build steps defined in the build_spec.yaml file. The build_spec.yaml file is the “build recipe” for the application and it includes the exact steps to follow when building the package. The build_spec.yaml file should be created and stored in the root directory of the GitHub repository.</p><p>The Deliver Artifacts stage stores the generated artifact in OCI Artifact Registry. The Trigger Deployment stage then started the corresponding deployment pipeline. Trigger deployment acts as the messenger between the build pipeline and the deployment pipeline. Once the artifacts have been built successfully and stored in the registry, this stage informs the deployment pipeline that it can proceed with deploying the artifact.</p><h3>Artifact Management with OCI Artifact Registry</h3><p>Let’s look a bit more at artifact management in this CI/CD workflow. Once the build pipeline completes building the package, it then stores the package in the OCI Artifact Registry. Essentially the build pipeline delivers the package to the registry.</p><p>Separate artifact paths were used for the three build pipelines to deliver the package. This, as mentioned before, helps in troubleshooting if anything goes wrong.</p><p>The delivered artifact is then consumed by the deployment pipeline in order to proceed with the deployment. This is useful because the artifact becomes the deployable unit. Instead of deploying directly from the developer’s machine or manually copying files, the deployment pipeline automates this.</p><h3>Deployment Pipeline Design</h3><p>The deployment pipeline was responsible for taking the artifact produced by the build pipeline and deploying it to the target Ubuntu server. In this project, each component had its own deployment pipeline and each deployment pipeline used a Shell stage to run the required deployment commands.</p><p>Before configuring the deployment pipelines, each Ubuntu server was prepared with a dedicated deployment user named deploy. Using a separate deployment user is a better practice than deploying directly as root, because it allows deployment access to be controlled.</p><p>A separate release directory was created on each server to store the deployed application versions along with shared and logs directories to store files that remain consistent across deployments and to store log files.</p><p>The .env files were intentionally kept under the shared directory on each server and were not included in the build artifacts. This was an important design decision because environment specific configuration and secrets should not be bundled into deployable packages.</p><p>By keeping the .env files on the servers, the same artifact can be deployed repeatedly without exposing sensitive configuration values or rebuilding the package for each environment.</p><h3>Network and Security Design</h3><p>For the deployment layer, I used an OCI DevOps Shell stage instead of an instance group deployment stage. The main reason was operating system compatibility. OCI DevOps instance group deployments are supported for Oracle Linux and CentOS, while my application servers were Ubuntu based OCI Compute instances. The Shell stage provided a more flexible option because it allowed custom deployment commands to run and connect to the Ubuntu servers over SSH.</p><p>The Shell stage was configured to run inside a selected OCI subnet. Because the target Ubuntu servers were private, the Shell stage needed network access to those servers over SSH. The server side NSG or security list allowed SSH only from the DevOps Shell stage subnet or NSG:</p><p><em>Source: DevOps Shell stage subnet or NSG<br>Protocol: TCP<br>Destination port: 22</em></p><p>For application access, only the frontend was exposed through an OCI Load Balancer. The Load Balancer accepted public HTTP traffic and forwarded it to the frontend server, while the backend and middleware servers remained private.</p><p>The frontend server allowed HTTP traffic only from the Load Balancer subnet or NSG:</p><p>Source: Load Balancer subnet or NSG<br>Protocol: TCP<br>Destination port: 80</p><p>This design helped separate deployment access from user access. The DevOps Shell stage was used only for deployments, while public traffic entered through the Load Balancer. As a result, the application servers did not need to be directly exposed to the internet, but users could still access the frontend application through a managed OCI entry point.</p><h3>Triggering Builds from GitHub</h3><p>At this point, you may be asking yourself; how does OCI DevOps know when a developer has pushed a commit to a GitHub repository? Although the OCI DevOps project has an external connection to GitHub, that connection mainly allows OCI DevOps to access the repository during the build. By itself, it does not automatically notify OCI every time a new commit is pushed. This is where GitHub webhooks come into play.</p><p>The trigger flow works as follows:</p><p><em>GitHub push to main branch<br>↓<br>GitHub webhook<br>↓<br>OCI DevOps trigger<br>↓<br>OCI DevOps build pipeline</em></p><p>When a developer pushes code to the main branch, GitHub sends a webhook event to the OCI DevOps trigger URL. OCI DevOps then receives that event and starts the respective build pipeline.</p><p>Separate triggers have been created for each pipeline in order to isolate the pipeline execution per component. A frontend code change triggers only the frontend build pipeline, a backend code change triggers only the backend build pipeline, and a middleware code change triggers only the middleware build pipeline.</p><p>This separation makes the CI/CD process more efficient and easier to troubleshoot because each repository is connected only to the pipeline responsible for building and deploying that specific component.</p><h3>Logging, Notifications and Events</h3><p>After the pipelines were created, I enabled OCI DevOps service logging.</p><p>Logging helped with troubleshooting and validation because pipeline execution details could be reviewed after each build or deployment run.</p><p>I also configured OCI Notifications and Events rules for build and deployment updates. This allowed email notifications to be sent when pipeline status updates occur.</p><h3>Best Practices Applied</h3><p>Several practical best practices were applied during this implementation:</p><ol><li>Separate frontend, backend, and middleware repositories</li><li>Use separate build and deployment pipelines per component</li><li>Store GitHub PAT and SSH private key references in OCI Vault</li><li>Keep .env files outside the deployment artifacts</li><li>Use OCI Artifact Registry for generated packages</li><li>Use DevOps Shell stages for repeatable deployments</li><li>Allow controlled service reloads through sudoers</li><li>Retain only the latest five releases on the server</li><li>Use OCI Logging for pipeline troubleshooting</li><li>Use OCI Notifications and Events for visibility</li><li>Place the frontend behind OCI Load Balancer</li></ol><p>I recommend following these practices when designing a similar CI/CD workflow.</p><h3>Conclusion</h3><p>This blog provided a high level overview of how a CI/CD workflow can be designed using OCI DevOps and other Oracle Cloud Infrastructure services. The main objective was to explain how GitHub, OCI DevOps build pipelines, deployment pipelines, OCI Vault, OCI Artifact Registry, OCI Compute, Nginx, OCI Load Balancer, Logging, Notifications and Events can work together to support an end-to-end deployment process.</p><p>Rather than focusing only on the step-by-step configuration, this article explained the purpose of each major component in the architecture and how they contribute to a practical CI/CD workflow for a multi component application.</p><p>For readers who want hands-on experience with the actual configuration, I have created a separate technical guide with setup steps, build specifications, deployment command specs, Nginx configuration examples, architecture details, and validation screenshots. The guide is available here:<br><a href="https://github.com/K-Jayakody/oci-laravel-cicd-deployment-demo.git">https://github.com/K-Jayakody/oci-laravel-cicd-deployment-demo</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=78661b62dd83" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oracle AI Database 26ai: A Practical Look at the Next Generation of Oracle Database]]></title>
            <link>https://medium.com/@kulith-jayakody/oracle-ai-database-26ai-a-practical-look-at-the-next-generation-of-oracle-database-f6629bb56117?source=rss-6bf8cdd75c97------2</link>
            <guid isPermaLink="false">https://medium.com/p/f6629bb56117</guid>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[oracle-database-26ai]]></category>
            <category><![CDATA[oracle-database]]></category>
            <dc:creator><![CDATA[Kulith Jayakody]]></dc:creator>
            <pubDate>Thu, 30 Jul 2026 17:32:15 GMT</pubDate>
            <atom:updated>2026-07-30T17:42:46.164Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*Zraz8Furrr-4JgUwgZttHw.jpeg" /></figure><h3>Introduction</h3><p>Oracle Database has been known for many years as an enterprise relational database used for critical business systems. With Oracle AI Database 26ai, Oracle is moving the database further into the AI era by bringing artificial intelligence, vector search, JSON, graph, analytics, security, and application development features closer to the data.</p><p>Oracle AI Database 26ai is the next long-term support release of Oracle Database and includes many new features, with a strong focus on artificial intelligence and developer productivity. Oracle AI Database 26ai replaces Oracle Database 23ai as the long-term support release.</p><p>For database administrators, developers, and students, this release is important because it shows that modern databases are no longer limited to storing rows and columns. Oracle AI Database 26ai is designed to support traditional relational workloads while also helping with AI-powered search, JSON applications, graph analysis, analytics, security, and modern application development.</p><h3>What Is Oracle AI Database 26ai?</h3><p>Oracle AI Database 26ai is Oracle’s AI-focused database release. It keeps the core strengths of Oracle Database, such as SQL, PL/SQL, transactions, backup and recovery, high availability, security, and performance, while adding new AI and developer-focused capabilities.</p><p>Some of the major areas improved in Oracle AI Database 26ai include:</p><p>1. AI Vector Search<br>2. JSON Relational Duality<br>3. Operational Property Graphs in SQL<br>4. SQL and PL/SQL enhancements<br>5. True Cache<br>6. SQL Firewall<br>7. Select AI and AI-assisted data access<br>8. Better support for modern application development</p><p>The new Oracle’s 26ai has a focus on AI and developer productivity, including AI Vector Search, SQL and PL/SQL improvements, management improvements, security improvements, and performance improvements such as True Cache.</p><h3>What Is New in Oracle AI Database 26ai Compared to Older Releases?</h3><p>Older Oracle Database releases such as 11g, 12c, 18c, 19c, and 21c were mainly known for enterprise relational database capabilities. They were strong platforms for transactional systems, reporting, PL/SQL applications, Data Guard, RAC, partitioning, security, and performance tuning.</p><p>Oracle Database 23ai introduced a major shift toward AI-native database capabilities. Oracle AI Database 26ai builds further on that direction and becomes the next long-term support release.</p><p>The main difference is that 26ai is not only a relational database release. It is positioned as a database platform for both traditional enterprise systems and AI-enabled applications.</p><p>Some important improvements include:</p><h4>1. AI Vector Search</h4><p>Oracle AI Vector Search allows users to search data by meaning rather than only by exact keywords. AI Vector Search is a feature designed for AI workloads that allows semantic queries instead of keyword-only queries.</p><p>This is useful for applications such as:</p><p>• Document search<br>• Knowledge base search<br>• Similar ticket detection<br>• Product recommendation<br>• Retrieval augmented generation<br>• Semantic search inside enterprise applications</p><p>Instead of moving data to a separate vector database, Oracle AI Database can store and search vector embeddings directly where the enterprise data already exists.</p><h4>2. JSON Relational Duality</h4><p>JSON Relational Duality is one of the most developer-friendly features in newer Oracle Database releases.</p><p>In simple terms, it allows the same data to be used as both:</p><p>• Relational tables<br>• JSON documents</p><p>JSON Relational Duality allows data to be transparently accessed and updated as either JSON documents or relational tables. This gives developers the flexibility of document style development while still keeping the strength of normalized relational storage.</p><p>This is helpful because many modern applications prefer JSON, while enterprise systems often require relational consistency, constraints, and SQL analytics.</p><p>With JSON Relational Duality, developers do not always need to choose between a document database and a relational database. Oracle Database can support both access patterns.</p><h4>3. SQL Firewall</h4><p>Security is another major area in Oracle AI Database 26ai.</p><p>Oracle SQL Firewall is built into Oracle AI Database and can inspect incoming SQL statements. SQL Firewall can restrict database access to explicitly authorized SQL statements and connection paths, helping reduce risks from SQL injection, unauthorized access, and credential misuse.</p><p>This is especially important for application workloads where database accounts may normally execute a known set of SQL statements. If a compromised account suddenly starts running unusual SQL, SQL Firewall can help detect or block that behavior.</p><p>For organizations with strict security requirements, this is a valuable database level protection.</p><h4>4. True Cache</h4><p>Many applications use external caches to improve read performance. Oracle AI Database 26ai includes True Cache, which is an in-memory, consistent, automatically managed cache for Oracle AI Database.</p><p>True Cache can be described as a read-only cache in front of Oracle AI Database that is mostly diskless and automatically maintained. It can improve scalability and performance by offloading read queries from the primary database and reducing application response time.</p><p>One important difference from many traditional cache solutions is consistency. True Cache keeps cached data consistent with the primary database and also implements Oracle AI Database security policies.</p><p>This makes it useful for applications that need better performance but still need strong database security and controlled access.</p><h4>5. Select AI and Natural Language Data Access</h4><p>Select AI is another important AI-related capability. Select AI is a built-in feature that allows users to interact with data using natural language instead of writing SQL. It can generate, run, and explain SQL, and it also supports RAG workflows, vector index creation, synthetic data generation, summarization, translation, and AI agents through Oracle packages.</p><p>This is useful because it can help business users and developers get insights from data faster without always manually writing SQL.</p><p>It does not necessarily remove the need for SQL knowledge, especially for DBAs and developers, but it can make data access more approachable for more users.</p><h3>What Does Oracle AI Database 26ai Have That Many Other Database Types Do Not?</h3><p>There are many types of databases today:</p><p>• Relational databases<br>• Document databases<br>• Graph databases<br>• Vector databases<br>• Key-value stores<br>• Search engines<br>• Caches<br>• Data warehouses</p><p>Each database type is usually strong in one specific area. For example, a vector database may focus on similarity search, while a document database may focus on JSON documents.</p><p>What makes Oracle AI Database 26ai interesting is that it combines many of these capabilities into one enterprise database platform.</p><p>Oracle AI Database 26ai combines native AI Vector Search with relational, text, JSON, knowledge graph, and spatial search. This makes it different from a specialized vector database that usually focuses mainly on vector similarity search.</p><p>In practical terms, this means an application can use:</p><p>• Relational tables<br>• SQL queries<br>• JSON documents<br>• Vector search<br>• Graph analysis<br>• Spatial data<br>• Text search<br>• Security controls<br>• Backup and recovery<br>• High availability<br>• Transaction consistency</p><p>inside the same database platform.</p><p>This does not mean Oracle replaces every specialized database in every situation. Specialized databases can still be useful depending on the use case. However, Oracle AI Database 26ai is strong because it reduces the need to move data across multiple separate systems just to support modern application patterns.</p><p>For many organizations, keeping AI, JSON, relational, and analytical workloads close to the same trusted data platform can simplify architecture, security, governance, and operations.</p><h3>Why Oracle AI Database 26ai Matters for DBAs</h3><p>For DBAs, Oracle AI Database 26ai is important because AI workloads are moving closer to the database.</p><p>This means DBAs may need to understand a lot more AI related functionalities such as:</p><p>• Vector storage<br>• Vector indexes<br>• AI-related performance considerations<br>• Security for AI-enabled applications</p><p>The good news is that these features still build on familiar database concepts such as schemas, tables, indexes, SQL, roles, memory management, and performance tuning.</p><p>Oracle AI Database 26ai does not make DBA knowledge less useful. It makes DBA knowledge more relevant to modern AI-enabled systems.</p><h3>Why Oracle AI Database 26ai Matters for Developers</h3><p>For developers, Oracle AI Database 26ai provides more flexibility.</p><p>A developer can build applications that use:</p><p>• SQL for structured queries<br>• JSON for document-style access<br>• Vector search for semantic matching<br>• Graph queries for relationship analysis<br>• Select AI for natural language interaction<br>• True Cache for read scalability</p><p>This means developers can build modern applications without always needing to connect many separate data platforms together.</p><p>JSON Relational Duality is especially useful because it lets developers work with JSON documents while the database still stores data relationally.</p><h3>Final Thoughts</h3><p>Oracle AI Database 26ai is not just another database version number. It represents Oracle’s direction toward combining enterprise database reliability with AI-native capabilities.</p><p>The most important idea is that AI features are being brought closer to enterprise data. Instead of always moving data into separate AI, vector, document, graph, or cache platforms, Oracle AI Database 26ai provides many of these capabilities inside one database platform.</p><p>For learners, this is a good time to explore Oracle AI Database 26ai because it connects traditional database skills with modern AI application development. For DBAs and developers, it provides a path to understand AI workloads without leaving behind SQL, relational design, security, and enterprise database practices.</p><p>Oracle AI Database 26ai shows how the database is evolving from a system of record into a broader platform for data, applications, analytics, and AI.</p><h3>References</h3><p>• <a href="https://docs.oracle.com/en/database/oracle/oracle-database/26/nfcoa/">Oracle AI Database 26ai New Features</a><br>• <a href="https://www.oracle.com/apac/database/free/">Oracle AI Database 26ai product page</a><br>• <a href="https://docs.oracle.com/en/database/oracle/oracle-database/26/vecse/">Oracle AI Vector Search documentation</a><br>• <a href="https://docs.oracle.com/en/database/oracle/oracle-database/26/sqlfw/">SQL Firewall documentation</a><br>• <a href="https://docs.oracle.com/en/database/oracle/oracle-database/26/odbtc/overview-oracle-true-cache.html">True Cache documentation</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f6629bb56117" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Installing Oracle Database 19c on Linux 8 (OL8) Server]]></title>
            <link>https://medium.com/@kulith-jayakody/installing-oracle-database-19c-on-linux-8-ol8-server-f00c5176db37?source=rss-6bf8cdd75c97------2</link>
            <guid isPermaLink="false">https://medium.com/p/f00c5176db37</guid>
            <category><![CDATA[oracle-database]]></category>
            <category><![CDATA[database-administration]]></category>
            <dc:creator><![CDATA[Kulith Jayakody]]></dc:creator>
            <pubDate>Sat, 31 Jan 2026 17:39:24 GMT</pubDate>
            <atom:updated>2026-01-31T17:39:24.851Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*BHEgIiAi2FmJUfjzAyOPuw.jpeg" /></figure><h3><strong>Step 1 — Install the Relevant Software</strong></h3><p>Install the Oracle Database 19c Enterprise Edition 19.3.0.0.0 from Oracle Software Delivery Cloud or any other method you prefer.<br><strong>(If your server has an internet connection you can use the wget method to install the software)</strong><br>As a best practice create a separate directory named ‘SOFTWARES’ where you can move installation files.</p><h3><strong>Step 2 — Add the following lines to the ‘/etc/sysctl.conf’ file as root user.</strong></h3><p>fs.file-max = 6815744<br>kernel.sem = 250 32000 100 128<br>kernel.shmmni = 4096<br>kernel.shmall = 1073741824<br>kernel.shmmax = 4398046511104<br>kernel.panic_on_oops = 1<br>net.core.rmem_default = 262144<br>net.core.rmem_max = 4194304<br>net.core.wmem_default = 262144<br>net.core.wmem_max = 1048576<br>net.ipv4.conf.all.rp_filter = 2<br>net.ipv4.conf.default.rp_filter = 2<br>fs.aio-max-nr = 1048576<br>net.ipv4.ip_local_port_range = 9000 65500</p><h3><strong>Step 3 — Add the following lines to a file called ‘etc/security/limits.d/oracle-database-preinstall-19c.conf’ file</strong></h3><p>oracle soft nofile 1024<br>oracle hard nofile 65536<br>oracle soft nproc 16384<br>oracle hard nproc 16384<br>oracle soft stack 10240<br>oracle hard stack 32768<br>oracle hard memlock 134217728<br>oracle soft memlock 134217728</p><h3><strong>Step 4 — Install the following packages</strong></h3><p>dnf install -y bc <br>dnf install -y binutils<br>#dnf install -y compat-libcap1<br>dnf install -y compat-libstdc++-33<br>#dnf install -y dtrace-modules<br>#dnf install -y dtrace-modules-headers<br>#dnf install -y dtrace-modules-provider-headers<br>#dnf install -y dtrace-utils<br>dnf install -y elfutils-libelf<br>dnf install -y elfutils-libelf-devel<br>dnf install -y fontconfig-devel<br>dnf install -y glibc<br>dnf install -y glibc-devel<br>dnf install -y ksh<br>dnf install -y libaio<br>dnf install -y libaio-devel<br>#dnf install -y libdtrace-ctf-devel<br>dnf install -y libXrender<br>dnf install -y libXrender-devel<br>dnf install -y libX11<br>dnf install -y libXau<br>dnf install -y libXi<br>dnf install -y libXtst<br>dnf install -y libgcc<br>dnf install -y librdmacm-devel<br>dnf install -y libstdc++<br>dnf install -y libstdc++-devel<br>dnf install -y libxcb<br>dnf install -y make<br>dnf install -y net-tools # Clusterware<br>dnf install -y nfs-utils # ACFS<br>dnf install -y python # ACFS<br>dnf install -y python-configshell # ACFS<br>dnf install -y python-rtslib # ACFS<br>dnf install -y python-six # ACFS<br>dnf install -y targetcli # ACFS<br>dnf install -y smartmontools<br>dnf install -y sysstat</p><h3><strong>Step 5 — Create the following groups and users</strong></h3><p>groupadd -g 54321 oinstall<br>groupadd -g 54322 dba<br>groupadd -g 54323 oper <br>#groupadd -g 54324 backupdba<br>#groupadd -g 54325 dgdba<br>#groupadd -g 54326 kmdba<br>#groupadd -g 54327 asmdba<br>#groupadd -g 54328 asmoper<br>#groupadd -g 54329 asmadmin<br>#groupadd -g 54330 racdba</p><p>useradd -u 54322 -g oinstall -G dba,oper oracle</p><h3><strong>Step 6 — Set the password for oracle user</strong></h3><p>[root@testserver-k opc]# passwd oracle<br>Changing password for user oracle.<br>New password:<br>Retype new password:<br>passwd: all authentication tokens updated successfully.</p><h3><strong>Step 7 — Set secure Linux to permissive by editing the ‘/etc/selinux/config’ file, making sure the SELINUX flag is set as follows.</strong></h3><p>[root@testserver-k opc]# vi /etc/selinux/config</p><p>SELINUX=permissive</p><h3><strong>Step 8 — Disable the firewall</strong></h3><p>[root@testserver-k opc]# systemctl stop firewalld<br>[root@testserver-k opc]# systemctl disable firewalld</p><h3><strong>Step 9 — Create the directories in which the Oracle software will be installed.</strong></h3><p>[root@testserver-k opc]# mkdir -p /u01/app/oracle/product/19.0.0/dbhome_1<br>[root@testserver-k opc]# chown -R oracle:oinstall /u01<br>[root@testserver-k opc]# chmod -R 775 /u01</p><h3><strong>Step 10 — Edit the .bash_profile of the oracle user and enter the following entries. Then restart the .bash_profile</strong></h3><p>[oracle@testserver-k ~]$ vi ~/.bash_profile<br>export ORACLE_BASE=/u01/app/oracle<br>export ORACLE_HOME=$ORACLE_BASE/product/19.0.0/dbhome_1<br>export PATH=/usr/sbin:/usr/local/bin:$PATH<br>[oracle@testserver-k ~]$ source ~/.bash_profile</p><h3><strong>Step 11 — Unzip the zip file as the oracle user in the ORACLE_HOME directory</strong></h3><p>[oracle@testserver-k ~]$ cd /u01/app/oracle/product/19.0.0/dbhome_1<br>[oracle@testserver-k dbhome_1]$ unzip -oq /u01/SOFTWARES/&lt;file_name&gt;.zip</p><h3><strong>Step 12 — Run the installer</strong></h3><p>[oracle@testserver-k dbhome_1]$ ./runInstaller</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/0*rf0JqVhexcYWyTZ5" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/0*OmEy7S5uBTMfFSVZ" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/0*jbFWDBC65gO45YBG" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*q4edfHZ6bG_24lpJ" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*b7otlb0al-dS2cXG" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/0*oS4Y-cJ_3NsBcS_l" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/0*qYK7nD23VpTv14Yw" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/0*8yxJCbVL4dloUJin" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*NWPYwMNTBgsPpwN-" /></figure><h3><strong>Step 13 — Run the Database Creation Administrator (DBCA)</strong></h3><p>[oracle@testserver-k dbhome_1]$ cd /u01/app/oracle/product/19.0.0/dbhome_1/bin<br>[oracle@testserver-k bin]$ ./dbca</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*1vpAd6W8hOmQR9QE" /></figure><p>(It’s perfectly fine to do a typical configuration rather than the advanced configuration)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/0*5sUjRAggeT47JDiI" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/0*XXwV8p9X2R4Crh0F" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/0*JHlw3kxbp5KJCqs0" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*lJPn8Wh8r6k0ssQD" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/0*LNb1W4lkYhtrfl3y" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/0*7Bw2E9DHU2csO6ro" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/0*O9QRD6oMuKDe4BBq" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*dAo7I2SdMbYLo96Y" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*IrRnkqFpr-Jj0Od8" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/799/0*iJnNYiYu_aFxHeLj" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/798/0*NQcWy_YyXHnehPS4" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*ofz_FtKjdMCQ7fNb" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/801/0*owVQxiA0BK-x8mBG" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/802/0*YxsZsglmbNc93qwK" /></figure><h3><strong>Step 14 — Set the database environment and start the listener</strong></h3><p>[oracle@testserver-k bin]$ . oraenv<br>ORACLE_SID = [oracle] ? fardb<br>The Oracle base remains unchanged with value /u01/app/oracle<br>[oracle@testserver-k bin]$ lsnrctl start</p><h3><strong>Step 15 — Connect to the database and test</strong></h3><p>[oracle@testserver-k ~]$ sqlplus / as sysdba<br>SQL*Plus: Release 19.0.0.0.0 — Production on Fri Jun 27 05:46:48 2025<br>Version 19.3.0.0.0<br>Copyright © 1982, 2019, Oracle. All rights reserved.<br>Connected to:<br>Oracle Database 19c Enterprise Edition Release 19.0.0.0.0 — Production<br>Version 19.3.0.0.0<br>SQL&gt;</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f00c5176db37" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>