IanWaterman
Programmer
I am trying to test a stored Proc used in a report.
The procedure has a date input parameter and a cursor result set as output
create or replace PROCEDURE "OLY_NOSTRO_PROJECTION"
(pStartDate IN DATE,
pResultSet OUT TYPES.cursorType)
as
Procedure runs perfectly OK in report and Crystal passes the following SQL to Oracle
{CALL "BFC_CRYSTAL"."OLY_NOSTRO_PROJECTION"({ts '2016-08-31 09:56:48'})}
This is not recognised in SQL developer
I have converted to
both CALL and EXEC
call OLY_NOSTRO_PROJECTION ('31-AUG-16');
exec OLY_NOSTRO_PROJECTION (to_date('2016/09/01', 'YYYY/MM/DD'));
But it fails to execute with errors
Error starting at line : 1 in command -
call OLY_NOSTRO_PROJECTION ('31-AUG-16')
Error report -
SQL Error: ORA-06553: PLS-306: wrong number or types of arguments in call to 'OLY_NOSTRO_PROJECTION'
06553. 00000 - "PLS-%s: %s"
*Cause:
*Action:
Error starting at line : 3 in command -
exec OLY_NOSTRO_PROJECTION (to_date('2016/09/01', 'YYYY/MM/DD'))
Error report -
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'OLY_NOSTRO_PROJECTION'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:
I have written SPs before but without Cursors and never had this problem. What am I doing wrong/missing.
Thank you
Ian
The procedure has a date input parameter and a cursor result set as output
create or replace PROCEDURE "OLY_NOSTRO_PROJECTION"
(pStartDate IN DATE,
pResultSet OUT TYPES.cursorType)
as
Procedure runs perfectly OK in report and Crystal passes the following SQL to Oracle
{CALL "BFC_CRYSTAL"."OLY_NOSTRO_PROJECTION"({ts '2016-08-31 09:56:48'})}
This is not recognised in SQL developer
I have converted to
both CALL and EXEC
call OLY_NOSTRO_PROJECTION ('31-AUG-16');
exec OLY_NOSTRO_PROJECTION (to_date('2016/09/01', 'YYYY/MM/DD'));
But it fails to execute with errors
Error starting at line : 1 in command -
call OLY_NOSTRO_PROJECTION ('31-AUG-16')
Error report -
SQL Error: ORA-06553: PLS-306: wrong number or types of arguments in call to 'OLY_NOSTRO_PROJECTION'
06553. 00000 - "PLS-%s: %s"
*Cause:
*Action:
Error starting at line : 3 in command -
exec OLY_NOSTRO_PROJECTION (to_date('2016/09/01', 'YYYY/MM/DD'))
Error report -
ORA-06550: line 1, column 7:
PLS-00306: wrong number or types of arguments in call to 'OLY_NOSTRO_PROJECTION'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
06550. 00000 - "line %s, column %s:\n%s"
*Cause: Usually a PL/SQL compilation error.
*Action:
I have written SPs before but without Cursors and never had this problem. What am I doing wrong/missing.
Thank you
Ian