Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: table partitions
Rick,
If you partition on the date field then you set the partition limit
with a date type limit.
PARTITION aadedup01 VALUES LESS THAN ('02-01-2003')
TABLESPACE aadedup01_data,
PARTITION aadedup02 VALUES LESS THAN ('03-01-2003')
TABLESPACE aadedup02_data,
PARTITION aadedup03 VALUES LESS THAN ('041-01-2003')
TABLESPACE aadedup03_data,
.....
PARTITION aadedupMAX VALUES LESS THAN (MAXVALUE)
TABLESPACE aadedup_dataMAX)
That way you can have monthly partitions each year and then archive
the data.
Ron
>>> RStephenson_at_Ovid.com 12/15/2003 7:34:34 PM >>>
create table aadedupekeys
(
file_id number,
rundate date,
pk number(10), dk varchar2(128),
Is there anyway to partition a table (above) in months e.g.
('January','Februray'...). I want to use the rundate and list
partition it
using the months of the year. How can I do that without actually
having to
create another column in the table that only contains the month it
belongs
to? I cannot seem to use a function on the rundate field as part of
the
partition syntax to generate a month to partition the data.
Thanks for your help,
Rick Stephenson
This email and any files transmitted with it are confidential and
intended
solely for the use of the individual or entity to which they are
addressed.
This message contains confidential information and is intended only for
the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately by e-mail if you have received this e-mail by mistake and
delete
this e-mail from your system. If you are not the intended recipient you
are
notified that disclosing, copying, forwarding or otherwise distributing
or
taking any action in reliance on the contents of this information is
strictly prohibited.
-- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Rick Stephenson INET: RStephenson_at_Ovid.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). -- Please see the official ORACLE-L FAQ: http://www.orafaq.net -- Author: Ron Rogers INET: RROGERS_at_galottery.org 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 Dec 16 2003 - 07:49:34 CST