Born encrypted: Oracle AI Database 26ai
TDE has come a long way; from the humble beginnings of TDE column encryption in Oracle Database 10gR2 in July 2005 to automated and mandatory encryption for all Oracle databases that are controlled by OCI.
Starting with Oracle database 21c, DBCA (Database Configuration Assistant) can create encrypted (primary and standby) databases; this is documented here for 21c and here for 26ai (did you notice that TDE in 26ai has its own documentation book, separated from Data Redaction?)
Here is the 26ai dbca code part that encrypts your new database:
-configureTDE TRUE \
-tdeWalletRoot /local/directory/for/TDE/ \
-tdeWalletLoginType LOCAL_AUTO_LOGIN \
-TdeWalletPassword <TDE wallet password> \
-encryptTablespaces SYSTEM:true,SYSAUX:true,USERS:true \
-createTDESepsWallet
Some remarks:
Default for "-encryptTablespaces": USERS tablespace will be encrypted in CDB$ROOT
Default for "-encryptPDBTablespaces": SYSTEM, SYSAUX and USERS will be encrypted in the PDB.
"-createTDESepsWallet" currently has no option for a local auto-open wallet
"-tdeAlgorithm" in 26ai is AES256 with XTS cipher mode.
"-tdeWalletRoot" can be any existing local directory (for RAC: ACFS or ASM)
The result will be:
PDB_NAME TBS_NAME ENC_ALG MODE ENC_STATUS
--------------- --------------- ------- ----- ----------
CDB$ROOT SYSAUX AES256 XTS NORMAL
CDB$ROOT SYSTEM AES256 XTS NORMAL
CDB$ROOT USERS AES256 XTS NORMAL
CDB$ROOT TEMP ---- ---- ----
CDB$ROOT UNDOTBS1 ---- ---- ----
FINPDB26 SYSAUX AES256 XTS NORMAL
FINPDB26 SYSTEM AES256 XTS NORMAL
FINPDB26 USERS AES256 XTS NORMAL
FINPDB26 TEMP ---- ---- ----
FINPDB26 UNDOTBS1 ---- ---- ----
Over the next few weeks, I will talk about the other TDE-related tricks that DBCA can do in 26ai.
Try it out for yourself: Grab Tim Hall's Vagrant scripts that build RAC and Data Guard databases and add TDE to your databases by default.
Comments
Post a Comment