如果用代码连接也会出现同样的错误!
private void button1_Click(object sender, EventArgs e)
{
OracleConnection conn = new OracleConnection("Data Source=xd1;user id=scott;password=xd3138;");
conn.Open();
OracleCommand cmd = new OracleCommand("select count(sno) from stu",conn);
OracleDataReader reader = cmd.ExecuteReader();
reader.Read();
this.label2.Text = reader.GetInt32(0).ToString();
reader.Close();
conn.Close();
}
斑竹们说说怎么搞一下啊,呵呵