Question

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.

Était-ce utile?

La solution

use the dictionary

select mview_name , last_refresh_type,last_refresh_date from all_mviews;
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top