ORA-12170:TNS:连接超时,同时连接到oracle 11g数据库。使用ODP.net [英] ORA-12170: TNS:Connect timeout while cunnecting to oracle 11g database. using ODP.net

查看:534
本文介绍了ORA-12170:TNS:连接超时,同时连接到oracle 11g数据库。使用ODP.net的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hi flocks,



我托管了asp.net应用程序和wcf服务(用于远程oracle 11g的数据访问。)

而我的wcf服务试图连接oracle数据库我得到

描述:ORA-12170:TNS:连接超时已发生异常详细信息:Oracle Data Provider for .NET

来源文件:at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode,OracleConnection conn,IntPtr opsErrCtx,OpoSqlValCtx * pOpoSqlValCtx,Object src,String procedure,Boolean bCheck)

at Oracle.DataAccess.Client。 OracleException.HandleError(Int32 errCode,OracleConnection conn,IntPtr opsErrCtx,Object src)

at Oracle.DataAccess.Client.OracleConnection.Open()

at CLS.FS.DataAccess .ProductGroupDAO.GetBusinessUnits()

例外。



我试图通过SqlPlus连接但是同样的错误(ORA-12170:TNS:Connect发生超时)。



我试图ping我在托管服务器中使用的主机名(win2008R2)

近似的往返时间,以毫秒为单位:mininum = 0,最大值= 0,平均值= 0

但我在我的本地机器(Windows 7)中得到了一些值,这对于从oracle11g数据库获取数据工作正常。



请帮助解决这个问题。



先谢谢..

Hi flocks,

I hosted asp.net application and wcf service(for data access from oracle 11g which is at remote.)
while my wcf service trying to connect oracle database I am getting
Description: ORA-12170: TNS:Connect timeout occurredException Details: Oracle Data Provider for .NET
Source File: at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure, Boolean bCheck)
at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, Object src)
at Oracle.DataAccess.Client.OracleConnection.Open()
at CLS.FS.DataAccess.ProductGroupDAO.GetBusinessUnits()
exception.

I tried to connect though SqlPlus but the same error(ORA-12170: TNS:Connect timeout occurred).

I tried to ping the using host name i am getting in my hosting server(win2008R2)
approximate round trip times in milli-seconds: mininum=0,maximum=0,average=0
but i am getting some values in my local mechine(windows 7) which is working fine for getting data from oracle11g database.

Please need help to fix this issu..

Thanks in advance..

推荐答案

您是否在谷歌搜索此错误?检查这个

ORA-12170:TNS:连接超时发生的提示 [ ^ ]
Did you search Google for this error? check this
ORA-12170: TNS: Connect timeout occurred tips[^]


这篇关于ORA-12170:TNS:连接超时,同时连接到oracle 11g数据库。使用ODP.net的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆