Use the ALTER TABLE statement
- Last Updated: January 16, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
The ALTER TABLE statement can be used to change the security policies of an
object. SET ENCRYPT, DECRYPT, and REKEY
clauses can be used to define encryption policies for tables, indexes or LOB
columns; the ALTER TABLE statement is an online operation. The ALTER
TABLE statement has the following syntax:
|
In the following example, the ALTER TABLE statement is used to define an
encryption policy for a table:
|
Using the REKEY option, a security administrator or DBA can re-encrypt the
existing object policy with a new key using the same cipher. When this option is used, SQL
writes a new object policy with the same cipher name to the security schema.
Specifying SET DECRYPT creates an object policy with null values, indicating
that the data will not be encrypted for the database object.