Вопрос

So i have a table which contains the last modification or refresh date for every MV in our db. I would like to update this value each time a MV refreshes. I thought the following could be possible, but i dont know how to accomplish it :

 CREATE MATERIALIZED VIEW ...
 .
 .
 ** UPDATE TABLE AFTER REFRESH **
 .
 .
 AS
 SELECT ...... 

Thx in advance.

Это было полезно?

Решение

use the dictionary

select mview_name , last_refresh_type,last_refresh_date from all_mviews;
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top