Solved

Oracle Materialized View - How to find last Refresh Stats on View

Posted on 2009-06-30
7
1,493 Views
Last Modified: 2012-05-07
Is there a sys view I can query to find out the last run date stats on a particular materialized view?

thanks
0
Comment
Question by:iBinc
  • 4
  • 3
7 Comments
 
LVL 40

Expert Comment

by:mrjoltcola
ID: 24749084
DBA_MVIEWS.LAST_REFRESH_DATE
0
 
LVL 40

Expert Comment

by:mrjoltcola
ID: 24749103
select last_refresh_type, last_refresh_date, staleness from dba_mviews where mview_name = 'MYVIEW';

You may also use USER_MVIEWS if not a DBA

0
 

Author Comment

by:iBinc
ID: 24749305
Tried using the user_mviews but the table is empty. I think this user is read only to the source. Any way around that?
0
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

Author Comment

by:iBinc
ID: 24749345
user_mviews doesn't return anything even where I have dba access. ??
0
 
LVL 40

Accepted Solution

by:
mrjoltcola earned 500 total points
ID: 24749450
Try ALL_MVIEWS

If you don't it there, you really should check DBA_MVIEWS to be sure it even exists.

DBA_MVIEWS will show all in the system
USER_MVIEWS only shows what you have privileges for.

Who owns the mview?
0
 

Author Comment

by:iBinc
ID: 24749699
all_mviews works for me!

Thanks for all your contributions!
0
 
LVL 40

Expert Comment

by:mrjoltcola
ID: 24749724
You are very welcome!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Processing of multiple cursor 6 51
MULTIPLE DATE QUERY 15 81
Oracle DBLINKS From 11g to 8i 3 35
capture vmstat info and insert it into an oracle table 31 23
Note: this article covers simple compression. Oracle introduced in version 11g release 2 a new feature called Advanced Compression which is not covered here. General principle of Oracle compression Oracle compression is a way of reducing the d…
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This video shows setup options and the basic steps and syntax for duplicating (cloning) a database from one instance to another. Examples are given for duplicating to the same machine and to different machines
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

825 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question