Oracle Error ORA-28665: table and partition must have same compression attribute

Oracle Error Message

ORA-28665: table and partition must have same compression attribute

Reason for the Error

User attempted to EXCHANGE a compression enabled partition with a compression disabled table or vice versa OR the # of columns compressed is different for table and partition

Solution

Make sure the compression attributes match If they don’t, fix it using ALTER TABLE MOVE [PARTITION] COMPRESS