asp.net linux下oracle的连接执行问题
我最近遇到一个问题,还望各位能帮帮忙!
我用同样的程序访问我本地的(windows的oracle)数据库没有问题,但是访问远程的
linux下oracle就出问题!
public UserInfo getUserInfoForLogin(string userName)
{
UserInfo user = null;
OracleDataReader reader = null;
OracleCommand mySqlCommand = new OracleCommand(this.commandTextForLogin, connect);
mySqlCommand.Parameters.Add("name", OracleType.VarChar).Value = userName;
if (connect.State == ConnectionState.Broken || connect.State == ConnectionState.Closed)
connect.Open();
reader = mySqlCommand.ExecuteReader(); 在这一行出现异常
if (reader.Read())
{
user = new UserInfo();
user.UserName = (string)reader["u_name"];
user.UserPassword = (string)reader["u_password"];
user.IsVip = Convert.ToBoolean(Int16.Parse(reader["u_isVip"].ToString()));
}
reader.Close();
connect.Close();
return user;
}
我的系统.net 2.0的 报的错误是 ORA-00603: ORACLE 服务器会话因致命错误
我安装了oracle9的客户端的!
在.net方面我可是新来的,可能是某些没有设置还是怎的?希望各位找找原因啊!
问题点数:20、回复次数:0Top





