<?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 Calling Oracle Stored Procedure in Load Script Does Not Return Data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calling-Oracle-Stored-Procedure-in-Load-Script-Does-Not-Return/m-p/1240520#M394013</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a stored procedure that returns a ref cursor. I can execute the stored procedure in Toad and it returns results. If I call this from my QlikView load script, I get an error regardless of the syntax I use. I read on one of the posts that you can only return a result set from Oracle functions, not stored procedures, in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I created a function that calls the stored procedure and returns the Ref Cursor. I can successfully call this from Toad and I get a result set. If I call it from QlikView, it appears to run, but I never get any result. In other words, there are no tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the syntax that I'm using...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLEDB CONNECT TO [my connect string.....](mode is write);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;TheTable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; *;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;SQL SELECT {? = call&amp;nbsp;&amp;nbsp; TheSchema.TheFunctionName ('somevalue', TO_DATE ('31-DEC-16', 'DD-MON-RR'))};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;(I also have the flag set to open databases in read/write mode.)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;This runs, but it never produces any data. I've tried all of the other examples posted in QlikCommunity, but none of them work either.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Does anyone know how to return a result set into a QlikView table from an Oracle Stored Procedure?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Feb 2017 22:55:15 GMT</pubDate>
    <dc:creator />
    <dc:date>2017-02-21T22:55:15Z</dc:date>
    <item>
      <title>Calling Oracle Stored Procedure in Load Script Does Not Return Data</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-Oracle-Stored-Procedure-in-Load-Script-Does-Not-Return/m-p/1240520#M394013</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a stored procedure that returns a ref cursor. I can execute the stored procedure in Toad and it returns results. If I call this from my QlikView load script, I get an error regardless of the syntax I use. I read on one of the posts that you can only return a result set from Oracle functions, not stored procedures, in QlikView.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, I created a function that calls the stored procedure and returns the Ref Cursor. I can successfully call this from Toad and I get a result set. If I call it from QlikView, it appears to run, but I never get any result. In other words, there are no tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the syntax that I'm using...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OLEDB CONNECT TO [my connect string.....](mode is write);&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;TheTable:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp; *;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;SQL SELECT {? = call&amp;nbsp;&amp;nbsp; TheSchema.TheFunctionName ('somevalue', TO_DATE ('31-DEC-16', 'DD-MON-RR'))};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;(I also have the flag set to open databases in read/write mode.)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;This runs, but it never produces any data. I've tried all of the other examples posted in QlikCommunity, but none of them work either.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Does anyone know how to return a result set into a QlikView table from an Oracle Stored Procedure?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 22:55:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-Oracle-Stored-Procedure-in-Load-Script-Does-Not-Return/m-p/1240520#M394013</guid>
      <dc:creator />
      <dc:date>2017-02-21T22:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Oracle Stored Procedure in Load Script Does Not Return Data</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-Oracle-Stored-Procedure-in-Load-Script-Does-Not-Return/m-p/1240521#M394014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here I post&amp;nbsp; an&amp;nbsp; answer&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/556096"&gt;Re: How to trigger PL/SQl Stored Procedures from Qlikview Application???&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 23:22:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-Oracle-Stored-Procedure-in-Load-Script-Does-Not-Return/m-p/1240521#M394014</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2017-02-21T23:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Oracle Stored Procedure in Load Script Does Not Return Data</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-Oracle-Stored-Procedure-in-Load-Script-Does-Not-Return/m-p/1240522#M394015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You'll notice that what I'm doing is identical to what you're doing. I'm not getting anything back. Is is because I'm using OLDDB and not ODBC?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be great if someone from Qlik could weigh in here. It seems really Odd that QlikView can't call Oracle stored procedures.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 05:30:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-Oracle-Stored-Procedure-in-Load-Script-Does-Not-Return/m-p/1240522#M394015</guid>
      <dc:creator />
      <dc:date>2017-02-22T05:30:26Z</dc:date>
    </item>
    <item>
      <title>Re: Calling Oracle Stored Procedure in Load Script Does Not Return Data</title>
      <link>https://community.qlik.com/t5/QlikView/Calling-Oracle-Stored-Procedure-in-Load-Script-Does-Not-Return/m-p/1240523#M394016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;You'll notice that what I'm doing is identical to what you're doing. I'm not getting anything back. Is is because I'm using OLDDB and not ODBC?&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;In my old post (2014) I wrote &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;"these 2 works on my oracle (only with odbc, not with oledb)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;I think because I tried oledb and odbc but only odbc worked in my environment..&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 06:45:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calling-Oracle-Stored-Procedure-in-Load-Script-Does-Not-Return/m-p/1240523#M394016</guid>
      <dc:creator>maxgro</dc:creator>
      <dc:date>2017-02-22T06:45:10Z</dc:date>
    </item>
  </channel>
</rss>

