- Oracle Database 19c:
Generate a TDE MEK
Perform the following steps to generate a TDE MEK on the CryptoHub:Set the Oracle environment with the following commands.
The oraenv tool sets up the Oracle database environment for the current session and enables the sqlplus command. To set the Oracle environment, perform the following command sequence. When prompted, specify the system ID (SID) for the instance — orcl in this example — or use the default value indicated between the brackets in line 6 below. All instances on the system require a unique SID.
Shell
If successful, the command returns the following message:
None
Set the static
WALLET_ROOT parameter, which enables you to designate the location of the keystore you plan to use.You must set up the WALLET_ROOT parameter even if you do not use a keystore.
Sql
Open the hardware keystore by using the CryptoHub identity password configured inside the
<CRYPTO-OPR-PASS> tag in the fxpkcs11.cfg file:Sql
Create the TDE Master Encryption Key using the CryptoHub identity password configured inside the
CRYPTO-OPR-PASS tag in the fxpkcs11.cfg file:Sql
If migrating a previously configured TDE Master Encryption Key, refer to this link:docs.oracle.com/en/database/oracle/oracle-database/19/asoag/managing-keystore-and-tde-master-encryption-key.html#GUID-4335220F-49FF-40BC-9EB0-21442608F436.
If successful, the following message appears.
Javascript
If the database contains columns encrypted with a public key, the columns are decrypted and re-encrypted with the Oracle table key, which is encrypted and decrypted with the AES symmetric key generated by HSM-based transparent data encryption.

