Solved

How to partition an existing Oracle table?

Posted on 2011-03-17
1
1,011 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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.  …
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…

688 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