Materialized Views - Identifying the last refresh

前端 未结 3 550
庸人自扰
庸人自扰 2021-01-31 10:08

I presently access a series of views and materialized views. The materialized are maintained by a third party who offers little information regarding the frequency and success

3条回答
  •  被撕碎了的回忆
    2021-01-31 10:32

    It looks like doc_180 already answered this in the comments, I'm not sure why it didn't get added as the answer

    SELECT owner, mview_name, last_refresh_date
      FROM all_mviews
     WHERE owner = <>
       AND mview_name = <>
    

    If you have access to the DBA tables, you could substitute DBA_MVIEWS for ALL_MVIEWS. That would allow you to get access to information about when every materialized view was refreshed rather than just the subset of materialized views that you have access to. Of course, that's probably not a difference that is particularly important in this case.

提交回复
热议问题