473,394 Members | 1,965 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Materlized view Refresh Interval

AJ
Hi,

I have a materialized view in oracle which is a complex view of 4
tables which
belongs to different schemas..

create materialized view materialized_sum
refresh complete
start with sysdate
next sysdate+1/24
as
select ano,sno,count(id) assigned,
count(decode(sstno,70,1))completes,count(decode(ss tno,75,1)) ftq,
(count(start_date)-count(complete_date))breakoffs
from
tab1,tab2,tab3,tab4
where tab1.id=tab2.id and
tab4.pkey=tab3.pkey
and tab2.fkey=tab3.pkey
group by ano,sno;

Now the problem is the refresh interval...Is there any way I can
specify a fixed refresh interval...What happens is after the first
refresh let us say at 10.00.00 am ..next refresh should be at 11.00
am..instead of that, the interval slips by 30-60 seconds..so the next
refresh would be at 11.00.30 am..

I have a dependent job which runs after the view is refreshed....
Any help is greatly appreciated..

Thanks
Arpit
Jul 19 '05 #1
2 12295
AJ wrote:
Hi,

I have a materialized view in oracle which is a complex view of 4
tables which
belongs to different schemas..

create materialized view materialized_sum
refresh complete
start with sysdate
next sysdate+1/24
as
select ano,sno,count(id) assigned,
count(decode(sstno,70,1))completes,count(decode(ss tno,75,1)) ftq,
(count(start_date)-count(complete_date))breakoffs
from
tab1,tab2,tab3,tab4
where tab1.id=tab2.id and
tab4.pkey=tab3.pkey
and tab2.fkey=tab3.pkey
group by ano,sno;

Now the problem is the refresh interval...Is there any way I can
specify a fixed refresh interval...What happens is after the first
refresh let us say at 10.00.00 am ..next refresh should be at 11.00
am..instead of that, the interval slips by 30-60 seconds..so the next
refresh would be at 11.00.30 am..

I have a dependent job which runs after the view is refreshed....
Any help is greatly appreciated..

Thanks
Arpit


....and you reschedule it every hour... The point is,
jobs get reschedyled AFTER they complete; looks asif
your job runs for about 30 secs.
You better reschedule using trunc(sysdate) plus a fixed
interval - you may round down to an hour, a minute, whatever.

--

Regards,
Frank van Bortel

Jul 19 '05 #2
aj*****@hotmail.com (AJ) wrote in message news:<60**************************@posting.google. com>...

It looks like the next interval is being calculated after the refresh
(perhaps for transactional reasons.)

Just a guess, but how about trying this ....

create materialized view materialized_sum
refresh complete
start with sysdate
next to_date(to_char(sysdate, 'YYYYMMDDHH24'), 'YYYYMMDDHH24')+1/24
Hi,

I have a materialized view in oracle which is a complex view of 4
tables which
belongs to different schemas..

create materialized view materialized_sum
refresh complete
start with sysdate
next sysdate+1/24
as
select ano,sno,count(id) assigned,
count(decode(sstno,70,1))completes,count(decode(ss tno,75,1)) ftq,
(count(start_date)-count(complete_date))breakoffs
from
tab1,tab2,tab3,tab4
where tab1.id=tab2.id and
tab4.pkey=tab3.pkey
and tab2.fkey=tab3.pkey
group by ano,sno;

Now the problem is the refresh interval...Is there any way I can
specify a fixed refresh interval...What happens is after the first
refresh let us say at 10.00.00 am ..next refresh should be at 11.00
am..instead of that, the interval slips by 30-60 seconds..so the next
refresh would be at 11.00.30 am..

I have a dependent job which runs after the view is refreshed....
Any help is greatly appreciated..

Thanks
Arpit

Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Bernard André | last post by:
Hi All, I am getting crazy.... This code work fine in step by step but at execution time, it looks like a delay to refresh the A2K table from VB is resulting in some records being treated more...
0
by: Conax | last post by:
Hi, It's me again asking about IFRAME. With UncleWobby, Steven Burn and Roland Hall's help, I was able to create a proper IFRAME section on my page. Now I come to the next problem. I'd...
3
by: M. Mehta | last post by:
It seems that you can not create a materialized view if you are using outer joins...can someone please verify this? Thanks M. Mehta Please follow my example below: created 2 tables:
7
by: Willem | last post by:
Can someone tell me how I can get a page(any page) on the Internet to refresh automatically every 5 minutes. I was thinking along the lines of having a HTML file on my C-drive with JavaScript to do...
43
by: dan baker | last post by:
I have a page that gets loaded with a meta-refresh hardcoded so that a few things on the page get updated. its kind of a fake chat board. anyway, what I need to do is turn off the meta-refresh once...
12
by: martin1 | last post by:
All, is there window form refresh property? I try to set up window form refresh per minute. Thanks
3
by: marik | last post by:
Hi, people. I have a question: Can somebody link me to a simple javascript piece of code, that allows me to get input from a combo box and set the refresh interval of the page to be that...
2
by: AJ | last post by:
Hi, I have a materialized view in oracle which is a complex view of 4 tables which belongs to different schemas.. create materialized view materialized_sum refresh complete start with...
1
by: sainiamit25 | last post by:
Hi, I want to create a materlised view log in my database A and materlised view in some other database B. I was successful in creating materlised view in database B (after creating a dblink with...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.