question

paulgopu avatar image
paulgopu asked

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

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(' 110682 '); 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.
ssisoracle
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

· Write an Answer

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.