<?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>article Tips for replicating to a DB2 target. in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Tips-for-replicating-to-a-DB2-target/ta-p/1729644</link>
    <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;Replication does not specifically list IBM DB2 (any platform) as a replication target.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Resolution:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;When a Replication project calls for DB2 as the target, the ODBC Endpoint should be chosen as the target type to connect to the DB2 database.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="David_Fergen_0-1595353773806.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37823i7D2482EE3FB0E021/image-size/medium?v=v2&amp;amp;px=400" role="button" title="David_Fergen_0-1595353773806.jpeg" alt="David_Fergen_0-1595353773806.jpeg" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Once ODBC is chosen a DSN (Data Source Name) that is already configured for DB2 can be specified.&amp;nbsp;&amp;nbsp; This assumes that the proper DB2 ODBC/CLI drivers have been installed and configured on the Replicate server.&amp;nbsp;&amp;nbsp; Note that on a Linux server an ODBC driver manager such as unixODBC is also assumed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="David_Fergen_1-1595353773811.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37821iAAD2191FEC64C574/image-size/medium?v=v2&amp;amp;px=400" role="button" title="David_Fergen_1-1595353773811.jpeg" alt="David_Fergen_1-1595353773811.jpeg" /&gt;&lt;/span&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;“Advanced” settings should also be added to this endpoint definition, specifically:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Set the syntax to “DB2”.&lt;/LI&gt;
&lt;/OL&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="David_Fergen_2-1595353773814.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37822i61B273BE0DFB6472/image-size/medium?v=v2&amp;amp;px=400" role="button" title="David_Fergen_2-1595353773814.jpeg" alt="David_Fergen_2-1595353773814.jpeg" /&gt;&lt;/span&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Define an internal parameter for the desired table truncation command.&amp;nbsp; In this case the parameter we are defining is $info.query_syntax.truncate_table.&amp;nbsp; The value will depend on the DB2 target platform but in most cases will either be:
&lt;OL&gt;
&lt;LI&gt;DELETE FROM ${QO}${TABLE_OWNER}${QC}.${QO}${TABLE_NAME}${QC}&lt;/LI&gt;
&lt;LI&gt;TRUNCATE TABLE ${QO}${TABLE_OWNER}${QC}.${QO}${TABLE_NAME}${QC}&lt;/LI&gt;
&lt;LI&gt;TRUNCATE TABLE ${QO}${TABLE_OWNER}${QC}.${QO}${TABLE_NAME}${QC} IMMEDIATE&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="David_Fergen_3-1595353773817.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37824i220DC118CFF52332/image-size/medium?v=v2&amp;amp;px=400" role="button" title="David_Fergen_3-1595353773817.jpeg" alt="David_Fergen_3-1595353773817.jpeg" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Cause:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;With these endpoint configuration tips in mind replication to DB2 through ODBC is possible. Note: that the Qlik Replicate ODBC Target endpoint is enabled through licensing.&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
    <pubDate>Fri, 28 Aug 2020 09:39:37 GMT</pubDate>
    <dc:creator>David_Fergen</dc:creator>
    <dc:date>2020-08-28T09:39:37Z</dc:date>
    <item>
      <title>Tips for replicating to a DB2 target.</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Tips-for-replicating-to-a-DB2-target/ta-p/1729644</link>
      <description>&lt;DIV class="lia-message-template-content-zone"&gt;
&lt;P&gt;Replication does not specifically list IBM DB2 (any platform) as a replication target.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Resolution:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;When a Replication project calls for DB2 as the target, the ODBC Endpoint should be chosen as the target type to connect to the DB2 database.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="David_Fergen_0-1595353773806.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37823i7D2482EE3FB0E021/image-size/medium?v=v2&amp;amp;px=400" role="button" title="David_Fergen_0-1595353773806.jpeg" alt="David_Fergen_0-1595353773806.jpeg" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Once ODBC is chosen a DSN (Data Source Name) that is already configured for DB2 can be specified.&amp;nbsp;&amp;nbsp; This assumes that the proper DB2 ODBC/CLI drivers have been installed and configured on the Replicate server.&amp;nbsp;&amp;nbsp; Note that on a Linux server an ODBC driver manager such as unixODBC is also assumed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="David_Fergen_1-1595353773811.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37821iAAD2191FEC64C574/image-size/medium?v=v2&amp;amp;px=400" role="button" title="David_Fergen_1-1595353773811.jpeg" alt="David_Fergen_1-1595353773811.jpeg" /&gt;&lt;/span&gt;
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;“Advanced” settings should also be added to this endpoint definition, specifically:&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Set the syntax to “DB2”.&lt;/LI&gt;
&lt;/OL&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="David_Fergen_2-1595353773814.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37822i61B273BE0DFB6472/image-size/medium?v=v2&amp;amp;px=400" role="button" title="David_Fergen_2-1595353773814.jpeg" alt="David_Fergen_2-1595353773814.jpeg" /&gt;&lt;/span&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Define an internal parameter for the desired table truncation command.&amp;nbsp; In this case the parameter we are defining is $info.query_syntax.truncate_table.&amp;nbsp; The value will depend on the DB2 target platform but in most cases will either be:
&lt;OL&gt;
&lt;LI&gt;DELETE FROM ${QO}${TABLE_OWNER}${QC}.${QO}${TABLE_NAME}${QC}&lt;/LI&gt;
&lt;LI&gt;TRUNCATE TABLE ${QO}${TABLE_OWNER}${QC}.${QO}${TABLE_NAME}${QC}&lt;/LI&gt;
&lt;LI&gt;TRUNCATE TABLE ${QO}${TABLE_OWNER}${QC}.${QO}${TABLE_NAME}${QC} IMMEDIATE&lt;/LI&gt;
&lt;/OL&gt;
&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="David_Fergen_3-1595353773817.jpeg" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/37824i220DC118CFF52332/image-size/medium?v=v2&amp;amp;px=400" role="button" title="David_Fergen_3-1595353773817.jpeg" alt="David_Fergen_3-1595353773817.jpeg" /&gt;&lt;/span&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Cause:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;With these endpoint configuration tips in mind replication to DB2 through ODBC is possible. Note: that the Qlik Replicate ODBC Target endpoint is enabled through licensing.&amp;nbsp;&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Fri, 28 Aug 2020 09:39:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Tips-for-replicating-to-a-DB2-target/ta-p/1729644</guid>
      <dc:creator>David_Fergen</dc:creator>
      <dc:date>2020-08-28T09:39:37Z</dc:date>
    </item>
  </channel>
</rss>

