【 使用环境 】生产环境 or 测试环境
【 OB or 其他组件 】observer
【 使用版本 】OceanBase_CE 4.2.1.10 (r110000072024112010-28c1343085627e79a4f13c29121646bb889cf901)
【问题描述】information_schema.tables 有重复表名记录,oms迁移报错
【 使用环境 】生产环境 or 测试环境
【 OB or 其他组件 】observer
【 使用版本 】OceanBase_CE 4.2.1.10 (r110000072024112010-28c1343085627e79a4f13c29121646bb889cf901)
【问题描述】information_schema.tables 有重复表名记录,oms迁移报错
麻烦提供下OMS版本。
再业务租户下查询:
– ① xxxx 替换成重复表名的表
select table_id, table_name, tenant_id,
table_mode >> 12 & 15 as state_flag, index_attributes_set & 16 as in_deleting
from oceanbase.__all_table where table_name = ‘xxxx’;
– ② 若①只有 1 行,再查统计行残留
select table_id, partition_id, count(*)
from oceanbase.__all_table_stat where table_id = <①查出的table_id>
group by table_id, partition_id;
可能是一个已知缺陷,OB435版本修复过。