我尝试从winforms proyect与oracle数据库连接,但连接返回此消息:ORA-12569:TNS:数据包校验和失败。
这是我的代码:
string connString = "Data Source=(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = "
+ host + ")(PORT = " + port + "))(CONNECT_DATA = (SERVER = DEDICATED)(SERVICE_NAME = "
+ sid + ")));Password=" + password + ";User ID=" + user;
OracleConnection conn = new OracleConnection();
conn.ConnectionString = connString;
conn.Open();
端口在我的机器中打开,并且连接稳定。
我正在从NET(版本4.121.2.0 ODAC RELEASE 4)使用Oracle数据提供程序的Oracle.DataAccess.dll(x64)
感谢帮助!