All of the existing data in the database is encrypted using the new
encryption key, and any new data written to the database will use this key for
encryption. For more information about this attribute, see "Encrypting databases
with a new external encryption key" in the
The encryption key value must be a hexadecimal string at least 16 digits in length (8 bytes), and it must contain an even number of digits.
The newEncryptionKey=key attribute must be combined with the
You cannot change the encryption provider or the encryption algorithm when you use the newEncryptionKey=key attribute.
For an existing encrypted database for which authentication and
SQL authorization are both
enabled, only the
After you change the encryption key, be sure to check for SQLWarnings. The change succeeded only if there were no SQLWarnings or SQLExceptions.