Solved

How to partition an existing Oracle table?

Posted on 2011-03-17
1
1,001 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
Comment Utility
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

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.  …
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.
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.

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now