Hi, Experts,
For an existing HANA database, if I enabled encryption by executing command "alter system persistence encryption on;".
A few questions.
1. How do I check the encryption progress ?
2. I read a note says the data would be encrypted when it reads the data, However, if I'd like to encryption all the data one time, is there a command to force it to do the encryption for the entire database(not only enable encryption but force it to encrypt all the data)?
Thanks
Brian Wang
Request clarification before answering.
Hi Brian,
I agree with Kiran. There is no single command which encrypts the whole data persistence at the same time. If you run the commands
ALTER SYSTEM PERSISTENCE ENCRYPTION ON;or
ALTER DATABASE <TID> PERSISTENCE ENCRYPTION ON;an asynchronous process will be started which encrypts the data persistence in the background.
You can monitor the process for each service / database by using the following command in the SYSTEMDB:
SELECT
HOST
, DATABASE_NAME
, PORT
, ENCRYPTION_ACTIVE
, DATA_CONVERSION_ACTIVE
FROM
SYS_DATABASES.M_PERSISTENCE_ENCRYPTION_STATUS;
The column DATA_CONVERSION_ACTIVE provides the information if the encryption process is still running or if the conversion is done.
If you want to encrypt the whole database from the beginning you have two options from my point of view:
1. Using the HANA database parameter(s) of the database_initial_encryption section on global.ini configuration file e.g:
ALTER SYSTEM ALTER CONFIGURATION ('global.ini','SYSTEM') SET ('database_initial_encryption','persistence_encryption') = 'on' WITH RECONFIGURE;2. Activate the database data and log encryption from the beginning by installing the HANA instance in batch mode using a configuration file. In this case you have to set the volume_encryption parameter equals true.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 10 | |
| 5 | |
| 5 | |
| 5 | |
| 5 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.