GBase 8s
其他
文章
【错误处理】-252 Cannot get system information for table.
GBase社区管理员发表于2024-02-01 11:23:08259次浏览2个评论
错误信息:
-252 Cannot get system information for table.
-113 ISAM error: the file is locked.
-252 不能获取表的系统信息。
-113 ISAM 错误:该文件已被锁定。
错误原因:表上有锁,select count就会报此错误
解决方案:设置锁等待时间。或设置隔离级别为脏读。(CR或LC都会报错)
重现示例:
| 序号 | session1 | session2 |
|---|---|---|
| 1 | create table t(col1 int); | |
| 2 | begin; | |
| 3 | insert into t values(100); | |
| 4 | select count(*) from t; | |
| 4 | 报错:-252,-113 |
热门帖子
- 12025-12-01浏览数:181664
- 22023-05-09浏览数:23884
- 42023-09-25浏览数:17055
- 52020-05-11浏览数:16201