Manual option
If using the manual option, you must run the following OPEN command to access the KMES every time you restart the database instance.1
Run the following command to open the hardware keystore manually, thus making the KMES accessible:
Sql
2
You can disable access with the following command:
Sql
Automatic option
Choose one of the following operating systems to use the automatic option:An auto-login wallet stores the KMES 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 KMES.
Linux
Perform the following steps in Linux to use the automatic option:1
Run the following command to create the
/etc/ORACLE/WALLETS/tde directory path:Shell
2
Run the following command to change ownership of the
/etc/ORACLE directory to the Oracle user:Shell
3
Run the following command to set the WALLET_ROOT parameter to the
WALLETS directory created in the first step:Sql
4
Run the following command to set the TDE_CONFIGURATION parameter to FILE for the KEYSTORE_CONFIGURATION:
Sql
5
Run the following command to stop and start the database after setting the WALLET_ROOT and TDE_CONFIGURATION parameters:
Sql
6
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):Sql
7
Run the following command to open the new software keystore:
Sql
8
Run the following command to add the secret to the software keystore. The secret is the KMES 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.
Sql
9
Run the following command to create a new auto-login keystore by using the password of the Oracle software wallet:
Sql
10
Run the following command to re-set the TDE_CONFIGURATION parameter to HSM|FILE for the KEYSTORE_CONFIGURATION:
Sql
11
Run the following command to stop and start 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:
None
Windows
Perform the following steps in Windows to use the automatic option:1
Create a directory for the software wallet at a suitable location, such as
C:\WALLETS\tde2
Run the following command to set the WALLET_ROOT parameter to the
WALLETS directory created in the first step:Sql
3
Run the following command to set the TDE_CONFIGURATION parameter to FILE for the KEYSTORE_CONFIGURATION:
Sql
4
Run the following command to stop and start the database after setting the WALLET_ROOT and TDE_CONFIGURATION parameters:
Sql
5
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
C:\WALLETS\tde):Sql
6
Run the following command to open the new software keystore:
Sql
7
Run the following command to add the secret to the software keystore. The secret is the KMES 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.
Sql
8
Run the following command to create a new auto-login keystore by using the password of the Oracle software wallet:
Sql
9
Run the following command to re-set the TDE_CONFIGURATION parameter to HSM|FILE for the KEYSTORE_CONFIGURATION:
Sql
10
Run the following command to stop and start 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:
text

