Unable To exchange A Partition With A Table If It Has An Encrypted Column

(Doc ID 958728.1)

Last updated on NOVEMBER 09, 2015

Applies to:

Oracle Database - Enterprise Edition - Version 10.2.0.4 to 11.2.0.3 [Release 10.2 to 11.2]
Information in this document applies to any platform.
This problem can occur on any platform.

Symptoms

You are getting the following error when trying to exchange a partition of a partitioned table with a regular table that both use column encryption:

ALTER TABLE table1 EXCHANGE PARTITION P1 WITH TABLE table2
*
ERROR at line 1:
ORA-28347: encryption properties mismatch

Changes

You have created a partitioned table and a regular table as follows using column encryption attributes:

create table table1
    ("PARTITION_KEY" NUMBER(12),
    "ENCRYPTED_COLUMN" NUMBER(3)
    ENCRYPT USING 'AES192' NO SALT)
    PARTITION BY RANGE ("PARTITION_KEY")
    (
    PARTITION "P1" VALUES LESS THAN (10) TABLESPACE "USERS"  NOLOGGING,
    PARTITION "OVER_FLOW"  VALUES LESS THAN (MAXVALUE) TABLESPACE "USERS"
    NOLOGGING );

create table table2
  ("PARTITION_KEY" NUMBER(12),
   "ENCRYPTED_COLUMN" NUMBER(3)
   ENCRYPT USING 'AES192' NO SALT);

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms