Manual
Perform the following instructions to open the wallet or hardware keystore manually:1
Run the following command to manually open the hardware keystore, making the HSM accessible:
Sql
2
Optionally, disable access with the following command:
Sql
You must re-enable access to the HSM every time you restart the database instance with the manual option.
Automatic on Windows
Perform the following instructions to open the wallet or hardware keystore automatically on Windows:An auto-login wallet stores the HSM credentials in an auto-login software keystore. This configuration reduces the system security, but it supports unmanned or automated operations. Additionally, it facilitates deployments that require the HSM to re-login automatically.
1
Create the
C:\WALLET\tde directory path.2
Set the WALLET_ROOT parameter to the
WALLETS directory created in the first step.Sql
3
Set the TDE_CONFIGURATION parameter to FILE for the KEYSTORE_CONFIGURATION.
Sql
4
Stop and restart the database after setting the WALLET_ROOT and TDE_CONFIGURATION parameters.
Sql
5
If you have not migrated from a software keystore, create the software keystore with the hardware keystore password in the appropriate location (such as
C:\WALLETS\tde).Sql
Set the Software\Keystore\Password value to any password you choose.
6
Open the new software keystore with the following command:
Sql
7
Add the secret to the software keystore. The secret is the HSM identity password, and the clientis HSM_PASSWORD. HSM_PASSWORD is an Oracle-defined client name representing the HSM password as a secret in the software keystore.
Sql
You must provide the secret and HSM_PASSWORD values within single quotes, or the command fails.
8
Create a new auto-login keystore by using the password of the Oracle software wallet.
Sql
9
Reset the TDE_CONFIGURATION parameter to HSM|FILE for the KEYSTORE_CONFIGURATION.
Sql
10
Stop and restart the database after setting the TDE_CONFIGURATION parameter.
Sql
11
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:
Sql
If the auto-login wallet was configured properly, the following output appears:
Sql
Automatic on Linux
Perform the following instructions to open the wallet or hardware keystore automatically on Linux:An auto-login wallet stores the HSM credentials in an auto-login software keystore. This configuration reduces the system security, but it supports unmanned or automated operations. Also, it helps with deployments that require the HSM to re-login automatically.
1
Create the
/etc/ORACLE/WALLETS/tde directory path by using the mkdir command:Shell
2
Change ownership of the
/etc/ORACLE directory to the Oracle user.Shell
3
Set the WALLET_ROOT parameter to the
WALLETS directory created in the first step.Sql
4
Set the TDE_CONFIGURATION parameter to FILE for the KEYSTORE_CONFIGURATION.
Sql
5
Stop and restart the database after setting the WALLET_ROOT and TDE_CONFIGURATION parameters.
Sql
6
If you have not migrated from a software keystore, create the software keystore with the hardware keystore password in the appropriate location (such as
/etc/ORACLE/WALLETS/tde).Sql
Set the Software\Keystore\Password value to any password you choose.
7
Open the new software keystore with the following command:
Sql
8
Add the secret to the software keystore. The secret is the HSM identity password, and client is HSM_PASSWORD. HSM_PASSWORD is an Oracle-defined client name representing the HSM password as a secret in the software keystore.
Sql
You must provide the secret and HSM_PASSWORD values within single quotes, or the command fails.
9
Create a new auto-login keystore by using the password of the Oracle software wallet.
Sql
10
Reset the TDE_CONFIGURATION parameter to HSM|FILE for the KEYSTORE_CONFIGURATION.
Sql
11
Stop and restart the database after setting the TDE_CONFIGURATION parameter.
Sql
12
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:
Sql
If the auto-login wallet was configured properly, the following output appears:
Sql

