在类[cs.Common.Data.DataManager]的方法[Fill( String sql )]中出错 : 在 DataManager 类的 Fill( string , IDataParameter[] ) 方法出错 , 错误原因 : 执行 conn.Open() 语句时出错 , ORA-12170: TNS: 连接超时
;错误SQL为:select * from link c where c.id = (select t.dataid from T_Data_DD t where t.dataname='name' and t.datacode='ABC') and c.status='0' order by c.orderby
在类[SiteBlue]的方法[GenTop()]中
在类[SiteBlue]的方法[Page_Load( Object sender , EventArgs e )]中
在类[System.Web.Util.CalliEventHandlerDelegateProxy]的方法[Callback( Object sender , EventArgs e )]中
在类[System.Web.UI.Control]的方法[OnLoad( EventArgs e )]中
在类[System.Web.UI.Control]的方法[LoadRecursive()]中
在类[System.Web.UI.Control]的方法[LoadRecursive()]中
......
在类[System.Web.Hosting.PipelineRuntime]的方法[ProcessRequestNotification( IntPtr rootedObjectsPointer , IntPtr nativeRequestContext , IntPtr moduleData , Int32 flags )]中
直接使用 sqlplus 连接一切不会报错。百度上面找了好多方法都试过没用。求大神告诉我是什么问题。
早几天发的一个帖子 后来发现2个问题是一样的 http://bbs.csdn.net/topics/391987723
;错误SQL为:select * from link c where c.id = (select t.dataid from T_Data_DD t where t.dataname='name' and t.datacode='ABC') and c.status='0' order by c.orderby
在类[SiteBlue]的方法[GenTop()]中
在类[SiteBlue]的方法[Page_Load( Object sender , EventArgs e )]中
在类[System.Web.Util.CalliEventHandlerDelegateProxy]的方法[Callback( Object sender , EventArgs e )]中
在类[System.Web.UI.Control]的方法[OnLoad( EventArgs e )]中
在类[System.Web.UI.Control]的方法[LoadRecursive()]中
在类[System.Web.UI.Control]的方法[LoadRecursive()]中
......
在类[System.Web.Hosting.PipelineRuntime]的方法[ProcessRequestNotification( IntPtr rootedObjectsPointer , IntPtr nativeRequestContext , IntPtr moduleData , Int32 flags )]中
直接使用 sqlplus 连接一切不会报错。百度上面找了好多方法都试过没用。求大神告诉我是什么问题。
早几天发的一个帖子 后来发现2个问题是一样的 http://bbs.csdn.net/topics/391987723
如果又回复下
OracleConnection connection = new OracleConnection(“连接串”);
//连接串是否正确?
<add name="SJJH" connectionString="Data Source=Data Source=(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))(LOAD_BALANCE = ON)(FAILOVER = ON)(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = OA)))
;Persist Security Info=True;User ID=账号;Password=密码;Unicode=True" providerName="System.Data.OracleClient" />
(ADDRESS = (PROTOCOL = TCP)(HOST = 127.0.0.1)(PORT = 1521))(LOAD_BALANCE = ON)(FAILOVER = ON)(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = OA)))
;Persist Security Info=True;User ID=账号;Password=密码;Unicode=True" providerName="System.Data.OracleClient" />这样写有问题吗