using System.Data.OracleClient;
........................
OracleConnection conn = new OracleConnection(contection);
OracleCommand com = conn.CreateCommand();
try
{
conn.Open();
com.CommandText = @"select * from test; ";
OracleDataReader reader = com.ExecuteReader();
if (reader.HasRows)
{
string strErrMsg = "";
while (reader.Read())
{
Console.WriteLine(reader.GetOracleString(0).ToString());
}
}
reader.Close();
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
} finally {
conn.Close();
}