<?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 Unexpected end of data with Oracle ODBC in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Unexpected-end-of-data-with-Oracle-ODBC/m-p/1292220#M403852</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most of the time the script will run but sometimes we get the following?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QVX_UNEXPECTED_END_OF_DATA: SQL##f - SqlState: 08S01, ErrorCode: 3113, ErrorMsg: [Oracle][ODBC][Ora]ORA-03113: end-of-file on communication channel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script is pulling about 4M rows but there is another document load which is running against the same Oracle DB&lt;/P&gt;&lt;P&gt;The SQL is embedded (i.e. no views).&amp;nbsp; It's somewhat complex with 8 SQL joins and the rest of the script has a Qlik left join.&lt;/P&gt;&lt;P&gt;If it runs normally, it will take 1 1/4 - 2 hours.&amp;nbsp; When it crashes, it only runs about 30 minutes but the crash is consistently occurring&lt;/P&gt;&lt;P&gt;on the first data pull - the one with 8 joins&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very difficult to find root cause because Qlik does not return any detail.&amp;nbsp; It's as if the DB connection is being dropped.&amp;nbsp; The connection uses a default timeout.&amp;nbsp; I've read on the community one resolution regarding how many cores are active - not the most encouraging news since fewer cores would impact performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm researching the possibility of loading the source tables into QVD's and then creating a star schema the dashboard will load&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Feb 2017 16:47:58 GMT</pubDate>
    <dc:creator>markp201</dc:creator>
    <dc:date>2017-02-03T16:47:58Z</dc:date>
    <item>
      <title>Unexpected end of data with Oracle ODBC</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-end-of-data-with-Oracle-ODBC/m-p/1292220#M403852</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Most of the time the script will run but sometimes we get the following?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;QVX_UNEXPECTED_END_OF_DATA: SQL##f - SqlState: 08S01, ErrorCode: 3113, ErrorMsg: [Oracle][ODBC][Ora]ORA-03113: end-of-file on communication channel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The script is pulling about 4M rows but there is another document load which is running against the same Oracle DB&lt;/P&gt;&lt;P&gt;The SQL is embedded (i.e. no views).&amp;nbsp; It's somewhat complex with 8 SQL joins and the rest of the script has a Qlik left join.&lt;/P&gt;&lt;P&gt;If it runs normally, it will take 1 1/4 - 2 hours.&amp;nbsp; When it crashes, it only runs about 30 minutes but the crash is consistently occurring&lt;/P&gt;&lt;P&gt;on the first data pull - the one with 8 joins&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Very difficult to find root cause because Qlik does not return any detail.&amp;nbsp; It's as if the DB connection is being dropped.&amp;nbsp; The connection uses a default timeout.&amp;nbsp; I've read on the community one resolution regarding how many cores are active - not the most encouraging news since fewer cores would impact performance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm researching the possibility of loading the source tables into QVD's and then creating a star schema the dashboard will load&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Feb 2017 16:47:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-end-of-data-with-Oracle-ODBC/m-p/1292220#M403852</guid>
      <dc:creator>markp201</dc:creator>
      <dc:date>2017-02-03T16:47:58Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected end of data with Oracle ODBC</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-end-of-data-with-Oracle-ODBC/m-p/1292221#M403853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm running into a similar problem. Were you able to solve this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 08:35:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-end-of-data-with-Oracle-ODBC/m-p/1292221#M403853</guid>
      <dc:creator />
      <dc:date>2017-05-09T08:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Unexpected end of data with Oracle ODBC</title>
      <link>https://community.qlik.com/t5/QlikView/Unexpected-end-of-data-with-Oracle-ODBC/m-p/1292222#M403854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The issue was the backend was not returning rows because it was spending too much time searching (where clause, order by clause, group by were the main culprits)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There were a few ways to resolve...&lt;/P&gt;&lt;P&gt;1. Add the appropriate indexes to the backend tables&lt;/P&gt;&lt;P&gt;2. Read all rows (no where, order by, group by) into a temp table. This was surprisingly fast since the backend doesn't have to search the table but it can be time consuming if loading numerous and/or large fields.&amp;nbsp; Load from temp table and apply group/where/order.&amp;nbsp; I don't recall but I think order by cannot be used with a qvd&lt;/P&gt;&lt;P&gt;3. Read all rows into a QVD instead of temp table.&amp;nbsp; Supposedly QVDs are faster than resident tables.&lt;/P&gt;&lt;P&gt;4. Parallel loads.&amp;nbsp; Schedule multiple scripts to load data into QVDs then the final script to build your dimensional model (this was our solution)&lt;/P&gt;&lt;P&gt;5. Use OLEDB in place of ODBC.&amp;nbsp; Typically OLEDB are dedicated drivers but may require licensing.&lt;/P&gt;&lt;P&gt;6. Extend the odbc timeout parameter which is not a 100% solution but deserves a mention&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Happy Hunting.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 May 2017 16:27:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Unexpected-end-of-data-with-Oracle-ODBC/m-p/1292222#M403854</guid>
      <dc:creator>markp201</dc:creator>
      <dc:date>2017-05-09T16:27:01Z</dc:date>
    </item>
  </channel>
</rss>

