---
title: vector 列上创建索引时 coredump-OceanBase数据库使用指南
description: 了解OceanBase数据库在实际应用中关于vector 列上创建索引时 coredump相关的常见问题和使用技巧，帮助您快速解决vector 列上创建索引时 coredump的难题。
image: https://mdn.alipayobjects.com/huamei_22khvb/afts/img/A*OSPzQ6GUQF4AAAAAQHAAAAgAeiGDAQ/original
---
切换语言

- 中文站 - 简体中文
- International - English
- 日本站 - 日本語

划线反馈

# vector 列上创建索引时 coredump

更新时间：2026-05-22 08:56

适用版本： V4.3.x 内容类型：Troubleshoot  

## 问题现象

在 OceanBase 数据库 V4.3.5 版本关闭向量化 2.0，然后在 vector 列上创建索引，有一定概率触发 coredump。

示例如下。

1. 在系统 SYS 租户执行关闭向量化 2.0 命令。

   ```shell
   alter system set _global_enable_rich_vector_format = false;

   ```
 2. vector 列上建索引。

   ```shell
   -- 创建测试表 t1
   create table t1(c1 int, vec1 vector(3));

   -- ob_vector_memory_limit_percentage：配置向量索引模块对内存资源占用的阈值（单位为百分比）
   alter system set ob_vector_memory_limit_percentage =10;

   -- 创建 VECTOR index 索引
   create VECTOR index vector_idx on t1(vec1) with (distance=l2, lib=vsag, type=hnsw, m=10, ef_construction=100, ef_search=40);

   ```
 3. coredump 堆栈信息。

   ```shell
   -- coredump 的堆栈信息如下，并且 core 的堆栈包含 ObPxDistTransmitOp::inner_open() 中
   oceanbase::sql::ObVectorsResultHolder::init(oceanbase::common::ObIArray<oceanbase::sql::ObExpr*> const&, oceanbase::sql::ObEvalCtx&) at ??:?
   oceanbase::sql::ObPxDistTransmitOp::inner_open() at ??:?
   oceanbase::sql::ObOperator::open() at ??:?
   oceanbase::sql::ObPxTaskProcess::process() at 0_cxx.cxx:?
   oceanbase::sql::PxWorkerFunctor::operator()(bool) at 0_cxx.cxx:?
   oceanbase::omt::ObPxPool::run1() at 0_cxx.cxx:?
   oceanbase::omt::ObPxPool::run(long) at 0_cxx.cxx:?
   oceanbase::lib::Thread::__th_start(void*) at 0_cxx.cxx:?

   ```

## 关键诊断信息

### 触发条件

在 OceanBase 数据库 V4.3.5 版本中关闭向量化 2.0，然后在 vector 列上创建索引。

### 事前巡检

在 OceanBase 数据库 V4.3.5 集群中确认是否关闭了向量化 2.0，可以在系统租户执行如下命令。

```shell
show parameters like '_global_enable_rich_vector_format';

```

如果结果不为空，说明关闭了向量化 2.0。

### 事后诊断

在关闭向量化 2.0 的情况下，在 vector 列上建索引时发生 coredump，并且 core 的堆栈包含 ObPxDistTransmitOp::inner_open()。

## 问题原因

BUG 导致。

## 问题的风险及影响

导致系统 coreodump。

## 影响租户

影响 OceanBase 数据库中的 SYS 租户和 Oracle 租户以及 MySQL 租户。

## 影响版本

OceanBase 数据库企业版 V4.3.5 GA（oceanbase-4.3.5.0-100000122024123020）及之后版本。

## 解决方法

- 升级至问题已修复版本。目前已修复的版本包括 OceanBase 数据库企业版 V4.3.5 GA Hotfix4（oceanbase-4.3.5.0-100040012025021921）、V4.3.5 GA Hotfix5（oceanbase-4.3.5.0-100050012025022422）、V4.3.5 GA Hotfix6（oceanbase-4.3.5.0-100060022025031922）、V4.3.5 GA Hotfix7（oceanbase-4.3.5.0-100070012025040810）、V4.3.5 GA Hotfix8（oceanbase-4.3.5.0-100080012025052715）、V4.3.5 GA Hotfix9（oceanbase-4.3.5.0-100090012025063017）、V4.3.5 GA Hotfix10（oceanbase-4.3.5.0-100100032025071516）、V4.3.5 GA Hotfix11（oceanbase-4.3.5.0-100110012025072810）、V4.3.5 GA Hotfix12（oceanbase-4.3.5.0-100120012026011215）、V4.3.5 BP1（oceanbase-4.3.5.1-101000292025030623）。
 - 重启，开启向量化 2.0。

## 规避方式

开启向量化 2.0，尤其是在 vector 列上建索引时。

Previous

[索引字段过长导致创建索引失败](https://www.oceanbase.com/knowledge-base/oceanbase-database-1000000002910733)

Next

[列存表禁止创建向量索引](https://www.oceanbase.com/knowledge-base/oceanbase-database-1000000006298390) ![有帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*y6ocSqN8cqsAAAAAAAAAAAAAARQnAQ)![无帮助](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*BG9IQJyLHF8AAAAAAAAAAAAAARQnAQ)![反馈](https://gw.alipayobjects.com/mdn/ob_asset/afts/img/A*eTWdQKCRKHwAAAAAAAAAAAAAARQnAQ)[AI](https://www.oceanbase.com/obi) 咨询热线
