Home » RDBMS Server » Server Administration » table partitioning
table partitioning [message #59219] Wed, 05 November 2003 00:04 Go to next message
ramesh
Messages: 123
Registered: August 2000
Senior Member
hi all,

i have a doubt regarding table partition.

Can we create partitions on an existing table that is having data?, If so, is there any loss of data..

Plz get back at the earliest..

All the replies are welcome...
Re: table partitioning [message #59221 is a reply to message #59219] Wed, 05 November 2003 01:02 Go to previous messageGo to next message
Daljit Singh
Messages: 290
Registered: October 2003
Location: Texas
Senior Member
Hi,

No u cant create partition on existing tables unless that table are partitioned. Means if u have an already partitioned table then u can add more partitions to it but can not convert a unpartitioned table to a partitioned table.

Well if u want to do so then just create a partition table and then insert all the data from ur unpartitioned table to that newly created partitioned table, it will take time according to ur data bu this is the only solution I THINK. And There will be no loss of data.
Re: table partitioning [message #59228 is a reply to message #59219] Wed, 05 November 2003 05:56 Go to previous messageGo to next message
Thiru
Messages: 1089
Registered: May 2002
Senior Member
In 9i, you should be able to convert a non-partitioned table into a partitioned table ONLINE using DBMS_REDEFINITION package.

I am yet to try this myself. But its COOL, dont you think ? There shouldnt be any loss of data.

-Thiru
Re: table partitioning [message #59230 is a reply to message #59219] Wed, 05 November 2003 06:46 Go to previous message
Mike
Messages: 417
Registered: September 1998
Senior Member
you may more or less do it using the exchange partition function for more details have a look at:

http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96520/parpart.htm#103109

Once you created this partition you could split it in several partitions. For more details have a look at:

http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96520/parpart.htm#102855
Previous Topic: last_call_et column on v$session
Next Topic: index compress
Goto Forum:
  


Current Time: Fri Sep 20 15:28:50 CDT 2024