Skip to main content

CANCEL REFRESH MATERIALIZED VIEW

Description

Cancels a refresh task for an asynchronous materialized view.

tip

This operation requires the REFRESH privilege on the target materialized view.

Syntax

CANCEL REFRESH MATERIALIZED VIEW [<database_name>.]<materialized_view_name> [FORCE]

Parameters

ParameterRequiredDescription
database_nameNoName of the database where the materialized view resides. If this parameter is not specified, the current database is used.
materialized_view_nameYesName of the materialized view.
FORCENOForces to cancel the running materialized view refresh task.

Examples

Example 1: Cancel the refresh task for the ASYNC refresh materialized view lo_mv1.

CANCEL REFRESH MATERIALIZED VIEW lo_mv1;
CANCEL REFRESH MATERIALIZED VIEW lo_mv1 FORCE;