<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Batch optimized apply blocked by Db2 Backup in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Batch-optimized-apply-blocked-by-Db2-Backup/m-p/2506990#M13762</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;Michael,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/303374"&gt;@micpage&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for reaching out to Qlik Community!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;It's unclear whether you've encountered this error during an ongoing backup operation. Please check the DB2 log file for more details, as Qlik Replicate only displays the error without providing further information. Alternatively, if the error disappears after the backup is complete, it may be intermittent.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Feb 2025 04:00:01 GMT</pubDate>
    <dc:creator>john_wang</dc:creator>
    <dc:date>2025-02-24T04:00:01Z</dc:date>
    <item>
      <title>Batch optimized apply blocked by Db2 Backup</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Batch-optimized-apply-blocked-by-Db2-Backup/m-p/2506926#M13757</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I wanted to ask here if you also have the problem that during an online backup, no data is saved in CDC mode with activated "&lt;SPAN&gt;Batch optimized apply" from the "Change Processing Tuning" Tasksettings (#&lt;A href="https://help.qlik.com/en-US/replicate/November2024/Content/Global_Common/Content/SharedEMReplicate/Customize%20Tasks/tasks_applychangtunestab.htm" target="_blank"&gt;Change Processing Tuning #Change Processing Tuning | Qlik Replicate Help)&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;I think the problem is that when truncating the temporary table, since a truncate and online backup are mutually exclusive in Db2 LUW. (&lt;A href="https://www.ibm.com/docs/en/db2/11.5?topic=backup-compatibility-online-other-utilities" target="_blank"&gt;https://www.ibm.com/docs/en/db2/11.5?topic=backup-compatibility-online-other-utilities&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So I only see the use of "Transactional apply" to get&amp;nbsp;consistently the replicated data or have you an other idea?&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;00001816: 2025-02-20T11:56:45 [TASK_MANAGER    ]I:  Subtask #1 ended  (replicationtask_util.c:591)
00003868: 2025-02-20T11:58:43 [TARGET_APPLY    ]I:  Net Changes table name for the task is 'attrep_changesE4DE529EF38FB2E7'  (bulk_apply.c:3783)
00003868: 2025-02-20T12:00:45 [TARGET_APPLY    ]I:  Failed (retcode -1) to execute statement: TRUNCATE TABLE "CDC_QLIK"."attrep_changesE4DE529EF38FB2E7" IMMEDIATE [1022502]  (ar_odbc_stmt.c:5082)
00003868: 2025-02-20T12:00:45 [TARGET_APPLY    ]I:  RetCode: SQL_ERROR  SqlState: HY008 NativeError: -952 Message: [IBM][CLI Driver][DB2/LINUXX8664] SQL0952N  Verarbeitung aufgrund eines Interrupts abgebrochen.  SQLSTATE=57014 [1022502]  (ar_odbc_stmt.c:5090)
00003868: 2025-02-20T12:00:45 [TARGET_APPLY    ]I:  RetCode: SQL_ERROR  SqlState: HY008 NativeError: -952 Message: [IBM][CLI Driver][DB2/LINUXX8664] SQL0952N  Verarbeitung aufgrund eines Interrupts abgebrochen.  SQLSTATE=57014 [1022502]  (ar_odbc_stmt.c:5090)
00003868: 2025-02-20T12:00:45 [TARGET_APPLY    ]I:  Execute truncate net changes table failed. 'TRUNCATE TABLE "CDC_QLIK"."attrep_changesE4DE529EF38FB2E7" IMMEDIATE' [1022502]  (odbc_bulk.c:803)
00003868: 2025-02-20T12:00:45 [TARGET_APPLY    ]I:  Failed to truncate net changes table [1022502]  (odbc_bulk.c:901)
00003868: 2025-02-20T12:00:45 [TARGET_APPLY    ]I:  Error executing command [1022502]  (streamcomponent.c:1987)
00003868: 2025-02-20T12:00:45 [TASK_MANAGER    ]I:  Stream component failed at subtask 0, component st_0_DB2LUW-T-DTSDH  [1022502]  (subtask.c:1474)
00003868: 2025-02-20T12:00:45 [TARGET_APPLY    ]I:  Target component st_0_DB2LUW-T-DTSDH was detached because of recoverable error. Will try to reattach  (subtask.c:1589)
00003868: 2025-02-20T12:00:50 [STREAM_COMPONEN ]I:  Target last committed record id from the previous run is '141'  (streamcomponent.c:1693)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in Advice,&lt;/P&gt;
&lt;P&gt;Michael&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 15:28:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Batch-optimized-apply-blocked-by-Db2-Backup/m-p/2506926#M13757</guid>
      <dc:creator>micpage</dc:creator>
      <dc:date>2025-02-21T15:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Batch optimized apply blocked by Db2 Backup</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Batch-optimized-apply-blocked-by-Db2-Backup/m-p/2506990#M13762</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;Michael,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/303374"&gt;@micpage&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for reaching out to Qlik Community!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;It's unclear whether you've encountered this error during an ongoing backup operation. Please check the DB2 log file for more details, as Qlik Replicate only displays the error without providing further information. Alternatively, if the error disappears after the backup is complete, it may be intermittent.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 04:00:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Batch-optimized-apply-blocked-by-Db2-Backup/m-p/2506990#M13762</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2025-02-24T04:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Batch optimized apply blocked by Db2 Backup</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Batch-optimized-apply-blocked-by-Db2-Backup/m-p/2506997#M13763</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/115309"&gt;@john_wang&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;This Information "Errors" in the Qlik Replicate Log&amp;nbsp;appear during the backup. For Db2 there is no Error, because it is a normal Locktimeout.&amp;nbsp;I also made a few attempts and found that as long as the temporary table is not deleted with Truncate, no new records are added to the target table as CDC replication.&amp;nbsp;But if I use "Transactional apply", I have my current CDC replication.&amp;nbsp;Even a short test by rewriting the TRUNCATE command in the Db2 profile to a DELETE ensured continuous CDC replication.&lt;/P&gt;
&lt;P&gt;Have you never noticed such an impairment before, since you recommend the "batch optimized apply" everywhere?&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;/P&gt;
&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2025 07:06:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Batch-optimized-apply-blocked-by-Db2-Backup/m-p/2506997#M13763</guid>
      <dc:creator>micpage</dc:creator>
      <dc:date>2025-02-24T07:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: Batch optimized apply blocked by Db2 Backup</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Batch-optimized-apply-blocked-by-Db2-Backup/m-p/2507210#M13777</link>
      <description>&lt;P&gt;Hello Michael,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/303374"&gt;@micpage&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-start="82" data-end="332"&gt;In general, it is recommended to set the task to &lt;STRONG data-start="131" data-end="156"&gt;Batch Optimized Apply&lt;/STRONG&gt; mode for better performance and lower costs. &lt;STRONG data-start="202" data-end="225"&gt;Transactional Apply&lt;/STRONG&gt; mode does not use the &lt;STRONG data-start="248" data-end="262"&gt;Net Change&lt;/STRONG&gt; temporary table, which is why no conflicts occur during the backup.&lt;/P&gt;
&lt;P data-start="340" data-end="416"&gt;Have you tried stopping and resuming the task when encountering the error?&lt;/P&gt;
&lt;P&gt;thanks,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Feb 2025 08:45:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Batch-optimized-apply-blocked-by-Db2-Backup/m-p/2507210#M13777</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2025-02-25T08:45:28Z</dc:date>
    </item>
    <item>
      <title>Re: Batch optimized apply blocked by Db2 Backup</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Batch-optimized-apply-blocked-by-Db2-Backup/m-p/2508748#M13832</link>
      <description>&lt;P&gt;Hello John,&lt;/P&gt;
&lt;P&gt;When i stop the task, the temporary table&amp;nbsp;attrep_changes1CE0F43A4C68441A is dropped and when i start the task again during db2 online backup, the first changes were applied, until the next batch will truncate the new created Table&amp;nbsp;&lt;SPAN&gt;attrep_changesFFC56AEFCBE1F628, who has got another name.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Michael&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 09:46:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Batch-optimized-apply-blocked-by-Db2-Backup/m-p/2508748#M13832</guid>
      <dc:creator>micpage</dc:creator>
      <dc:date>2025-03-07T09:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Batch optimized apply blocked by Db2 Backup</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Batch-optimized-apply-blocked-by-Db2-Backup/m-p/2508794#M13837</link>
      <description>&lt;P&gt;Hi Michael,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/303374"&gt;@micpage&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd like suggest to open a support ticket we need more investigation on the behavior.&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;John.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 13:12:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Batch-optimized-apply-blocked-by-Db2-Backup/m-p/2508794#M13837</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2025-03-07T13:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Batch optimized apply blocked by Db2 Backup</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Batch-optimized-apply-blocked-by-Db2-Backup/m-p/2508798#M13839</link>
      <description>&lt;P&gt;Hi John,&lt;/P&gt;
&lt;P&gt;i open a case (00360284: Batch optimized apply blocked by Db2 Backup).&lt;/P&gt;
&lt;P&gt;Thanks for Support.&lt;/P&gt;
&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Fri, 07 Mar 2025 13:27:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Batch-optimized-apply-blocked-by-Db2-Backup/m-p/2508798#M13839</guid>
      <dc:creator>micpage</dc:creator>
      <dc:date>2025-03-07T13:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: Batch optimized apply blocked by Db2 Backup</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Batch-optimized-apply-blocked-by-Db2-Backup/m-p/2511163#M13934</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;Michael,&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/303374"&gt;@micpage&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P class="" data-start="65" data-end="114"&gt;Thank you so much for your outstanding support.&lt;/P&gt;
&lt;P class="" data-start="116" data-end="192"&gt;I’d like to summarize the latest status of the article and support ticket:&lt;/P&gt;
&lt;OL data-start="194" data-end="712"&gt;
&lt;LI class="" data-start="194" data-end="377"&gt;
&lt;P class="" data-start="197" data-end="377"&gt;&lt;STRONG data-start="197" data-end="231"&gt;DB2 LUW Native Target Endpoint&lt;/STRONG&gt; – Instead of using the generic ODBC target, a native endpoint for DB2 LUW is on our roadmap. We hope to introduce this feature later this year.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI class="" data-start="379" data-end="712"&gt;
&lt;P class="" data-start="382" data-end="712"&gt;&lt;STRONG data-start="382" data-end="409"&gt;Truncate Table Behavior&lt;/STRONG&gt; – In the current major versions, the internal parameter &lt;CODE data-start="466" data-end="501"&gt;$info.query_syntax.truncate_table&lt;/CODE&gt; applies to both end-user target tables and Replicate’s internal net change tables. This is the expected behavior as of now. A feature request has been submitted, and we are awaiting feedback from the PM team.&lt;/P&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P class="" data-start="714" data-end="760"&gt;I truly appreciate your exceptional support!&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;John.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 03:50:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Batch-optimized-apply-blocked-by-Db2-Backup/m-p/2511163#M13934</guid>
      <dc:creator>john_wang</dc:creator>
      <dc:date>2025-03-24T03:50:25Z</dc:date>
    </item>
  </channel>
</rss>

