Calling an Oracle Stored Procedure.
Stored procedures have always given me trouble, I'm not sure why.
I want to call an Oracle Stored Procedure from a piece of CFML code.
My CFML code:
<cfstoredproc datasource="purload" procedure="PUR_XML_LOAD.load_raw" returncode="yes">
<cfprocparam cfsqltype="CF_SQL_FLOAT" value="999" type="out">
</cfstoredproc>
The error I am getting:
[Macromedia][Oracle JDBC Driver][Oracle]ORA-06550: line 1, column 18:
PLS-00306: wrong number or types of arguments in call to 'LOAD_RAW'
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
Test PL/SQL code that works in Oracle SQL Developer:
DECLARE
foo NUMBER :=999;
begin
PUR_XML_LOAD.load_raw (foo);
dbms_output.put_line('>' || foo || '<');
end;
The top of the stored procedure:
create or replace
PACKAGE BODY PUR_XML_load AS
-- *** PROCEDURE: PUR_XML_load ***
-- Loads values from previously-validated XML file
-- into the raw_pur table
PROCEDURE Load_raw (res_val OUT NUMBER)
AS
So how can I make the CFML code function the same way as the PL/SQL code?
TIA
Ian
