免费注册 查看新帖 |

Chinaunix

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

报错:Could not position within a table,求大虾出手 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-04-12 17:25 |只看该作者 |倒序浏览
在对某张表进行大数据量的插入查询动作的时候,经常会出现Could not position within a table的错误。

不知道有没有哪位大虾能帮忙分析一下为什么会导致这种错误?

论坛徽章:
11
金牛座
日期:2015-03-19 16:56:22数据库技术版块每日发帖之星
日期:2016-08-02 06:20:00数据库技术版块每日发帖之星
日期:2016-04-24 06:20:00数据库技术版块每日发帖之星
日期:2016-04-13 06:20:00IT运维版块每日发帖之星
日期:2016-04-13 06:20:00数据库技术版块每日发帖之星
日期:2016-02-03 06:20:00数据库技术版块每日发帖之星
日期:2015-08-06 06:20:00季节之章:春
日期:2015-03-27 15:54:57羊年新春福章
日期:2015-03-27 15:54:37戌狗
日期:2015-03-19 16:56:41数据库技术版块每日发帖之星
日期:2016-08-18 06:20:00
2 [报告]
发表于 2012-04-12 18:56 |只看该作者
出现报错时,有两个错误号。请具体写出。。。

论坛徽章:
0
3 [报告]
发表于 2012-04-12 21:22 |只看该作者
-144 ISAM error: key value locked.
除了设置等待锁时间之外,还有其他解决办法吗?
关于这段解释

The current operation inserts a row with a certain primary key value or
updates a row with a certain primary key value, but a transaction that
has not yet been committed has deleted that key value from the index.
This error occurs only when the lock mode is set to NOT WAIT. Treat it
the same as error -107 (record is locked). Roll back the current
transaction, and re-execute it after a delay. Then, if the other
transaction was committed, the lock no longer exists. If it was rolled
back, the key exists, and this operation receives a duplicate-key
error.

英语不是很好,看的有点迷糊:
谁能帮我解释一下这段话吗?
The current operation inserts a row with a certain primary key value or
updates a row with a certain primary key value, but a transaction that
has not yet been committed has deleted that key value from the index.

论坛徽章:
0
4 [报告]
发表于 2012-04-13 08:08 |只看该作者
笨鸟先飞,笨猪先肥。

嘎嘎

论坛徽章:
0
5 [报告]
发表于 2012-04-13 08:56 |只看该作者
走别人的路,让别人无路可走

感謝樓主

论坛徽章:
11
金牛座
日期:2015-03-19 16:56:22数据库技术版块每日发帖之星
日期:2016-08-02 06:20:00数据库技术版块每日发帖之星
日期:2016-04-24 06:20:00数据库技术版块每日发帖之星
日期:2016-04-13 06:20:00IT运维版块每日发帖之星
日期:2016-04-13 06:20:00数据库技术版块每日发帖之星
日期:2016-02-03 06:20:00数据库技术版块每日发帖之星
日期:2015-08-06 06:20:00季节之章:春
日期:2015-03-27 15:54:57羊年新春福章
日期:2015-03-27 15:54:37戌狗
日期:2015-03-19 16:56:41数据库技术版块每日发帖之星
日期:2016-08-18 06:20:00
6 [报告]
发表于 2012-04-13 10:39 |只看该作者
回复 3# Oo烟花火


    若是需要的数据不是非常精确,可以使用dirty read。insert的话没什么好办法,使用行锁也许会好些。。

论坛徽章:
0
7 [报告]
发表于 2012-04-13 12:24 |只看该作者
已经是行锁了0 0

论坛徽章:
0
8 [报告]
发表于 2012-04-13 17:31 |只看该作者
对单表大量数据插入(猜测是不是在做数据维护),可以考虑先取消数据库事务支持,等插入操作完成后再恢复事务,一点愚见

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

论坛徽章:
0
10 [报告]
发表于 2012-04-18 09:07 |只看该作者
设置成最后提交读不知道可以吗?
set isolation to commited read last commited
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP