Refreshing a manual materialized view

Materialized views that are not configured to refresh automatically must be refreshed manually to update their data.

Prerequisites

You must have DBA authority or have INSERT permission on the materialized view. You must also have SELECT permissions on the underlying objects that the materialized view references.

Context and remarks

Many.

 Refresh a manual view using Sybase Central
  1. Use the SQL Anywhere 12 plug-in to connect to the database.

  2. In the left pane, double-click Views.

  3. Right-click a materialized view and click Refresh Data.

  4. Select an isolation level and click OK.

Results

The data in the materialized view is refreshed to show the most recent data in the underlying objects.

Next

Query the materialized view to ensure that it returns the expected data.

A failed refresh attempt converts the materialized view to an uninitialized state. If this occurs, review the definition for the materialized view to confirm that the underlying tables and columns specified are valid and available objects in your database.

 See also