My Oracle Support Banner

TABLE ACCESS FULL When Modifying A Column From CHAR To VARCHAR2 And Takes More Time (Doc ID 2748995.1)

Last updated on FEBRUARY 09, 2021

Applies to:

Oracle Database - Enterprise Edition - Version 18.0.0.0 and later
Information in this document applies to any platform.

Symptoms

Starting from Oracle 18c, there is a serious performance degradation when doing "alter table modify column".

Test case:


Up to Oracle RDBMS 12.2 this statement was executing instantly (when the column is nullable).

Starting from Oracle 18c it will execute in many hours on large table, which is not acceptable.

Comparing the SQL Trace (10046) of 18c/19c and 12.2 we can see that on newer versions it started doing a FULL TABLE SCAN:

Changes

 Upgrade from 12.2 to 18c

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
Changes
Cause
Solution
References


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