Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 11781

How to change partitioned table into non-partitioned table in oracle along with data and indexes?

$
0
0

I've done this in following ways:

  1. Help of Oracle data pump (expdp/impdp) utility with option PARTITION_OPTIONS=merge.
  2. And ALTER TABLE t1 MERGE PARTITIONS p01 TO p04 INTO p0; (Here I merged successfully but all stored in one partitioned which I don't want in that way.)
  3. Create a temporary copy of table along with data, drop the original table and rename the temp table name into the original. (This approach may not good for huge data)

But here all I want to know, Is there any way to achieve this from SQL> Prompt with oneliner command /statement? So, the data could be stored in table/tablespace without any partitioning things.


Viewing all articles
Browse latest Browse all 11781

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>