Call Oracle Stored Procedure With Ref Cursor Output Parameter From SSIS

  • Does anyone have some examples of pulling a dataset into MS SQL Server from an Oracle Ref Cursor using SSIS? I simply want to pull the dataset from the returned cursor and dump it into a staging table. This is a snap with a t-sql procedure but I can't seem to find any solid examples using an Oracle proc.

  • I'm having the same issue. Does anyone have any information on this, by chance?

  • I'm having the same issue.

  • so am i

  • Can you alter the the package to 'pipeline the data out'?

    Then you can use this kind of syntax to get the data out:

    SELECT * FROM TABLE(myschema.mypackage.myfunction());

  • This worked for me.

    I had my Oracle DBA take an existing stored procedure that had a refcursor output parameter and wrap around it a tabular function that took the input parameters of the Oracle stored procedure as parameters of the new function. And then the function took care of looping through the refcursor and added the resulting rows to the table output of the function.

    To SSIS it looks like a call to a SQL Server stored procedure with an resultset I could insert directly into a table in an OLEDB destination in SQL.

Viewing 6 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic. Login to reply