I will really appreciate if someone can post step by step process to call an Oracle Stored Proc from SSIS. Here is the Stored Proc Spec:
PROCEDURE Interface_Begin
(p_from_dttmOUT varchar2,
p_error_codeOUT number,
p_error_textOUTvarchar2,
p_proc_nameOUT varchar2);
please check this
http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1711335&SiteID=1
http://microsoftdw.blogspot.com/2005/11/parameterized-queries-against-oracle.html
-Nikul
|||Could you please be more specific? I tried the following:
1) The stored proc spec is as follows:
Procedure testing(myDate OUT varchar2);
2) Created a Data Flow Task.
3) Created 2 variables called myStoredProc & myDate at the package level.
4) In the value for myDate variable i set it to myDate.
5) In the properties for myStoredProc variable i changed the EvaluateAsExpression property to True.
6) In the expression for myStoredProc variable i have the following:
"declare myDate varchar2(50); begin sa.testing(" + @.[User::myDate] + "); end;"
7) Now inside my Data Flow Task i have a Ole Db DataSource connection set to Native OLE DB\Microsoft Ole Db
Provider for Oracle.
8) Data Access Mode set to SQL Command from Variable.
9) The value of the Variable Name is User::myStoredProc.
10) Now when i hit preview i get the following error Message.
No disconnected record set is available for the specified SQL statement.
I am not sure what's wrong here. Could someone help me?
|||Anyone?|||Try doing this from a Execute SQL task, not a Source component. Source components expect a recordset, not an output parameter.|||
Hi there,
As Jwelch said use Execute SQL Task and select Single Row in Recordset option.
I think this will iron out your issue.
Please specify if this does not work.
Thanks
|||Thanks guys. Now i am able to execute it successfully. But i am getting some junk characters in the Output parameters. Here is the stored proc definition:
create or replace procedure testing(myDate OUT varchar2)
IS
BEGIN
myDate := 'hey';
return;
END;
This should return 'hey' but i am getting this:
)
Any ideas?
No comments:
Post a Comment