Security Guide > Security Guide > Using Data at Rest Encryption > Creating and Locking an Encrypted Database
Was this helpful?
Creating and Locking an Encrypted Database
The following example creates an encrypted database and disables access to its data.
1. Issue the following command at the command prompt:
createdb mydb -encrypt
When prompted, enter an initial passphrase. The passphrase can contain blanks, but trailing blanks are ignored.
Note:  Createdb leaves the encrypted database unlocked.
2. Connect to the database:
sql mydb
3. Lock the database:
DISABLE PASSPHRASE 'my passphrase';
4. Stop the X100 server:
CALL X100(TERMINATE);
The database is locked.
Last modified date: 12/19/2024