Skip to main content
The security administrator must make the Vectera Plus 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 the manual option requires you to re-enable access to the HSM every time the database is restarted. Select one of the following methods and perform the instructions:

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
SQL> ALTER SYSTEM SET ENCRYPTION WALLET OPEN IDENTIFIED BY "HSM_Identity_Password";
2
Optionally, disable access with the following command:
Sql
SQL> ALTER SYSTEM SET ENCRYPTION WALLET CLOSE IDENTIFIED BY "HSM_Identity_Password";
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
SQL> ALTER SYSTEM SET WALLET_ROOT = 'C:\WALLET\tde' SCOPE=SPFILE;
3
Set the TDE_CONFIGURATION parameter to FILE for the KEYSTORE_CONFIGURATION.
Sql
SQL> ALTER SYSTEM SET TDE_CONFIGURATION="KEYSTORE_CONFIGURATION=FILE" SCOPE=SPFILE;
4
Stop and restart the database after setting the WALLET_ROOT and TDE_CONFIGURATION parameters.
Sql
SQL> SHUTDOWN IMMEDIATE;

SQL> STARTUP;
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
SQL> ADMINISTER KEY MANAGEMENT CREATE KEYSTORE IDENTIFIED BY "Software_Keystore_Password";
Set the Software\Keystore\Password value to any password you choose.
6
Open the new software keystore with the following command:
Sql
SQL> ADMINISTER KEY MANAGEMENT SET KEYSTORE OPEN IDENTIFIED BY "Software_Keystore_Password";
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
SQL> ADMINISTER KEY MANAGEMENT ADD SECRET 'HSM_Identity_Password' FOR CLIENT 'HSM_PASSWORD' IDENTIFIED BY "Software_Keystore_Password" WITH BACKUP;
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
SQL> ADMINISTER KEY MANAGEMENT CREATE AUTO_LOGIN KEYSTORE FROM KEYSTORE IDENTIFIED BY "Software_Keystore_Password";
9
Reset the TDE_CONFIGURATION parameter to HSM|FILE for the KEYSTORE_CONFIGURATION.
Sql
SQL> ALTER SYSTEM SET TDE_CONFIGURATION = 'KEYSTORE_CONFIGURATION=HSM|FILE' SCOPE=SPFILE;
10
Stop and restart the database after setting the TDE_CONFIGURATION parameter.
Sql
SQL> SHUTDOWN IMMEDIATE;

SQL> STARTUP;
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
SQL> SELECT WRL_TYPE, WRL_PARAMETER, WALLET_TYPE, STATUS FROM V$ENCRYPTION_WALLET;
If the auto-login wallet was configured properly, the following output appears:
Sql
WRLTYPE | WRLPARAMETER          | WALLETTYPE | STATUS
---------+------------------------+-------------+---------------------
FILE     | C:\WALLET\TDE\tde\     | AUTOLOGIN   | OPENNOMASTERKEY
HSM      |                        | HSM         | OPEN

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
$ sudo mkdir -p /etc/ORACLE/WALLETS/tde
2
Change ownership of the /etc/ORACLE directory to the Oracle user.
Shell
$ chown -R oracle:oinstall /etc/ORACLE
3
Set the WALLET_ROOT parameter to the WALLETS directory created in the first step.
Sql
SQL> ALTER SYSTEM SET WALLET_ROOT = '/etc/ORACLE/WALLETS' SCOPE=SPFILE;
4
Set the TDE_CONFIGURATION parameter to FILE for the KEYSTORE_CONFIGURATION.
Sql
SQL> ALTER SYSTEM SET TDE_CONFIGURATION="KEYSTORE_CONFIGURATION=FILE" SCOPE=SPFILE;
5
Stop and restart the database after setting the WALLET_ROOT and TDE_CONFIGURATION parameters.
Sql
SQL> SHUTDOWN IMMEDIATE;

SQL> STARTUP;
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
SQL> ADMINISTER KEY MANAGEMENT CREATE KEYSTORE IDENTIFIED BY "Software_Keystore_Password";
Set the Software\Keystore\Password value to any password you choose.
7
Open the new software keystore with the following command:
Sql
SQL> ADMINISTER KEY MANAGEMENT SET KEYSTORE OPEN IDENTIFIED BY "Software_Keystore_Password";
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
SQL> ADMINISTER KEY MANAGEMENT ADD SECRET 'HSM_Identity_Password' FOR CLIENT 'HSM_PASSWORD' IDENTIFIED BY "Software_Keystore_Password" WITH BACKUP;
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
SQL> ADMINISTER KEY MANAGEMENT CREATE AUTO_LOGIN KEYSTORE FROM KEYSTORE IDENTIFIED BY "Software_Keystore_Password";
10
Reset the TDE_CONFIGURATION parameter to HSM|FILE for the KEYSTORE_CONFIGURATION.
Sql
SQL> ALTER SYSTEM SET TDE_CONFIGURATION = 'KEYSTORE_CONFIGURATION=HSM|FILE' SCOPE=SPFILE;
11
Stop and restart the database after setting the TDE_CONFIGURATION parameter.
Sql
SQL> SHUTDOWN IMMEDIATE;

SQL> STARTUP;
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
SQL> SELECT WRL_TYPE, WRL_PARAMETER, WALLET_TYPE, STATUS FROM V$ENCRYPTION_WALLET;
If the auto-login wallet was configured properly, the following output appears:
Sql
WRLTYPE | WRLPARAMETER               | WALLETTYPE | STATUS
---------+-----------------------------+-------------+---------------------
FILE     | /etc/ORACLE/WALLETS/tde/    | AUTOLOGIN   | OPENNOMASTERKEY
HSM      |                             | HSM         | OPEN