Problema al llamar Procedure desde vb.NET

meiham
05 de Septiembre del 2008
Buenas tengo el siguiente problema, tengo un procedure en Oracle que tiene el siguiente codigo
create or replace procedure sp_estadistica_PRUEBA (Total_Revisiones out integer)as

begin

-- Revisiones Totales --
select count(*) into Total_Revisiones
from revisiones rv
where rv.fec_revision = TO_CHAR (sysdate, 'DD/MM/YYYY')
and rv.fec_creacion = TO_CHAR (sysdate, 'DD/MM/YYYY')
and rv.cod_tipo_atencion = 1
and tabla_Asm is not null
and rv.cod_estado_transicion < 9;

end sp_estadistica_PRUEBA;

y necesito llamarlo desde BV.NET, y lo hago de la siguiente manera:

Dim cn As New OracleConnection
Dim cmd As New OracleCommand
cn = New Oracle.DataAccess.Client.OracleConnection
cn.ConnectionString = "Data Source = XXXX;User Id = XXXX; Password=XXXX;"
cn.Open()
cmd = New Oracle.DataAccess.Client.OracleCommand
cmd.Connection = cn
cmd.CommandText = "sp_estadistica_prueba( :total_revisiones)"
cmd.CommandType = Data.CommandType.StoredProcedure
cmd.ExecuteReader()

pero al ejecutarlo me muestra el siguiente error:

ORA-01008: no todas las variables han sido enlazadas

alguien me podría indicar que estoy haciendo mal??

Gracias