We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

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

iBinc
iBinc asked
on
Medium Priority
2,066 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
Comment
Watch Question

Top Expert 2009

Commented:
DBA_MVIEWS.LAST_REFRESH_DATE
Top Expert 2009

Commented:
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

Author

Commented:
Tried using the user_mviews but the table is empty. I think this user is read only to the source. Any way around that?

Author

Commented:
user_mviews doesn't return anything even where I have dba access. ??
Top Expert 2009
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
all_mviews works for me!

Thanks for all your contributions!
Top Expert 2009

Commented:
You are very welcome!
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.