Partitioning an Existing Table [message #230798] |
Thu, 12 April 2007 21:25 |
vejaiz
Messages: 3 Registered: April 2007 Location: Mumbai
|
Junior Member |
|
|
I have a big table of 150GB size. I would like to partition the table and its indexes. The table contains 2 years history data with date field. Would like to do a range partition on date for every 3 months.
How do i partition an existing table and its indexes? would be helpful if i can get the step by step commands.
|
|
|
Re: Partitioning an Existing Table [message #230819 is a reply to message #230798] |
Fri, 13 April 2007 00:31 |
harshad.gohil
Messages: 157 Registered: April 2007 Location: USA
|
Senior Member |
|
|
I think, first try things in UAT then implement on Prod.
ALTER TABLE <>.<> ADD PARTITION QTR1 VALUES LESS THAN (TO_DATE('01-APR-2000','DD-MON-YYYY'))
ALTER TABLE <>.<> ADD PARTITION QTR2 VALUES LESS THAN (TO_DATE('01-JUL-2000','DD-MON-YYYY'))
and you have to create global and local indexes accordingly.
Regards,
Harsh
|
|
|
|