How to get list of all materialized views in oracle

后端 未结 4 1005
陌清茗
陌清茗 2021-02-05 04:27

How to get list of all Materialized Views.?

相关标签:
4条回答
  • 2021-02-05 04:45

    I never use all_snapshots before.

    Here is another way to do:

    select * from all_objects where OBJECT_TYPE='MATERIALIZED VIEW';
    
    0 讨论(0)
  • 2021-02-05 04:52
    select * from all_mviews;
    

    or

    select * from dba_mviews;
    
    0 讨论(0)
  • 2021-02-05 04:53

    Try this:

    SELECT *
    FROM  all_snapshots;
    

    Instead of all_snapshots you can also use the all_mviews view.

    0 讨论(0)
  • 2021-02-05 04:59

    Actually ALL_MVIEWS and ALL_SNAPHOTS displays only the views the user has granted access on. To see all views in a database you must query DBA_MVIEWS or DBA_SNAPHOTS. You need special privileges or roles to query this view like the system privilege SELECT ANY DICTIONARY or the role SELECT_CATALOG_ROLE. A similar statement holds for other ALL_ and DBA_ views.

    0 讨论(0)
提交回复
热议问题