赞
踩
建索引可能因各种各样的原因产生报错,本文主要介绍碰到建索引报错时,如何定位到建索引报错的日志,方便后续进一步使用工具一键收集日志/根因分析,分析根本原因。
备注:此文档中涉及的语句适用于版本号>=4.2.3和 >= 4.3的。
建索引主要分为几个阶段
建索引报错的日志分析的基本思路是根据建索引的基本步骤,判断建索引失败在哪一步,然后决策收集哪些机器的日志,排查的基本步骤如下
- select tenant_id from __all_tenant where tenant_name = '租户名';
- select table_id from __all_virtual_table where table_name = '表名' and tenant_id = '租户id';
- 1. 根据索引名,查询索引表的id
- select table_id from __all_virtual_table_history where tenant_id = 'xxx' and data_table_id = 'xxx' and table_name like '%索引名%';
OceanBase敏捷诊断工具相关链接:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。