Using ODP.NET in a Simple Application
The following is a very simple C# application that connects to an Oracle database and displays its version number before disconnecting.
con = new OracleConnection();
con.ConnectionString = "User Id=scott;Password=tiger;Data Source=oracle";
Console.WriteLine("Connected to Oracle" + con.ServerVersion);
static void Main()
Example example = new Example();
Additional samples are provided in the