Materialized views can be encrypted for additional security. For example, if a materialized view contains data that was encrypted in the underlying table, you may want to encrypt the materialized view as well. Table encryption must already be enabled in the database to encrypt a materialized view. The encryption algorithm and key specified at database creation are used to encrypt the materialized view. To see the encryption settings in effect for your database, including whether table encryption is enabled, query the Encryption database property using the DB_PROPERTY function, as follows:
SELECT DB_PROPERTY( 'Encryption' ); |
As with table encryption, encrypting a materialized view can impact performance since the database server must decrypt data it retrieves from the view.
Use the SQL Anywhere 12 plug-in to connect to the database as a user with DBA authority. as the owner of the view, or as a user with DBA authority.
In the left pane, double-click Views.
Right-click the materialized view and choose Properties.
Click the Miscellaneous tab.
Select the Materialized View Data Is Encrypted checkbox.
Click OK.
Connect to the database as a user with DBA authority, or as owner of the materialized view.
Execute an ALTER MATERIALIZED VIEW statement using the ENCRYPTED clause.
Use the SQL Anywhere 12 plug-in to connect to the database as a user with DBA authority or as the owner of the view.
In the left pane, double-click Views.
Right-click the materialized view and choose Properties.
Click the Miscellaneous tab.
Clear the Materialized View Data Is Encrypted checkbox.
Click OK.
Connect to the database as a user with DBA authority, or as owner of the materialized view.
Execute an ALTER MATERIALIZED VIEW statement using the NOT ENCRYPTED clause.
Discuss this page in DocCommentXchange.
|
Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0 |