Beispiel #1
0
 private void CheckDbConn()
 {
     Oracle.ManagedDataAccess.Client.OracleConnection conn = new Oracle.ManagedDataAccess.Client.OracleConnection(Common.Runtime.OracleConnStrLocal);
     conn.Open();
     if (conn.State == System.Data.ConnectionState.Open)
     {
         Common.Helper.LogWrite("Db success!");
     }
     else
     {
         Common.Helper.LogWrite("Db  failure!");
     }
     conn.Clone();
 }