Solved

How to partition an existing Oracle table?

Posted on 2011-03-17
1
1,002 Views
Last Modified: 2012-05-11
Dear Experts,

We have an Oracle 11.0.2 Database and the tables in it has an average size of approximately 5 GB.

We need to partition these existing tables (interval partitioning)  according to the selected time period using an existing field with DATE type. This field is common in all tables. Some of the tables will be partitioned daily, some of them will be partitioned monthly etc.

How can I convert these un-partitioned tables to interval partitioned tables (range partition + auto-increment) without disturbing data or recreating the tables?

BR,
0
Comment
Question by:GurcanK
1 Comment
 
LVL 7

Accepted Solution

by:
Piloute earned 500 total points
ID: 35157347
Hi Gurcan,

There's no way to split data in partitions 'without disturbig data or recreating the tables'. In fact you can keep your old tables, but the partitioned ones will necessarily be new tables, using new segments, new rowids, etc...

The "clean" way to partition a non-partitioned table is the package rdbs_redefinition. You have a concrete example here about how to use it :
http://www.oracle-base.com/articles/misc/PartitioningAnExistingTable.php

You can always check the official oracle doc too :
http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28419/d_redefi.htm#CBBJJAIF

Cheers,
P
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This post first appeared at Oracleinaction  (http://oracleinaction.com/undo-and-redo-in-oracle/)by Anju Garg (Myself). I  will demonstrate that undo for DML’s is stored both in undo tablespace and online redo logs. Then, we will analyze the reaso…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…

786 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question