
Oracle Database 12c Security Cookbook
By :

In this recipe, you're going to learn to use TDE column encryption to encrypt columns in a newly created table.
It is assumed that a keystore is opened and a master key is created.
Connect to the database as a user who has administer key privilege or SYSKM
privilege (for example, maja
):
$ sqlplus maja
Create a new table (for example, table enc_cols
in schema hr
) that has, for example, the following structure:
Column name |
Column type |
Encrypted |
|
|
No |
|
|
Yes, AES192 |
|
|
Yes, AES192 |
Figure 11 - A syntax to create the table hr.enc_cols
Connect to the database as a user who can insert and view data in the table (for example, hr
user):
SQL> connect hr
Insert several arbitrary values into the table HR.ENC_COLS
.
Figure 12 - Test values
Verify that the user can view unencrypted values in all columns.
Figure 13- Encryption is transparent
Connect...