I wan to call oracle database function I tried this but i am getting error
ORA-06550: line 1, column 7: PLS-00221: 'F_GET_DESC' is not a procedure or is undefined ORA-06550: line 1, column 7: PL/SQL: Statement ignored
public void Get_Desc()
{
string oradb = "Data Source=source;User Id=myuser;Password=ss;";
string CommandStr = "F_Get_Desc()";
using (OracleConnection conn = new OracleConnection(oradb))
using (OracleCommand cmd = new OracleCommand(CommandStr, conn))
{
conn.Open();
cmd.CommandType = CommandType.StoredProcedure;
OracleParameter pDesc = new OracleParameter("pDesc", OracleDbType.Varchar2,128);
pOfficeDesc.Direction = ParameterDirection.Input;
pOfficeDesc.Value = Current_code.ToString();
cmd.Parameters.Add(pDesc);
cmd.ExecuteNonQuery();
MessageBox.Show(pDesc.Value.ToString(););
}
}