Thx for the reply ,But please include the syntax also the clause for refresh of the view in every two hours also.
Thx
Main Topics
Browse All TopicsPlease write me the steps to create the materilized views.I have five views to be created as materilized views.I want to place them in DBMS_REFRESH to get refreshed together.
I want to do refresh of views in every two hours.
Thx in advance.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Thx please send me the syntax for creation of group in dbms_refresh and using dbms_refesh for the group.And when we are using dbms_refresh we should use use refresh fast next sysdate + 1/12 in view or not.And if we not using then what is the syntax for creation of materilaized view with dbms_refresh.
This is urgent please reply.
Thx in advance.,
http://www.dbasupport.com/
Here is the full syntax plus examples of the dbms_refresh procedure.
As for the view creation, if you don`t want it to do an automatic refresh, just omit the refresh clause and use the dbms_refresh to do it manualy.
Business Accounts
Answer for Membership
by: Tony_HaslerPosted on 2004-11-20 at 14:21:43ID: 12635862
I am not sure what you want. There are a lot of options for materialized views. For instance, the following is a modified example of an aggregate view from the Oracle documentation. You can then refresh it by using the DBMS_REFRESH package.
Is it the DBMS_REFRESH package that you need help on? If not could you be more specific about what you want, and I can perhaps give you the SQL.
CREATE MATERIALIZED VIEW sales_mv
BUILD IMMEDIATE
REFRESH COMPLETE ON DEMAND
AS SELECT t.calendar_year, p.prod_id,
SUM(s.amount_sold) AS sum_sales
FROM times t, products p, sales s
WHERE t.time_id = s.time_id AND p.prod_id = s.prod_id
GROUP BY t.calendar_year, p.prod_id;