My Oracle Support Banner

12c: Adding DEFAULT NOT NULL Column In Basic Compressed Table Fails With ORA-39726 (Doc ID 2253655.1)

Last updated on AUGUST 04, 2018

Applies to:

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

Symptoms

In 12c: Adding DEFAULT NOT NULL Column In Basic Compressed Table Fails With ORA-39726

Test Case :

SQL> create table T1 ( a number, b varchar2(10) ) compress ;
SQL> alter table T1 add yyy varchar2(20) default 'qqqqq' not null ;

ORA-39726: unsupported add/drop column operation on compressed tables

But if we split into two steps, then it works fine.
SQL> alter table T1 add yyy varchar2(20);
SQL> alter table T1 modify yyy default 'qqqqq' not null;

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
References


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