Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

12.1.0.2 column from char(9) to varchar2(12): ORA-01439

testaccNov 8 2017 — edited Nov 8 2017

We foolishly moved to 12c with optimizer_adaptive_features enabled. It broke a lot of things & the side effects lasted long beyond turning it off, a warning to those still on 11g.

One of the problems was we could not modify a column from char to varchar2(larger) when there was data in the table. The first time this happened we fixed it by removing everything from dba_stat_extensions.

This time though a new database was left with optimizer_adaptive_features enabled by mistake & now the same problem occurs. But this time removing from dba_stat_extensions isn't fixing it & the extra step from here isn't doing the job either: Completely Disabling Adaptive Query Optimization in Oracle Database 12c - Oracle Wiki - Oracle - Toad World

Any of you experienced similar in 12c? What other things could be preventing the modification?

alter table x modify (ID VARCHAR2(12 CHAR)) -- from ID  CHAR(9 CHAR)

This post has been answered by AndrewSayer on Nov 8 2017
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 6 2017
Added on Nov 8 2017
13 comments
459 views