You can create an encrypted database using the dbinit utility.
There are no prerequisites for this task.
Context and remarks
For strongly encrypted databases, store a copy of the key in a safe location. If you lose the encryption key, there is no way to access the data—even with the assistance of Technical Support. The database must be discarded and you must create a new database.
Run the dbinit utility to create a database.
To encrypt the database with simple encryption, include the -ea simple option.
To encrypt the database with strong encryption, include -ek or -ep options to specify the encryption key.
The following example creates the database test.db using simple encryption, and configures the DBA user ID as DBA with password sql:
dbinit -dba DBA,sql -ea simple test.db
The following command creates a strongly encrypted database and specifies the encryption key and algorithm.
dbinit -dba DBA,sql -ek "0kZ2o56AK#" -ea AES_FIPS "myencrypteddb.db"
To start this database, run the following command:
dbsrv16 myencrypteddb.db -ek "0kZ2o56AK#"
Discuss this page in DocCommentXchange.
|Copyright © 2014, SAP AG or an SAP affiliate company. - SAP Sybase SQL Anywhere 16.0|