Cache Table Recreation¶
The view’s cache table can be recreated using the ALTER [TABLE | VIEW] <view_name> CACHE RECREATE sentence (see section Modifying a Derived View).
Warning
This command deletes the cached view data.
The command executes the following steps:
Deletes the current cache table.
Creates a new cache table using the table creation template configured on the view or the cache data source. Note that the current cache table creation template may be different from the template used to create the old cache table deleted in the previous step.
The next sentence recreates the cache for the sampleView view:
ALTER VIEW sampleView CACHE RECREATE;
Privileges Required
To execute this command, the user needs these privileges:
Connectover the database of the view.Writeover the view.Connectover the database of the JDBC cache data source.ExecuteandWriteover the JDBC cache data source.
