Solved

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

Posted on 2009-06-30
7
1,491 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

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.

Join & Write a Comment

Why doesn't the Oracle optimizer use my index? Querying too much data Most Oracle developers know that an index is useful when you can use it to restrict your result set to a small number of the total rows in a table. So, the obvious side…
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
This video explains at a high level with the mandatory Oracle Memory processes are as well as touching on some of the more common optional ones.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

746 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now