In SAP ASE version 16.0, you can use the alter database command to encrypt and decrypt databases.
alter database database_name {[encrypt with key_name | decrypt [with key_name]] [parallel degree_of_parallelism] | resume [encryption | decryption [parallel degree_of_parallelism]] | suspend [encryption | decryption] }
Specifically, the command retrieves the corresponding key ID from the sysencryptkeys system table in the master database and set the encrkeyid column in its related sysdatabases row.
key_name is the database encryption key you used to encrypt the database. If you do specify a different key name, the command fails and SAP ASE displays an error message.
Create a thread for each database storage virtual device, as long as the number is equal to or fewer than "number of worker processes" configuration. The degree_of_parallelism number should be no larger than the number of database devices because additional worker threads do not improve encryption performance. If you do not specify degree_of_parallelism, SAP ASE internally defines the value based on the number of online engines, as well as how the database is distributed across various devices.
You can use parallel degree_of_parallelism with resume encrypt. If you do not specify parallel degree_of_parallelism, SAP ASE determines the value based on how the database is distributed across various engines.
alter database existdb encrypt with dbkeyThe example does not specify the parallel degree, leaving it up to SAP ASE to determine how many worker threads should be initiated to encrypt existdb in parallel.
alter database existdb suspend encryption
alter database existdb resume encryption