Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

setup a job that reads RECORD TYPE variable from a Oracle Stored Procedure

I am looking for an example to setup a job that reads RECORD TYPE variable from a Oracle Stored Procedure. my stored procedure looks something like this. I will really appreciate any help.

 

create or replace package testpkg as
    --
    type test_rec is record (
        pid               number,
        pname             varchar2(30)
    );
    --
    procedure main (
        p_id                in varchar2 := null,
        p_admin_status      in varchar2 := null,
        p_return_rec        out test_rec
    );
end;
/
create or replace package body testpkg as
    --
    procedure main (
        p_id                in varchar2 := null,
        p_admin_status      in varchar2 := null,
        p_return_rec        out test_rec
    )
    is
    begin
      --
      p_return_rec.pid   := 1;
      p_return_rec.pname := 'John Doe';
      --
    end;
    --
end;
Labels (1)
7 Replies
Anonymous
Not applicable
Author

Hi mhyder
Please take a look at this KB article about how to call a stored procedure or function in a Job. In your case, you need to define one column with Object type on the schema of tOracleSP, and select Type as 'Record SET' in the Parameter list, use a tParseRecordSet component to parse the record set after tOracleSP.
https://help.talend.com/pages/viewpage.action?pageId=190513258
let me know if it works.

Regards
Shong

Anonymous
Not applicable
Author

Shong, 
Thank you for your reply. I pretty much followed the steps you detail. but i am still missing something.

How do i upload screen shots to this discussion ?

Anonymous
Not applicable
Author

Hi
You can insert images from your computer (this uploads the image to your gallery), from your image gallery (if the image has been approved), or from another location on the web.

To insert an image in a post:
1. Start a new post.
2. Click Insert Image in the editor tool bar.
3. Choose one of the image source options and follow the on-screen instructions.

Regards
Shong

Anonymous
Not applicable
Author

this is the complete work flow and as you can see tParseRecordSet is erroring. 

 

0683p000009LtxI.jpg0683p000009LtxN.jpg0683p000009LtxS.jpg0683p000009LtxT.jpg

Anonymous
Not applicable
Author

Hi
It seems you don't configure tParseRecordset correctly. Can you upload a screenshot of basic settings of tParseRecordset?

Regards
Shong
Anonymous
Not applicable
Author

Shong,

 

this is what i have for basic setting for tParseRecordSet

 

0683p000009LtsA.jpg

Anonymous
Not applicable
Author

Can you please provide the correct link?
The given link is not working.