ORA-12899: value too large for column "DWTEST"."PCP_DOCS"."WORDS" (actual: 341, maximum: 255)
The error means that the column WORDS
in the table PCP_DOCS
was created with a maximum limit of 255 characters. You are trying to update the column with a value having more than 255 characters, i.e. 341 characters, and thus the update is failing.
Assuming the column data type is VARCHAR2, you could modify the column to increase the size:
ALTER TABLE pcp_docs MODIFY (words VARCHAR2(500));
For example,
SQL> create table t(col varchar2(2));
Table created.
SQL>
SQL> insert into t values('abc');
insert into t values('abc')
*
ERROR at line 1:
ORA-12899: value too large for column "LALIT"."T"."COL" (actual: 3, maximum: 2)
SQL>
SQL> alter table t modify(col varchar2(10));
Table altered.
SQL>
SQL> insert into t values('abc');
1 row created.
SQL>