<?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 Fan Jing on Medium]]></title>
        <description><![CDATA[Stories by Fan Jing on Medium]]></description>
        <link>https://medium.com/@fjfjfan?source=rss-e596118678f1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by Fan Jing on Medium</title>
            <link>https://medium.com/@fjfjfan?source=rss-e596118678f1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 06:17:49 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@fjfjfan/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[Seamless upgrade Db2 Data Gate instance to latest Cloud Pak for Data 4.6 version]]></title>
            <link>https://medium.com/@fjfjfan/seamless-upgrading-db2-data-gate-instance-to-the-latest-version-4-6-refresh-8b3016e8d25?source=rss-e596118678f1------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b3016e8d25</guid>
            <category><![CDATA[datagate]]></category>
            <category><![CDATA[cp4d]]></category>
            <dc:creator><![CDATA[Fan Jing]]></dc:creator>
            <pubDate>Wed, 07 Dec 2022 13:33:30 GMT</pubDate>
            <atom:updated>2023-01-04T07:44:32.430Z</atom:updated>
            <content:encoded><![CDATA[<h4>IBM Db2 for z/OS Data Gate blog series</h4><blockquote><em>Introduce the seamless instance upgrade from IBM Db2 for z/OS Data Gate 2.6.0 to 3.0.0.</em></blockquote><p>By <a href="https://medium.com/u/e596118678f1">Fan Jing</a></p><h3>Introduction</h3><p>From other blog posts, you may already have a glimpse of the product IBM Db2 for z/OS Data Gate (<a href="https://medium.com/icp-for-data/what-is-db2-data-gate-db2-data-gate-blog-series-part-1-e4aabebe020c">What is Db2 Data Gate? Db2 Data Gate Blog Series Part 1</a>), as well as some of its new features and functionalities, such as <a href="https://medium.com/@lu_liang/better-and-flexible-metadata-support-for-db2-data-gate-in-cloud-pak-for-data-4-6-0-299093ce0d5">Better and flexible metadata support</a> and <a href="https://medium.com/@hjjingh/new-synchronization-workload-metrics-available-since-db2-data-gate-service-3-0-0-68440e7ca8e">New synchronization workload metrics</a>. In this blog, we will discuss another new feature of Data Gate 3.0.0, seamless instance upgrade. In a nutshell, seamless instance upgrade allows users to keep their existing Db2 Data Gate instances when they upgrade CP4D 4.5 to future latest version. It is no longer necessary to remove the old instance and provision a new one when users upgrade CP4D. It also preserve the instance configuration and your table definitions.</p><p><strong>Prerequisites</strong></p><ol><li>Install Db2 Data Gate 2.6.0, provision a Data Gate instance</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5fVLM09F_1G8V_j30bTfpg.jpeg" /></figure><p>2. Add some tables to the Db2 Data Gate instance and start synchronization for them</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B6hcsF9fyUpKE8iR5ey20g.jpeg" /></figure><p>3. Do some operations in the source Db2 for z/OS, the overview tab will clearly show the system status and table/query statistics, while the graphs on the Monitor tab show the synchronization latency, synchronization throughput, and a few statistics regarding the source data and the logs, which are designed for Db2 Data Gate 2.6.0.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fw2h7MbdD_mT7Xl5IBCrig.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m3K1Y3aJFokaY1V_8ou6JA.jpeg" /></figure><p>We could also confirm that we are using Db2 Data Gate 2.6.0 from the result of the following command:</p><pre>oc get csv -A | grep gate<br><br>ibm-common-services ibm-datagate-operator.v2.6.0 IBM Datagate Service 2.6.0 Succeeded</pre><pre>oc get sub -A | grep gate<br><br>ibm-common-services ibm-datagate-operator-subscription ibm-datagate-operator ibm-datagate-operator-catalog v2.6</pre><pre>oc get datagateservices<br><br>NAME VERSION BUILD STATUS RECONCILED<br>datagateservice-cr 2.6.0 2.0.1059 Completed 2.6.0</pre><pre>oc get datagateinstanceservices<br><br>NAME VERSION BUILD STATUS RECONCILED<br>dg1670334974915924 2.6.0 2.0.1059 Completed 2.6.0</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mN_v7e-wSqIuABbaUt3xvQ.png" /></figure><p>Within the operator container, we could find that latest stands for 2.6.0:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RWPcYXXonoWwqq1df4iAWg.png" /></figure><h4>How to upgrade Data Gate from 2.6.0 to 3.0.0</h4><ol><li><strong>Logging in to the cluster</strong></li></ol><pre>cpd-cli manage login-to-ocp \<br>--username=${OCP_USERNAME} \<br>--password=${OCP_PASSWORD} \<br>--server=${OCP_URL}</pre><p><strong>2. Updating the operator</strong></p><pre>cpd-cli manage apply-olm \<br>--release=${VERSION} \<br>--cpd_operator_ns=${PROJECT_CPD_OPS} \<br>--upgrade=true</pre><p>or</p><pre>cloudctl case launch --case ibm-datagate-prod-***.tgz --inventory datagateOperatorSetup --namespace ${PROJECT_CPD_OPS} --action install-catalog --tolerance=1</pre><p>After that, confirm that the channel of datagate operator subscription is v3.0 now:</p><pre>oc get sub -A | grep gate<br>ibm-common-services   ibm-datagate-operator-subscription                                            ibm-datagate-operator                 ibm-datagate-operator-catalog       v3.0</pre><p><strong>Manually edit the subscription and change its channel to v3.0 if it always show v2.6.</strong></p><p>Data Gate csv is 3.0.0 then:</p><pre>oc get csv -A | grep gate<br>ibm-common-services                    ibm-datagate-operator.v3.0.0                   IBM Datagate Service                                     3.0.0     ibm-datagate-operator.v2.6.0   Succeeded</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eOZ7JpatSgT0yuhelVwp5g.png" /></figure><p>Within the operator container, we could find that latest stands for 3.0.0 now:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aReb7TuvUhNk0ZMdl0Bo8g.png" /></figure><p><strong>3. Upgrading the service</strong></p><pre>cpd-cli manage apply-cr \<br>--components=datagate \<br>--release=${VERSION} \<br>--cpd_instance_ns=${PROJECT_CPD_INSTANCE} \<br>--block_storage_class=${STG_CLASS_BLOCK} \<br>--file_storage_class=${STG_CLASS_FILE} \<br>--license_acceptance=true \<br>--upgrade=true</pre><p>or</p><pre>oc patch datagateservices datagateservice-cr --type merge <br>-p &#39;{&quot;spec&quot;:{&quot;version&quot;:&quot;dg_version&quot;}}&#39;</pre><p>or</p><p>manually edit the datagateservices datagateservice-cr and change its version to 3.0.0.</p><p><strong>4. Validating the upgrade</strong></p><p>You can run the cpd-cli manage get-cr-status command if you want to confirm that the custom resource status is Completed after the apply-cr command ran successfully:</p><pre>cpd-cli manage get-cr-status \<br>--cpd_instance_ns=${PROJECT_CPD_INSTANCE} \<br>--components=datagate</pre><p>Also you could check the result of oc get datagateservices command to confirm that Data Gate service is upgraded.</p><pre>oc get datagateservices<br>NAME                 VERSION   BUILD      STATUS      RECONCILED   AGE<br>datagateservice-cr   3.0.0     2.0.1173   Completed   3.0.0        3h18m</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zaaRlXTb1hztmXbqQm-vaw.png" /></figure><p><strong>5. Upgrading each Db2 Data Gate deployment</strong></p><p>5.1 Find the instance identifier (the result will be under “NAME”):</p><pre>oc get dginstance</pre><p>5.2 Run the oc patchcommand, specifying 3.0.0 as the dg_version, to upgrade the Db2 Data Gate deployment. Replace <em>instance_id</em> with the deployment identifier that you obtained from the oc get dginstancecommand:</p><pre>oc patch dginstance instance_id --type merge <br>-p &#39;{&quot;spec&quot;:{&quot;version&quot;:&quot;dg_version&quot;, &quot;metadata&quot;:{&quot;version&quot;:&quot;dg_version&quot;}}}&#39;</pre><p><strong>6. Verifying the deployment upgrade</strong></p><p>You can use a command to verify that the deployment was upgraded and is ready to use.</p><p>Run the following command and wait for the status to change to Completed:</p><pre>oc get dginstance instance_id -o jsonpath=&#39;{.status.datagateInstanceStatus} {&quot;\n&quot;}&#39;</pre><p>From UI, you could find that your tables are still there,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2PPUC-Darqz7NnesI-WIkw.jpeg" /></figure><p>while the dashboard and monitor tabs are showing more things now, which are designed for Db2 Data Gate 3.0.0,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ce2EEFROOJdPgJjF2aiV8A.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kv791-WDG_qVS-fIXjybVA.jpeg" /></figure><p>it proves that you’ve upgraded data gate service and instance successfully now. Congratulations!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b3016e8d25" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>