Solved

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

Posted on 2009-06-30
7
1,528 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This article started out as an Experts-Exchange question, which then grew into a quick tip to go along with an IOUG presentation for the Collaborate confernce and then later grew again into a full blown article with expanded functionality and legacy…
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…
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
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.
Suggested Courses

635 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