Decrypting an Existing Tablespace with Offline Conversion

To decrypt an existing tablespace with online conversion, you can use the ALTER TABLESPACE SQL statement with DECRYPT clause.


  1. Login to DB instance as a system user.

›_ sqlplus console

SQL> connect system/<password>; 
  1. List encrypted tablespace.

›_ sqlplus console

SQL> select TABLESPACE_NAME, ENCRYPTED from DBA_TABLESPACES; 
  1. Open a Keystore.

›_ sqlplus console

SQL> ADMINISTER KEY MANAGEMENT SET KEYSTORE OPEN IDENTIFIED BY <hsm_password>;
  1. Bring the tablespace NONSECURE01_TS offline.

›_ sqlplus console

SQL> alter tablespace NONSECURE01_TS OFFLINE NORMAL;
  1. Decrypt the existing tablespace NONSECURE01_TS.

›_ sqlplus console

SQL> alter tablespace NONSECURE01_TS ENCRYPTION OFFLINE DECRYPT; 
  1. Bring the tablespace NONSECURE01_TS online.

›_ sqlplus console

SQL> alter tablespace NONSECURE01_TS ONLINE; 
  1. Verify the tablespace got decrypted.

›_ sqlplus console

SQL> select TABLESPACE_NAME, ENCRYPTED from DBA_TABLESPACES;