我的客户端是Oracle 9i,服务器端是oracle8.0
在服务器(192.168.0.30)有一个数据库E734
我在客户端使用Net configuration Assistant 配置了本地net服务名E734
但Sql Plus连接到服务的时候就出错.
之后通过Ole Db连接,连接字符串如下:
string conStringL2="Provider=MSDAORA;user id=a;password=b;data source=E734;server=\"140.60.2.2\"";
string conStringL2="Provider=MSDAORA;user id=a;password=b;server=E734;data source=\"140.60.2.2\"";
string conStringL2="Provider=MSDAORA;user id=a;password=b;SID=E734;data source=\"140.60.2.2\"";
string conStringL2="Provider=MSDAORA;user id=a;password=b;SID=E734;server=\"140.60.2.2\"";
string conStringL2="Provider=MSDAORA;user id=a;password=b;SID=E734";
string conStringL2="Provider=MSDAORA;user id=a;password=b;server=E734";
string conStringL2="Provider=MSDAORA;user id=a;password=b;data source=E734";
不太了解server和data source的区别,所以不知道上述字符串哪个对.