Solved

How to partition an existing Oracle table?

Posted on 2011-03-17
1
1,007 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Background In several of the companies I have worked for, I noticed that corporate reporting is off loaded from the production database and done mainly on a clone database which needs to be kept up to date daily by various means, be it a logical…
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.  …
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
This video shows how to Export data from an Oracle database using the Original Export Utility.  The corresponding Import utility, which works the same way is referenced, but not demonstrated.

737 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