首页 > 解决方案 > 太数据错误 2641进行了重组。重新提交

问题描述

我有一个表,我每天都会删除并创建一个索引,我还有另一个工作是用ACCESS锁查询这个表。有时这些工作同时发生,然后我收到以下错误:

2641 %DBID.%TVMID was restructured. Resubmit.

我在文档中阅读了以下内容:

Explanation:
A table was changed before a statement that references the table was processed.
(For example, an index may have been added or a field removed.)

Notes:
The statement may not have the intended result because of the change in the table.

Remedy:
Examine the table and resubmit the request.

https://docs.teradata.com/reader/8MhLDQBmL52OycrEKPuGqg/Ju5pqm9uRFO6VziQdcmA6w

我猜这是因为CREATE INDEX句子请求EXCLUSIVE锁定并且在SELECT创建索引时句子在排队,但是当SELECT从队列中弹出时,表具有不同的版本号并且它失败了。

也许我完全错了,但是,有没有办法避免这种行为?SELECT当它有机会被执行时,它会使句子重新评估。

谢谢!

标签: teradata

解决方案


由应用程序处理 2641 并重新提交请求。没有选项可以让数据库自动执行此操作。


推荐阅读