Open the wallet or hardware keystore
The security administrator must make the accessible to the database before Oracle TDE can perform any encryption or decryption. This is comparable to opening the Oracle wallet or logging in to the hardware keystore. You can open the wallet or hardware keystore manually or automatically, but with the manual option, you must re-enable access to the every time you restart the database. The following sections describe these methods.
If using the manual option, you must run the following OPEN command to access the every time you restart the database instance.
Run the following command to open the hardware keystore manually, thus making the accessible:
You can disable access with the following command:
Choose one of the following operating systems to use the automatic option:
An auto-login wallet stores the credentials in an auto-login software keystore. This configuration reduces the security of the system as a whole. However, this configuration supports unmanned or automated operations and is useful in deployments that require automatic re-login to the .
Run the following command to create the /etc/ORACLE/WALLETS/tde directory path:
Run the following command to change ownership of the /etc/ORACLE directory to the Oracle user:
Run the following command to set the WALLET_ROOT parameter to the WALLETS directory created in the first step:
Run the following command to set the TDE_CONFIGURATION parameter to FILE for the KEYSTORE_CONFIGURATION:
Run the following command to stop and start the database after setting the WALLET_ROOT and TDE_CONFIGURATION parameters:
If you have not migrated from a software keystore, run the following command to create the software keystore with the hardware keystore password (any password you choose) in the appropriate location (such as /etc/ORACLE/WALLETS/tde):
Run the following command to open the new software keystore:
Run the following command to add the secret to the software keystore. The secret is the user password, and client is HSM_PASSWORD. HSM_PASSWORD is an Oracle-defined client name that represents the HSM password as a secret in the software keystore.
You must provide the secret and HSM_PASSWORD values within single quotes or the command fails.
Run the following command to create a new auto-login keystore by using the password of the Oracle software wallet:
Run the following command to re-set the TDE_CONFIGURATION parameter to HSM|FILE for the KEYSTORE_CONFIGURATION:
Run the following command to stop and start the database after setting the TDE_CONFIGURATION parameter:
At this stage, the hardware security module auto-login keystore opens automatically the next time a TDE operation executes. To confirm that the auto-login wallet is working, run the following query:
If the auto-login wallet was configured properly, the following output appears: