I am trying to execute some oracle pl/sql procedure with in and out parameters from # code on asp.net. I want to retrive the value from out parameter. but when I execute i am ge
Faced the same issue when declaring out put value as Varchar2. Adding a Size property to Parameter solved the issue.
command.CommandType = CommandType.StoredProcedure;
command.CommandText = "function_name";
command.Parameters.Add(new OracleParameter
{
ParameterName = "result",
Size = 1,
Direction = ParameterDirection.ReturnValue,
OracleDbType = OracleDbType.Varchar2
});