RE: AW: Removing table partition

From: Jeff Smith <>
Date: Fri, 20 Mar 2020 07:59:18 -0700 (PDT)
Message-ID: <5e4b8b48-2605-4b38-80eb-fa7d363d581d_at_default>

Smarter folks than I on here, but I’m sure there’s a way.


From: Michael D O'Shea/Woodward Informatics Ltd <> Sent: Friday, March 20, 2020 10:56 AM
To: Jeff Smith <> Cc: oracle-l-freelists <> Subject: AW: Removing table partition


Thanks Jeff ... I would of course have to drop existing constraints and indexes, then recreate them all afterwards too.


Guess I have to fess up as well, it isn't one table, but around 400, albeit quite small (ranging from a few dozen to a few million rows). I will likely script it all as a last resort. I am just a little aghast that implementing partitions on existing tables appears to be natively supported whereas going the other way ... you cannot, it's a one way road.




HYPERLINK ";!!GqivPVa7Brio!JOA0jrhXb5Cug9t7yRwE7FLl42LDiDMxr8T2-A0bHoWCTDA9to8FL6r7OT-0AVcT4mI$"


Am 20.03.2020 um 14:45 schrieb Jeff Smith <HYPERLINK "">:


CTAS would nuke the partitions…since you’re say ‘XE’, I’m assuming you don’t have THAT much data.


From: Michael D O'Shea/Woodward Informatics Ltd <HYPERLINK "">  Sent: Friday, March 20, 2020 10:27 AM
To: oracle-l-freelists <HYPERLINK ""> Subject: Removing table partition


Chaps, this is an RTFM question I know, but I am also having no luck.


Scenario: Oracle 18c XE, Win x64, dev. environment, existing list partitioned table with many FK's to and from other tables.


There seems to be no obvious functionality such as, in pseudo code, ALTER TABLE COALESCE PARTITION FLATTEN or other such DDL to remove existing partitions and return to an unpartitioned table. DBMS_REDEFINITION seemed like an obvious port of call too, but the functionality I seek doesn't seem to be on offer. Am I missing something?  




HYPERLINK ";!!GqivPVa7Brio!MlyjbYtYDIDGlE2L2K2fddO8GAAogZYl2qJ86HmfK8_VALw3UKwyHsBEbd3E4ilqaFk$"


Received on Fri Mar 20 2020 - 15:59:18 CET

Original text of this message