C sharp - ejecutar store procedure de oracle

 
Vista:

ejecutar store procedure de oracle

Publicado por jam (16 intervenciones) el 13/11/2008 23:06:11
SALUDOS.

tengo el siguiente problema cuando ejecuto un strore procedure de Oracle me marca el siguiente error:---------
ORA-06550: line 1, column 7:
PLS-00201: identifier 'PKS_GEN.STP_FACT' must be declared
ORA-06550: line 1, column 7:
PL/SQL: Statement ignored
------------------------------
ESTE ES MI CODIGO EN C#
ConectaOracle();
oCnn = new OracleConnection(oConecta);
oCnn.Open();
OracleCommand mycmd = new OracleCommand();
mycmd.CommandText = "PKS_GEN.STP_FACT";
mycmd.CommandType = CommandType.StoredProcedure;
mycmd.Connection = oCnn;
OracleParameter myParametro = new OracleParameter("vFechaCorte", OracleType.DateTime);
myParametro.Direction = ParameterDirection.Input;
myParametro.Value = "30/10/2008";
// myParametro.Value = myFecha;
mycmd.Parameters.Add(myParametro);
OracleParameter myParmSal = new OracleParameter("prespa", OracleType.Number);
myParmSal.Direction = ParameterDirection.InputOutput;
mycmd.Parameters.Add(myParmSal);
OracleParameter myPara = new OracleParameter("mtvoRespa", OracleType.VarChar);
myPara.Direction = ParameterDirection.Output;
mycmd.Parameters.Add(myPara);
mycmd.ExecuteNonQuery();
oCnn.Close();
---------------------------------------------------------
PERO SI LO HAGO DESDE EL NAVIGATOR con el codigo que genera no marca error
este es el codigo-----------
DECLARE
presp NUMBER;
mtvoresp VARCHAR2(2000);
BEGIN

-- Now call the stored program
pkg_gen.stp_fact_mes(TO_DATE('31/10/2008'),presp,mtvoresp);

-- Output the results
dbms_output.put_line('presp = '||TO_CHAR(presp));
dbms_output.put_line(SubStr('mtvoresp = '||mtvoresp,1,255));

COMMIT;
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('Error '||TO_CHAR(SQLCODE)||': '||SQLERRM);
RAISE;
END;

ALGUNA IDEA DE COMO SOLUCIONARLO ???

GRACIAS.
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder