Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove Partition - Retain Data

Status
Not open for further replies.

spicysudhi

Programmer
Nov 10, 2003
575
FR
Hi,

How to remove partition on a table? I want to retain the data and completely remove the partitionning.

drop partition option removes the data as well. the end result i want is a table without partitions.

regards,
Sudhi
 

You will need to re-create the table without partitioning.

[3eyes]




----------------------------------------------------------------------------
The person who says it can't be done should not interrupt the person doing it. -- Chinese proverb
 
Create an empty table matching the partition definition and exchange the table with the partition (alter table...exchange partition with table). The data has now been saved to your new table and you can drop the empty partition.
 
Hi,

i exported the table data using EXP.
Create the table with NO partitioning.
imported data using IMP with Ignore=Y

After import the table again has partitions.

-------
Is the only way is to rename the object to something, create the table without partition and use Select insert statement?

regards,
Sudhi
 
Ignore me. i was wrong. export, import works well.

thanks.
Sudhi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top