My Oracle Support Banner

ORA-01404 When changing the length of column using ALTER TABLE MODIFY (Doc ID 1667060.1)

Last updated on AUGUST 04, 2018

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.1 to 12.1.0.2 [Release 11.2 to 12.1]
Information in this document applies to any platform.

Symptoms

ORA-01404 occurs When changing the length of column using ALTER TABLE MODIFY

 

SQL> CREATE TABLE TEST (
SEARCH_KEYPHRASES VARCHAR2(1000) NOT NULL ENABLE,
ID_TRT NUMBER)
ENABLE ROW MOVEMENT PARTITION BY RANGE
(ID_TRT ) (PARTITION P0 VALUES LESS THAN (1)
, PARTITION P1 VALUES LESS THAN (2)
, PARTITION P2 VALUES LESS THAN (3)
, PARTITION P3 VALUES LESS THAN (4) );

Table created.

SQL> CREATE INDEX PK_TEST ON TEST ( SEARCH_KEYPHRASES );

Index created.

SQL> alter table test modify SEARCH_KEYPHRASES VARCHAR2(4000);
alter table test modify SEARCH_KEYPHRASES VARCHAR2(4000)
*
ERROR at line 1:
ORA-01404: ALTER COLUMN will make an index too large

SQL> alter table test modify SEARCH_KEYPHRASES VARCHAR2(2000);

Table altered.

SQL> alter table test modify SEARCH_KEYPHRASES VARCHAR2(4000);

Table altered.

SQL> alter table test modify SEARCH_KEYPHRASES VARCHAR2(1000);
alter table test modify SEARCH_KEYPHRASES VARCHAR2(1000)
*
ERROR at line 1:
ORA-01404: ALTER COLUMN will make an index too large

Callstack

ksedst1 <- ksedst <- dbkedDefDump <- dbkdaKsdActDriver <- dbgdaExecuteAction
<- dbgdaRunAction <- dbgdRunActions <- dbgdProcessEventAct <- ions <- dbgdChkEventKgErr
<- ksfpec <- dbgePostErrorKGE <- 1008 <- kgesec0 <- atb_check_newkeysiz
<- atbmod <- atbdrv <- opiexe <- opiosq0 <- opipls
<- opiodr <- rpidrus <- skgmstack <- rpidru <- rpiswu2
<- rpidrv <- psddr0 <- psdnal <- pevm_EXIM <- pfrinstr_EXIM
<- pfrrun_no_tool <- pfrrun <- plsql_run <- peicnt <- kkxexe
<- opiexe <- kpoal8 <- opiodr <- ttcpip <- opitsk
<- opiino <- opiodr <- opidrv <- sou2o <- opimai_real
<- ssthrdmain <- main <- start

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.