Column encryption - encrypting existing column
It is common case that organizations first create database and later decide that they want to implement encryption. In this recipe, you're going to encrypt an existing column using TDE column encryption.
Getting ready
It is assumed that a keystore is opened and a master key is created.
How to do it...
Connect to the database as a user who can read data from the
OE.CUSTOMERStable (for example, theoeuser):$ sqlplus oeSelect data from column you want to encrypt (for example,
cust_email), just to verify that the user can view it.
Figure 18 - A test query
Connect to the database as a user who has administer key privilege or
SYSKMprivilege (for example,maja):SQL> connect majaEncrypt the
cust_emailcolumn in theoe.customerstable using the default encryption algorithm (AES192) and no salt.
Figure 19 - Encrypting an existing column, which has an index
Execute steps 1 and 2 again to verify that there is no change in the way user/application views...