c#链接oracle数据库报错 The provider is not compatible with the version of Oracle client
请教各位一个问题。拿到别人的一个程序,链接数据库现在问题描述如下。
1. 安装oracle 12c 64位客户端。
用oracle sql dev 和 pl/sql工具可以连接成功数据库。
2. 用Oracle.DataAccess.Client下面方法链接数据库的。
其中_oraConn 为 Data Source=prj-meamut-ora1;User ID=username;Password=password;
private OracleConnection GetOracleConnection()
{
try
{
string oraDB = ConfigHelper.GetEncConnectionString(Constants.CONN_KEY);
OracleConnection _oraConn = new OracleConnection(oraDB);
return _oraConn;
}
catch (Exception ex)
{
throw new Exception("Error getting Oracle connection", ex);
}
}
3.现在调试链接时候报错。
The provider is not compatible with the version of Oracle client
请问是我的client安装版本有问题吗 还是怎样?
谢谢大家