To encrypt an existing tablespace with online conversion, use ALTER TABLESPACE with the ONLINE and ENCRYPT clauses.
-
Login to DB instance as a system user.
|
›_ sqlplus console |
|---|
|
-
Open HSM Keystore.
|
›_ sqlplus console |
|---|
|
-
Create a tablespace.
|
›_ sqlplus console |
|---|
|
-
Create EMP table inside the NONSECURE_TS tablespace.
|
›_ sqlplus console |
|---|
|
-
Insert data into EMP table.
|
›_ sqlplus console |
|---|
|
-
View the data from EMP table.
|
›_ sqlplus console |
|---|
|
-
Check the COMPATIBLE parameter is set correctly according to DB version.
|
›_ sqlplus console |
|---|
|
You must change the COMPATIBLE parameter if value is not 19.0.0, then complete the remaining steps in this procedure. To change the COMPATIBLE parameter, edit the initialization parameter file to use the new COMPATIBLE setting.
-
Encrypt the
NONSECURE_TStablespace.
|
›_ sqlplus console |
|---|
|
-
View the data from EMP table.
|
›_ sqlplus console |
|---|
|
-
Verify the
NONSECURE_TStablespace got encrypted.
|
›_ sqlplus console |
|---|
|
-
Close the keystore.
|
›_ sqlplus console |
|---|
|
Now try to view the contents of EMP table, nothing is displayed as the wallet is closed.
As the keystore is closed, you will get an error message “ORA-28365: wallet is not open” and hence you cannot view the data from EMP table.
-
Open the keystore.
|
›_ sqlplus console |
|---|
|
-
Verify EMP table.
|
›_ sqlplus console |
|---|
|