免费注册 查看新帖 |

Chinaunix

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

Maximum number of tables in a query (14) exceeded. [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-02-13 11:39 |只看该作者 |倒序浏览
Server Message:  Number  251, Severity  16
Line 1:
Unable to allocate ancillary table for query optimization.  Maximum number of tables in a query (14) exceeded.

对于此问题,sybase12.5.1里可否通过修改数据库配置来进行更改?如何操作?
比方说我要将最大查询限制数由14改为30。先谢!

论坛徽章:
0
2 [报告]
发表于 2006-02-14 14:26 |只看该作者
试着修改一下number of open objects参数

论坛徽章:
0
3 [报告]
发表于 2006-02-14 16:07 |只看该作者
请问具体该如何修改?可否示例

论坛徽章:
0
4 [报告]
发表于 2006-02-14 16:16 |只看该作者
sp_configure 'number of open objects','xx'

[ 本帖最后由 fbirds 于 2006-2-14 16:20 编辑 ]

论坛徽章:
0
5 [报告]
发表于 2006-02-14 16:17 |只看该作者
我执行sp_configure 'number of open objects', 10000后,问题依旧:(

论坛徽章:
0
6 [报告]
发表于 2006-02-14 16:24 |只看该作者
已重启过,而且配置文件.cfg里查看也已修改。问题还是没解决

论坛徽章:
4
2015年亚洲杯之阿联酋
日期:2015-03-10 10:32:022015年亚洲杯之阿曼
日期:2015-03-10 14:53:222015亚冠之水原三星
日期:2015-07-18 15:40:262015亚冠之塔什干棉农
日期:2015-07-27 20:52:05
7 [报告]
发表于 2006-02-14 16:47 |只看该作者
that is a limit from ASE kernel,so to simplify you sqls should be more effective than get sybase build a new kernel,I think.
btw,don't try to make your sqls in touch with four tables or above at one time.that could make query optimizer lose it's way.

论坛徽章:
0
8 [报告]
发表于 2006-02-15 09:31 |只看该作者
在这方面,oracle还是强多了,一个sql中涉及14张表的left join操作,及一个union操作,即数量是14 union 14,oracle里就执行没问题,迁移到sybase后,就死翘翘了,问题是我现在不需要研究sybase内核,我是为解决实际应用中的问题,不过楼上还是说的有道理,啊,哪位兄弟知道该如何解决啊?

论坛徽章:
0
9 [报告]
发表于 2006-02-15 10:08 |只看该作者
that is a limit from ASE kernel,so to simplify you sqls should be more effective than get sybase build a new kernel,I think.
btw,don't try to make your sqls in touch with four tables or above at one time.that could make query optimizer lose it's way.


Yes, that's a hard limit. You should divide your sql.
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP