SQL错误:ORA-30556:要修改的列上定义了功能或位图连接索引

问题描述 投票:0回答:1

当我试图改变我的表的列长度时,我得到以下Oracle错误:

 SQL Error: ORA-30556: either functional or bitmap join index is defined on the column to be modified
 30556. 00000 -  "either functional or bitmap join index is defined on the column to be modified"
 *Cause:    An ALTER TABLE MODIFY COLUMN was issued on a column on which
            either a functional index or bitmap join index exists.
 *Action:   Drop the functional or bitmap join index before attempting to modify the column.

我们如何改变我们的柱尺寸?

oracle alter-table
1个回答
1
投票

无需删除索引并更改列大小,然后再次创建索引。

我们在Oracle中有另一种方法,它是以下内容:

  1. 首先禁用索引。 (例如:ALTER INDEX index_cust ON CUSTOMER DISABLE
  2. 然后更改Customer表的列大小
  3. 然后启用索引。 (例如:ALTER INDEX index_cust ON CUSTOMER REBUILD

注意:这仅适用于功能索引

© www.soinside.com 2019 - 2024. All rights reserved.