Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP Sybase SQL Anywhere 16.0 » SQL Anywhere Server - Database Administration » User and database security » Data security » Database encryption and decryption


Creating an encrypted database (dbinit utility)

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.


An encrypted database is created.


When starting or connecting to the database, you must 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#"

 See also