Oracle® TimesTen In-Memory Database SQL Reference Release 11.2.1 Part Number E13070-03 |
|
|
View PDF |
The REFRESH MATERIALIZED VIEW statement refreshes an asynchronous materialized view manually.
Required privilege
Required privilege on the materialized view log tables:
No privilege is required for the owner of the materialized view log tables.
SELECT ANY TABLE if not the owner of materialized view log tables.
Required privilege on the materialized view:
No privilege is required for the owner of the materialized view.
SELECT ANY TABLE if not the owner of materialized view.
SQL syntax
REFRESH MATERIALIZED VIEW ViewName
Parameters
Parameter | Description |
---|---|
ViewName |
Name of the asynchronous materialized view |
Description
This statement refreshes the specified asynchronous materialized view. It is executed in a separate thread as a separate transaction and committed. The user transaction is not affected, but the user thread waits for the refresh operation to be completed before returning to the user. If you have not specified a refresh interval for an asynchronous materialized view, using this statement is the only way to refresh the view. If you have specified a refresh interval, you can still use this statement to refresh the view manually.
Since the refresh operation is always performed in a separate transaction, the refresh operation does not wait for any uncommitted user transactions to commit. Only the committed rows are considered for the refresh operation. This is true for the manual refresh statement as well as the automatic refresh that takes place at regular intervals.
If the CREATE MATERIALIZED VIEW statement for the view specified a FAST refresh, then the REFRESH MATERIALIZED VIEW statement uses the incremental refresh method. Otherwise this statement uses the full refresh method.
Examples
REFRESH MATERALIZED VIEW bookorders;
See also