<?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 Calling a stored procedure or function in Oracle from QlikView in Official Support Articles</title>
    <link>https://community.qlik.com/t5/Official-Support-Articles/Calling-a-stored-procedure-or-function-in-Oracle-from-QlikView/ta-p/1710260</link>
    <description>&lt;DIV&gt;In Oracle, you can call a stored function with a syntax &amp;nbsp;like:&lt;/DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;var result number
exec :result := pkg_ims_status.ext_checkdbstatus()&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The function will return a value stored in the variable "result".&lt;BR /&gt;&lt;BR /&gt;You can call the same function in QlikView script using an ordinary SQL SELECT-statement.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;H4&gt;Environment:&lt;/H4&gt;
&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="QlikView" id="qlikView"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;Resolution:&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;SQL SELECT-statement:&lt;/DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;SQL SELECT
pkg_ims_status.ext_checkdbstatus() as status;&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;Running a stored procedure without returning any recordset&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Use the function CALL to specify the name of the stored procedure.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;Example (launches the stored procedure XYZ with two parameters 2 and 5):&lt;/DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;sql call XYZ ( 2 , 5 ); &lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;STRONG&gt;Note1:&amp;nbsp;&lt;/STRONG&gt;Make sure to check &amp;nbsp;"Open Databases in Read and Write mode" in QlikView. This is done in the script editor on the tab "Settings".&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Note2:&amp;nbsp;&lt;/STRONG&gt;If using OLEDB as a provider, make sure to add the parameter "mode is write" in the OLEDB-connection:&lt;BR /&gt;CONNECT TO [Provider=OraOLEDB.Oracle;Data Source=MyOracleDB;](mode is write);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Mon, 07 Jun 2021 11:12:59 GMT</pubDate>
    <dc:creator>Bjorn_Wedbratt</dc:creator>
    <dc:date>2021-06-07T11:12:59Z</dc:date>
    <item>
      <title>Calling a stored procedure or function in Oracle from QlikView</title>
      <link>https://community.qlik.com/t5/Official-Support-Articles/Calling-a-stored-procedure-or-function-in-Oracle-from-QlikView/ta-p/1710260</link>
      <description>&lt;DIV&gt;In Oracle, you can call a stored function with a syntax &amp;nbsp;like:&lt;/DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;var result number
exec :result := pkg_ims_status.ext_checkdbstatus()&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;The function will return a value stored in the variable "result".&lt;BR /&gt;&lt;BR /&gt;You can call the same function in QlikView script using an ordinary SQL SELECT-statement.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;H4&gt;Environment:&lt;/H4&gt;
&lt;DIV class="lia-indent-padding-left-30px"&gt;&lt;LI-PRODUCT title="QlikView" id="qlikView"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3 class="qlik-migrated-tkb-headings"&gt;Resolution:&lt;/H3&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;SQL SELECT-statement:&lt;/DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;SQL SELECT
pkg_ims_status.ext_checkdbstatus() as status;&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;Running a stored procedure without returning any recordset&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;Use the function CALL to specify the name of the stored procedure.&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;Example (launches the stored procedure XYZ with two parameters 2 and 5):&lt;/DIV&gt;
&lt;DIV&gt;&lt;LI-CODE lang="markup"&gt;sql call XYZ ( 2 , 5 ); &lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;DIV style="margin-left: 40px;"&gt;&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;&lt;STRONG&gt;Note1:&amp;nbsp;&lt;/STRONG&gt;Make sure to check &amp;nbsp;"Open Databases in Read and Write mode" in QlikView. This is done in the script editor on the tab "Settings".&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Note2:&amp;nbsp;&lt;/STRONG&gt;If using OLEDB as a provider, make sure to add the parameter "mode is write" in the OLEDB-connection:&lt;BR /&gt;CONNECT TO [Provider=OraOLEDB.Oracle;Data Source=MyOracleDB;](mode is write);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Mon, 07 Jun 2021 11:12:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Official-Support-Articles/Calling-a-stored-procedure-or-function-in-Oracle-from-QlikView/ta-p/1710260</guid>
      <dc:creator>Bjorn_Wedbratt</dc:creator>
      <dc:date>2021-06-07T11:12:59Z</dc:date>
    </item>
  </channel>
</rss>

