链接远程数据库oracle的问题
string conStr = "persist security info = true;data source=(DESCRIPTION=(ADDRESS_LIST = (ADDRESS = (COMMUNITY = tcp.world) (PROTOCOL = TCP)(Host = 192.1.5.33)(Port = 1521))(ADDRESS =(COMMUNITY = tcp.world)(PROTOCOL = TCP)(Host = 192.1.5.33)(Port = 1526))));User ID=xdx;Password=xdx";protected void Button1_Click(object sender, EventArgs e)
{
OracleConnection ocon = new OracleConnection(conStr);
ocon.Open();
string sql = "select * from bm";
OracleCommand ocmd = new OracleCommand(sql,ocon);
OracleDataReader oreader = ocmd.ExecuteReader();
if (oreader.Read())
{
oreader.Close();
ocon.Close();
this.Label1.Text = "有数据";
}
else
{
this.Label1.Text = "no";
}
}
运行後提示请用更高版本8.1的ORACLE??
请问怎么解决!!谢谢高手了 --------------------编程问答-------------------- 你在google上搜“需要8.1或者更高版本”之类的就有答案了。你的连接串好奇怪哦,可能是我孤陋寡闻了。
补充:.NET技术 , ASP.NET