logo
GBase 8s
其他
文章

【错误处理】-244 Could not do a physical-order read to fetch next row

GBase社区管理员
发表于2024-02-01 11:22:23310次浏览0个评论

错误信息:
-244 Could not do a physical-order read to fetch next row.
-244 无法执行物理顺序读来访存下一行。

 

错误原因:顺序扫描表时,所扫的行已被锁定。

解决方案:
1、创建合理索引,避免顺序扫描
2、设置锁等待时间,等待被锁定的数据行锁释放(set lock mode to wait 10;)

重现示例:

序号session1session2
1dbaccess testdb -
drop table if exists t;
create table t(col1 int,col2 char(100));
insert into t select tabid,tabname from systables;
 
 
2begin;
delete from t where col1=1;
 
3 dbaccess testdb -
select * from t where col1=1;
4 报错:
-244 Could not do a physical-order read to fetch next row.
-107 ISAM error: record is locked.

 

评论

登录后才可以发表评论