Oracle 错误 3113
我正在开发一个 VS2008 桌面应用程序,该应用程序有 2 个连接,一个连接到 access 数据库,另一个连接到 oracle 数据库。我可以很好地连接到这两个数据库,但是当我尝试从 Oracle 获取数据表时,应用程序崩溃并抛出 ORA03113 错误。只有当我调用 OracleDataAdapter 对象的 Fill 方法时才会发生这种情况。
我不知道如何修复此错误,当我在 SQL Developer 中执行相同的查询时,它工作得很好。
谢谢。
更新:
我无法向您显示连接字符串,但它可以很好地打开连接。
代码非常标准:
Imports Oracle.DataAccess.Client
Dim info as Datatable = new Datatable
Dim adapter as OracleDataAdapter("Select * From userinfo ui Where ui.userid = 13", conn)
adapter.Fill(info)
错误显示在 adapter.Fill()
I'm developing a VS2008 desktop application, this application makes 2 connections, one to an access database and other to an oracle database. I can connect to both databases just fine but, when I'm trying to get a datatable from oracle, the application crashes throwing a ORA03113 error.This only happens when I call the Fill method of my OracleDataAdapter object.
I don't know how to fix this error, when I execute the same query in SQL Developer it works just fine.
Thanks.
UPDATE:
I can't show you the connections string, but it can open a connection just fine.
The code is pretty standard:
Imports Oracle.DataAccess.Client
Dim info as Datatable = new Datatable
Dim adapter as OracleDataAdapter("Select * From userinfo ui Where ui.userid = 13", conn)
adapter.Fill(info)
The error shows up at adapter.Fill()
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果没有连接到access数据库会发生什么?如果您使用不同的数据表(例如 DUAL),它只有名为“X”的单行和单列,会发生什么情况?
ORA-03113 是一个包罗万象的“嗯,我已连接,但现在没有”错误。 http://dba-oracle.com/m_ora_03113_end_of_file_on_communications_channel.htm
What happens when you do not connect to the access database? What happens if you use a different data table, such as DUAL, which has only a single row and single column named 'X'?
ORA-03113 is a catch-all "Well, I was connected but now I'm not" error. http://dba-oracle.com/m_ora_03113_end_of_file_on_communications_channel.htm