You can encrypt a data file of an existing tablespace when the tablespace is offline.
-
Login to DB instance as a system user.
|
›_ sqlplus console |
|---|
|
-
Open the HSM Keystore.
|
›_ sqlplus console |
|---|
|
-
Create a tablespace.
|
›_ sqlplus console |
|---|
|
-
Create EMP table inside the
NONSECURE01_TStablespace.
|
›_ sqlplus console |
|---|
|
-
Insert data into EMP table.
|
›_ sqlplus console |
|---|
|
-
View the data from EMP table.
|
›_ sqlplus console |
|---|
|
-
Bring the NONSECURE01_TS tablespace offline.
|
›_ sqlplus console |
|---|
|
-
Encrypt the NONSECURE01_TS tablespace.
|
›_ sqlplus console |
|---|
|
Alternatively, to encrypt individual data files within a tablespace, use the ALTER DATABASE DATAFILE SQL statement.
|
›_ sqlplus console |
|---|
|
-
Bring the tablespace online.
|
›_ sqlplus console |
|---|
|
-
Close the keystore.
|
›_ sqlplus console |
|---|
|
-
Now try to view the contents of EMP table, nothing is displayed as the wallet is closed.
|
›_ sqlplus console |
|---|
|