ORA-06550
Posted: Thu 04 Oct 2007 15:06
I get the following error in asp.net when trying to execute a stored procedure in a package using the OracleDataSource Component:
Unable to retrieve schema. Ensure that the ConnectionString and SelectCommand are valid.
ORA-06550: Line 2, column 3:
PLS_00306: wrong number or types of arguements in call to 'SEL_TAX"
ORA-06550: line 2, column 3:
PL/SQL: Statement Ignored
The funny things is that I can compile the stored procedure, the package independently using the Database Explorer. I can also execute the sql statement inside the OracleDataSource in text mode. It only fails when I try to call the stored procedure inside the package.
create or replace PACKAGE "JANTZEN_TAX_PCK" IS
TYPE t_cursor is REF CURSOR;
PROCEDURE SEL_TAX (cur_select_tax OUT t_cursor) ;
END "JANTZEN_TAX_PCK";
create or replace PACKAGE BODY "JANTZEN_TAX_PCK" IS
-- Returns all Tax States
PROCEDURE SEL_TAX (cur_select_tax OUT t_cursor) IS
BEGIN -- executable part starts here
OPEN cur_select_tax FOR
SELECT TAX.TAXID, COUNTRY.COUNTRYDESC, STATE.STATEDESC, TAX.TAXRATE FROM COUNTRY INNER JOIN
STATE ON COUNTRY.COUNTRYID = STATE.COUNTRYID INNER JOIN
TAX ON STATE.STATEID = TAX.STATEID;
END SEL_TAX;
END "JANTZEN_TAX_PCK";
create or replace
PACKAGE "JANTZEN_TAX_PCK" IS
TYPE t_cursor is REF CURSOR;
PROCEDURE SEL_TAX (cur_select_tax OUT t_cursor) ;
END "JANTZEN_TAX_PCK";
Thanks,
Christian
Unable to retrieve schema. Ensure that the ConnectionString and SelectCommand are valid.
ORA-06550: Line 2, column 3:
PLS_00306: wrong number or types of arguements in call to 'SEL_TAX"
ORA-06550: line 2, column 3:
PL/SQL: Statement Ignored
The funny things is that I can compile the stored procedure, the package independently using the Database Explorer. I can also execute the sql statement inside the OracleDataSource in text mode. It only fails when I try to call the stored procedure inside the package.
create or replace PACKAGE "JANTZEN_TAX_PCK" IS
TYPE t_cursor is REF CURSOR;
PROCEDURE SEL_TAX (cur_select_tax OUT t_cursor) ;
END "JANTZEN_TAX_PCK";
create or replace PACKAGE BODY "JANTZEN_TAX_PCK" IS
-- Returns all Tax States
PROCEDURE SEL_TAX (cur_select_tax OUT t_cursor) IS
BEGIN -- executable part starts here
OPEN cur_select_tax FOR
SELECT TAX.TAXID, COUNTRY.COUNTRYDESC, STATE.STATEDESC, TAX.TAXRATE FROM COUNTRY INNER JOIN
STATE ON COUNTRY.COUNTRYID = STATE.COUNTRYID INNER JOIN
TAX ON STATE.STATEID = TAX.STATEID;
END SEL_TAX;
END "JANTZEN_TAX_PCK";
create or replace
PACKAGE "JANTZEN_TAX_PCK" IS
TYPE t_cursor is REF CURSOR;
PROCEDURE SEL_TAX (cur_select_tax OUT t_cursor) ;
END "JANTZEN_TAX_PCK";
Thanks,
Christian