[Mono-list] Mono and Oracle Client on z/Linux

Edwin Kim ekim at transitchicago.com
Thu Feb 7 11:59:31 EST 2008


Hello,
please could you tell me how System.Data.OracleClient works on z/Linux 

environment : OS - z/Linux (LSES10Sp1) with mono 1.2.2 and Oracle InstantClient 10.2

the code:
 
 using System;
 using System.Data;
 using System.Data.OracleClient;

 public class Test
 {
    public static void Main (string[] args)
    {
       string connectionString =
          "Data Source=wpsdb;" +
          "User ID=test;" +
          "Password=test;";
       OracleConnection dbcon = null;
       dbcon = new OracleConnection (connectionString);
       dbcon.Open ();

       OracleCommand dbcmd = dbcon.CreateCommand ();
       string sql = "SELECT * FROM dual";
       dbcmd.CommandText = sql;
       OracleDataReader reader = dbcmd.ExecuteReader ();
       // clean up
       reader.Close ();
       reader = null;
       dbcmd.Dispose ();
       dbcmd = null;
       dbcon.Close ();
       dbcon = null;
    }
 }

pilation was succesfull 

When I run -mono test.exe- I' ve got this message 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20080207/04c622b2/attachment.html 


More information about the Mono-list mailing list