<?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 Proper syntax for parallel load segments from Oracle to Sql server in Qlik Replicate</title>
    <link>https://community.qlik.com/t5/Qlik-Replicate/Proper-syntax-for-parallel-load-segments-from-Oracle-to-Sql/m-p/1931992#M2711</link>
    <description>&lt;P&gt;Hi folks,&lt;/P&gt;
&lt;P&gt;New to Qlik Replicate and trying to understand proper syntax to use the parallel load (full load) feature by data segment for a date column.&lt;/P&gt;
&lt;P&gt;Source database is Oracle and a table we're trying to fully load into Sql server 2019 has over 83 million rows.&amp;nbsp; It has over 1300 partitions by date and the full load by partitions will take just over 14 hours.&amp;nbsp; (Throughput records is 1635 and Throughput volume is 1605.)&lt;/P&gt;
&lt;P&gt;I wanted to test if manually defining the date segments via "use data ranges" and having fewer plus more evenly distributed segments, still by date, would offer better performance; however, I keep getting some sort of error.&lt;/P&gt;
&lt;P&gt;For the segment boundaries, the instructions indicate to specify the "upper limit of the range":&lt;/P&gt;
&lt;P&gt;Segment 1:&amp;nbsp;&amp;nbsp;'2019-01-19 00:00:00'&lt;/P&gt;
&lt;P&gt;Segment 2:&amp;nbsp; '2019-07-01 00:00:00'&lt;/P&gt;
&lt;P&gt;Segment 3:&amp;nbsp; '2020-01-01 00:00:00'&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;Segment 7:&amp;nbsp;'2025-01-01 00:00:00'&lt;/P&gt;
&lt;P&gt;This attempt resulted in:&lt;/P&gt;
&lt;P&gt;"Failed to init unloading table '&amp;lt;database&amp;gt;'.'&amp;lt;table&amp;gt;'&lt;BR /&gt;ORA-01841: (full) year must be between -4713 and +9999, and not be 0 "&lt;/P&gt;
&lt;P&gt;&amp;amp;&lt;/P&gt;
&lt;P&gt;"Stream component 'st_1_&amp;lt;task&amp;gt;' terminated&lt;BR /&gt;Stream component failed at subtask 1, component st_1_&amp;lt;task&amp;gt;&lt;BR /&gt;Error executing source loop"&lt;/P&gt;
&lt;P&gt;Any thoughts or advice?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 17 May 2022 18:33:18 GMT</pubDate>
    <dc:creator>rurquhart</dc:creator>
    <dc:date>2022-05-17T18:33:18Z</dc:date>
    <item>
      <title>Proper syntax for parallel load segments from Oracle to Sql server</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Proper-syntax-for-parallel-load-segments-from-Oracle-to-Sql/m-p/1931992#M2711</link>
      <description>&lt;P&gt;Hi folks,&lt;/P&gt;
&lt;P&gt;New to Qlik Replicate and trying to understand proper syntax to use the parallel load (full load) feature by data segment for a date column.&lt;/P&gt;
&lt;P&gt;Source database is Oracle and a table we're trying to fully load into Sql server 2019 has over 83 million rows.&amp;nbsp; It has over 1300 partitions by date and the full load by partitions will take just over 14 hours.&amp;nbsp; (Throughput records is 1635 and Throughput volume is 1605.)&lt;/P&gt;
&lt;P&gt;I wanted to test if manually defining the date segments via "use data ranges" and having fewer plus more evenly distributed segments, still by date, would offer better performance; however, I keep getting some sort of error.&lt;/P&gt;
&lt;P&gt;For the segment boundaries, the instructions indicate to specify the "upper limit of the range":&lt;/P&gt;
&lt;P&gt;Segment 1:&amp;nbsp;&amp;nbsp;'2019-01-19 00:00:00'&lt;/P&gt;
&lt;P&gt;Segment 2:&amp;nbsp; '2019-07-01 00:00:00'&lt;/P&gt;
&lt;P&gt;Segment 3:&amp;nbsp; '2020-01-01 00:00:00'&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;Segment 7:&amp;nbsp;'2025-01-01 00:00:00'&lt;/P&gt;
&lt;P&gt;This attempt resulted in:&lt;/P&gt;
&lt;P&gt;"Failed to init unloading table '&amp;lt;database&amp;gt;'.'&amp;lt;table&amp;gt;'&lt;BR /&gt;ORA-01841: (full) year must be between -4713 and +9999, and not be 0 "&lt;/P&gt;
&lt;P&gt;&amp;amp;&lt;/P&gt;
&lt;P&gt;"Stream component 'st_1_&amp;lt;task&amp;gt;' terminated&lt;BR /&gt;Stream component failed at subtask 1, component st_1_&amp;lt;task&amp;gt;&lt;BR /&gt;Error executing source loop"&lt;/P&gt;
&lt;P&gt;Any thoughts or advice?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 18:33:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Proper-syntax-for-parallel-load-segments-from-Oracle-to-Sql/m-p/1931992#M2711</guid>
      <dc:creator>rurquhart</dc:creator>
      <dc:date>2022-05-17T18:33:18Z</dc:date>
    </item>
    <item>
      <title>Re: Proper syntax for parallel load segments from Oracle to Sql server</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Proper-syntax-for-parallel-load-segments-from-Oracle-to-Sql/m-p/1932006#M2712</link>
      <description>&lt;P&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(46,46,46);font-size:13px;"&gt;&lt;STRONG&gt;@rgurquhart&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(46,46,46);font-size:13px;"&gt;&lt;STRONG&gt;1. could you check with your source on this table , what is the column that you use for the segment, what is the datatype ?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(46,46,46);font-size:13px;"&gt;&lt;STRONG&gt;2. could you verify the datetime from that column, exactly ?&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 18:50:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Proper-syntax-for-parallel-load-segments-from-Oracle-to-Sql/m-p/1932006#M2712</guid>
      <dc:creator>Steve_Nguyen</dc:creator>
      <dc:date>2022-05-17T18:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proper syntax for parallel load segments from Oracle to Sql server</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Proper-syntax-for-parallel-load-segments-from-Oracle-to-Sql/m-p/1932008#M2713</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/140598"&gt;@rurquhart&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please post the data type for that column being segmented. It should work without the single quotes around the timestamp.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 18:57:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Proper-syntax-for-parallel-load-segments-from-Oracle-to-Sql/m-p/1932008#M2713</guid>
      <dc:creator>Alan_Wang</dc:creator>
      <dc:date>2022-05-17T18:57:31Z</dc:date>
    </item>
    <item>
      <title>Re: Proper syntax for parallel load segments from Oracle to Sql server</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Proper-syntax-for-parallel-load-segments-from-Oracle-to-Sql/m-p/1932010#M2714</link>
      <description>&lt;P&gt;Hi Steve,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Source column 'abc' has data type defined as a DATE.&amp;nbsp; It's also partitioned by this column 'abc' in the source database.&lt;/P&gt;
&lt;P&gt;Here's one snippet of the source database ddl:&lt;/P&gt;
&lt;P&gt;NOCOMPRESS &lt;BR /&gt;NOPARALLEL &lt;BR /&gt;PARTITION BY RANGE (abc) &lt;BR /&gt;(&lt;BR /&gt;PARTITION P_20130327 VALUES LESS THAN (TO_DATE(' 2013-03-28 00:00:00', 'SYYYY-MM-DD HH24:MI:SS', 'NLS_CALENDAR=GREGORIAN')) &lt;BR /&gt;LOGGING &lt;BR /&gt;TABLESPACE DW_LARGE_DATA01 &lt;BR /&gt;PCTFREE 10 &lt;BR /&gt;INITRANS 1 &lt;BR /&gt;STORAGE&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the Qlik app, I used column abc as the segment column.&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 19:00:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Proper-syntax-for-parallel-load-segments-from-Oracle-to-Sql/m-p/1932010#M2714</guid>
      <dc:creator>rurquhart</dc:creator>
      <dc:date>2022-05-17T19:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Proper syntax for parallel load segments from Oracle to Sql server</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Proper-syntax-for-parallel-load-segments-from-Oracle-to-Sql/m-p/1932021#M2715</link>
      <description>&lt;P&gt;Looks like the issue with date format, we can use function similar to below and convert date to DD-MM-YYYY format and then test.&lt;/P&gt;
&lt;P&gt;SELECT to_char(to_date('2019-01-19 00:00:00','RRRR-MM-DD HH24:MI:SS'), 'DD-MM-RRRR HH24:MI:SS') FROM dual&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 May 2022 19:24:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Proper-syntax-for-parallel-load-segments-from-Oracle-to-Sql/m-p/1932021#M2715</guid>
      <dc:creator>shashi_holla</dc:creator>
      <dc:date>2022-05-17T19:24:49Z</dc:date>
    </item>
    <item>
      <title>Re: Proper syntax for parallel load segments from Oracle to Sql server</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Proper-syntax-for-parallel-load-segments-from-Oracle-to-Sql/m-p/1935750#M2802</link>
      <description>&lt;P&gt;Thanks, everyone, for your suggestions.&amp;nbsp; &amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/139663"&gt;@Alan_Wang&lt;/a&gt;&amp;nbsp; &amp;nbsp;This recommendation helped get past the syntax error I would normally receive; however, I'm now getting duplicate rows loaded based only on the segment values listed as such above.&lt;/P&gt;
&lt;P&gt;Reminder:&lt;/P&gt;
&lt;P&gt;Segment 1:&amp;nbsp;&amp;nbsp;'2019-01-19 00:00:00'&lt;/P&gt;
&lt;P&gt;Segment 2:&amp;nbsp; '2019-07-01 00:00:00'&lt;/P&gt;
&lt;P&gt;Segment 3:&amp;nbsp; '2020-01-01 00:00:00'&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;Segment 7:&amp;nbsp;'2025-01-01 00:00:00'&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does this section allow for logic to be applied?&amp;nbsp; &amp;nbsp; Example, something along these lines:&lt;/P&gt;
&lt;P&gt;Segment Boundaries abc&lt;BR /&gt;1 &amp;lt;'2019-01-19 00:00:00'&lt;BR /&gt;2 abc&amp;lt;'2019-07-01 00:00:00' AND abc &amp;gt; '2018-12-31 23:59:59'&lt;BR /&gt;3 abc&amp;lt;'2020-01-01 00:00:00' AND abc &amp;gt; '2019-06-30 23:59:59'&lt;BR /&gt;4 abc&amp;lt;'2020-04-01 00:00:00' AND abc&amp;gt;'2019-12-31 23:59:59'&lt;BR /&gt;5 abc&amp;lt;'2020-07-01 00:00:00' AND abc&amp;gt;'2020-03-31 23:59:59'&lt;BR /&gt;6 abc&amp;gt;'2020-03-31-23:59:59'&lt;BR /&gt;7 !=0&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for any further guidance/suggestions.&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 19:39:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Proper-syntax-for-parallel-load-segments-from-Oracle-to-Sql/m-p/1935750#M2802</guid>
      <dc:creator>rurquhart</dc:creator>
      <dc:date>2022-05-25T19:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: Proper syntax for parallel load segments from Oracle to Sql server</title>
      <link>https://community.qlik.com/t5/Qlik-Replicate/Proper-syntax-for-parallel-load-segments-from-Oracle-to-Sql/m-p/1935758#M2803</link>
      <description>&lt;P&gt;&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(46,46,46);font-size:13px;"&gt;&lt;STRONG&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/140598"&gt;@rurquhart&lt;/a&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the logic is some what correct, below is from my task , so that you see the logic&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;you can enable source_unload to trace and see the how the segment is done.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;example in my task :&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Line 2232: 00007976: 2022-05-25T14:56:43:735596 [SOURCE_UNLOAD &amp;nbsp; ]T: &amp;nbsp;Order by '', Resume Where '', Transformation Where ' ( ([MyDate1] &amp;lt;= '2013-09-10 10:01:04') ) ' &amp;nbsp;(endpointshell.c:8433)&lt;BR /&gt;Line 4511: 00007956: 2022-05-25T14:56:43:860593 [SOURCE_UNLOAD &amp;nbsp; ]T: &amp;nbsp;Order by '', Resume Where '', Transformation Where ' (NOT (([MyDate1] &amp;lt;= '2013-09-10 10:01:04') )) &amp;nbsp;AND &amp;nbsp;( ([MyDate1] &amp;lt;= '2013-09-10 10:01:05') ) ' &amp;nbsp;(endpointshell.c:8433)&lt;BR /&gt;Line 15208: 00003040: 2022-05-25T14:56:44:39594 &amp;nbsp;[SOURCE_UNLOAD &amp;nbsp; ]T: &amp;nbsp;Order by '', Resume Where '', Transformation Where ' (NOT (([MyDate1] &amp;lt;= '2013-09-10 10:01:05') )) &amp;nbsp;AND &amp;nbsp;( ([MyDate1] &amp;lt;= '2014-09-10 10:01:06') ) ' &amp;nbsp;(endpointshell.c:8433)&lt;BR /&gt;Line 349199: 00003248: 2022-05-25T14:56:47:276590 [SOURCE_UNLOAD &amp;nbsp; ]T: &amp;nbsp;Order by '', Resume Where '', Transformation Where ' (NOT (([MyDate1] &amp;lt;= '2014-09-10 10:01:06') )) ' &amp;nbsp;(endpointshell.c:8433)&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;---&lt;/P&gt;
&lt;P&gt;for duplicate, it could happen if the date is not the whole PK, Segment normally work with PK, see user guide :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.qlik.com/en-US/replicate/May2022/Content/Global_Common/Content/SharedEMReplicate/Customize%20Tasks/Parallel_Load.htm" target="_blank"&gt;https://help.qlik.com/en-US/replicate/May2022/Content/Global_Common/Content/SharedEMReplicate/Customize%20Tasks/Parallel_Load.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;-&lt;SPAN style="background-color:rgb(255,255,255);color:rgb(15,15,15);font-size:16px;"&gt;For all endpoints, the Unique Index column is automatically selected. Select which additional columns whose data you wish to use to delineate the ranges and then click &lt;STRONG&gt;OK&lt;/STRONG&gt;.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 20:18:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Qlik-Replicate/Proper-syntax-for-parallel-load-segments-from-Oracle-to-Sql/m-p/1935758#M2803</guid>
      <dc:creator>Steve_Nguyen</dc:creator>
      <dc:date>2022-05-25T20:18:34Z</dc:date>
    </item>
  </channel>
</rss>

