<?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 Manoranjan Pradhan on Medium]]></title>
        <description><![CDATA[Stories by Manoranjan Pradhan on Medium]]></description>
        <link>https://medium.com/@manoranjan.pradhan?source=rss-3c591250a4e9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*P8Ecgm-ELrY2-bJ4</url>
            <title>Stories by Manoranjan Pradhan on Medium</title>
            <link>https://medium.com/@manoranjan.pradhan?source=rss-3c591250a4e9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 16:21:07 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@manoranjan.pradhan/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[Migrating To Oracle Autonomous Database @Oracle Cloud | Part -3]]></title>
            <link>https://blog.searce.com/migrating-to-oracle-autonomous-database-oracle-cloud-part-3-f358e22e3c02?source=rss-3c591250a4e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/f358e22e3c02</guid>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[oracle-autonomous-db]]></category>
            <category><![CDATA[oracle-database]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Manoranjan Pradhan]]></dc:creator>
            <pubDate>Fri, 29 Nov 2024 12:03:34 GMT</pubDate>
            <atom:updated>2024-11-29T12:03:34.457Z</atom:updated>
            <content:encoded><![CDATA[<p>There are several different tools to migrate to Autonomous Database. In this article we will discuss the Data Pump method, including the necessary parameters and some tips for migrating to the cloud using this approach.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/1*X_EeENxEDxC8yOZsTN-pxg.jpeg" /></figure><p>Above diagram provides a high level architectural view of the different ways to load data and maintain data in autonomous database.</p><p>Data Pump is an excellent tool for migrating a full or partial database to Autonomous Database, including databases from previous versions. One of its key advantages is that it can handle database upgrades as part of the export and import process, making it a straightforward way to transition to Autonomous Database from any existing Oracle database implementation.</p><p>We will discuss the Data Pump method, including the necessary parameters and some tips for migrating to the cloud using this approach.</p><p><strong>Recommendation Datapump :-</strong></p><p><strong>1. Avoid Using [SYS AS SYSDBA]</strong></p><p>The migration process to Autonomous Database differs slightly from migrating to on-premises databases</p><ul><li><strong>Avoid SYSDBA for exports:</strong> When exporting data from the on-premises database, do not use the SYSDBA role. Its behavior differs from that of a general user.You cannot specify SYSDBA for the admin user in the cloud.</li><li><strong>Use admin user for imports:</strong> In the cloud, use the admin user for imports. This admin user has elevated privileges similar to the SYS user.</li></ul><p><strong>2. Use Parameter File</strong></p><p>Always use a parameter file instead of a long command line. Parameter files minimize the risk of syntax errors and are easier to read and manage. This approach is applicable for both export and import operations.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/615/1*w0mQiYkX0FZFLB4qxBOqLw.jpeg" /></figure><p><strong>3. Export to Multiple Files</strong></p><p>When exporting from the source database, it’s a good practice to export to multiple dump files across the board using parallel processing.</p><p>For cloud migrations, it’s even more important to combine multiple dump files within a specific file size limit. This is necessary because you’ll need to migrate these files to object storage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*gWsM68LiBMK0X4nHzS1D0w.jpeg" /></figure><p><strong>4. Use Schema Mode For Export</strong></p><p>When you are using export from source database , it is recommend to use schema mode .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/609/1*rR-Kze4w1SCYxuyRwW014g.jpeg" /></figure><p><strong>5. Exclude Statistics</strong></p><p>The primary reason to exclude statistics during export and import is to improve performance. Excluding statistics can significantly speed up the operation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/583/1*lv6nCwMxIP8bsRdzy7gW-g.jpeg" /></figure><p><strong>6. Leverage Parallelism</strong></p><p>Always use the PARALLEL option in Data Pump to improve performance. This feature allows for multiple processes to work simultaneously, significantly speeding up the export and import operations.</p><p><strong>7. Remove Coloumn Encryption</strong></p><p>When migrating to Autonomous Database in the cloud, if you have implemented column encryption at the database level on-premises or in the source database, you should remove it before migrating. Autonomous Database uses tablespace-level encryption, and combining column encryption with tablespace encryption is not supported.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/662/1*wSU9Sqm58Q1qKr93LLiUUw.jpeg" /></figure><p><strong>8. Consider Using Compression</strong></p><p>To accelerate the migration process, consider using compression if possible. Compression can significantly improve performance for Data Pump operations. However, advanced compression options might require additional licensing.</p><p>expdp username/password@source_db dumpfile=my_dump.dmp directory=dumpdir compression=all compression_algorithm=medium</p><p>This example enables compression for the entire export operation and uses the MEDIUM compression algorithm. You can adjust the COMPRESSION_ALGORITHM to MEDIUM or LOW or HIGH based on your specific needs and performance requirements.</p><p><strong>9. Import From the Object Store</strong></p><p>Data Pump allows you to use wildcards for object storage file names. This simplifies your command line and parameter file, making them more concise.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7wzE-ive4lsuMWjswo0jLQ.jpeg" /></figure><p><strong>10. Convert IOT to Heap Tables Using TRANSFORM</strong></p><p>When migrating to Autonomous Database, consider converting index-organized tables (IOTs) to heap tables</p><p><strong>11. Enforce Proper Naming Standard </strong><br>During import activity it applies proper naming standards for your constraints (For Pk and FK) using below Parameter <br>TRANSFORM=CONSTRAINT_USE_DEFAULT_INDEX:Y</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z2MoLobGonkD5lyGjrS5-g.jpeg" /></figure><p>12. <strong>Remap Tablespace to the DATA Tablespace</strong></p><p>During the migration/import process, tablespaces might not be remapped automatically. To ensure correct mapping, use the REMAP_TABLESPACE=%:DATA parameter in your Data Pump command. This will remap all tablespaces to the DATA tablespace.</p><p><strong>High-Level Migration Process Using Data Pump</strong></p><p>i) Export Data in Schema Mode from Source Database.<br>ii) Upload export Dump Files to Object Storage.<br>iii) Store your Object Storage credentials in Autonomous database.<br>iv) import Using impdp method.</p><p><strong>i) Export Data in Schema Mode from Source Database.</strong></p><ol><li><strong>Create a directory to store/export dumpfile :</strong></li></ol><p>This step must be performed by a privileged user on the server.</p><p>Create a Directory:</p><p>Create a directory in the filesystem of the source server machine and ensure it has appropriate permissions for access. Use the following commands to create the directory and assign permissions:</p><p>In the database, create a directory object and grant appropriate privileges to the SYSTEM user.</p><p><strong>Run the Following Command:</strong></p><p>Execute the following command in your source database:</p><pre>mkdir /path/to/your/directory<br>chmod 755 /path/to/your/directory</pre><p>2. <strong>Creating Directory Object For Datapump :</strong></p><pre>SQL&gt;create directory DUMPDIR AS &#39;&lt;DIRECTORY PATH&gt;&#39;;<br>SQL&gt;select grantee from all_tab_privs where table_name = &#39;DUMPDIR&#39;;<br>SQL&gt;grant read,write on directory DUMPDIR to system;</pre><p><strong>3. Verify Database Stream Pool Size :</strong></p><p>Check the current value of the STREAMS_POOL_SIZE initialization parameter in your database. If it&#39;s not set or set to a low value, consider increasing it to at least 256MB.</p><p><strong>Setting </strong>STREAMS_POOL_SIZE <strong>:</strong></p><pre>select<br>current_size/1024/1024 as current_size_mb from v$sga_dynamic_components<br>where component=&#39;streams pool&#39;;</pre><pre>SQL&gt;ALTER SYSTEM SET streams_pool_size=256M SCOPE=BOTH;(Minimum value)</pre><p><strong>4. Always Use a Parameter File for Export</strong></p><p>A parameter file is a simple text file that is read and used by the expdp client. You can create a parameter file anywhere on your system.</p><pre>vi exp.par<br><br>Add below parameter to file <br><br>DIRECTORY=dumpdir<br>SCHEMAS=MANO<br>EXCLUDE=cluster,indextype,db_link,statistics<br>DUMPFILE=exp.dmp<br>LOGFILE=export.log<br>PARALLEL=&lt;enter the value CPU cores x2&gt;<br>LOGTIME=ALL<br>METRICS=YES<br>FLASHBACK_TIME=SYSTIMESTAMP</pre><p><strong>Executing the Parameter File</strong></p><p>To execute the export operation using the parameter file, use the following command:</p><pre>expdp system/password@ORCL parfile=exp.par</pre><p><strong>5. Monitoring Datapump Export Progress</strong></p><p>To track the progress of your data export, use the following query to retrieve the percentage completion:</p><pre>SELECT<br>SID, SERIAL#, USERNAME, CONTEXT, SOFAR, TOTALWORK,<br>ROUND(SOFAR/TOTALWORK*100,2) &quot;%_COMPLETE&quot;FROM V$SESSION_LONGOPS<br>WHERE TOTALWORK != 0 AND SOFAR &lt;&gt; TOTALWORK;</pre><p><strong>ii) Upload export Dump Files to Object Storage.</strong></p><ol><li><strong>Create a Bucket in OCI object storage</strong></li></ol><p>The bucket you will be using belongs to a specific compartment and is designed to store the database dump files (DMP files) that will be uploaded to Object Storage. When uploading the files, you’ll need to specify the namespace and bucket name. Make sure to note these details for future reference. We have create a bucket name “oraclebucket”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HfvdF9RlhDWb4IM9BwiL7A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xshn3MBTs8NwJclWq5pjrA.png" /></figure><p><strong>2. Establish Credentials for ADB and Object Storage Integration</strong></p><p>You will need to<strong> generate an auth token</strong> password for a new credential.Navigate to profile-&gt;My profile -&gt;Resources -&gt; under resource in left side bar you will see “Auth Tokens”. When clicked, you will see an option generate a token. Note it down somewhere secure, since you cannot view this later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*uwWbD03WszaZRd5zK008Jw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UL0QcuvGOqb3Q3zhypGNOw.jpeg" /></figure><p><strong>3. Create Credentials :-</strong></p><p>Create your Credentials that enable the Autonomous Database to access the dump file in the Object Storage.</p><p>Copy the below script, in your worksheet. Fill in your <strong>Cloud User</strong>’s username and Auth Token as password, and run it to create your user credential.</p><pre>BEGIN<br>  DBMS_CLOUD.CREATE_CREDENTIAL(<br>    credential_name =&gt; &#39;obj_store_cred&#39;,<br>    username =&gt; &#39;someone@oracle.com&#39;,<br>    password =&gt; &#39;erioty6434900z……&#39;<br>  );</pre><p><strong>4. Verify Credential Creation</strong></p><pre>column owner format a15<br>column credential_name format a25<br>column username format a25<br>column enabled format a10<br>select owner, credential_name, username, enabled from dba_credentials;</pre><p><strong>5. Set your credential as the Default Credential</strong></p><p>Now You have to set your database’s default credential.</p><pre>ALTER DATABASE PROPERTY SET DEFAULT_CREDENTIAL = &#39;&lt;Database User Name&gt;.obj_store_cred&#39;</pre><p>6. Create Pre-Authenticated URL for dumpfile (import)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gtdItif9jdpOLXflmiZxNg.png" /></figure><p><strong>iv) import Using impdp method.<br></strong>Run import from the jumphost using instant client , please find below logs for reference</p><pre>root@jumphost:~/instantclient_23_4# ./impdp admin@demo12_high \<br>        schemas=MANO \<br>        credential=obj_store_cred \<br>        dumpfile=https://objectstorage.us1-ashburn-1.oraclecloud.com/p/N7rpq-QccvoQN0NyisMxTrwOj5Aa-cGimPSJZiHq7QG-dI2zpHmYTrqKT-rgU8JU/n/idodmk6fjwwc/b/oraclebucket/o/export_file.dmp \<br>        logfile=export99.log \<br>        directory=data_pump_dir<br><br>Import: Release 23.0.0.0.0 - Production on Wed Sep 18 16:46:24 2024<br>Version 23.4.0.24.05<br><br>Copyright (c) 1982, 2024, Oracle and/or its affiliates.  All rights reserved.<br>Password: <br><br>Connected to: Oracle Database 23ai Enterprise Edition Release 23.0.0.0.0 - Production<br>Master table &quot;ADMIN&quot;.&quot;SYS_IMPORT_SCHEMA_01&quot; successfully loaded/unloaded<br>Starting &quot;ADMIN&quot;.&quot;SYS_IMPORT_SCHEMA_01&quot;:  admin/********@demo12_high schemas=MANO credential=obj_store_cred dumpfile=https://objectstorage.us1-ashburn-1.oraclecloud.com/p/N7rpq-QccvoQN0NyisMxTrwOj5Aa-cGimPSJZiHq7QG-dI2zpHmYTrqKT-rgU8JU/n/idodmk6fjwwc/b/oraclebucket/o/export_file.dmp logfile=export99.log directory=data_pump_dir <br>Processing object type SCHEMA_EXPORT/USER<br>Processing object type SCHEMA_EXPORT/ROLE_GRANT<br>Processing object type SCHEMA_EXPORT/DEFAULT_ROLE<br>Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA<br>Processing object type SCHEMA_EXPORT/PASSWORD_HISTORY<br>Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA/LOGREP<br>Processing object type SCHEMA_EXPORT/TABLE/TABLE<br>Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA<br>. . imported &quot;MANO&quot;.&quot;EMPLOYEES&quot;                           17.1 KB     107 rows<br>. . imported &quot;MANO&quot;.&quot;LOCATIONS&quot;                            8.4 KB      23 rows<br>. . imported &quot;MANO&quot;.&quot;JOBS&quot;                                 7.1 KB      19 rows<br>Processing object type SCHEMA_EXPORT/TABLE/STATISTICS/TABLE_STATISTICS<br>Processing object type SCHEMA_EXPORT/POST_SCHEMA/PROCACT_SCHEMA/LBAC_EXP<br>Job &quot;ADMIN&quot;.&quot;SYS_IMPORT_SCHEMA_01&quot; successfully completed at Wed Sep 18 16:46:43 2024 elapsed 0 00:00:11</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f358e22e3c02" width="1" height="1" alt=""><hr><p><a href="https://blog.searce.com/migrating-to-oracle-autonomous-database-oracle-cloud-part-3-f358e22e3c02">Migrating To Oracle Autonomous Database @Oracle Cloud | Part -3</a> was originally published in <a href="https://blog.searce.com/">Searce</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction To Oracle Autonomous Database on GCP || Part 2 of 3]]></title>
            <link>https://blog.searce.com/introduction-to-oracle-autonomous-database-on-gcp-part-2-of-3-cd73adfd7926?source=rss-3c591250a4e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd73adfd7926</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[oci]]></category>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[migration]]></category>
            <dc:creator><![CDATA[Manoranjan Pradhan]]></dc:creator>
            <pubDate>Fri, 29 Nov 2024 12:03:19 GMT</pubDate>
            <atom:updated>2024-11-29T12:03:19.683Z</atom:updated>
            <content:encoded><![CDATA[<p>Oracle Autonomous Database (ADB) is a revolutionary cloud-based database service that offers self-driving capabilities, eliminating the need for manual administration. If you’re considering migrating your database workloads to ADB, this blog will provide valuable insights into the process and benefits.</p><p><strong>Understanding Oracle Autonomous Database :-</strong></p><p>ADB is a fully managed database service that automates tasks like patching, tuning, and backup, allowing database administrators to focus on higher-value activities. It offers a variety of features, including:</p><p><strong>Self-driving:</strong> ADB automatically handles routine database tasks, reducing administrative overhead.<br><strong>Exadata-based:</strong> ADB is built on Exadata, Oracle’s high-performance database machine, ensuring optimal performance.<br><strong>Serverless architecture:</strong> ADB scales automatically to meet your workload demands, eliminating the need for manual provisioning.<br><strong>High availability:</strong> ADB provides built-in high availability and disaster recovery features.</p><p><strong>Type Of Autonomous Database Workload:-</strong></p><p>Autonomous Database supports various workload types, including Data Warehouse, Transaction Processing, JSON Database, and APEX Service. Each workload type offers performance enhancements and specialized features tailored to optimize operations for its specific use case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Auam64Kd88MMIl-yc2SNQ.jpeg" /></figure><p><strong>i) Autonomous Data Warehouse :- <br></strong>Autonomous Database is built model as a “load and go” service: simply start the service, design your tables, load data, and begin running queries.</p><p>It supports all standard SQL and business intelligence (BI) tools, delivering the full performance of the market-leading Oracle Database in an environment specifically optimized and tuned for data warehouse workloads.</p><p><strong>ii) Oracle Autonomous Transaction Processing :- <br></strong>Autonomous Database is designed to support all standard business applications while delivering scalable query performance.</p><p>It offers the full power of the market-leading Oracle Database, optimized to meet the needs of various applications such as mission-critical transaction processing, mixed transactions and analytics, IoT, and JSON document storage.</p><p><strong>iii) Autonomous JSON Database :- <br></strong>Oracle Autonomous JSON Database is a variant of Oracle Autonomous Transaction Processing, tailored for building NoSQL-style applications using JavaScript Object Notation (JSON) documents. You can upgrade an Autonomous JSON Database service to an Autonomous Transaction Processing service.</p><p>Autonomous JSON Database offers all the features of Autonomous Transaction Processing, with one key restriction: non-JSON data is limited to 20 GB, while JSON document collections have no storage limit.</p><p><strong>iv) Autonomous APEX Database :- <br></strong>Oracle APEX Application Development (APEX Service) is an affordable Oracle Cloud offering that provides easy access to the Oracle APEX platform for quickly building and deploying low-code applications. APEX Service is designed and optimized to support all standard business applications while delivering scalable query performance.</p><p><strong>Benefits of Migrating to Oracle Autonomous Database:-</strong></p><p><strong>Reduced administrative overhead:</strong> ADB automates many routine tasks, freeing up your DBA team to focus on strategic initiatives.<br><strong>Improved performance:</strong> ADB’s Exadata-based architecture delivers exceptional performance and scalability.<br><strong>Lower costs:</strong> ADB’s serverless architecture can help you optimize your database costs by only paying for the resources you use.<br><strong>Enhanced security:</strong> ADB offers built-in security features to protect your data.<br><strong>Faster time to market:</strong> ADB’s rapid provisioning and automation capabilities can help you accelerate your application development and deployment.</p><p><strong>Migration Process:-</strong></p><p><strong>Assessment:</strong> Evaluate your current database environment to identify potential migration challenges and benefits.<br><strong>Planning:</strong> Develop a migration plan, including timelines, resources, and risk assessment.<br><strong>Data Migration:</strong> Transfer your data from your existing database to ADB using tools like Oracle Data Pump.<br><strong>Application Testing:</strong> Test your applications on ADB to ensure compatibility and performance.<br><strong>Cutover:</strong> Switch your production traffic to ADB.</p><p><strong>Conclusion:</strong></p><p>Migrating to Oracle Autonomous Database (ADB) on Google Cloud offers businesses a powerful, self-managing database solution that enhances performance, reduces costs, and frees up valuable administrative resources. With its wide range of workload support — including Data Warehouse, Transaction Processing, JSON Database, and APEX Service — ADB provides flexibility and scalability for diverse business needs. By automating routine tasks, improving security, and offering rapid provisioning, ADB empowers organizations to accelerate innovation and focus on strategic initiatives. As you plan your migration, the streamlined process ensures a smooth transition, helping your business achieve greater efficiency and faster time to market.</p><p>Please follow below links for part 1 and 3</p><ol><li>Oracle Database on GCP: A New Era of Multicloud || Part 1 of 3 <a href="https://medium.com/@manoranjan.pradhan/oracle-database-on-gcp-a-new-era-of-multicloud-part-1-of-3-437b8c99742e">https://medium.com/@manoranjan.pradhan/oracle-database-on-gcp-a-new-era-of-multicloud-part-1-of-3-437b8c99742e</a></li><li>Migrating To Oracle Autonomous Database on GCP || Part -3 <a href="https://medium.com/@manoranjan.pradhan/migrating-to-oracle-autonomous-database-on-gcp-part-3-be848dfec17c">https://medium.com/@manoranjan.pradhan/migrating-to-oracle-autonomous-database-on-gcp-part-3-be848dfec17c</a></li></ol><p><strong>Reference :-</strong></p><ol><li><a href="https://docs.oracle.com/en-us/iaas/autonomous-database-serverless/doc/autonomous-database-load-data-from-gcp.html#GUID-707CE038-8410-4338-8970-E750BDEAFFBE">https://docs.oracle.com/en-us/iaas/autonomous-database-serverless/doc/autonomous-database-load-data-from-gcp.html#GUID-707CE038-8410-4338-8970-E750BDEAFFBE</a></li></ol><p>2. <a href="https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-intro-adb.html">https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-intro-adb.html</a></p><p>3. <a href="https://cloud.google.com/storage/docs/authentication/managing-hmackeys#create">https://cloud.google.com/storage/docs/authentication/managing-hmackeys#create</a></p><p>4. <a href="https://docs.oracle.com/en-us/iaas/autonomous-database-serverless/doc/autonomous-database-load-data-from-gcp.html#ADBSB-GUID-BC9D822C-0AD7-4F9E-84C1-E6C829893619">https://docs.oracle.com/en-us/iaas/autonomous-database-serverless/doc/autonomous-database-load-data-from-gcp.html#ADBSB-GUID-BC9D822C-0AD7-4F9E-84C1-E6C829893619</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd73adfd7926" width="1" height="1" alt=""><hr><p><a href="https://blog.searce.com/introduction-to-oracle-autonomous-database-on-gcp-part-2-of-3-cd73adfd7926">Introduction To Oracle Autonomous Database on GCP || Part 2 of 3</a> was originally published in <a href="https://blog.searce.com/">Searce</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Oracle Database on GCP: A New Era of Multicloud || Part 1 of 3]]></title>
            <link>https://blog.searce.com/oracle-database-on-gcp-a-new-era-of-multicloud-part-1-of-3-437b8c99742e?source=rss-3c591250a4e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/437b8c99742e</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[oci]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[migration]]></category>
            <dc:creator><![CDATA[Manoranjan Pradhan]]></dc:creator>
            <pubDate>Fri, 29 Nov 2024 12:02:52 GMT</pubDate>
            <atom:updated>2024-11-29T12:02:52.920Z</atom:updated>
            <content:encoded><![CDATA[<p>Oracle Database services are now available directly within Google Cloud datacenters, offering seamless deployment and integration. Multicloud partnership helps customers simplify cloud migration and innovate faster with services like Vertex AI and Oracle Database 23ai.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/982/1*XEaQHCfZ2DNE40YHKQTAtQ.jpeg" /></figure><p>Recently Oracle and Google Cloud have announced that Oracle Database@Google Cloud is now generally available in four Google Cloud regions in the U.S. and Europe. Customers can now utilize Oracle Exadata Database Service, Oracle Autonomous Database, and Oracle Database Zero Data Loss Autonomous Recovery Service on Oracle Cloud Infrastructure (OCI) within Google Cloud data centers located in U.S. East (Ashburn), U.S. West (Salt Lake City), U.K. South (London), and Germany Central (Frankfurt). This service will be rolled out to additional regions in North America, Europe, the Middle East, Africa, Asia Pacific, and Latin America over the coming months.</p><p>With the launch of Oracle Database@Google Cloud, customers now have direct access to Oracle Database services running on OCI within Google Cloud data centers for the first time. This enables them to leverage Oracle’s cutting-edge database and Exadata technology to drive innovation and create new applications. Additionally, Oracle Linux is now supported on Google Cloud, allowing customers to run applications on this platform. Oracle Linux images can be imported using Google Cloud’s virtual disk image import process, and in the coming year, customers will also have streamlined image provisioning with ready-to-use Oracle Linux images on Google Compute Engine. Furthermore, by integrating Google Cloud’s advanced generative AI tools, such as Vertex AI and Gemini foundation models, with Oracle Database 23ai, customers can unify their cloud operations and gain faster insights while ensuring feature and pricing consistency with OCI.</p><p>Oracle and Google Cloud have advanced their multicloud strategy through this partnership, allowing customers to leverage the automation of Oracle Autonomous Database and the performance of Exadata on OCI within Google data centers. This integration enables customers to merge data from Oracle databases with Google Cloud services such as Gemini foundation models and the Vertex AI development platform, facilitating the creation and deployment of next-generation cloud-native applications. Ultimately, Oracle and Google Cloud’s shared customers benefit the most from this multicloud approach, enjoying a unified environment with enhanced simplicity, security, and low latency.</p><p>Oracle Database@Google Cloud allows customers to easily build new cloud applications with the leading Oracle Database or migrate their current Oracle databases and applications to OCI within Google Cloud, simplifying cloud purchasing and management. For instance, customers can acquire Oracle Database services through their existing Google Cloud commitments and utilize their current Oracle license benefits, including Bring Your Own License (BYOL) and Oracle Support Rewards. Services such as Oracle Exadata Database Service, Oracle Autonomous Database, and Oracle Database Zero Data Loss Autonomous Recovery Service are available with custom quotes through private offers. Additionally, Oracle Autonomous Database can be accessed with usage-based pricing, offering customers the flexibility to deploy a fully managed database in just minutes.<br>Oracle Database@Google Cloud is crafted to accelerate customers’ cloud transitions and streamline the management of Oracle databases and mission-critical applications. This includes transaction processing for order management, data warehousing and analytics for supply chain management, and real-time transaction processing in financial services. Key benefits for customers include:</p><p><strong>Simplified Deployment and Consolidation: </strong>Seamless integration with existing on-premises Oracle Database and Oracle Exadata environments.</p><p><strong>Unified Operating Environment:</strong> Experience the streamlined benefits of a unified Google Cloud environment for deploying a variety of OCI database services. This includes options like Oracle Exadata Database Service on Dedicated Infrastructure, Oracle Autonomous Database, Oracle Exadata Database Service on Exascale Infrastructure, Heatwave MySQL, Oracle Database Zero Data Loss Autonomous Recovery Service, and OCI Goldengate. Enjoy enhanced security, reduced latency, and simplified management within this cohesive platform.</p><p><strong>Native Integration:</strong> Direct integration with Google Cloud’s console, APIs, monitoring, and operations.</p><p><strong>Streamlined Purchasing and Contracting: </strong>Simplified acquisition through Google Cloud Marketplace, allowing customers to use existing Google Cloud commitments for Oracle Database services.</p><p><strong>Unified Customer Experience:</strong> Integrated support from both Google Cloud and Oracle.</p><p><strong>Advanced Integrations:</strong> Connections between OCI, Oracle Database, and Google Cloud services like Gemini foundation models, Vertex AI, BigQuery, and Looker, enabling organizations to achieve significant advancements and accelerate insights.</p><p><strong>High-Speed Connectivity:</strong> Private, high-speed connectivity to OCI through Oracle Interconnect for Google Cloud, facilitating data and application integration.</p><p><strong>Benefits to Help you transform your business :- <br>1. Accelerate innovation with the combined strengths of Google and Oracle:- </strong><br>Google Cloud’s expertise in data and AI enhances Oracle’s strengths in database management. Data is a key competitive asset, and we’re simplifying the process of integrating Google Cloud’s cutting-edge data and AI capabilities with your Oracle data. Picture using Vertex AI, Google Cloud’s AI and ML platform, Gemini foundation models, or Oracle Database Vector Search to extract meaningful insights from your Oracle data. You can also harness BigQuery and Looker to reveal insights that fuel innovation and drive operational efficiency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*mkxqf54VTpFvrGZHbdkwnA.jpeg" /></figure><p><strong>2. Migrate and Enhance Oracle Databases and Applications in the Cloud</strong> :-<br>Speed up your Oracle database migration and streamline the management of mission-critical database applications with Oracle Database@Google Cloud. Leverage Google Cloud’s unique infrastructure, powered by Google Kubernetes Engine and Compute Engine, to enhance application performance, platform reliability, and security. Enjoy the same exceptional Oracle database performance, security, and availability as offered in Oracle Cloud Infrastructure, now within Google Cloud.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/962/1*vFi_iYmx5sJihshTLMYdXw.jpeg" /></figure><p><strong>3. Streamline operations with a unified multicloud experience:- <br></strong>Utilize a streamlined purchasing and contracting experience through Google Cloud Marketplace to acquire Oracle database services using your existing Google Cloud commitments while maximizing your Oracle license benefits. Seamless integration with Google Cloud console, APIs, monitoring, and operations, along with a unified experience for purchasing, billing, and collaborative support, simplifies your operations and allows you to focus on innovation and driving your business forward.</p><p><strong>Conclusion:</strong></p><p>The partnership between Oracle and Google Cloud marks a significant milestone in the evolution of multicloud solutions, empowering businesses to innovate and manage critical applications with greater efficiency and flexibility. Oracle Database@Google Cloud seamlessly combines the strengths of both platforms, enabling faster cloud adoption, enhanced performance, and simplified operations. By integrating advanced AI tools and offering streamlined purchasing options, this collaboration equips organizations to unlock the full potential of their data and drive transformative business outcomes. As this service expands to new regions, the future of multicloud computing promises even greater opportunities for growth and innovation.</p><p>Please follow below links for part 2 and 3</p><ol><li>Introduction To Oracle Autonomous Database on GCP || Part 2 of 3 <a href="https://medium.com/@manoranjan.pradhan/introduction-to-oracle-autonomous-database-on-gcp-part-2-of-3-cd73adfd7926">https://medium.com/@manoranjan.pradhan/introduction-to-oracle-autonomous-database-on-gcp-part-2-of-3-cd73adfd7926</a></li><li>Migrating To Oracle Autonomous Database on GCP || Part -3 <a href="https://medium.com/@manoranjan.pradhan/migrating-to-oracle-autonomous-database-on-gcp-part-3-be848dfec17c">https://medium.com/@manoranjan.pradhan/migrating-to-oracle-autonomous-database-on-gcp-part-3-be848dfec17c</a></li></ol><p><strong>Reference :-</strong></p><ol><li><a href="https://docs.oracle.com/en-us/iaas/autonomous-database-serverless/doc/autonomous-database-load-data-from-gcp.html#GUID-707CE038-8410-4338-8970-E750BDEAFFBE">https://docs.oracle.com/en-us/iaas/autonomous-database-serverless/doc/autonomous-database-load-data-from-gcp.html#GUID-707CE038-8410-4338-8970-E750BDEAFFBE</a></li></ol><p>2. <a href="https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-intro-adb.html">https://docs.oracle.com/en/cloud/paas/autonomous-database/serverless/adbsb/autonomous-intro-adb.html</a></p><p>3. <a href="https://cloud.google.com/storage/docs/authentication/managing-hmackeys#create">https://cloud.google.com/storage/docs/authentication/managing-hmackeys#create</a></p><p>4. <a href="https://docs.oracle.com/en-us/iaas/autonomous-database-serverless/doc/autonomous-database-load-data-from-gcp.html#ADBSB-GUID-BC9D822C-0AD7-4F9E-84C1-E6C829893619">https://docs.oracle.com/en-us/iaas/autonomous-database-serverless/doc/autonomous-database-load-data-from-gcp.html#ADBSB-GUID-BC9D822C-0AD7-4F9E-84C1-E6C829893619</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=437b8c99742e" width="1" height="1" alt=""><hr><p><a href="https://blog.searce.com/oracle-database-on-gcp-a-new-era-of-multicloud-part-1-of-3-437b8c99742e">Oracle Database on GCP: A New Era of Multicloud || Part 1 of 3</a> was originally published in <a href="https://blog.searce.com/">Searce</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Striim | Challeneges During SQL server Migration Using Striim -Part 3 of 3]]></title>
            <link>https://blog.searce.com/striim-challeneges-during-sql-server-migration-using-striim-part-3-of-3-fd5cb79591c?source=rss-3c591250a4e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd5cb79591c</guid>
            <category><![CDATA[dba]]></category>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[striim]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[sql-server]]></category>
            <dc:creator><![CDATA[Manoranjan Pradhan]]></dc:creator>
            <pubDate>Mon, 27 Nov 2023 06:43:42 GMT</pubDate>
            <atom:updated>2023-11-27T06:43:42.009Z</atom:updated>
            <content:encoded><![CDATA[<p>Migrating from Azure SQL Server to Cloud SQL Server can be a complex process, and various issues may arise during the migration. Here are some noticeable issues that we faced during migration</p><ol><li>Striim Tool Version Issue.</li><li>Schema Conversion Utility Issue .</li><li>Geography data type not supported .</li><li>Ntext data type not supported .</li><li>CDC does not work during migration.</li><li>Inadequate documentation available in public domain .</li><li>High Resource Utilization by Striim .</li></ol><h3>1. Striim Tool Version Issue :-</h3><p>With Striim tool version 4.1.2, we are not able to see the Application progress details, which causes a lot of issues for real-time monitoring. So we downgraded to Striim Version 4.1.0.4.</p><h3>2. Schema Conversion Utility Issue :-</h3><p>We faced issues with the schema conversion utility, so instead of using the utility, we prefer to go with the native SQL Server method to take the structure or schema backup from the source database.</p><h3>3. Geography data type not supported :-</h3><p>During migration, we faced a Geography data type issue (which is a limitation from Striim) as one of the tables had a column geography data type. To overcome the issue, we changed the column datatype to bit.</p><h3>4. ntext data type Issue:-</h3><p>During migration, we had faced a ntext data type issu as one of the table having column ntext data type . To overcome the issue we change the column datatype to nvarchar .</p><h3>5. Change Data Capture does not work during migration :-</h3><p>During migration, the CDC (change data capture) did not work for the SQL server database, so we entirely followed the initial load option and migrated the entire database with complete downtime.</p><h3>6. Inadequate documentation available in the public domain :-</h3><p>During migration activity, we faced a lot of issues regarding initial setup, syntax and how to add exceptions because of insufficient document availability in the public domain. On many occasions, we connect with the Striim team with a support ticket, which causes a delay in our timeline.</p><h3>7. High Resource Utilization by Striim :-</h3><p>Striim does support data validation during data migration, but using this option will consume a lot of memory on striim VM which will cause the Striim service to be crashed, so if you plan to use this option, plan resources accordingly.</p><h3>Conclusion :-</h3><p>Although the Striim tool helps you to do complex migrations on many occasions, it is still recommended to carefully evaluate your organisation’s specific needs and requirements before adopting any technology tool, including Striim. Conducting thorough testing and understanding the limitations can help you plan properly for a successful migration.</p><p><strong>Please follow below links for part 1 and 2</strong></p><ol><li>Striim | Fundamentals Of Striim -Part 1 of 3 <a href="https://medium.com/@manoranjan.pradhan/striim-fundamentals-of-striim-part-1-of-3-800f36555409">https://medium.com/@manoranjan.pradhan/striim-fundamentals-of-striim-part-1-of-3-800f36555409</a></li><li>Striim | Migrate Azure MSSQL to GCP Cloud SQL (MSSQL) using Striim -Part 2 of 3 <a href="https://medium.com/@manoranjan.pradhan/striim-migrate-azure-mssql-to-gcp-cloud-sql-mssql-using-striim-part-2-of-3-edacc5a2e71f">https://medium.com/@manoranjan.pradhan/striim-migrate-azure-mssql-to-gcp-cloud-sql-mssql-using-striim-part-2-of-3-edacc5a2e71f</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd5cb79591c" width="1" height="1" alt=""><hr><p><a href="https://blog.searce.com/striim-challeneges-during-sql-server-migration-using-striim-part-3-of-3-fd5cb79591c">Striim | Challeneges During SQL server Migration Using Striim -Part 3 of 3</a> was originally published in <a href="https://blog.searce.com/">Searce</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Striim | Migrate Azure MSSQL to GCP Cloud SQL (MSSQL) using Striim -Part 2 of 3]]></title>
            <link>https://blog.searce.com/striim-migrate-azure-mssql-to-gcp-cloud-sql-mssql-using-striim-part-2-of-3-edacc5a2e71f?source=rss-3c591250a4e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/edacc5a2e71f</guid>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[striim]]></category>
            <category><![CDATA[dba]]></category>
            <category><![CDATA[sql-server]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Manoranjan Pradhan]]></dc:creator>
            <pubDate>Mon, 27 Nov 2023 06:43:26 GMT</pubDate>
            <atom:updated>2023-11-27T06:43:26.146Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Introduction :-</strong></p><p>As businesses continue to embrace cloud computing, the need for efficient and seamless database migration processes becomes crucial. In this blog post, we will explore the migration of Azure MSSQL Server to Cloud SQL(MSSQL) using striim, a powerful data integration and streaming analytics platform. We will discuss the benefits of using Striim and provide a step-by-step guide to help you successfully migrate your database from Azure to GCP .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Q1UEXLiURUDJW7QD" /><figcaption>Architecture</figcaption></figure><p>1 . Understanding Striim:</p><p>Striim is a real-time data integration platform designed to facilitate data movement across various environments. It enables organizations to extract, transform, and load (ETL) data in real-time, making it an ideal tool for database migration projects. Striim offers a user-friendly interface, robust data validation capabilities, and comprehensive monitoring features, ensuring a smooth and reliable migration process.</p><p>2. There are several reasons why organizations opt to migrate their databases from Azure MSSQL to Cloud SQL (MSSQL). These benefits include:</p><p>i) Cost Optimisation: Cloud SQL offers competitive pricing models, allowing businesses to reduce their infrastructure costs.</p><p>ii) Scalability: Cloud SQL provides automatic scaling capabilities, ensuring that your database can handle increasing workloads without performance degradation.</p><p>iii) High Availability: Cloud SQL offers built-in replication and failover mechanisms, ensuring high availability of your database.</p><p>iv) Seamless Integration: By migrating to Cloud SQL, you can leverage other Google Cloud services and integrate them into your applications.</p><p>3. Preparing for Migration:</p><p>Before initiating the migration process, it’s essential to perform the following steps:</p><p>i) Assess your database and identify any potential issues or dependencies.</p><p>ii) Plan your migration strategy, considering factors such as downtime tolerance, data transfer speed, and security requirements.</p><p>iii) Set up a Cloud SQL instance, ensuring that it meets your desired configuration and performance requirements.</p><p><strong>Striim Installation : -</strong></p><p>A Striim license. For free trials, visit <a href="https://go2.striim.com/free-trial.">https://go2.striim.com/free-trial.</a> You can choose between Striim Platform and Striim Cloud. For more information about Striim’s partnership with Google, AWS, and Azure, please contact partners@striim.com.</p><p>1.Connect to your VM and install Git by running this command:</p><p>i) CentOS, Amazon Linux 2, and RedHat:</p><pre>sudo yum update -y<br>sudo yum install git -y</pre><p>ii) For Ubuntu, and Debian:</p><pre>sudo apt-get update -y<br>sudo apt-get install git-all -y</pre><p>2. Change to root user by running this command:</p><pre>sudo su -</pre><p>3. Export your license key, product key, company name, total memory, and cluster name as environment variables to configure Striim</p><p>For Example :-</p><pre>export company_name=Striim<br>export licence_key=12345676<br>export product_key=12345566<br>export total_memory=16<br>export cluster_name=Striim_cluster<br>export striim_version=4.1.0.4</pre><p>Note: “striim_version=4.1.0.4” This is an optional environment variable and it is only needed if you want to install a previous version of Striim. If it is not set, the script will install the latest version of Striim.</p><p>4. Clone this repository in the home directory:</p><pre>git clone <a href="https://github.com/schowStriim/striim-installs.git">https://github.com/schowStriim/striim-installs.git</a></pre><p>5.Change directory to striim-installs/install/.</p><pre>cd striim-installs/install/.</pre><p>6. Execute striim-install.sh script:</p><pre>./striim-install.sh</pre><p>7. After the script execution it installs Java and Striim, it will show a prompt for you to set your KeyStore, sys and admin user password.</p><p>Note: You will login to Striim console with the admin credentials you entered in this step.</p><p>8. Select ‘1’ or ‘Derby’ when it asks you to enter the MDR Types.</p><p>9. Wait until you get an output message like the following: Please go to <a href="http://10.1.2.3.4:9080">http://10.1.2.34:9080</a> or <a href="https://10.1.2.3.4:9081">https://10.1.2.34:9081</a> to administer, or use console</p><p>10. Grab your instance public IP and type the following to your browser: :9080</p><h4>Steps to Stop and Start the Striim From Command Prompt :-</h4><p>i) Stop the Striim from command prompt :<br> export striim variable -</p><pre>export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_341<br>export PATH=$JAVA_HOME/bin:$PATH</pre><p>Note:- path and java version can be vary in your setup.</p><p>Stop the Striim -</p><pre>systemctl stop  striim-node<br>systemctl stop  striim-dbms</pre><p>ii) Start the Striim from command prompt -</p><pre>systemctl start striim-dbms<br>systemctl start striim-node</pre><p>iii) Check Status :-</p><pre>systemctl status striim-node<br>systemctl status striim-dbms</pre><p>iv) You can check by run “server.sh” it will give additional details like below screenshot .</p><pre>cd /opt/striim/bin/<br>./server.sh</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fhN0WeSppqc64fU8aZu5Ww.png" /></figure><p><strong>Steps To Setup Cloud SQL (MSSQL) Instance :-</strong></p><p>1. In the Google Cloud console, go to the Cloud SQL Instances page<br><a href="https://console.cloud.google.com/sql">Go to Cloud SQL Instances</a></p><p>2. Click Create Instance</p><p>3.Click Choose SQL Server.</p><p>4. In the Instance ID field of the Instance info pane, enter an ID for your instance.</p><p>5. Enter a password for the user.</p><p>6. Select the database version for your instance. To see the available versions, click the drop-down arrow.</p><p>7. In the Choose region and zonal availability section, select the region and zone for your instance.</p><p>Place your instance in the same region as the resources that access it. The region you select can’t be modified in the future. In most cases, you don’t need to specify a zone.</p><p>8. In the Customize your instance section, update the <a href="https://cloud.google.com/sql/docs/sqlserver/instance-settings">settings for your instance</a>. For example, you can <a href="https://cloud.google.com/sql/docs/sqlserver/deletion-protection">prevent accidental instance deletion</a>.</p><p>9. Click Create.</p><p>10. After the initialization process of the instance completes, click the instance name to open it.</p><p><strong>Pre-requisite :-</strong></p><ol><li>Create Striim user with necessary permissions .</li></ol><p>For example, to enable change data capture on the database mydb, create a user striim, and give that user the db_owner role on mydb:</p><pre>USE mydb<br>EXEC sys.sp_cdc_enable_db<br>CREATE LOGIN striim WITH PASSWORD = &#39;passwd&#39; <br>CREATE USER striim FOR LOGIN striim<br>EXEC sp_addrolemember @rolename=db_owner, @membername=striim</pre><pre>GRANT CONTROL ON DATABASE::mydb TO Striim;</pre><p>We will perform below steps for migration</p><p>1. Take the structure/schema backup from Source database.</p><p>2. Disable all the Foreign Key constraints &amp; Triggers in the target database .</p><p>3. Take the LSN no from Source DB</p><p>4. Run the initial Load application.</p><p>5. Create a checkpoint table on the target database .</p><p>6. Enable all Fk constraint in target database.</p><p>7. Update the LSN no and start the application for CDC.</p><p>8. Enable Trigger after cutover</p><p>1. <strong>Take the structure/Schema backup from Source database :-</strong></p><p>With the help of SSMS you can take the structural backup from the source database and restore the backup in target database (in blank db ).</p><p>2.<strong>Disable all the Foreign Key constraints &amp; Triggers in the target database :</strong> -</p><p>i) Disable Foreign key :</p><pre>EXEC sp_MSforeachtable &quot;ALTER TABLE ? NOCHECK CONSTRAINT all&quot;</pre><p>Check the Status :</p><pre>select <br>     [Table]     = o2.name, <br>     [Constraint] = o.name, <br>     [Enabled]   = case when ((C.Status &amp; 0x4000)) = 0 then 1 else 0 end<br>from sys.sysconstraints C<br>     inner join sys.sysobjects o on  o.id = c.constid -- and o.xtype=&#39;F&#39;<br>     inner join sys.sysobjects o2 on o2.id = o.parent_obj;</pre><p>ii) Disable Trigger :</p><pre>DISABLE TRIGGER ALL ON DATABASE;</pre><pre>sp_msforeachtable &#39;ALTER TABLE ? DISABLE TRIGGER all&#39;</pre><p>3. <strong>Take the LSN no from Source DB :-</strong></p><pre>SELECT sys.fn_cdc_get_max_lsn()AS max_lsn;</pre><p>4. <strong>Run the initial Load (I will provide a sample script for initial load &amp; for CDC application later in this blog ) once initial load completed you can stop the application and then go for CDC run but before that follow below steps .</strong></p><p><strong>5. Create a checkpoint table on the target database : -</strong></p><pre>CREATE TABLE dbo.CHKPOINT (<br>id NVARCHAR(100) PRIMARY KEY,<br>sourceposition VARBINARY(MAX), <br>pendingddl BIT, <br>ddl VARCHAR(MAX));</pre><p>6.<strong>Enable all Foreign key constraint in target database :-</strong></p><pre>Enable FK :-<br>exec sp_MSforeachtable @command1=&quot;print &#39;?&#39;&quot;, @command2=&quot;ALTER TABLE ? WITH CHECK CHECK CONSTRAINT all&quot;</pre><p>7. <strong>Update the LSN no and start the CDC application : -</strong></p><p>Update the LSN no in CDC application captured in step -3 .</p><p>8. <strong>Enable all the triggers post cutover activity :-</strong></p><pre>Enable Trigger Command :-<br>ENABLE TRIGGER ALL ON DATABASE;<br>sp_msforeachtable &#39;ALTER TABLE ? ENABLE TRIGGER all&#39;</pre><h4>Sample initial Load Application :-</h4><pre>CREATE OR REPLACE APPLICATION Initial_load_Batch_dev;</pre><pre>CREATE OR REPLACE SOURCE SQL_server_dev USING Global.DatabaseReader ( <br>  ConnectionURL: &#39;jdbc:sqlserver://hiring.database.windows.net:1433;DatabaseName=DevDB&#39;, <br>  QuiesceOnILCompletion: true, <br>  adapterName: &#39;DatabaseReader&#39;, <br>  Password: &#39;******************&#39;, <br>  FetchSize: 10000, <br>  Password_encrypted: &#39;false&#39;, <br>  DatabaseProviderType: &#39;SQLServer&#39;, <br>  Tables: &#39;DevDB.dbo.% ;DevDB.Reports.%&#39;, <br>  Username: &#39;striim&#39; ) <br>OUTPUT TO SQL_server_dev_output;</pre><pre>CREATE OR REPLACE TARGET CloudSQL USING Global.DatabaseWriter ( <br>  ConnectionRetryPolicy: &#39;retryInterval=30, maxRetries=3&#39;, <br>  ConnectionURL: &#39;jdbc:sqlserver://172.12.*.*:1433;DatabaseName=DevDB&#39;, <br>  ParallelThreads: &#39;1&#39;, <br>  BatchPolicy: &#39;EventCount:10000,Interval:60&#39;, <br>  CommitPolicy: &#39;EventCount:10000,Interval:60&#39;, <br>  Tables: &#39;DevDB.dbo.%,dbo.%;DevDB.Reports.%,Reports.% &#39;, <br>  CheckPointTable: &#39;CHKPOINT&#39;, <br>  Password_encrypted: &#39;false&#39;, <br>  CDDLAction: &#39;Process&#39;, <br>  IgnorableExceptionCode: &#39;DUPLICATE_ROW_EXISTS&#39;, <br>  StatementCacheSize: &#39;50&#39;, <br>  DatabaseProviderType: &#39;Default&#39;, <br>  Username: &#39;sqlserver&#39;, <br>  PreserveSourceTransactionBoundary: &#39;false&#39;, <br>  Password: &#39;************************************&#39;, <br>  adapterName: &#39;DatabaseWriter&#39; ) <br>INPUT FROM SQL_server_dev_output;</pre><pre>END APPLICATION Initial_load_Batch_dev;</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nKgRwaQq9pnxZXrq" /></figure><h4>Sample CDC Application :-</h4><pre>CREATE OR REPLACE APPLICATION dev_cdc_final RECOVERY 30 SECOND INTERVAL;</pre><pre>CREATE OR REPLACE SOURCE Sqlserver_read_cdc_final USING Global.MSSqlReader ( <br>  TransactionSupport: false, <br>  PollingInterval: 5, <br>  StartPosition: &#39;LSN:0x000152C4000066900004&#39;, <br>  FetchTransactionMetadata: false, <br>  Compression: false, <br>  connectionRetryPolicy: &#39;timeOut=30, retryInterval=30, maxRetries=3&#39;, <br>  Password_encrypted: &#39;false&#39;, <br>  Tables: &#39;dbo.% ;Reports.%&#39;, <br>  Username: &#39;striim&#39;, <br>  adapterName: &#39;MSSqlReader&#39;, <br>  ConnectionURL: &#39;jdbc:sqlserver://hiring.database.windows.net:1433;DatabaseName=DevDB&#39;, <br>  ConnectionPoolSize: 10, <br>  cdcRoleName: &#39;STRIIM_READER&#39;, <br>  Password: &#39;******************&#39;, <br>  FetchSize: 0, <br>  DatabaseName: &#39;DevDB&#39;, <br>  IntegratedSecurity: false, <br>  FilterTransactionBoundaries: true, <br>  SendBeforeImage: true, <br>  AutoDisableTableCDC: false ) <br>OUTPUT TO final_output;</pre><pre>CREATE OR REPLACE TARGET TGT_FW USING Global.FileWriter ( <br>  flushpolicy: &#39;EventCount:10000,Interval:30s&#39;, <br>  rolloveronddl: &#39;true&#39;, <br>  encryptionpolicy: &#39;&#39;, <br>  adapterName: &#39;FileWriter&#39;, <br>  filename: &#39;Output.json&#39;, <br>  rolloverpolicy: &#39;EventCount:10000,Interval:60s&#39; ) <br>FORMAT USING Global.JSONFormatter  ( <br>  handler: &#39;com.webaction.proc.JSONFormatter&#39;, <br>  jsonMemberDelimiter: &#39;\n&#39;, <br>  EventsAsArrayOfJsonObjects: &#39;true&#39;, <br>  formatterName: &#39;JSONFormatter&#39;, <br>  jsonobjectdelimiter: &#39;\n&#39; ) <br>INPUT FROM final_output;</pre><pre>CREATE OR REPLACE TARGET sqlserver_target_final USING Global.DatabaseWriter ( <br>  ConnectionRetryPolicy: &#39;retryInterval=30, maxRetries=3&#39;, <br>  IgnorableExceptionCode: &#39;NO_OP_UPDATE,547,DUPLICATE_ROW_EXISTS,NO_OP_DELETE&#39;, <br>  CheckPointTable: &#39;dbo.CHKPOINT&#39;, <br>  ConnectionURL: &#39;jdbc:sqlserver://172.12.*.*:1433;DatabaseName=DevDB&#39;, <br>  Password_encrypted: &#39;false&#39;, <br>  Tables: &#39;dbo.%,dbo.%;Reports.%,Reports.%&#39;, <br>  CDDLAction: &#39;Process&#39;, <br>  CommitPolicy: &#39;EventCount:1000,Interval:60&#39;, <br>  StatementCacheSize: &#39;50&#39;, <br>  DatabaseProviderType: &#39;Default&#39;, <br>  Username: &#39;sqlserver&#39;, <br>  BatchPolicy: &#39;EventCount:1000,Interval:60&#39;, <br>  PreserveSourceTransactionBoundary: &#39;false&#39;, <br>  Password: &#39;************************************&#39;, <br>  adapterName: &#39;DatabaseWriter&#39; ) <br>INPUT FROM final_output;</pre><pre>END APPLICATION dev_cdc_final;</pre><p><strong>Conclusion :-</strong></p><p>Migrating your Azure MSSQL database to Cloud SQL (MSSQL) using Striim can be a seamless and efficient process. By following the steps outlined in this blog post, you can take advantage of the benefits offered by Cloud SQL while leveraging Striim’s powerful data integration capabilities. Remember to thoroughly plan and test your migration to ensure a successful outcome and minimal disruption to your business operations.</p><p><strong>Please follow below links for part 1 and 3</strong></p><ol><li>Striim | Fundamentals Of Striim -Part 1 of 3 <a href="https://medium.com/@manoranjan.pradhan/striim-fundamentals-of-striim-part-1-of-3-800f36555409">https://medium.com/@manoranjan.pradhan/striim-fundamentals-of-striim-part-1-of-3-800f36555409</a></li></ol><p>2. Striim | Challeneges During SQL server Migration Using Striim -Part 3 of 3 <a href="https://medium.com/@manoranjan.pradhan/striim-challeneges-during-sql-server-migration-using-striim-part-3-of-3-fd5cb79591c">https://medium.com/@manoranjan.pradhan/striim-challeneges-during-sql-server-migration-using-striim-part-3-of-3-fd5cb79591c</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=edacc5a2e71f" width="1" height="1" alt=""><hr><p><a href="https://blog.searce.com/striim-migrate-azure-mssql-to-gcp-cloud-sql-mssql-using-striim-part-2-of-3-edacc5a2e71f">Striim | Migrate Azure MSSQL to GCP Cloud SQL (MSSQL) using Striim -Part 2 of 3</a> was originally published in <a href="https://blog.searce.com/">Searce</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Striim | Fundamentals Of Striim -Part 1 of 3]]></title>
            <link>https://blog.searce.com/striim-fundamentals-of-striim-part-1-of-3-800f36555409?source=rss-3c591250a4e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/800f36555409</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[dba]]></category>
            <category><![CDATA[migration]]></category>
            <category><![CDATA[striim]]></category>
            <category><![CDATA[gcp]]></category>
            <dc:creator><![CDATA[Manoranjan Pradhan]]></dc:creator>
            <pubDate>Mon, 27 Nov 2023 06:37:02 GMT</pubDate>
            <atom:updated>2023-11-27T06:37:02.442Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QAU7CNQvOx_zZG7z-kO8Dg.jpeg" /></figure><p><strong>What is Striim :-</strong></p><p>In simple terms, Striim is a streaming ETL data platform that allows the user to replicate data with zero or minimum downtime from on-premises or cloud platforms to target systems.</p><p>Striim is a complete, end-to-end, in-memory platform for collecting, filtering, transforming, enriching, aggregating, analysing, and delivering data in real time. Built-in adapters collect data from and deliver it to SQL and no-SQL databases, data warehouses, applications, files, messaging systems, sensors, and more, on your premises or in the cloud. Integrated tools let you visualise live data in dashboards, explore it with SQL-like queries, and trigger alerts of anomalous conditions or security violations.</p><p><strong>Data Sources &amp; Targets for Striim :-</strong></p><p>In a striim application, readers collect data from external sources such as PostgreSQL, MySQL, SQL Server, Oracle, Kafka, Google Cloud Storage, Amazon S3, Azure Storage. Below are a few popular sources for readers .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AJMck9qIbx71jKJ7nf5V3A.png" /><figcaption>Striim Source</figcaption></figure><p>In a striim application, writers send data to external targets such as PostgreSQL, MySQL, SQL Server, Oracle, Kafka, Google BigQuery, Snowflake, Azure Synapse. Below are a few popular sources for writers</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PxNQAhMjEMLseSsNbM7Lww.png" /><figcaption>Striim Target</figcaption></figure><p><strong>Deploy Anywhere Philosophy :-</strong></p><p>We can deploy striim in multiple ways</p><p>i) Self Deploy On Premises:- Download run striim on your on-prem instance</p><p>ii) Self Deploy Cloud :- Download from Google cloud marketplace , Microsoft Azure Marketplace , or AWS marketplace and run striim under your account</p><p>iii) Fully Managed striim Cloud :-Unified Data Integration and Streaming SaaS.</p><p><strong>Striim Console :-</strong></p><p>Striim Console snapshot after installation .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*EKtO9Zl5HwkHqY2l" /><figcaption>Image-Login Page</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-K-56G-z5Dvav1uvKj3How.png" /><figcaption>Image — HomePage</figcaption></figure><p><strong>Striim System users and keystore </strong>:-</p><p>Striim has 2 user accounts ( admin &amp; sys ) created during the striim installation process .</p><p>i) sys :- Sys user authenticates servers and Forwarding Agents when they connect to the Striim cluster. It’s only privileges are Global.serverrole and Global.agentrole. It does not have a namespace in it and can not log in.</p><p>ii) admin :- Admin user has all privileges on all namespaces.</p><p>The sys user and admin user passwords, as well as the metadata repository password, are stored in a Java KeyStore, striim/conf/sks.jks, using AES-256 and BCrypt.</p><p><strong>Advantage of striim :- <br> </strong>Striim is a real-time data integration and streaming analytics platform that offers several advantages for organizations that need to process and analyze large amounts of data in real-time. Some of the key advantages of Striim include:</p><p>i) Real-time data processing.</p><p>ii) Data integration from diverse sources.</p><p>iii) Scalability and high throughput.</p><p>iv) Real-time analytics and insights.</p><p>v) Easy-to-use visual interface.</p><p>vi) Flexibility and extensibility.</p><p>Overall, striim offers a powerful, scalable, and easy-to-use solution for real-time data integration and streaming analytics, providing organizations with the ability to process and analyse data in real-time, gain actionable insights, and make timely decisions to drive business outcomes.</p><p><strong>Disadvantage of striim :-</strong></p><p>Striim is a powerful data integration and streaming analytics platform that is used for real-time data processing and analysis. However, like any technology, it also has some disadvantages, which include:</p><p>i) Complexity: Striim is a sophisticated and feature-rich platform, but it can be complex to set up, configure, and manage.</p><p>ii) Learning curve: While Striim provides comprehensive documentation and support, it still requires users to learn and understand its concepts, terminologies, and processes.</p><p>iii) Cost: Striim is a commercial software product and comes with licensing costs, which can be a disadvantage for budget-conscious organizations or small businesses with limited financial resources.</p><p>iv) Infrastructure requirements: Striim requires a robust and scalable infrastructure to effectively handle large volumes of data and process it in real-time.</p><p>v) Integration limitations: While Striim provides connectors to a wide range of data sources and targets, there may be limitations or gaps in terms of specific integration capabilities. For example, certain proprietary databases or legacy systems may not be fully supported, which can be a disadvantage for organisations with diverse data sources that require complex integration scenarios.</p><p>vi) Maintenance and support: As with any software, Striim requires regular maintenance, upgrades, and support to keep it running smoothly.</p><p>vii) Scalability limitations: While Striim is designed to handle large volumes of data in real-time, there may be scalability limitations depending on the specific use case and requirements.</p><h4>Conclusion :-</h4><p>In conclusion, while Striim offers many benefits for real-time data processing and analytics, it also has certain disadvantages, such as complexity, learning curve, cost, infrastructure requirements, integration limitations, maintenance and support, and scalability limitations, which organisations need to consider when evaluating its suitability for their specific use case.</p><p><strong>Please follow below links for part 2 and 3</strong></p><ol><li>Striim | Migrate Azure MSSQL to GCP Cloud SQL (MSSQL) using Striim -Part 2 of 3 <a href="https://medium.com/@manoranjan.pradhan/striim-migrate-azure-mssql-to-gcp-cloud-sql-mssql-using-striim-part-2-of-3-edacc5a2e71f">https://medium.com/@manoranjan.pradhan/striim-migrate-azure-mssql-to-gcp-cloud-sql-mssql-using-striim-part-2-of-3-edacc5a2e71f</a></li></ol><p>2. Striim | Challeneges During SQL server Migration Using Striim -Part 3 of 3 <a href="https://medium.com/@manoranjan.pradhan/striim-challeneges-during-sql-server-migration-using-striim-part-3-of-3-fd5cb79591c">https://medium.com/@manoranjan.pradhan/striim-challeneges-during-sql-server-migration-using-striim-part-3-of-3-fd5cb79591c</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=800f36555409" width="1" height="1" alt=""><hr><p><a href="https://blog.searce.com/striim-fundamentals-of-striim-part-1-of-3-800f36555409">Striim | Fundamentals Of Striim -Part 1 of 3</a> was originally published in <a href="https://blog.searce.com/">Searce</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Welcome to Kafka World !]]></title>
            <link>https://blog.searce.com/welcome-to-kafka-world-f014bb2071e3?source=rss-3c591250a4e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/f014bb2071e3</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[confluent-kafka]]></category>
            <category><![CDATA[migration]]></category>
            <dc:creator><![CDATA[Manoranjan Pradhan]]></dc:creator>
            <pubDate>Mon, 27 Nov 2023 06:33:35 GMT</pubDate>
            <atom:updated>2023-11-27T06:33:35.488Z</atom:updated>
            <content:encoded><![CDATA[<h3>Welcome to Kafka World !</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JAbUziKszGKnM-MnsublBQ.png" /></figure><h3>Introduction:-</h3><p>Over the last decade , Kafka has been widely adopted by IT industry . Apache Kafka is an open-source distributed event streaming platform used by many IT giants for high performance data pipelines, data integration, streaming analytics and mission critical applications .</p><p>In this article i will explain a very brief introduction to Apache Kafka and different components of Kafka Cluster . If you want to learn more about Kafka migration approach <a href="https://blog.searce.com/migration-approaches-from-amazon-msk-to-gcp-confluent-kafka-f5e445cda324">link</a> &amp; Migrate From Amazon MSK To GCP Marketplace Confluent Kafka Using Confluent Replicator <a href="https://blog.searce.com/migrate-from-amazon-msk-to-gcp-marketplace-confluent-kafka-using-confluent-replicator-8903fbb9c92f">link</a></p><p>i) Kafka Brokers</p><p>ii) Zookeeper</p><p>iii) Kafka Topic</p><p>iv) Producer &amp; Consumer</p><h3>Producer &amp; Consumer :-</h3><p><strong>Producer</strong> :- Writes message to the Kafka Cluster .</p><p><strong>Consumer</strong> :- Reads Message from the Kafka Cluster .</p><p>For this demonstration i am using an Ubuntu 20.04 server where i will install Apache Kafka and demonstrate all the steps mentioned in this article.</p><p><strong>STEP 1: Downloading and Extracting Kafka Binaries</strong></p><p><strong>i) Install java — Java Runtime Environment is required in-order to start Apache Kafka .</strong></p><pre>apt-get install openjdk-8-jdk</pre><p>Once java installation completed you can verify with below command</p><pre>java -version</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0T2AicI-Zro8bYIudCjUrA.png" /><figcaption><strong>Image 1</strong></figcaption></figure><p><strong>ii) Downloading &amp; Extracting Kafka Binaries</strong></p><p>Downloading Kafka binaries in /opt location</p><p>Note :- Kafka version can be vary with your requirement you can try with latest version .</p><pre>wget <a href="https://downloads.apache.org/kafka/3.3.1/kafka_2.13-3.3.1.tgz">https://downloads.apache.org/kafka/3.3.1/kafka_2.13-3.3.1.tgz</a></pre><p><strong>iii) Extracting Kafka Binaries</strong></p><pre>tar -xzf  kafka_2.13-3.3.1.tgz</pre><p><strong>iv ) Contents Of Installation Directory</strong></p><p>cd /opt/kafka_2.13–3.3.1</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DX7p_Y6mJFuLI2S-IZ5BLw.png" /><figcaption><strong>Image 2</strong></figcaption></figure><p>bin :- Bin directory contains executables files . In order to start/run specific service of Kafka you need to run specific script which are present in this location</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BVbmfig62sEzoXprtSdqKw.png" /><figcaption><strong>Image 3 : Bin Directory</strong></figcaption></figure><p>config :-This directory contains .properties file .These files are default configurations for specific services that can be start with executables file present in bin directory .</p><p>zookeeper.properties :- To launch zookeeper service .</p><p>server.properties :- To start Kafka server or broker service .</p><p>producer.properties :- To start producer service .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9VK8Z2vpoU_arM2EkrkK2A.png" /><figcaption><strong>Image 4 : Config Directory</strong></figcaption></figure><p><strong>STEP 2: Start Zookeeper</strong></p><p><strong>Zookeeper is mandatory service in the Kafka cluster , broker will not start if zookeeper is unavailable .</strong></p><p>cd /opt/kafka_2.13–3.3.1</p><pre>bin/zookeeper-server-start.sh config/zookeeper.properties</pre><p>Once the zookeeper service started successfully you can able to see logs like this .The zookeeper service binds with port 2181</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_Llx3REkWCmLC6Af2_OgIw.jpeg" /><figcaption><strong>Image 5</strong></figcaption></figure><p>To check if Zookeeper service is accessible.</p><p>telnet &lt;hostname&gt; port</p><pre>telnet kafka-poc 2181</pre><p><strong>STEP 3: Start Kafka Broker</strong></p><pre>bin/kafka-server-start.sh config/server.properties</pre><p>Once the Kafka broker started successfully you can see kafka broker bind with port 9092</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Acp6RTOsxuLHFqRMU7SPpw.jpeg" /><figcaption><strong>Image 6</strong></figcaption></figure><p>Also you can check log file in logs directory present in installation location (check in server.log file )</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k5SN6GiucfHHxv3F1MhvZg.png" /><figcaption><strong>Image 6 : Log Directory</strong></figcaption></figure><p><strong>STEP 4: CREATING KAFKA TOPIC</strong></p><p>Lets create 2 Topic in Kafka Cluster</p><pre>bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --topic states</pre><pre>bin/kafka-topics.sh --create --bootstrap-server localhost:9092 --topic topic1</pre><p><strong>STEP 5: LIST THE TOPIC</strong></p><p>To list the created topic</p><pre>bin/kafka-topics.sh --list --bootstrap-server  localhost:9092</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*84exjZDl1DzNM3pwlFRZ0Q.png" /><figcaption><strong>Image 7</strong></figcaption></figure><p><strong>STEP 6: DESCRIBE THE TOPIC</strong></p><pre>bin/kafka-topics.sh --describe --bootstrap-server  localhost:9092</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wwMnVijb5TBwDLyIDRlZXQ.png" /><figcaption><strong>Image -8</strong></figcaption></figure><p>If there is more than 1 topic you can describe specific topic with topic name option</p><pre>bin/kafka-topics.sh --describe --bootstrap-server  localhost:9092  --topic states</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tnnl7Hy5tugPd7Z8yJv61A.png" /><figcaption>Image 9</figcaption></figure><p><strong>STEP 7 : PRODUCING &amp; CONSUMING MESSAGES</strong></p><p>Producers send messages to Kafka Cluster .You can produce message with the help of producer</p><pre>bin/kafka-console-producer.sh --broker-list localhost:9092 --topic states</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z9vTHo-XIzUqH9TVAB9s6A.png" /><figcaption><strong>Image 10</strong></figcaption></figure><p>Consumer can consume message from Kafka Cluster with the help of consumer</p><pre>bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic states</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t01omlquBBNIi6WoA4IWXg.png" /><figcaption><strong>Image 11</strong></figcaption></figure><p>Once the consumer process start running you can send some message in producer side and the consumer can receive the message at the same time .(As showed in the Image 12 i have send MH message which successfully received in consumer side shown in Image 11 )</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l5ojKDpss4DN-1P4QDlKmQ.png" /><figcaption><strong>Image 12</strong></figcaption></figure><p>There might a question arise how we can fetch/receive the previous message which we send earlier in producer side .With the option of — from-beginning</p><pre>bin/kafka-console-consumer.sh --bootstrap-server localhost:9092 --topic states --from-beginning</pre><h3>Kafka Broker :-</h3><p>Kafka Broker is Kafka server that runs in a Kafka Cluster .As the name indicate , the producer and consumer don’t interact directly with each other but use the Kafka sever/broker to exchange messages services . Broker store message and share producer(publisher) and consumer(subscriber) . Kafka Brokers stores messages in files of hard drive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/619/1*kN1i7k-BqwlnwZNpYNYF2w.jpeg" /><figcaption><strong>Image -13 : Broker</strong></figcaption></figure><h3>Zookeeper :-</h3><p>Zookeeper is mandatory part of Apache Kafka ecosystem. Zookeeper acts as a Kafka Cluster co-ordinator .The major function of Zookeeper are</p><p>i)Maintain list of active Broker</p><p>ii)Elects Controller</p><p>iii)Manages Configuration of the topics and partitions .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/748/1*sM_MnJZFt4EVubWW7ZDv4A.jpeg" /><figcaption><strong>Image 14 :Zookeeper</strong></figcaption></figure><p><strong>N.B Default Port for Zookeeper :- Zookeeper localhost:2181 &amp; Default Port for Kafka Server (broker) localhost :9092</strong></p><h3>Kafka Topic :-</h3><p>i) The messages are stored in every broker in special entity called Topic .Every topic has own unique name in the Kafka cluster .</p><p>ii)Every message inside of the topic has unique number called ‘offset’ .First message in each topic has offset 0.</p><p>iii) The new messages are arrived only appended after existing messages .</p><p>iv) Message Structure :</p><ul><li>Offset Number(Unique across partition)</li><li>Timestamp</li><li>Key</li><li>Value (Sequence of bytes)</li></ul><p>v) Kafka doesn’t store all messages forever and after certain amount of time messages are deleted .Default log retention period is 7 days .</p><h3>Conclusion :-</h3><p>This Blog Primarily explains the fundamentals of Apache Kafka and its way of function .Throughout the blog i have explained how to install apache Kafka and configure different component of Kafka Cluster .</p><p>Hope this blog helps you in some way to go into your Kafka Journey …</p><p>Please follow below links for Kafka Migration Approach Details</p><p><strong>1.Migration Approaches From Amazon MSK to Confluent Kafka </strong><a href="https://blog.searce.com/migration-approaches-from-amazon-msk-to-gcp-confluent-kafka-f5e445cda324"><strong>https://blog.searce.com/migration-approaches-from-amazon-msk-to-gcp-confluent-kafka-f5e445cda324</strong></a></p><p><strong>2.Migrate From Amazon MSK To GCP Marketplace Confluent Kafka Using Confluent Replicator </strong><a href="https://blog.searce.com/migrate-from-amazon-msk-to-gcp-marketplace-confluent-kafka-using-confluent-replicator-8903fbb9c92f"><strong>https://blog.searce.com/migrate-from-amazon-msk-to-gcp-marketplace-confluent-kafka-using-confluent-replicator-8903fbb9c92f</strong></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f014bb2071e3" width="1" height="1" alt=""><hr><p><a href="https://blog.searce.com/welcome-to-kafka-world-f014bb2071e3">Welcome to Kafka World !</a> was originally published in <a href="https://blog.searce.com/">Searce</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Migrate From Amazon MSK To GCP Marketplace Confluent Kafka Using Confluent Replicator]]></title>
            <link>https://blog.searce.com/migrate-from-amazon-msk-to-gcp-marketplace-confluent-kafka-using-confluent-replicator-8903fbb9c92f?source=rss-3c591250a4e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/8903fbb9c92f</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[gcp]]></category>
            <category><![CDATA[cloud]]></category>
            <dc:creator><![CDATA[Manoranjan Pradhan]]></dc:creator>
            <pubDate>Thu, 25 Aug 2022 10:58:29 GMT</pubDate>
            <atom:updated>2022-08-26T06:28:44.640Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Confluent Cloud on GCP Marketplace :-</strong></h3><p>Confluent Offers Apache Kafka as a service on the Google Cloud Platform Marketplace . Confluent Cloud offering is a fully managed Apache Kafka Service that removes the extra burden of operationally managing Kafka from engineers .</p><h3><strong>Let’s Start with Confluent Cloud on GCP Marketplace :-</strong></h3><ol><li>Login to your GCP account and select the project where you want to spin up Confluent Cloud .Then Click on the Marketplace as shown in Image 1.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PoAPW_lYe3kOY8twAjQH3g.jpeg" /><figcaption><strong>Image 1. GCP Market Place</strong></figcaption></figure><p>2 . In Marketplace search for “Confluent Cloud” or “Apache Kafka” , shown in Image 2.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Aw9rKtiDFN6c-cxJb3FBgQ.jpeg" /><figcaption><strong>Image 2. GCP Marketplace</strong></figcaption></figure><p>3. The Landing Page will display information about the solutions, details about pricing and support information .The Pricing information displays a high level estimate of charges .Pricing for this solution is based on your subscription plan . Click the subscribe button to lunch the solution as shown in Image 3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JdrQ89VW5azt4xjRTAlS0w.jpeg" /><figcaption><strong>Image 3. Marketplace</strong></figcaption></figure><p>4. Once you have completed the Confluent Cloud Subscription and purchase has been accepted you will see another page which required you to register with Confluent .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/330/1*_o2_f1IFbXLlI8Cr4Evcbg.jpeg" /><figcaption><strong>Image 4. Marketplace</strong></figcaption></figure><p>Once you are signup you will receive an email from confluent Team requesting you to verify your email address .After verification , you are automatically logged in as the administrator of the newly created Confluent Cloud account .</p><h3><strong>Confluent Replicator :-</strong></h3><p>Confluent Replicator allows us to simply and reliably replicate topics from one Kafka cluster to a different. Additionally to copying the messages, Replicator will create topics as required preserving the subject configuration within the source cluster. This includes preserving the quantity of partitions, the replication factor, and any configuration overrides specified for individual topics.It also allows metadata replication and auto offset translation of java consumers .</p><p>Confluent Replicator is a Kafka connector and runs on connect workers.Even the replicator executables have a bundled connect worker inside .Replicator has an embedded consumer that reads data from the source cluster which is AWS MSK and the connect worker has an embedded producer that copies those data to the destination cluster which is confluent cloud .</p><h3><strong>Architecture :-</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Zo32P8AV5Qk1xzQE8ZG0MA.jpeg" /><figcaption><strong>Image 5. Architecture Diagram</strong></figcaption></figure><p>Source-Amazon MSK , Destination-Confluent Kafka.</p><p>In our approach we create a VM Machine which is in the same VPC as the Customers MSK Cluster and create the necessary route table and security group to communicate with the MSK and confluent Kafka</p><p><strong>Note — The main idea behind bringing Amazon MSK and Replicator together to eliminate connectivity issues between source MSK cluster and Replicator .</strong></p><h3><strong>Security Settings in Amazon MSK :-</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0v_LNwOYgANugM-pfomr7g.png" /><figcaption><strong>Image 6. Security Settings in Amazon MSK</strong></figcaption></figure><h4>Prerequisite:-</h4><ol><li>An EC2 instance to set up the confluent Kafka replicator .</li><li>Create an inbound rule in the security group of MSK for communication between the confluent Kafka replicator and MSK.</li><li>Configure the replicator for migration of topics from MSK to confluent Kafka.</li><li>Confluent Kafka bootstrap server endpoint.</li><li>Confluent Kafka API keys.</li><li>MSK broker and zookeeper endpoint.</li></ol><p><strong>Implementation Steps:-</strong></p><p><strong>STEP 1: CREATE EC2 INSTANCE</strong></p><p>We need to create an EC2 instance in the same VPC where MSK cluster reside and create the necessary route table and security group to communicate with the MSK and confluent Kafka.</p><p><strong>STEP 2: INSTALLATION OF JAVA &amp; DOWNLOAD KAFKA CLIENT</strong></p><p><strong>STEP 2.1: Install Java</strong></p><pre>apt-get install openjdk-8-jdk</pre><p><strong>STEP 2.2: Download Kafka packages</strong></p><pre>wget <a href="https://archive.apache.org/dist/kafka/2.6.2/kafka_2.12-2.6.2.tgz">https://archive.apache.org/dist/kafka/2.6.2/kafka_2.12-2.6.2.tgz</a></pre><p><strong>STEP 2.3: Extract Kafka</strong></p><pre>tar -xzf kafka_2.12–2.6.2.tgz</pre><p><strong>STEP 2.4: Locate the packages</strong></p><p>Extract kafka packages on /opt/kafka_2.12–2.6.2 location</p><p>Move to this path → cd /opt/kafka_2.12–2.6.2</p><p>Check if all required files are present in the loc.</p><p><strong>Kafka Client Installation Directory → /opt/kafka_2.12–2.6.2</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fA8Q3dc1Be765LD-" /></figure><p><strong>STEP 2.5: To describe topic in MSK</strong></p><p>Once the Kafka client is installed now you can able to describe the topic in MSK with below commands .</p><pre>&lt;kafka_client_install_directory&gt;/bin/kafka-topics.sh --list --zookeeper &lt;zookeeper_endpoint_name&gt;</pre><p><strong>STEP 2.6: To list topics in MSK :</strong></p><pre>&lt;kafka_client_install_directory&gt;/bin/kafka-topics.sh --describe --zookeeper  &lt;zookeeper_endpoint_name&gt;  --topic  &lt;topic_name&gt;</pre><p><strong>STEP 2.7: To Consume messages in MSK:</strong></p><pre>&lt;kafka_client_install_directory&gt;/bin/kafka-console-consumer.sh --bootstrap-server &lt;bootstrap_server_name&gt; --topic &lt;topic_name&gt;  --consumer.config client.properties --from-beginning</pre><p><strong>STEP 2.8: To list the ACL’s for the topics in MSK:</strong></p><pre>&lt;kafka_client_install_directory&gt;/bin/kafka-acls.sh --authorizer-properties zookeeper.connect=&lt;zookeeper_endpoint_name&gt; --list</pre><p><strong>STEP 3: DOWNLOAD CONFLUENT KAFKA CLIENT</strong></p><p>i) Download Confluent Client</p><pre>curl -O <a href="http://packages.confluent.io/archive/7.1/confluent-7.1.1.tar.gz">http://packages.confluent.io/archive/7.1/confluent-7.1.1.tar.gz</a></pre><p>ii) Extract Confluent Kafka Client</p><pre>tar -xzf  confluent-7.1.1.tar.gz</pre><p>iii) Move to this path on /opt/confluent-7.1.1</p><p>Check if all required files are present in the loc.</p><p><strong>Confluent Client Installation Directory — /opt/confluent-7.1.1</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*lwxSXkJFY5tBnc9z" /></figure><p><strong>STEP 4: CREATE YOUR CLIENT TRUST STORE</strong></p><ul><li>Navigate to Kafka bin directory</li></ul><pre>cd /opt/kafka_2.12–2.6.2/bin</pre><ul><li>Run the following command to use the JVM trust store to create your client trust store. If your JVM path is different, adjust the command accordingly.</li></ul><pre>cp /usr/lib/jvm/java-1.8.0-openjdk-amd64/jre/lib/security/cacerts       kafka.client.truststore.jks</pre><p><strong>STEP 5:CREATE client.properties</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*flo_aOkgkom-Oxr_" /></figure><p><strong>STEP 6: CREATE A CLUSTER IN CONFLUENT KAFKA</strong></p><p>A Kafka cluster consists of 1 or more servers (Kafka brokers) running Kafka. Within these brokers, are Kafka topics that hold data that’s being produced and consumed. In order to get started with using data and all the services Confluent Cloud has to offer, we need to create a cluster .Then we can create topics inside the cluster .</p><ol><li>Navigate to the <strong>environment</strong> and click on the <strong>add cloud environment.</strong></li><li>Select a <strong>cluster type</strong> and click on Begin configuration .</li><li>Select a <strong>cloud provider</strong> and a <strong>geographic region </strong>as per your organisation needs , and choose either single-zone or multi-zone availability.</li><li>On the next page, specify a <strong>cluster name</strong></li><li>In the cluster go to <strong>cluster setting </strong>and view the details of the cluster .</li></ol><p><strong>STEP 7: CREATE API KEY &amp; API SECRET</strong></p><p>Confluent Cloud API Keys are primarily used to control access to Confluent Cloud components and resources. Each API key consists of a key and a secret.</p><p>To create API key and API Secret in Confluent Cloud , follow below steps</p><ol><li>Login to your confluent cloud account .</li></ol><p>2. Under the Administration click the Environments , Under Environments you can able to see the cluster , click the cluster</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*qXpvnCIreYnDOMGasHBB5g.png" /><figcaption><strong>Image 7. Confluent Cloud</strong></figcaption></figure><p>3. In the Clusters tab , Click on your cluster name.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jlD6ubh8XZQwnDaYAeQIeQ.jpeg" /><figcaption><strong>Image 8. Confluent Cloud</strong></figcaption></figure><p>4. In the Left navigation pane, click Data integration -&gt; click API keys and then , click +Add key</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oAiranQbXCaE7_qCLQFw5w.jpeg" /><figcaption><strong>Image 9. Confluent Cloud</strong></figcaption></figure><p>5. Select the scope of the key and add description to the key .</p><p>6. Download the key and secret for authentication .</p><p><strong>Note :- Update Username and Password in producer.properties and Replicator.properties configuration file .</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F6As0qsLj_dorfR86U4INg.jpeg" /><figcaption><strong>Image 10. Confluent Cloud</strong></figcaption></figure><p><strong>STEP 8: CONFIGURATION FILES FOR REPLICATOR</strong></p><p>i). Consumer.Properties:- It contains the addresses of brokers from the source cluster .</p><p>ii). Producer.Properties:- It contains the addresses of brokers from the destination cluster.</p><p>iii). Replicator.properties:- Replicator configuration for connect worker .</p><p><strong>i)consumer.properties</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z0dSWIThm9qhANQVvou7Jg.png" /></figure><p><strong>ii)producer.properties</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*A3JNSH_w42cPGJxi" /></figure><p><strong>iii)Replicator.properties</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*u-yIOxEcnfoQp2ZC" /></figure><p><strong>STEP 9: TO START REPLICATOR FOR MIGRATING TOPICS</strong></p><p><strong>Step 9.1: To replicate a single Topic</strong></p><pre>&lt;Confluent_client_install_directory&gt;./bin/replicator --cluster.id replicator --consumer.config etc/kafka/consumer.properties --producer.config etc/kafka/producer.properties --replication.config etc/kafka-connect-replicator/replicator.properties --whitelist  &#39;topic_name&#39;</pre><p><strong>Step 9.2: To replicate Multiple Topic</strong></p><pre>&lt;Confluent_client_install_directory&gt;./bin/replicator --cluster.id replicator --consumer.config etc/kafka/consumer.properties --producer.config etc/kafka/producer.properties --replication.config etc/kafka-connect-replicator/replicator.properties --whitelist  &#39;topic1,topic2,topic3&#39;</pre><p><strong>Step 9.3: To replicate topics with regex</strong></p><ul><li>Use — topic.regex “test.*” to replicate the topics of test.</li></ul><pre>&lt;Confluent_client_install_directory&gt;./bin/replicator --cluster.id replicator --consumer.config etc/kafka/consumer.properties --producer.config etc/kafka/producer.properties --replication.config etc/kafka-connect-replicator/replicator.properties --topic.regex &quot;test.*&quot;</pre><p><strong>STEP 10: CHECK DETAILS IN CONFLUENT</strong></p><p>Once the replicator replicate topics and messages to confluent you can observe a traffic in the confluent home page in throughput section .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aMX7tTRpyZS-UsOQSkDQCA.jpeg" /><figcaption><strong>Image 11. Confluent Cloud</strong></figcaption></figure><p>Now in confluent home page you can able to see Topics and Partitions</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Te_C6knDWSfjzFhyB-AAHw.jpeg" /></figure><p>To check if the topics is successfully replicated ,check the <strong>Topics</strong> section and filter accordingly to see the replicated messaged from source to Confluent Kafka.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9kdihp-AVdPDllNCDJPojA.jpeg" /><figcaption><strong>Image 12. Confluent Cloud</strong></figcaption></figure><p><strong>Reference :</strong></p><ol><li><a href="https://docs.aws.amazon.com/efs/latest/ug/gs-step-one-create-ec2-resources.html">https://docs.aws.amazon.com/efs/latest/ug/gs-step-one-create-ec2-resources.html</a></li><li><a href="https://docs.confluent.io/platform/current/multi-dc-deployments/replicator/replicator-run.html#replicator-executable">https://docs.confluent.io/platform/current/multi-dc-deployments/replicator/replicator-run.html#replicator-executable</a></li><li><a href="https://docs.confluent.io/platform/current/tutorials/examples/ccloud/docs/replicator-to-cloud-configuration-types.html#on-premises-to-ccloud-with-kconnect-backed-to-origin">https://docs.confluent.io/platform/current/tutorials/examples/ccloud/docs/replicator-to-cloud-configuration-types.html#on-premises-to-ccloud-with-kconnect-backed-to-origin</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8903fbb9c92f" width="1" height="1" alt=""><hr><p><a href="https://blog.searce.com/migrate-from-amazon-msk-to-gcp-marketplace-confluent-kafka-using-confluent-replicator-8903fbb9c92f">Migrate From Amazon MSK To GCP Marketplace Confluent Kafka Using Confluent Replicator</a> was originally published in <a href="https://blog.searce.com/">Searce</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Migration Approaches From Amazon MSK to GCP Confluent Kafka]]></title>
            <link>https://blog.searce.com/migration-approaches-from-amazon-msk-to-gcp-confluent-kafka-f5e445cda324?source=rss-3c591250a4e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5e445cda324</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[gcp]]></category>
            <dc:creator><![CDATA[Manoranjan Pradhan]]></dc:creator>
            <pubDate>Thu, 25 Aug 2022 10:56:10 GMT</pubDate>
            <atom:updated>2022-08-26T06:27:24.323Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong><em>Migration Approaches From Amazon MSK to Confluent Kafka</em></strong></h3><p><strong>Amazon MSK:-</strong></p><p>AWS provides a fully managed service called Amazon MSK for Apache Kafka that allows you to build and run your applications that use Apache Kafka to process real time streaming data .It also provided interface for operations like creating ,updating and deleting clusters.It also helps to use Apache Kafka data plane operations like producing and consuming data.It runs open-source versions of Apache Kafka , it means your existing setup applications , plugins and tooling from partners and the Apache Kafka community are supported without making any changes to existing application code.</p><p><strong>Confluent Platform :-</strong></p><p>Confluent platform introduced by the creators of Apache Kafka , It helps organisations to enhance business value of live data . The Confluent platform cascades stream data and makes it available across an organisation . It provides service to various industries from logistics, retails , and manufacturing , to online social networking and financial services, a highly scalable unified , real-time data pipeline that enables organisations applications ranging from very large volume data integration to bid data analysis with Hadoop to real-time stream and processing .</p><p><strong>Migration Method :-</strong></p><p>There are different migration approaches available for migration from Amazon MSK to Confluent Kafka .</p><p>1.Kafka Mirror Maker 2</p><p>2.Confluent Replicator</p><p>3.Confluent Cluster Linking</p><p><strong>1.Kafka Mirror Maker 2 </strong>:</p><p>It is based on the Kafka connect framework .It has a separate process running as a special connector(Kafka Mirror Maker 2) within the connect framework. So the special connector (Kafka Mirror Maker 2) reads data from the source cluster and writes that out in a topic in a separate destination cluster .</p><p>Disadvantage :- The offsets are not preserved between the source and target clusters. Which means if you want to do a failover from one data center to another you need to do offset translation manually in the application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bTL1nfk4__ov3M63" /></figure><p><strong>2. Confluent Replicator</strong> :</p><p>Confluent Replicator allows us to simply and reliably replicate topics from one Kafka cluster to a different. Additionally to copying the messages, Replicator will create topics as required preserving the subject configuration within the source cluster. This includes preserving the quantity of partitions, the replication factor, and any configuration overrides specified for individual topics.</p><p><strong>Advantages of using Replicator:</strong></p><p>This tool improves over mirror maker 2 in two categories</p><p>i) Metadata Replication :-When you mirror actual data , it also mirrors metadata like topic configuration and no of partitions as well .</p><p>ii) Confluent Replicator does Auto offset translation for java consumers .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FAXk8HsEdPYux1OP" /></figure><p><strong>3.Confluent Cluster Linking</strong> :</p><p>Cluster Linking enables you to directly connect clusters and mirror topics from one cluster to a different. Cluster Linking makes it easy to create multi-datacenter, multi-region, and hybrid cloud deployments. It’s secure, performant, tolerant of network latency, and built into Confluent Server and Confluent Cloud.</p><p><strong>Advantages of using Cluster Linking:</strong></p><p>This tool improves over Mirror Maker 2 and Confluent Replicator in few other ways</p><p>i) No Separate Process :- The Method of cluster linking embedded in source and destination clusters. Destination cluster embedded in the broker and keep pulling data from the source broker into the target .</p><p>ii) Preserve Offset :- It copies data from source partition to target partition with exact same offset so no need to do the offset translation .</p><p>iii) More Efficient :- As this process using internal process to transfer of data ,It is more efficient as there is no external process which eliminates the overhead of compression and decompression of data.So it is efficient in terms of CPU and network transport .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*KyRAH9PACz9-tV5S" /></figure><p><strong>Methodologies in Cluster Linking:</strong></p><p>In Cluster linking option you can link cluster either from source cluster to destination or you can initiate linking from destination cluster to source cluster . Let’s discuss each method and how it works</p><p><strong>a. Destination Initiated Cluster Linking </strong>:- If your destination cluster is on cloud and source cluster in on-prem data center and destination cluster initiates connection then it requires opening of firewalls in source cluster side for external usage sometimes which is a major concern/challenge for business .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bxQC84Pog_SZsBU8" /></figure><p><strong>b. Source Initiated Cluster Linking :</strong>- When Source cluster initiates a connection , once the connection is successful, then destination cluster reverses the connection and starts pulling data from source cluster .In this case firewall remains unchanged .</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bLGhuUxeDZLd2w3K" /></figure><p><strong>SUMMARY:</strong></p><p>Mirror Maker and Replicator both guarantee message replication to a destination, but replicator assures message delivery to fill gaps in production deployments which often occurs with Mirror Maker. Mirror Maker has the limitation of syncing the topic properties whereas replicator is a boon which provides the original message offset in topic. In higher level the Cluster Linking allows to directly connect clusters together and mirror topics from one cluster to another without the need for Connect. Cluster Linking makes it much easier to create multi-datacenter, multi-cluster, and hybrid cloud deployments.</p><p><strong>Reference :-</strong></p><ol><li><a href="https://docs.aws.amazon.com/msk/latest/developerguide/what-is-msk.html">https://docs.aws.amazon.com/msk/latest/developerguide/what-is-msk.html</a></li><li><a href="https://developer.confluent.io/quickstart/kafka-on-confluent-cloud/">https://developer.confluent.io/quickstart/kafka-on-confluent-cloud/</a></li><li><a href="https://www.confluent.io/resources/kafka-summit-2020/getting-up-to-speed-with-mirrormaker-2/">https://www.confluent.io/resources/kafka-summit-2020/getting-up-to-speed-with-mirrormaker-2/</a></li><li><a href="https://docs.confluent.io/platform/current/multi-dc-deployments/replicator/replicator-quickstart.html">https://docs.confluent.io/platform/current/multi-dc deployments/replicator/replicator-quickstart.html</a></li><li><a href="https://docs.confluent.io/platform/current/multi-dc-deployments/cluster-linking/index.html">https://docs.confluent.io/platform/current/multi-dc-deployments/cluster-linking/index.html</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5e445cda324" width="1" height="1" alt=""><hr><p><a href="https://blog.searce.com/migration-approaches-from-amazon-msk-to-gcp-confluent-kafka-f5e445cda324">Migration Approaches From Amazon MSK to GCP Confluent Kafka</a> was originally published in <a href="https://blog.searce.com/">Searce</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>