conn = new OracleConnection(connString);
conn.Open();
if (conn.State == ConnectionState.Open)
{
result = true;
conn.Close();
}
else
{
你刚刚把他打开了,又关掉了;你可以改一下
conn = new OracleConnection(connString);
conn.Open();
if (conn.State == ConnectionState.Broken)
{
result = false;
conn.Close();
conn.open
}
else
{