Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE

Calling a stored procedure or function in Oracle from QlikView

No ratings
cancel
Showing results for 
Search instead for 
Did you mean: 
Bjorn_Wedbratt
Former Employee
Former Employee

Calling a stored procedure or function in Oracle from QlikView

Last Update:

Jun 7, 2021 7:12:59 AM

Updated By:

Sonja_Bauernfeind

Created date:

Jan 17, 2012 4:53:14 AM

In Oracle, you can call a stored function with a syntax  like:
var result number
exec :result := pkg_ims_status.ext_checkdbstatus()
 
The function will return a value stored in the variable "result".

You can call the same function in QlikView script using an ordinary SQL SELECT-statement.
 

Environment:

 

Resolution:

 

SQL SELECT-statement:
SQL SELECT
pkg_ims_status.ext_checkdbstatus() as status;
 
 
Running a stored procedure without returning any recordset
 
Use the function CALL to specify the name of the stored procedure.

Example (launches the stored procedure XYZ with two parameters 2 and 5):
sql call XYZ ( 2 , 5 ); 

 

Note1: Make sure to check  "Open Databases in Read and Write mode" in QlikView. This is done in the script editor on the tab "Settings".

Note2: If using OLEDB as a provider, make sure to add the parameter "mode is write" in the OLEDB-connection:
CONNECT TO [Provider=OraOLEDB.Oracle;Data Source=MyOracleDB;](mode is write);

 
Labels (2)
Contributors
Version history
Last update:
‎2021-06-07 07:12 AM
Updated by: