Recompiling and Enabling a Materialized View

Recompile and enable a disabled materialized view to make it available for use by the database server.

Prerequisites
Database Version Materialized View Privileges
SAP Sybase IQ 15.3 and 15.4 You must have one of:
  • DBA authority
  • You own the materialized view and have one of the following:
    • SELECT permission on the underlying tables of the materialized view
    • You own the underlying tables of the view
SAP Sybase IQ 16.0 You must have one of:
  • ALTER ANY MATERIALIZED VIEW system privilege
  • ALTER ANY OBJECT system privilege
  • You own the materialized view
You must also have one of:
  • SELECT ANY TABLE system privilege
  • SELECT permission on the underlying tables of the materialized view
  • You own the underlying tables of the materialized view
Task
Materialized view data is read-only. Materialized views are only supported for system store (IQ catalog store) tables.
  1. In the Perspective Resources view, select the resource, and select Resource > Administration Console.
  2. In the left pane, expand IQ Servers > Schema Objects > Views, and then select Materialized Views.
  3. Select one or more materialized views from the right pane and either:
    • Click the arrow to the right of the name and select Recompile and Enable, or
    • From the Administration Console menu bar, select Resource > Recompile and Enable.
    Tip: Use Shift-click or Control-click to select multiple materialized views.
  4. Click Yes.
Related concepts
Materialized View Permissions
Materialized View Indexes
Related tasks
Creating a Materialized View
Viewing Materialized View Data in the Execute SQL Window
Refreshing Materialized View Data
Truncating Materialized View Data
Validating Materialized View Data
Setting a Clustered Index
Disabling a Materialized View
Deleting a Materialized View
Generating Materialized View DDL Commands
Viewing or Modifying Materialized View Properties
Authenticating a Login Account for a Managed Resource
Related reference
Materialized View Privilege Summary