To decrypt an existing tablespace with online conversion, use the ALTER TABLESPACE SQL statement with DECRYPT clause.
-
Log in to the DB instance as a system user.
SQL
SQL> connect system/<password>;
-
List the encrypted tablespace.
SQL
SQL> select TABLESPACE_NAME, ENCRYPTED from DBA_TABLESPACES;
-
Open a Keystore.
SQL
SQL> ADMINISTER KEY MANAGEMENT SET KEYSTORE OPEN IDENTIFIED BY <hsm_password>;
-
Bring the tablespace NONSECURE01_TS offline.
SQL
SQL> alter tablespace NONSECURE01_TS OFFLINE NORMAL;
-
Decrypt the existing tablespace NONSECURE01_TS.
SQL
SQL> alter tablespace NONSECURE01_TS ENCRYPTION OFFLINE DECRYPT;
-
Bring the tablespace NONSECURE01_TS online.
SQL
SQL> alter tablespace NONSECURE01_TS ONLINE;
-
Verify the tablespace got decrypted.
SQL
SQL> select TABLESPACE_NAME, ENCRYPTED from DBA_TABLESPACES;