Oracle
 sql >> Database >  >> RDS >> Oracle

Viste materializzate - Identificazione dell'ultimo aggiornamento

Sembra che doc_180 abbia già risposto a questo nei commenti, non sono sicuro del motivo per cui non è stato aggiunto come risposta

SELECT owner, mview_name, last_refresh_date
  FROM all_mviews
 WHERE owner = <<user that owns the materialized view>>
   AND mview_name = <<name of the materialized view>>

Se hai accesso alle tabelle DBA, puoi sostituire DBA_MVIEWS per ALL_MVIEWS . Ciò ti consentirebbe di accedere alle informazioni su quando è stata aggiornata ogni vista materializzata piuttosto che solo al sottoinsieme di viste materializzate a cui hai accesso. Ovviamente, probabilmente non è una differenza particolarmente importante in questo caso.