You can view a list of all materialized views and their status, and also review the database options that were in force when each materialized view was created.
Prerequisites
The materialized views cannot be hidden.
Context and remarks
Dependency information can also be found in the SYSDEPENDENCY system view.
Connect to the database.
To view a list of all materialized views and their status, execute the following statement:
SELECT * FROM sa_materialized_view_info(); |
To review the database options in force for each materialized view when it was created, execute the following statement:
SELECT b.object_id, b.table_name, a.option_id, c.option_name, a.option_value FROM SYSMVOPTION a, SYSTAB b, SYSMVOPTIONNAME c WHERE a.view_object_id=b.object_id AND b.table_type=2; |
To request a list of regular views that are dependent on a given materialized view, execute the following statement:
CALL sa_dependent_views( 'materialized-view-name' ); |
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |