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 


_______________________________________________
Mono-list maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to