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: Partitioning

Re: Partitioning

From: Jay Hostetter <jhostetter_at_decommunications.com>
Date: Tue, 12 Aug 2003 11:19:30 -0800
Message-ID: <F001.005CA4FE.20030812111930@fatcity.com>


If it has a date column, partition by that column into whatever makes sense (weeks, months, etc.)

CREATE TABLE YOURTABLE
(

  YOURDATE              DATE              NOT NULL,
  YOURCOLUMN         NUMBER

)
PARTITION BY RANGE (YOURDATE)
(
  PARTITION YOURTABLE_JUN03 VALUES LESS THAN (TO_DATE(' 2003-07-01', 'YYYY-MM-DD')     TABLESPACE DATA_06,
  PARTITION YOURTABLE_JUL03 VALUES LESS THAN (TO_DATE(' 2003-08-01', 'YYYY-MM-DD)
    TABLESPACE DATA_07,
  PARTITION DETAILS_AUG03 VALUES LESS THAN (TO_DATE(' 2003-09-01', 'YYYY-MM-DD')
    TABLESPACE DATA_08

);

Jay

>>> Dennis.Meng_at_cardinal.com 08/12/03 12:04PM >>>
I have worked with partitioning before but have yet encountered the following challenge - The table we are trying to partition is a large table with hundreds of millions of rows, which is ok. But it does not have a month column, although it has dates. I would like to partition by month because this table contains years of data and partitioning by days will result in thousands of partitions. Of course we can add a month column but I think that will require extensive downtime which we can't afford and I suspect it will cause row-chaining as well. So anybody care to share with me any other options/suggestions?

TIA Dennis

**DISCLAIMER
This e-mail message and any files transmitted with it are intended for the use of the individual or entity to which they are addressed and may contain information that is privileged, proprietary and confidential. If you are not the intended recipient, you may not use, copy or disclose to anyone the message or any information contained in the message. If you have received this communication in error, please notify the sender and delete this e-mail message. The contents do not represent the opinion of D&E except to the extent that it relates to their official business.

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Jay Hostetter
  INET: jhostetter_at_decommunications.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Tue Aug 12 2003 - 14:19:30 CDT

Original text of this message

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