Skip to main content
Alters the configuration of a materialized view. Any of the following facets of a materialized view can be altered:

Move View

A materialized view can be moved from one schema to another.
Move View Syntax
All dependent views, materialized views, streams, and SQL procedures will be dropped. For example, to move the sales_current view from the example_olap schema to the example_archive schema:
Move Materialized View Example

Set Access Mode

A materialized view can have its global accessibility modified for all users in the system, independently from and further restricting any role-based access controls in place.
Set Materialized View Access Mode Syntax
Changing the access mode cannot widen access for users not already granted access; it can only narrow access for those who already have access. This setting will also trump administrative access to a materialized view.

Set Execution User

A materialized view can have its execution user for periodic refreshes (REFRESH is set to EVERY ...) changed to the given user.
Set Materialized View Execution User Syntax
If this user doesn’t exist at the time of a refresh, the refresh will be executed as the creating user, and, failing that, the system administration user.

Set Refresh Mode

The refresh mode of a materialized view can be modified.
Set Materialized View Refresh Mode Syntax
The available refresh modes are: For example, to alter the current sales materialized view to refresh every 6 hours:
Set Materialized View Refresh Mode by Hour Example
Set Materialized View Refresh Mode with Start/Stop Example

Set TTL

A materialized view’s time-to-live (TTL) can be altered.
Set Materialized View TTL Syntax