Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: NOT NULL vs NULL column in a fact table

RE: NOT NULL vs NULL column in a fact table

From: Powell, Mark D <mark.powell_at_eds.com>
Date: Tue, 4 Sep 2007 16:15:31 -0400
Message-ID: <D1DC33E67722D54A93F05F702C99E2A9014AE24A@usahm208.amer.corp.eds.com>

 

Alter the table adding nullable column
Populate column
alter the table modifying column to be not null Update statistics

-----Original Message-----
From: oracle-l-bounce_at_freelists.org
[mailto:oracle-l-bounce_at_freelists.org] On Behalf Of genegurevich_at_discover.com
Sent: Tuesday, September 04, 2007 2:59 PM To: oracle-l
Subject: NOT NULL vs NULL column in a fact table

Hi all

I have several medium to large fact tables to which I need to add a NOT NULL column. In the past I would do the following:

This time however the number of the tables and the sizes are too big and I don't think my normal process will complete within a reasonable time. So I am now considering just adding this column as nullable, and modify it as not null when older partitions are dropped (in a year or two or so) and I will ask the reporting team to run the reports for this new column only for the months starting with the one when this column was added.

What kind of problems am I asking for?
thank you

Gene Gurevich

--
http://www.freelists.org/webpage/oracle-l


--
http://www.freelists.org/webpage/oracle-l
Received on Tue Sep 04 2007 - 15:15:31 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US