Transparent Data Encryption Oracle
Transparent Data Encryption (TDE) was introduced in Oracle 10G Release 2. Tablespace encryption helps you to secure the complete contents of one Tablespace instead of encrypt column by column. Oracle has also built in support for hardware-based crypto accelaration 11.2.0.2 for Intel XEON 5600 CPUs with AES-NI. Keep in mind that TDE can also be a performance impact if you encrypt your data and have for example unencrypted indexes. In this case a FULL TABLE SCAN can occur.
We must complete three steps to encrypt our data.
Create a Wallet
Create a Tablespace
Test the encryption
License: TDE is a part of the Oracle Advanced Security Option which also includes Strong Authentication and Network encryption. It is only avaible in the Enterprise Edtion of the database as extra cost option.
Create a Wallet:
Berfore we can create a encrypted tablespace we must first create a Oracle Wallet which holds the encryption key. The database read the sqlnet.ora File to find the wallet. If no entry is present in the sqlnet.ora File the database trys to find the Wallet under $ORACLE_HOME/admin/$ORACLE_SID/wallet.
sqlnet.ora
The following command creates and open the wallet
To see the status of your wallet you can query v$encryption_wallet
If you want to close the wallet you may get a ORA-28390 which is a expected is expected, to close the wallet in 11.2.0.1 onwards there’s new syntax.
To reopen the wallet just use the normal open command.
Create a Tablespace:
To create a encrypted tablespace open your wallet and use the encryption syntax in your SQL Statement.
To check your tablespace query the dba_tablespace View:
Test the encryption
Create a table in your encrypted tablespace and place some data in it.
Remember that your wallet must be open to access your data. If not the database will raise a error.
Last updated
Was this helpful?