ASP.net 连oracle的问题,
开发机子 和服务器位于同一个局域网,
运行结果 提示:ORA-12514: TNS: 监听进程不能解析在连接描述符中给出的 SERVICE_NAME
开发机子 上装了ora的客户端,tns文件也作了配置.不知道问题出在哪.
如果把链接字符串Data Source=211.211.211.154 (服务器ip) 改成Data Source=orcl (数据库名)
则提示ORA-01004: default username feature not supported; logon denied 用户和密码肯定是正确的.
请高手赐教.如果 方便请远程协助一下.谢谢了.QQ:10894810
protected void Page_Load(object sender, EventArgs e)
{
string orastr = "Data Source=211.211.211.154;User Id=xxxx;Password=xxxxx;Integrated Security=yes";
if (!Page.IsPostBack)
{
OracleConnection conn = new OracleConnection(orastr);
try
{
conn.Open();
conn.Close();
Response.Write("可喜可贺,连接成功");
}
catch (Exception ex)
{
Response.Write(ex.Message);
}
}
}运行结果 提示:ORA-12514: TNS: 监听进程不能解析在连接描述符中给出的 SERVICE_NAME
开发机子 上装了ora的客户端,tns文件也作了配置.不知道问题出在哪.
如果把链接字符串Data Source=211.211.211.154 (服务器ip) 改成Data Source=orcl (数据库名)
则提示ORA-01004: default username feature not supported; logon denied 用户和密码肯定是正确的.
请高手赐教.如果 方便请远程协助一下.谢谢了.QQ:10894810
...全文
相关推荐
asp.net连接oracle说明
asp.net 连接oracle,报错误。“System.Data.OracleClient 需要 Oracle 客户端软件 8.1.7 或更高版本。"的解决方案。
Oracle asp.net 简单实例
自己写的Oracle asp.net 简单实例 ,找出了无效连接无法连接的错误原因。
Oracle数据库交流-oracle客户端的问题.rar_ASP.net连接oracle_oracle_oracle数据库
Asp_Net连接Oracle数据库出现找到Oracle客户端和网络组件彻底解决方法!.htm
Oracle Providers for ASP.NET Developer's Guide 11g for Windows
Oracle Providers for ASP.NET Developer's Guide 11g Release 2 (11.2.0.3) for Windows-174
asp.net+oracle 分页
实现vs2008+oracle 的分页非常好用


