I want to connect the oracle function and read any data from it,and i'm write this code for that purpose:
using (OracleConnection con = new OracleConnection("Data Source=WEBSERVICE_ACCESS;User Id=webservice_access;Password=xyz;"))
{
con.Open();
OracleCommand cmd = new OracleCommand("LOGIN");
cmd.CommandType = System.Data.CommandType.StoredProcedure;
//Add your parameters here
cmd.Connection = con;
OracleDataReader odr = cmd.ExecuteReader();
while (odr.Read())
{
Console.WriteLine(odr.GetOracleValue(0));
}
Console.ReadLine();
}
WEBSERVICE_ACCESS is my DATABASE NAME
webservice_access is my user name
but when run that code i get this error:
System.Data.OracleClient.OracleException: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
What happened? How can I solve this?

WEBSERVICE_ACCESSthe name in your tnsnames?