Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Executing Oracle stored procedure with XMLTYPE Output and capturing it in a SSIS variable.


Executing Oracle stored procedure with XMLTYPE Output and capturing it in a SSIS variable.

Author
Message
PaulReddy
PaulReddy
SSC Rookie
SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)SSC Rookie (28 reputation)

Group: General Forum Members
Points: 28 Visits: 138
I am in desperate need of help with executing an Oracle stored procedure that takes an XML of Oracle XMLTYPE as input and Outputs an XML of Oracle XMLTYPE.

I should be able to execute this Oracle stored procedure using SSIS Execute SQL Task with an Input variable mapping and an OUTPUT variable mapping.

I tried with OLEDB adapter and ADO.NET adapter but not successful in getting it to work.

I was able to make the Input variable type work by using expressions to build the script but not able to get the Output.

If anyone has worked on executing Oracle stored procedures with XMLTYPE data types, it would be of great help if you could point me in the right direction

Here is the Oracle stored procedure I was trying to execute in SSIS.

declare

x_api_call XMLTYPE := XMLTYPE('<APICall><SeqID>110682</SeqID></APICall>');
x_result XMLTYPE;

BEGIN

XML_READ_API.GET_PERSON ( p_api_call => x_api_call, p_result => x_result );

END;

I was trying to execute the above Oracle procedure in SSIS as below and having tough time determining the variable connection type and the variable type that I should use to capture the XML.

declare

BEGIN

XML_READ_API.GET_PERSON ( p_api_call => ?, p_result => ? );

END;

Thanks in advance.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search