dbTalk Databases Forums  

SSIS variable to Oracle parameter data type error

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss SSIS variable to Oracle parameter data type error in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
vnapoli
 
Posts: n/a

Default SSIS variable to Oracle parameter data type error - 10-04-2006 , 10:31 AM






I am trying to take a SSIS String type variable and pass it as a parameter to
a varchar2 parameter in an Oracle pl/sql stored procedure and get a binding
error (conneting via Microsoft OLE DB provider for Oracle).

Error Message:
"ORA-01008: not all variables bound.

SSIS variable (XYZ) is global in scope and data type of string.

Oracle procedure:

CREATE OR REPLACE
PROCEDURE TESTPROC2
(XYZ VARCHAR2) AS
BEGIN
NULL;
END;

Calling sql is
Declare
begin
vnapoli.testproc2 (?);
end;

Parameter mapping is
variable Name Direction dataytpe Parameter Name
XYZ Input varchar XYZ

Code page: 1252

It is looking like SSIS is not able to pass a string variable datatype to
oracle correctly. Any help would be awesome.




Reply With Quote
  #2  
Old   
Charles Kangai
 
Posts: n/a

Default RE: SSIS variable to Oracle parameter data type error - 10-04-2006 , 11:54 AM






In your parameter mapping, try using 0 instead of specifying parameter name
explicitly. Also, check your syntax for calling the stored procedure. I would
first test your calling SQL in SQL Plus to make sure there is no problem
there.


Charles Kangai, MCT, MCDBA
Author of Learning Tree's 4-day course: "SQL Server 2005 Integration
Services" http://www.learningtree.com/courses/134.htm
Author of Learning Tree's 4-day course: "SQL Server Reporting Services"
http://www.learningtree.com/courses/523.htm
email: charles at kangai.demon.co.uk


"vnapoli" wrote:

Quote:
I am trying to take a SSIS String type variable and pass it as a parameter to
a varchar2 parameter in an Oracle pl/sql stored procedure and get a binding
error (conneting via Microsoft OLE DB provider for Oracle).

Error Message:
"ORA-01008: not all variables bound.

SSIS variable (XYZ) is global in scope and data type of string.

Oracle procedure:

CREATE OR REPLACE
PROCEDURE TESTPROC2
(XYZ VARCHAR2) AS
BEGIN
NULL;
END;

Calling sql is
Declare
begin
vnapoli.testproc2 (?);
end;

Parameter mapping is
variable Name Direction dataytpe Parameter Name
XYZ Input varchar XYZ

Code page: 1252

It is looking like SSIS is not able to pass a string variable datatype to
oracle correctly. Any help would be awesome.




Reply With Quote
  #3  
Old   
vnapoli
 
Posts: n/a

Default RE: SSIS variable to Oracle parameter data type error - 10-05-2006 , 05:12 PM



PL/SQL procedure works as expected from SQL PLUS and Oracle SQL Developer.
Changed parameter name to reference of 0. Same results. ORA-01008: not
all variables bound.



"Charles Kangai" wrote:

Quote:
In your parameter mapping, try using 0 instead of specifying parameter name
explicitly. Also, check your syntax for calling the stored procedure. I would
first test your calling SQL in SQL Plus to make sure there is no problem
there.


Charles Kangai, MCT, MCDBA
Author of Learning Tree's 4-day course: "SQL Server 2005 Integration
Services" http://www.learningtree.com/courses/134.htm
Author of Learning Tree's 4-day course: "SQL Server Reporting Services"
http://www.learningtree.com/courses/523.htm
email: charles at kangai.demon.co.uk


"vnapoli" wrote:

I am trying to take a SSIS String type variable and pass it as a parameter to
a varchar2 parameter in an Oracle pl/sql stored procedure and get a binding
error (conneting via Microsoft OLE DB provider for Oracle).

Error Message:
"ORA-01008: not all variables bound.

SSIS variable (XYZ) is global in scope and data type of string.

Oracle procedure:

CREATE OR REPLACE
PROCEDURE TESTPROC2
(XYZ VARCHAR2) AS
BEGIN
NULL;
END;

Calling sql is
Declare
begin
vnapoli.testproc2 (?);
end;

Parameter mapping is
variable Name Direction dataytpe Parameter Name
XYZ Input varchar XYZ

Code page: 1252

It is looking like SSIS is not able to pass a string variable datatype to
oracle correctly. Any help would be awesome.




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.