Oracle Analytics Cloud and Server

Welcome to the Oracle Analytics Community: Please complete your User Profile and upload your Profile Picture

Calling a stored procedure in BI Publisher Datamodel

Received Response
1215
Views
6
Comments

Summary

Calling a stored procedure in BI Publisher Datamodel

Content

Hi All,

 

I want to call a Oracle Stored Procedure with output parameters in Oracle BI Publisher DataModel. Any idea on how to use the 'Procedure call/Non Standard SQL' for achieving this?

Tagged:

Answers

  • Dir_Pal
    Dir_Pal Rank 6 - Analytics Lead

    it is possible using Event Triggers. This feature is available from version 11.1.1.6. You can refer documentation here https://docs.oracle.com/cd/E23943_01/bi.1111/e22258/add_event_trig.htm#BIPDM331

    Update: As per documentation only functions are allowed. "The BI Publisher data model supports before data and after data triggers that execute a PL/SQL function stored in a PL/SQL package in your Oracle Database. The return data type for a PL/SQL function inside the package must be a Boolean type and the function must explicitly return TRUE or FALSE."

  • Dir_Pal
    Dir_Pal Rank 6 - Analytics Lead

    IF u want to get the output u cant call the stored procedure with out parameter . U have to convert the procedure to function to get the output.

  • Rajesh123
    Rajesh123 Rank 6 - Analytics Lead

    Hi ,

    You are in EBS correct ? if you want call your procedure then use like below.

    call the procedure like below where ever you want...

    Get_contact( contact_id, fname, lname, attn, mail_stop1 );

    out variables,

    first_name := fname;

    last_name := lname;

    ship_to_attn := attn;

    mail_stop := mail_stop1;

    you should let me know your requirement,

  • Surya Muralidharan-78192
    Surya Muralidharan-78192 Rank 1 - Community Starter

    I have written a wrapper function that will call the stored procedure and return true or false and this function I was able to call in the BI Publisher Triggers and use it in Datamodel. Thanks much for the immediate help.

  • venkat ram-143549
    venkat ram-143549 Rank 1 - Community Starter

    Hi , 

    Could you please post your wrapper code for this req ?