Oracle 19c – Expdp Partitioned Table and Impdp Into Non-Partitioned Table

oracleoracle-19cpartitioning

I have a partitioned table X in my production database.

I want to expdp it from production & impdp the same table X with data to my test database.

As I have a standard license in the test database, the partitioning feature is not available.

Any advice on how I can move the table structure/ data seamlessly.

Note that I have a list of tables with above issue.

Best Answer

PARTITION_OPTIONS

A value of MERGE combines all partitions and subpartitions into one table.

Example

The following example assumes that the sh.sales table has been exported into a dump file named sales.dmp. It uses the merge option to merge all the partitions in sh.sales into one non-partitioned table in scott schema.

impdp system TABLES=sh.sales PARTITION_OPTIONS=MERGE  DIRECTORY=dpump_dir1 DUMPFILE=sales.dmp REMAP_SCHEMA=sh:scott