My Oracle Support Banner

ORA-30665 When Creating Table With DEFAULT ON NULL Property (Doc ID 2571631.1)

Last updated on AUGUST 07, 2019

Applies to:

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

Symptoms

Below error generates when creating table with DEFAULT ON NULL property:

SQL> create table t1 (id NUMBER DEFAULT ON NULL 0 NOT NULL DISABLE);
create table t1 (id NUMBER DEFAULT ON NULL 0 NOT NULL DISABLE)
                                                             *
ERROR at line 1:
ORA-30665: invalid NOT NULL constraint specified on a DEFAULT ON NULL column

Changes

 Upgrade database to version 12.1.0.2 or higher.

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.