免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2652 | 回复: 3
打印 上一主题 下一主题

求助:OCI中ORA-00911错误吗的问题。 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-04-24 10:52 |只看该作者 |倒序浏览
我写编写OCI的程序时遇到这样一个问题:
   程序使用select语句在数据库表格中将所有字段select出来,然后fetch到一定缓存中。程序可以正常运行一段时间,正常的读出数据,打印数据。但是在运行过一段时间后,在fetch数据的时候,就会输出错误数据 ORA-0911。
    select语句中没有“;”,这个从可以正常运行一段时间可以看出。请各位提出一些建议~~~~

论坛徽章:
0
2 [报告]
发表于 2006-04-24 11:17 |只看该作者
提示: 作者被禁止或删除 内容自动屏蔽

论坛徽章:
0
3 [报告]
发表于 2006-04-24 13:51 |只看该作者
代码太长了。不是很方便贴上来。
我在想会不会是由于数据库中内容字段引起的错误呢?
会在什么情况下,报这个错误呢?

论坛徽章:
1
荣誉版主
日期:2011-11-23 16:44:17
4 [报告]
发表于 2006-04-24 22:56 |只看该作者
ORA-00911:        invalid character
Cause:        Special characters are valid only in certain places. If special characters other than $, _, and # are used in a name and the name is not enclosed in double quotation marks ("), this message will be issued. One exception to this rule is for database names; in this case, double quotes are stripped out and ignored.
Action:        Remove the invalid character from the statement or enclose the object name in double quotation marks.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP